View Object Information(geometryinfo)

Introduction

Demonstrate according to the query conditions, query the corresponding POI, and view the POI object attribute information.

Operation effect

Figure: Object Information Query Operation Effect

Location

Android Studio

  • Product package: Product package catalogue\SampleCode\SampleCode_AndroidStudio\AndroidStudioSampleCode\GeometryInfo

ADT

  • Product package: Product package catalogue\SampleCode\SampleCode_ADT\GeometryInfo

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
CallOut setContentView(), setStyle(), setLocation(), setBackground()
MapView removeAllCallout(), addCallout(), showCallout()
QueryParameter setSpatialQueryObject(), setSpatialQueryMode()
SpatialQueryMode CONTAIN, INTERSECT, DISJOINT
Selection toRecordset(), fromRecordset()
DatasetVector query()

Basic steps

  1. Click the drop-down button, select the query conditions, and click [query], and the results will be displayed in full range on the map;
  2. Click the arrow button, select the face object, and long-click the change object to display the details.