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
getGeometryreturn anEllipsegeometry based on the location and orientation stored in aFeature - having
applyGeometrymap the newEllipsegeometry back to a location and an orientation, and modify theFeatureaccordingly.
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 aGeometryusing which aGeometrycan be edited or created).This
Geometryis not necessarily the same geometry as the one used for painting.See
IFeatureGeometryProviderfor more information. -
applyGeometry
Updates the originalFeatureusing the modifiedGeometry, and returns it.This
Geometryis not necessarily the same geometry as the one used for painting. SeeIFeatureGeometryProviderfor an example.
-