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
I observe that the USAGE and ID elements are missing in the WKT2:2019 strings retrieved using the GDAL-GRASS drivers. Also the names of PROJCRS, BASEGEOGCRS and CONVERSION are missing or inaccurate, and the CS element is encoded differently than with another driver.
Getting access to this extra information will be useful in R, where the GRASS GIS interface is provided by package {rgrass} (@rsbivand), which in turn uses the {terra} package for reading & writing with GDAL. In the {rgrass} package we intend to (re-)implement the GDAL-GRASS driver to access layers in order to avoid the extra r.out.gdal or v.out.ogr steps that cause extra writing & reading overhead. (rsbivand/rgrass#75)
I observe that the
USAGE
andID
elements are missing in the WKT2:2019 strings retrieved using the GDAL-GRASS drivers. Also the names ofPROJCRS
,BASEGEOGCRS
andCONVERSION
are missing or inaccurate, and theCS
element is encoded differently than with another driver.The examples below use data sources in the GRASS GIS 'North Carolina basic dataset', downloaded from https://grass.osgeo.org/download/data/.
Raster example (using GDAL-GRASS driver)
Raster WKT is OK for a file written with `r.out.gdal` from GRASS (using the RRASTER driver)
Vector example (using GDAL-GRASS driver)
Vector WKT is OK for a file written with `v.out.ogr` from GRASS (using the GPKG driver)
Motivation:
Getting access to this extra information will be useful in R, where the GRASS GIS interface is provided by package {rgrass} (@rsbivand), which in turn uses the {terra} package for reading & writing with GDAL. In the {rgrass} package we intend to (re-)implement the GDAL-GRASS driver to access layers in order to avoid the extra
r.out.gdal
orv.out.ogr
steps that cause extra writing & reading overhead. (rsbivand/rgrass#75)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: