[GRASS-dev] Import PostGIS CURVEPOLYGON fails

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

Is there any way I can import those problematic curvepolygons in grass gis?

Mvg.

Paulo

On Fri, Dec 27, 2019 at 4:49 PM Paulo van Breugel <p.vanbreugel@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+. Can you provide an extract created with ogr2ogr in GeoPackage format that contains such polygons for testing? That would help reproduce the problem.

Markus M

Is there any way I can import those problematic curvepolygons in grass gis?

Mvg.

Paulo


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

On Sat, Dec 28, 2019 at 10:45 PM Markus Metz
<markus.metz.giswork@gmail.com> wrote:

On Fri, Dec 27, 2019 at 4:49 PM Paulo van Breugel <p.vanbreugel@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@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev

(attachments)

screenshot layer in qgis and grass.png
testdata2.gpkg (652 KB)

On Sat, Dec 28, 2019 at 11:46 PM Paulo van Breugel <p.vanbreugel@gmail.com> wrote:

On Sat, Dec 28, 2019 at 10:45 PM Markus Metz
<markus.metz.giswork@gmail.com> wrote:

On Fri, Dec 27, 2019 at 4:49 PM Paulo van Breugel <p.vanbreugel@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@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

On Sun, Dec 29, 2019 at 12:37 PM Markus Metz
<markus.metz.giswork@gmail.com> wrote:

On Sat, Dec 28, 2019 at 11:46 PM Paulo van Breugel <p.vanbreugel@gmail.com> wrote:
>
> On Sat, Dec 28, 2019 at 10:45 PM Markus Metz
> <markus.metz.giswork@gmail.com> wrote:
> >
> >
> >
> > On Fri, Dec 27, 2019 at 4:49 PM Paulo van Breugel <p.vanbreugel@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

Great, I can confirm it correctly imports the test data. Thanks!

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@lists.osgeo.org
> > > https://lists.osgeo.org/mailman/listinfo/grass-dev