[GRASS-dev] Import PostGIS CURVEPOLYGON fails

Markus Metz markus.metz.giswork at gmail.com
Sun Dec 29 03:36:49 PST 2019


On Sat, Dec 28, 2019 at 11:46 PM Paulo van Breugel <p.vanbreugel at gmail.com>
wrote:
>
> On Sat, Dec 28, 2019 at 10:45 PM Markus Metz
> <markus.metz.giswork at gmail.com> wrote:
> >
> >
> >
> > On Fri, Dec 27, 2019 at 4:49 PM Paulo van Breugel <
p.vanbreugel at gmail.com> wrote:
> > >
> > > Hi devs,
> > >
> > > I am trying to import a vector layer from a PostGIS database in GRASS
> > > GIS (7.8.3dev, GDAL 3.0.2, Ubuntu 18.04) , but a large number of the
> > > polygons are skipped with the following warnings:
> > >
> > > WARNING: Skipping unsupported geometry type 'CURVEPOLYGON'
> > > ...
> > >
> > > I though, but am not sure, that these polygons were imported without
> > > problems before I last updated grass and gdal (running grass gis
> > > 7.8.0, gdal 2.4).
> >
> > These CURVEPOLYGON polygons should be imported without problems in
GRASS GIS 7.6+ compiled with GDAL 2+.
>
> Indeed, last time I worked with this data was before I upgraded to
> gdal 3.02 (using the ppa https://qgis.org/ubuntugis/) and grass
> 7.8.3dev.
>
> > Can you provide an extract created with ogr2ogr in GeoPackage format
that contains such polygons for testing? That would help reproduce the
problem.
>
> See attached a small sample (the original data is the BGT postgis dump
> from https://nlextract.nl/downloads/), as well as a screenshot of the
> data opened in QGIS and the same data imported in grass with v.in.ogr.

Thanks for the test data, I could reproduce the problem, fixed in master
264f753 and relbr78 7da40bf

Markus M
>
> >
> > Markus M
> > >
> > > Is there any way I can import those problematic curvepolygons in
grass gis?
> > >
> > > Mvg.
> > >
> > > Paulo
> > > _______________________________________________
> > > grass-dev mailing list
> > > grass-dev at lists.osgeo.org
> > > https://lists.osgeo.org/mailman/listinfo/grass-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20191229/a2055b40/attachment.html>


More information about the grass-dev mailing list