Skip to content

Commit 8f820c7

Browse files
authored
allow setspatialindex! on IGeometry as well (#242)
1 parent 8d6e1be commit 8f820c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ogr/featurelayer.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function unsafe_getspatialref(layer::AbstractFeatureLayer)::SpatialRef
164164
end
165165

166166
"""
167-
setspatialfilter!(layer::AbstractFeatureLayer, geom::Geometry)
167+
setspatialfilter!(layer::AbstractFeatureLayer, geom::AbstractGeometry)
168168
169169
Set a new spatial filter for the layer, using the geom.
170170
@@ -194,7 +194,7 @@ successive calls are done with different iGeomField values.
194194
"""
195195
function setspatialfilter!(
196196
layer::L,
197-
geom::Geometry,
197+
geom::AbstractGeometry,
198198
)::L where {L<:AbstractFeatureLayer}
199199
# This method makes an internal copy of `geom`. The input `geom` remains
200200
# the responsibility of the caller, and may be safely destroyed.

0 commit comments

Comments
 (0)