File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ GeoInterface.isgeometry(::Type{<:AbstractGeometry}) = true
4
4
GeoInterface. isgeometry (:: Type{<:AbstractFace} ) = true
5
5
GeoInterface. isgeometry (:: Type{<:AbstractPoint} ) = true
6
6
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
7
13
8
14
GeoInterface. geomtrait (:: Point ) = PointTrait ()
9
15
GeoInterface. geomtrait (:: Line ) = LineTrait ()
@@ -18,6 +24,7 @@ GeoInterface.geomtrait(::AbstractMesh) = PolyhedralSurfaceTrait()
18
24
# GeoInterface calls this method in `GeoInterface.convert(GeometryBasics, ...)`
19
25
geointerface_geomtype (:: GeoInterface.PointTrait ) = Point
20
26
geointerface_geomtype (:: GeoInterface.MultiPointTrait ) = MultiPoint
27
+ geointerface_geomtype (:: GeoInterface.LineTrait ) = Line
21
28
geointerface_geomtype (:: GeoInterface.LineStringTrait ) = LineString
22
29
geointerface_geomtype (:: GeoInterface.MultiLineStringTrait ) = MultiLineString
23
30
geointerface_geomtype (:: GeoInterface.PolygonTrait ) = Polygon
You can’t perform that action at this time.
0 commit comments