API / geotoolkit / map / features / AbstractFeature / AbstractFeature
features.AbstractFeature.AbstractFeature
Abstract map feature class. Feature must have an ID (unique within a layer it's contained in) and geometry;
may have set of attributes (non-spatial properties)
Constructors
Methods
▸ Abstract applyMapCS(layer): AbstractFeature
Applies Map coordinate system to itself
| Name | Type | Description |
|---|---|---|
layer | AbstractLayer | map layer to use for coordinate system conversion |
this
▸ Protected copyConstructor(src): AbstractFeature
Copy constructor function.
Function used as part of the cloning mechanism.
Implementations should copy the given instance state to this instance.
Makes a shallow copy of the feature.
| Name | Type | Description |
|---|---|---|
src | AbstractFeature | Source to copy from |
this
▸ getAttributes(): Attributes
Gets attributes (non-spatial properties) Attributes are some additional (non-spatial) properties. These attributes can be written as a text next to the feature itself for more information for the user.
attributes
▸ getClassName(): string
string
▸ getGeometry(isMapCS?): Geometry | Geometry[]
Gets geometry Geometry is the place, where the feature should be rendered. It is point coordinates for a point feature or a points array for polygons and polylines.
| Name | Type | Description |
|---|---|---|
Optional isMapCS | boolean | Map coordinate system flag |
geometry
▸ getId(): string
Gets ID Id is a unique identifier of the feature, usually one of the attributes. It is used to simplify settings for the user, as a default 'annotation' (text info) for the feature.
string
ID
▸ shallowClone(): AbstractFeature
All subclasses should override copyConstructor or provide custom implementation for this method Returns shallow copy of the feature
clone
▸ Static getClassName(): string
string