creation of hex polygon vector tile
git clone https://github.com/ubukawa/hex
cd hex
npm install
Please edit config/default.hjson.
{
r: 80000
gap: 0.01
minz: 0
maxz: 4
layer: hex
outputFile: output
epsg: 3857
xRange: 40075016.68
yRange: 40097932.2
}
r is the length of a side of hexagon in meters.
gap is not yet used. xRange and yRange should be changed if you use other projection than EPSG:3857.
node index.js
Please wait for a while until GeoJSON file is created.
You will get the file ${outputFile}-(length in km).geojson.
tippecanoe -o docs/output.pmtiles --no-tile-compression --no-feature-limit --no-tile-size-limit --projection=EPSG:3857 --force input.geojson
ogr2ogr -f "ESRI Shapefile" shp/400.shp geojson/output-400.geojson
To create GeoJSON,
node index-geojson.js