diff options
author | evansiroky <evan.siroky@yahoo.com> | 2018-11-16 09:24:26 -0800 |
---|---|---|
committer | evansiroky <evan.siroky@yahoo.com> | 2018-11-16 09:24:26 -0800 |
commit | e3360f71daa106c60ae825f8680bba0257a98096 (patch) | |
tree | c1f10c4269883d2b066bfac3052bbd893ee08169 | |
parent | 92c15c4c5c1900e00c370f6a1f66cb65d4f3a6e6 (diff) | |
download | timezone-boundary-builder-e3360f71daa106c60ae825f8680bba0257a98096.tar.gz |
Fix geojson to shapefile conversion
-rw-r--r-- | index.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -665,7 +665,7 @@ asynclib.auto({ console.log('convert from geojson to shapefile') rimraf.sync('dist/combined-shapefile.*') exec( - 'ogr2ogr -f "ESRI Shapefile" dist/combined-shapefile.shp dist/combined.json OGRGeoJSON', + 'ogr2ogr -f "ESRI Shapefile" dist/combined-shapefile.shp dist/combined.json', function (err, stdout, stderr) { if (err) { return cb(err) } exec('zip dist/timezones.shapefile.zip dist/combined-shapefile.*', cb) @@ -676,7 +676,7 @@ asynclib.auto({ console.log('convert from geojson with oceans to shapefile') rimraf.sync('dist/combined-shapefile-with-oceans.*') exec( - 'ogr2ogr -nlt MULTIPOLYGON dist/combined-shapefile-with-oceans.shp dist/combined-with-oceans.json OGRGeoJSON', + 'ogr2ogr -f "ESRI Shapefile" dist/combined-shapefile-with-oceans.shp dist/combined-with-oceans.json', function (err, stdout, stderr) { if (err) { return cb(err) } exec('zip dist/timezones-with-oceans.shapefile.zip dist/combined-shapefile-with-oceans.*', cb) |