koordinates / kart

Distributed version-control for geospatial and tabular data
https://kartproject.org
Other
509 stars 39 forks source link

Point cloud dataset doesn't allow no-CRS data #886

Open olsen232 opened 12 months ago

olsen232 commented 12 months ago

To Reproduce kart import some-laz-file-that-doesnt-have-a-crs.laz (You can agree to constrain-to-COPC or not - makes no difference.)

Expected behaviour Should import the tiles, even with no CRS.

Output A stacktrace, ending with: RuntimeError: OGR Error: Corrupt data

Version Info kart 0.14 affects all platforms

Also TODO: check if we support GeoTIFF files with no CRS

craigds commented 12 months ago

Should import the tiles, even with no CRS.

Not sure I agree, the LAS spec is fairly clear that a CRS header must be present. And it doesn't make much sense to just generate a fake/empty one:

https://www.asprs.org/wp-content/uploads/2019/03/LAS_1_4_r14.pdf

The Coordinate Reference System (CRS) information for the point data is required for all data.

IMO: