Interface IFeatureGeometryProvider
- All Known Implementing Classes:
DefaultFeatureGeometryProvider
Geometry
associated with a Feature
, and apply Geometry
changes on that Feature
.
this can for example be used to specify the Geometry
that is used to edit or create a Feature
.
See the related guide for an overview of the editing API.
See DefaultFeatureGeometryProvider
for a default implementation that works for Features that use GeometryDataAnnotation
.
The provided geometry is not necessarily the same geometry as the one used for painting. An example would be to modify the location and orientation of a vessel by editing it as an Ellipse
, which also has a location and an orientation. This could be implemented by:
- having
getGeometry
return anEllipse
geometry based on the location and orientation stored in aFeature
- having
applyGeometry
map the newEllipse
geometry back to a location and an orientation, and modify theFeature
accordingly.
Similarly, a vessel feature could be created by creating an Ellipse
geometry.
-
Method Summary
Modifier and TypeMethodDescriptionapplyGeometry
(Feature originalFeature, Geometry newGeometry) getGeometry
(Feature feature)
-
Method Details
-
getGeometry
Return the geometry for aFeature
(for example aGeometry
using which aGeometry
can be edited or created).This
Geometry
is not necessarily the same geometry as the one used for painting.See
IFeatureGeometryProvider
for more information. -
applyGeometry
Updates the originalFeature
using the modifiedGeometry
, and returns it.This
Geometry
is not necessarily the same geometry as the one used for painting. SeeIFeatureGeometryProvider
for an example.
-