[Gdal-dev] OGR - Features Selection from Point or MultiPoint

Mateusz Łoskot mateusz at loskot.net
Tue Nov 1 21:43:30 EST 2005


Hi,

AFAIK the only way to do spacial selection of features
is to define filter and pass it to the OGRLayer::SetSpatialFilter.
This is clear.
I wonder if is this possible to select features passing OGRPoint or 
OGRMultiPoint to the OGRLayer::SetSpatialFilter?

My aim is to be able to select i.e 1 polygin (passing OGRPoint) or >1 
polygons in relation: disjoint and not touched - completely separated
(here comes OGRMultiPoligon as filter).

My second question is: is there any way to modify spatial filter after 
it is defined?
What I'd like to achive is to select one feature (first SetSpatialFilter 
call) and after that select another featuer (second SetSpatialFilter 
call) then I have two features selected. Is this possible?

Cheers

-- 
Mateusz Łoskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list