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
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 ...
>
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
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;
>
>
>
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