gdal icon indicating copy to clipboard operation
gdal copied to clipboard

Layer::spatial_ref should return Option<SpatialRef>, not Result<SpatialRef>

Open ttencate opened this issue 2 years ago • 0 comments

It wraps OGR_L_SpatialRef, whose documentation says:

Returns
spatial reference, or NULL if there isn't one.

So NULL is not indicative of an error here.

(Note that layers without an SRS are entirely valid in some drivers, for example CSV.)

ttencate avatar Jan 27 '22 10:01 ttencate