[GRASS-dev] Import PostGIS CURVEPOLYGON fails

Paulo van Breugel p.vanbreugel at gmail.com
Sat Dec 28 14:45:38 PST 2019


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.

>
> 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 --------------
A non-text attachment was scrubbed...
Name: screenshot layer in qgis and grass.png
Type: image/png
Size: 265282 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20191228/9ab2fa92/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testdata2.gpkg
Type: application/octet-stream
Size: 667648 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20191228/9ab2fa92/attachment-0001.obj>


More information about the grass-dev mailing list