Re: [Geotools-devel] GeoPKG - issue with determining Geometry type (polygon vs multipolygon)

2020-05-13 Thread David Blasby
I fixed the Natural Earth GeoPKG just by changing the "POLYGON" to "MULTIPOLYGON" in the GEOPKG_GEOMETRY_COLUMNS table. QGIS is fine with this, and so is GeoServer (it will convert all the Polygons to Multipolygon - which is lossless). Not a great solution, but works fine... Dave On Wed, May

Re: [Geotools-devel] GeoPKG - issue with determining Geometry type (polygon vs multipolygon)

2020-05-13 Thread Andrea Aime
On Wed, May 13, 2020 at 6:57 PM Jody Garnett wrote: > Andrea I am personally in favour of throwing an exception if the data is > inconsistent, but I respect that some data is not going to be fixed... > > Would a connection parameter work? Or were you thinking a system property > flag ... >

Re: [Geotools-devel] Exception in SAP-HANA-datastore when using a HANA-view

2020-05-13 Thread Biskup, Paul
Hi Stefan, thank you for merging my PR into the master-branch. You are right: We are working with a HANA 1-instance, but are planning to migrate to HANA 2 in the next few months. So it would be great, if you could think about a solution for HANA 2. Best regards, Paul Von: Uhrig, Stefan

Re: [Geotools-devel] GeoPKG - issue with determining Geometry type (polygon vs multipolygon)

2020-05-13 Thread Andrea Aime
Goin back to the original mail On Wed, May 13, 2020 at 2:12 AM David Blasby wrote: > > > Looking at the gpkg_geometry_column tables; > [image: image.png] > > We can see it's marked as "Polygon" (not multipolygon). > > During reading, we get to these lines; > > >

Re: [Geotools-devel] GeoPKG - issue with determining Geometry type (polygon vs multipolygon)

2020-05-13 Thread Andrea Aime
On Wed, May 13, 2020 at 9:08 AM David Blasby wrote: > "Here, value [the variable] is a Multipolygon, but the binding is a > Polygon. The multipolygon is converted to a polygon, leading to the issues > above." > Yes, features in GeoTools are typed, if the feature type says POLYGON, converters