An abstract representation of geographic entities on a map, scene, map view or scene view. More...
Header: | #include <GeoElement.h> |
Since: | Esri::ArcGISRuntime 100.0 |
Inherited By: | Esri::ArcGISRuntime::AggregateGeoElement, Esri::ArcGISRuntime::DynamicEntity, Esri::ArcGISRuntime::DynamicEntityObservation, Esri::ArcGISRuntime::EncFeature, Esri::ArcGISRuntime::Feature, Esri::ArcGISRuntime::Graphic, Esri::ArcGISRuntime::KmlPlacemark, Esri::ArcGISRuntime::RasterCell, and Esri::ArcGISRuntime::WmsFeature |
Public Functions
virtual | ~GeoElement() |
virtual Esri::ArcGISRuntime::AttributeListModel * | attributes() const = 0 |
virtual Esri::ArcGISRuntime::Geometry | geometry() const = 0 |
virtual void | setGeometry(const Esri::ArcGISRuntime::Geometry &geometry) = 0 |
Protected Functions
Detailed Description
A geo-element represents abstract geographic entities on a map. Classes that inherit from GeoElement provide concrete implementations such as graphics in a graphics overlay, features in a layer, and so on.
Each geographic entity can possess geometry, to describe the location and shape of the entity, and a set of attributes to provide information about the real-world entity it represents. For example, a feature in a feature layer, a graphic in a graphics overlay, and a raster cell in a raster layer are represented by the Feature, Graphic, and RasterCell classes. Each class inherits from GeoElement.
Operations that identify all of the layers in a map or scene, such as GeoView::identifyLayersAsync, can return a collection of IdentifyLayerResult objects. You can obtain the various types of GeoElement objects using IdentifyLayerResult::geoElements.
Relevant samples:
- Configure clusters: Add client side feature reduction on a point feature layer that is not pre-configured with clustering.
- Display clusters: Display a web map with a point feature layer that has feature reduction enabled to aggregate points into clusters.
- Identify raster cell: Get the cell value of a local raster at the tapped location and display the result in a callout.
- Line of sight (geoelement): Show a line of sight between two moving objects.
- Orbit the camera around an object: Fix the camera to point at and rotate around a target object.
- Scene layer selection: Identify features in a scene to select.
- Set up location-driven Geotriggers: Create a notification every time a given location data source has entered and/or exited a set of features or graphics.
- Viewshed (GeoElement): Analyze the viewshed for an object (GeoElement) in a scene.
Member Function Documentation
[protected]
GeoElement::GeoElement ()
Constructor.
[virtual]
GeoElement::~GeoElement ()
Destructor.
[pure virtual]
Esri::ArcGISRuntime::AttributeListModel *GeoElement::attributes() const
Gets the attributes of the GeoElement as a list model of key-value pairs.
[pure virtual]
Esri::ArcGISRuntime::Geometry GeoElement::geometry() const
Gets the geometry of the GeoElement.
See also setGeometry().
[pure virtual]
void GeoElement::setGeometry (const Esri::ArcGISRuntime::Geometry &geometry)
Sets the geometry of the GeoElement to geometry.
See also geometry().