grass icon indicating copy to clipboard operation
grass copied to clipboard

[Bug] r.in.pdal does not read *.las file CRS metadata

Open gregorywaynepower opened this issue 4 months ago • 7 comments

Describe the bug

Unable to run r.in.pdal on Ubuntu 22.04 LTS because GRASS isn't reading SRS metadata from file. I'm also not sure on which SRS to pick from the output of pdal info --metadata be_20066902.las

From QGIS:

  • horizontal CRS is EPSG:6543 - NAD83(2011) / North Carolina (ftUS)
  • vertical CRS is EPSG:6360 - NAVD88 height (ftUS)

To reproduce

  1. Download and unzip point cloud information.
  2. Start grass
  3. Run r.in.pdal -e -n input=be_20066902.las output=dummy_raster
  4. See error ERROR: The input dataset has undefined projection

Expected behavior

I would expect the command to complete successfully. pdal can read the spatialreference metadata from the file. See attached file: be_laz_metadata_from_pdal_info.txt

Screenshots

System description

g.version -rge output:

version=8.4.1 date=2025 revision=exported build_date=2025-03-26 build_platform=x86_64-pc-linux-gnu build_off_t_size=8 libgis_revision=8.4.1 libgis_date=2025-03-28T14:29:40+00:00 proj=9.3.1 gdal=3.8.4 geos=3.12.1 sqlite=3.37.2

GUI About system output:

System Info
GRASS version: 8.4.1
Code revision: exported
Build date: 2025-03-26
Build platform: x86_64-pc-linux-gnu
GDAL: 3.8.4
PROJ: 9.3.1
GEOS: 3.12.1
SQLite: 3.37.2
Python: 3.10.12
wxPython: 4.2.1
Platform: Linux-6.12.10-76061203-generic-x86_64-with-glibc2.35

Additional context

gregorywaynepower avatar May 29 '25 14:05 gregorywaynepower