Re: [gdal-dev] geojson to shp and vice versa

2019-12-01 Thread Kristijan Cindrić
'MULTIPOLYGON' OR OGR_GEOMETRY='POLYGON'" > If you have geometry collections with multiple geometry types it gets > harder. Personally, I'd pump it thru PostGIS in that case. > > Rich > > On Fri, Nov 29, 2019 at 1:42 AM Kristijan Cindrić > wrote: >

Re: [gdal-dev] geojson to shp and vice versa

2019-11-29 Thread Kristijan Cindrić
same shapefile. Read > https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf "All the > non-Null shapes in a shapefile are required to be of the same shape type." > > > -Jukka Rahkonen- > > > Kristijan Cindrić wrote > > Dear all, > > > > I

[gdal-dev] geojson to shp and vice versa

2019-11-28 Thread Kristijan Cindrić
Dear all, I have a headache inducing problem. Whenever I try to convert a GeoJSON feature collection which contains multiple different geometry shapes (i.e. polygon, linestring and point) I get this type of error: "ERROR 1: Attempt to write non-polygon (LINESTRING) geometry to POLYGON type shape