Skip to content

Commit

Permalink
update error and header
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-s-gardner committed Oct 19, 2023
1 parent a9501aa commit 817e8d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spatialref.jl
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ end
"""
toEPSG(spref::AbstractSpatialRef)
If possible, export EPSG code for this coordinate system.
Export EPSG code for this coordinate system if available.
"""
function toEPSG(spref::AbstractSpatialRef)::String
result = GDAL.osrgetauthorityname(spref.ptr, "PROJCS")
Expand All @@ -638,7 +638,7 @@ function toEPSG(spref::AbstractSpatialRef)::String
epsg = GDAL.osrgetauthoritycode(spref.ptr, projcs)
return "EPSG:$(epsg)"
else
@ogrerr result "is not an EPSG authority"
error("$result is not an EPSG authority")
end
end

Expand Down

0 comments on commit 817e8d8

Please sign in to comment.