Thanks for reporting to natural earth, from the geotools side this appears
to be inconsistent data. I tend to prefer failing fast on any processing
which could result in loss of data. That way we do not become part of the
problem, only help identify the issue.

Aside: A soft approach would be to the first Polygon, and provide a warning
in the logs.
--
Jody Garnett


On Tue, 12 May 2020 at 17:12, David Blasby <david.bla...@geocat.net> wrote:

> Here, value is a Multipolygon, but the binding is a Polygon.  The
> multipolygon is converted to a polygon, leading to the issues above.
>
> I'm not sure what should happen here?
>
> We could just throw an exception? Dont do the conversion? We could also
> (similar to shapefiles) have polygon (and line/point) geopkgs always
> represented as the corresponding multi*.  However, that's a bit
> aggressive...
>
> Doesn't seem to be a good solution here...
>
> Ideas?
>
>
> (note - this is 250mb)
> http://naciscdn.org/naturalearth/packages/natural_earth_vector.gpkg.zip
>
> Thanks,
> David
>
>
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to