Skip to content

Commit 77f0b8b

Browse files
authored
Improve error message for not implemented geometric types (#212)
1 parent 9ded048 commit 77f0b8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/geos_types.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,9 @@ function geomFromGEOS(
638638
return MultiLineString(ptr, context)
639639
elseif id == GEOS_MULTIPOLYGON
640640
return MultiPolygon(ptr, context)
641-
else
642-
@assert id == GEOS_GEOMETRYCOLLECTION
641+
elseif id == GEOS_GEOMETRYCOLLECTION
643642
return GeometryCollection(ptr, context)
643+
else
644+
throw(ErrorException("Geometric type with code $id not implemented."))
644645
end
645646
end

0 commit comments

Comments
 (0)