aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorevansiroky <evan.siroky@yahoo.com>2018-11-16 09:24:26 -0800
committerevansiroky <evan.siroky@yahoo.com>2018-11-16 09:24:26 -0800
commite3360f71daa106c60ae825f8680bba0257a98096 (patch)
treec1f10c4269883d2b066bfac3052bbd893ee08169 /index.js
parent92c15c4c5c1900e00c370f6a1f66cb65d4f3a6e6 (diff)
downloadtimezone-boundary-builder-e3360f71daa106c60ae825f8680bba0257a98096.tar.gz
Fix geojson to shapefile conversion
Diffstat (limited to 'index.js')
-rw-r--r--index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.js b/index.js
index e2c54c5..7595fdd 100644
--- a/index.js
+++ b/index.js
@@ -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)