This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A WMTS enabled server application can serve map tiles of spatially referenced data using tile images with predefined context, extent, and resolution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ruby togeojson.rb | gzip -9 > some.geojson.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ npm find tilelive | |
NAME DESCRIPTION | |
cdbtiles cdbtiles is a tilelive backend plug-in for CouchDB | |
mbtiles Utilities and tilelive integration for the MBTiles forma | |
mongotiles mongotiles is a tilelive backend plug-in for MongoDB Gri | |
tessera A tilelive-based tile server | |
tilelive API for various map tile backends | |
tilelive-blend A tilelive provider that blends. | |
tilelive-bridge Datasource => vector tiles bridge backend for tilelive | |
tilelive-cache A caching wrapper for tilelive.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ハザード | |
観光 | |
空き家 | |
地質 | |
地盤 | |
防災 | |
データ生産 | |
浸水想定 | |
経路探索 | |
配車 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
require 'digest/md5' | |
require 'fileutils' | |
require 'zlib' | |
require 'thread' | |
Z_EXTENT = (18..18) | |
T = 'std' | |
N_THREADS = 8 | |
Q_SIZE = 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"story": [ | |
{ | |
"type": "Feature", | |
"geometry" { | |
"type": "Point", | |
"coordinate" : [...] | |
}, | |
"html": "...", | |
"viewport": ... | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Mapzen/OSM.US-style GeoJSON vector tiles | |
@class GeoJSONTileSource | |
*/ | |
export class GeoJSONTileSource extends NetworkTileSource { | |
constructor (source) { | |
super(source); | |
this.type = 'GeoJSONTileSource'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require './elevation_of.rb' | |
data = JSON.parse(File.open('kyogatake.geojson').read) | |
a = data['features'][0]['geometry']['coordinates'] | |
a.each_index {|i| | |
a[i] << elevation_of(a[i][0], a[i][1]) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for z in 0..2 | |
for x in 0...(2 ** z) | |
for y in 0...(2 ** z) | |
next if File.exist?("#{z}_#{x}_#{y}.png") | |
`wget -O #{z}_#{x}_#{y}.png http://cyberjapandata.gsi.go.jp/xyz/std/#{z}/#{x}/#{y}.png` | |
end | |
end | |
end | |
for z in 0..2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<title></title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css"/> | |
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script> | |
<script src="http://handygeospatial.github.io/mapsites/js/leaflet-hash.js"></script> | |
<script src="http://handygeospatial.github.io/mapsites/js/TileLayer.GeoJSON.js"></script> |
NewerOlder