Bounds Query (boundsquery)
Introduction
Demonstrate query vector data set within the specified range of data.
Operation effect
Figure: Bounds Query Operation Effect |
Location
Android Studio
- Product package: Product package catalogue\SampleCode\SampleCode_AndroidStudio\boundsquery
ADT
- Product package: Product package catalogue\SampleCode\SampleCode_ADT\BoundsQuery
Data
Storage location
- Product package: Product package catalogue\SampleData\GeometryInfo
Deployment Location
- mobile device internal storage\SampleData\GeometryInfo
License
Offline license, copy the license file to the "mobile device internal storage\SuperMap\License" folder.
Library
jar |
---|
com.supermap.data.jar, com.supermap.mapping.jar, com.supermap.services.jar |
so |
libimb2d.so, libgnustl_shared.so, libQt5Core.so, libQt5Gui.so, libQt5Svg.so, libQt5Widgets.so(Note: Starting from version 11.1, the last five so libraries need to be added.) |
Key types/members
Control/Class | Method | Event |
Map | findSelection(), getLayers(), refresh() | |
Selecttion | toRecordset(), fromRecordset() | |
DatasetVector | query() | |
MapControl | getMap() | setOnTouchListener() |
GeoStyle | setLineColor(), setLineSymbolID() |
Basic steps
- Click the drop-down box to select the layer you want to query;
- Click the [Query] button to make a relevant query, and the query results will be highlighted in the map.