You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contrary to a point vector layer, for a polygon vector layer an extra layer "0" is reported as the first layer, containing linestrings and no attributes.
vect() supports a missing layer argument, so supporting this too for GDAL-GRASS driver.
Also, for efficiency reasons, this commit only requests layer names in case
of polygons, to work around OSGeo/gdal-grass#46.
We also discovered that the census dataset suffers the same problem (providing a layer "0" and a layer "census"); however this time the "0" layer has geometry 'unknown'.
$ ogrinfo -so -al /home/floris/grassdata/nc_basic_spm_grass7/PERMANENT/vector/census/head | head -7
Warning 1: GRASS warning: GISBASE environment variable was not set, using:
/usr/lib/grass83
INFO: Open of `/home/floris/grassdata/nc_basic_spm_grass7/PERMANENT/vector/census/head' using driver `OGR_GRASS' successful.Layer name: 0Geometry: Unknown (any)Feature Count: 6393Extent: (628769.374393, 212125.562878) - (645837.437393, 230963.640878)
Contrary to a point vector layer, for a polygon vector layer an extra layer
"0"
is reported as the first layer, containing linestrings and no attributes.The examples below use vector data sources in the GRASS GIS 'North Carolina basic dataset', downloaded from https://grass.osgeo.org/download/data/.
ogrinfo polygons example (has the problem)
ogrinfo points example (is OK)
System specs:
$ ogrinfo --version GDAL 3.8.4, released 2024/02/08 $ $ apt policy libgdal-grass libgdal-grass: Installed: 1:1.0.2-7+jammy3 Candidate: 1:1.0.2-7+jammy3 Version table: *** 1:1.0.2-7+jammy3 500 500 http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu jammy/main amd64 Packages 100 /var/lib/dpkg/status 3.4.1-3 500 500 http://ftp.belnet.be/ubuntu jammy/universe amd64 Packages $ $ inxi -Sxxx System: Host: xxx Kernel: 5.15.0-112-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
The text was updated successfully, but these errors were encountered: