@@ -14,11 +14,12 @@ GeoInterface.z(::PointTrait, p::Point) = p.geometry[3]
1414
1515GeoInterface. isfeature (feat:: Type{<:Point} ) = true
1616GeoInterface. properties (feat:: T ) where {T<: Point } = NamedTuple (zip (fieldnames (T), getfield (feat, n) for n in fieldnames (T)))
17- GeoInterface. geometry (feat:: Point ) = feat. geom
17+ GeoInterface. geometry (feat:: Point ) = feat. geometry
1818
1919GeoInterface. isgeometry (:: Type{<:Dataset} ) = true
2020GeoInterface. geomtrait (:: Dataset ) = MultiPointTrait ()
2121GeoInterface. trait (:: Dataset ) = FeatureCollectionTrait ()
22+ GeoInterface. ncoord (:: MultiPointTrait , :: LazIO.Dataset ) = 2
2223GeoInterface. ngeom (:: MultiPointTrait , ds:: Dataset ) = length (ds)
2324GeoInterface. getgeom (:: MultiPointTrait , ds:: Dataset ) = ds
2425GeoInterface. getgeom (:: MultiPointTrait , ds:: Dataset , i) = ds[i]
@@ -27,13 +28,16 @@ GeoInterface.getgeom(::MultiPointTrait, ds::Dataset, i) = ds[i]
2728GeoInterface. extent (:: MultiPointTrait , ds:: Dataset ) = Extent (X= (ds. header. min_x, ds. header. max_x), Y= (ds. header. min_y, ds. header. max_y), Z= (ds. header. min_z, ds. header. max_z))
2829
2930GeoInterface. isfeaturecollection (:: Type{Dataset} ) = true
30- GeoInterface. getfeature (:: MultiPointTrait , ds:: Dataset , i ) = ds[i]
31- GeoInterface. getfeature (:: MultiPointTrait , ds:: Dataset ) = ds
32- GeoInterface. nfeature (:: MultiPointTrait , ds:: Dataset ) = length (ds)
31+ GeoInterface. nfeature (:: FeatureCollectionTrait , ds:: Dataset ) = length (ds)
32+ GeoInterface. getfeature (:: FeatureCollectionTrait , ds:: Dataset ) = ds
33+ GeoInterface. getfeature (:: FeatureCollectionTrait , ds:: Dataset , i ) = ds[i]
3334GeoInterface. geometrycolumns (:: Dataset ) = (:geometry ,)
3435
3536GeoInterface. isgeometry (:: Type{<:AbstractVector{<:Point}} ) = true
3637GeoInterface. geomtrait (:: AbstractVector{<:Point} ) = MultiPointTrait ()
3738GeoInterface. ngeom (:: MultiPointTrait , ds:: AbstractVector{<:Point} ) = length (ds)
3839GeoInterface. getgeom (:: MultiPointTrait , ds:: AbstractVector{<:Point} ) = ds
3940GeoInterface. getgeom (:: MultiPointTrait , ds:: AbstractVector{<:Point} , i) = ds[i]
41+
42+ GeoInterfaceRecipes. @enable_geo_plots LazIO. Dataset
43+ GeoInterfaceRecipes. @enable_geo_plots LazIO. Point
0 commit comments