gdal
gdal copied to clipboard
Layer::spatial_ref should return Option<SpatialRef>, not Result<SpatialRef>
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.)