Skip to content

Commit ce7f3e2

Browse files
committed
add missing definitions
1 parent 13d93f0 commit ce7f3e2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/geointerface.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ GeoInterface.isgeometry(::Type{<:AbstractGeometry}) = true
44
GeoInterface.isgeometry(::Type{<:AbstractFace}) = true
55
GeoInterface.isgeometry(::Type{<:AbstractPoint}) = true
66
GeoInterface.isgeometry(::Type{<:AbstractMesh}) = true
7+
GeoInterface.isgeometry(::Type{<:AbstractLineString}) = true
8+
GeoInterface.isgeometry(::Type{<:AbstractPolygon}) = true
9+
GeoInterface.isgeometry(::Type{<:MultiPoint}) = true
10+
GeoInterface.isgeometry(::Type{<:MultiLineString}) = true
11+
GeoInterface.isgeometry(::Type{<:MultiPolygon}) = true
12+
GeoInterface.isgeometry(::Type{<:Mesh}) = true
713

814
GeoInterface.geomtrait(::Point) = PointTrait()
915
GeoInterface.geomtrait(::Line) = LineTrait()
@@ -18,6 +24,7 @@ GeoInterface.geomtrait(::AbstractMesh) = PolyhedralSurfaceTrait()
1824
# GeoInterface calls this method in `GeoInterface.convert(GeometryBasics, ...)`
1925
geointerface_geomtype(::GeoInterface.PointTrait) = Point
2026
geointerface_geomtype(::GeoInterface.MultiPointTrait) = MultiPoint
27+
geointerface_geomtype(::GeoInterface.LineTrait) = Line
2128
geointerface_geomtype(::GeoInterface.LineStringTrait) = LineString
2229
geointerface_geomtype(::GeoInterface.MultiLineStringTrait) = MultiLineString
2330
geointerface_geomtype(::GeoInterface.PolygonTrait) = Polygon

0 commit comments

Comments
 (0)