From 6510cbd19ad841c75111e46cbb3dde7880c2284d Mon Sep 17 00:00:00 2001 From: Junior flores Date: Wed, 13 May 2020 10:57:48 -0500 Subject: [PATCH 1/2] Add geojson-flatten --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4acfdd4..ac2e6d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,8 @@ RUN npm install -g geojsontoosm RUN npm install -g geojson2poly RUN npm install -g geojson-pick RUN npm install -g @mapbox/geojson-merge +# https://github.com/tmcw/geojson-flatten +RUN npm install -g geojson-flatten # Install osmconvert and osmfilter RUN wget -O - http://m.m.i24.cc/osmconvert.c | cc -x c - -lz -O3 -o osmconvert From 5a7c74ee9a5963dafe789b8e41196d13ca92e46a Mon Sep 17 00:00:00 2001 From: Junior flores Date: Wed, 13 May 2020 10:58:04 -0500 Subject: [PATCH 2/2] Add geojson-flatten to README --- README.MD | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.MD b/README.MD index 0198f1c..78a9449 100644 --- a/README.MD +++ b/README.MD @@ -370,3 +370,13 @@ geojson-pick PROPERTYNAME1 < input.geojson > output.geojson ``` geokit dosm -d ayac.geojson --api=overpass --zoom=16 ``` + + +### [geojson-flatten](https://github.com/tmcw/geojson-flatten) + +- Flatten multi geometries into normal geometries + + +``` +geojson-flatten input.geojson > flattened.geojson +``` \ No newline at end of file