Skip to content

Commit

Permalink
Don't collect the iterator.
Browse files Browse the repository at this point in the history
  • Loading branch information
evetion committed Jan 10, 2023
1 parent dcb3244 commit c886252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geointerface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ GeoInterface.isgeometry(::Type{<:Dataset}) = true
GeoInterface.geomtrait(::Dataset) = MultiPointTrait()
# GeoInterface.trait(::Dataset) = FeatureCollectionTrait()
GeoInterface.ngeom(::MultiPointTrait, ds::Dataset) = length(ds)
GeoInterface.getgeom(::MultiPointTrait, ds::Dataset) = collect(ds)
GeoInterface.getgeom(::MultiPointTrait, ds::Dataset) = ds
GeoInterface.getgeom(::MultiPointTrait, ds::Dataset, i) = ds[i]

# GeoInterface.crs(geomtrait(geom), geom::customgeom)::GeoFormatTypes.GeoFormat}
GeoInterface.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))

GeoInterface.isfeaturecollection(::Type{Dataset}) = true
GeoInterface.getfeature(::MultiPointTrait, ds::Dataset, i) = ds[i]
GeoInterface.getfeature(::MultiPointTrait, ds::Dataset) = collect(ds)
GeoInterface.getfeature(::MultiPointTrait, ds::Dataset) = ds
GeoInterface.nfeature(::MultiPointTrait, ds::Dataset) = length(ds)
GeoInterface.geometrycolumns(::Dataset) = ()

0 comments on commit c886252

Please sign in to comment.