Skip to content

Commit

Permalink
Improve error message for not implemented geometric types (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaakkor2 authored Jan 12, 2025
1 parent 9ded048 commit 77f0b8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/geos_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,9 @@ function geomFromGEOS(
return MultiLineString(ptr, context)
elseif id == GEOS_MULTIPOLYGON
return MultiPolygon(ptr, context)
else
@assert id == GEOS_GEOMETRYCOLLECTION
elseif id == GEOS_GEOMETRYCOLLECTION
return GeometryCollection(ptr, context)
else
throw(ErrorException("Geometric type with code $id not implemented."))
end
end

0 comments on commit 77f0b8b

Please sign in to comment.