WikimapsAtlas / WikimapsAtlas-generator

A command line utility to convert heavy GIS sources into elegant administrative & topographic topojson files, raster files, and web friendly svg maps.
MIT License
45 stars 6 forks source link

Projection as a parameter ? #1

Open hugolpz opened 9 years ago

hugolpz commented 9 years ago

script: if projection X, then ogrproject=, d3projection=

Projection currently rely on few keyp points within the makefiles and ./js/wikiatlas.js. We recommand to reproject early on, before or at the top of the crop task:

# using ogr2ogr 
ogr2ogr -f 'ESRI Shapefile' -t_srs 'EPSG:...' output.shp input.shp
# then crop vector files via ogr2ogr -clipsrc, raster files via gdal_translate -projwin.

Within the ./js/wikiatlas.js, D3js codes should be projection-agnostic, something such:

var path = d3.geo.path()
    .projection(null);

For more, see Reproject shp/topojson : ways to reproject my data and comparative manual?

Get customable projection would be a great gain.