-
Notifications
You must be signed in to change notification settings - Fork 7
Mixed-Features in geoJSON are not supported (import to database fails) #32
Comments
Hey @schlomm yes this is a known issue and I might have a few changes I could make to get around it. The problem is that Esri's GeoServices REST doesnt have the concept of mixed geom types like GeoJSON. I'll follow up with what I find. |
Hey @chelm. Thanks for your fast response :) |
So one route we talked about going is to split mixed geom geojson files into geom-based subsets. Again since a FeatureService only supports one geometry, you'll never get a single feature service to support points, lines, and polygons at the same time. My thinking is that we somehow need to ease the restriction of geometry types in the DB and add a method in the URL to allows for accessing the various geom types. The other work around would be just split the geojson files into seperate files for the time being. Either way, as featureservices they will always only have one type. |
Hey Chris, Maybe you had an idea or even a workaround? |
Hey,
Firstly thanks a lot for this cool application. Unfortunately there is a bigger error using mixed-types geoJsons.
For example: Using this geoJSON-gist , showing some sample countries of the world, won't be imported completely to the database. Koop fails to import all Multipolygons (multipolygons for this dataset are Italy, Japan, USA) with the following error:
The first feature-Type for this geoJSON is Multi-Polygon.
Using this geoJSON-gist, koop fails to import all "normal" Poylgons.The first feature-Type for this geoJSON is Polygon.
So...Depending on the feature-Type one or the other can not imported to the database.
The text was updated successfully, but these errors were encountered: