Convert from MapObjects: Spatial Query Question

View: New views
1 Messages — Rating Filter:   Alert me  

Convert from MapObjects: Spatial Query Question

by dph :: Rate this Message:

| View Threaded | Show Only this Message

I searched the forum to no avail. I am converting an app from MapObjects, and one thing it did was to take a mouseclick and return information from the "active" shapefile. That is, it did a spatial query. In MapObjects you created a BaseSpatialFilter from the click (or any area of interest), obtaines a Cursor by asking the active Layer what Features passed the filter, then you could get the data from each Feature into a collection (Fields).

Any help is appreciated, sample code is always the best. But if you can simply suggest what may be the right OpenMap classes to use (for those familiar with MapObjects, the equivalent of BaseSpatialFilter, Cursor, Feature, Fields) that would also be much appreciated.

Cheers,
David