This class represents a simple map feature, that is, an object with a geometry that can be rendered graphically and, optionally, a list of attributes.
More...
#include <ilviews/maps/mapfeature.h>
This class represents a simple map feature, that is, an object with a geometry that can be rendered graphically and, optionally, a list of attributes.
Library: ilvmaps
- See also
IlvFeatureRenderer
, IlvMapFeatureIterator
.
◆ IlvMapFeature() [1/2]
IlvMapFeature::IlvMapFeature |
( |
| ) |
|
Initializes a new IlvMapFeature
instance.
This constructor initializes a new instance of IlvMapFeature
, with no geometry, no attributes and no projection.
◆ IlvMapFeature() [2/2]
Initializes a map feature by copying an existing one.
- Parameters
-
source | The map feature that is copied to initiazes this object. |
◆ copy()
Returns a copy of the object.
- Returns
- A copy of the object.
◆ getAttributeInfo()
Returns the attribute info of this map feature .
- Returns
- The attribute info of this map feature, or
0
if the map feature has no attribute..
◆ getAttributes()
Returns the attributes of this feature.
- Returns
- The attributes of this feature.
◆ getGeometry()
Returns the geometry of the map feature.
- Returns
- The geometry of the map feature.
◆ getId()
Returns the identifier of the map feature.
- Returns
- The identifier of the map feature or
0
if the identifier is not defined.
◆ getProjection()
Returns the projection of the geometry of this map feature.
- Returns
- The projection of the geometry of this map feature, or
0
if the projection in which the coordinates of the feature geometry are expressed is unknown.
◆ setAttributeInfo()
Sets the attribute info of the map feature.
- Parameters
-
◆ setAttributes()
Sets the attributes of this map feature.
- Parameters
-
attributes | The attributes. |
- Returns
- The previous attributes.
◆ setGeometry()
Sets the geometry of the map feature.
- Parameters
-
geometry | The geometry to be set. |
- Returns
- The previous geometry.
◆ setId()
Sets the identifier of the map feature.
- Returns
- The previous Id.
◆ setProjection()
Sets the projection of the geometry of this map feature.
- Parameters
-
projection | The projection. |