public class GeometryComponentImpl extends java.lang.Object implements GeometryComponent, ComponentContextAware
The default implementation of the geometry service component
Constructor and Description |
---|
GeometryComponentImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Geometry> |
coordtransfer(Geometry[] geometry, PrjCoordSys sourcePrjCoorSys, PrjCoordSys targetPrjCoordSys)
Converts the coordinate system of the specified geometry.
|
MeasureResult |
measureArea(Point2D[] points, MeasureParameter measureParam)
Measures areas according to 2D geographic coordinates and measuring parameters.
|
MeasureResult |
measureDistance(Point2D[] points, MeasureParameter measureParam)
Measures distances according to 2D geographic coordinates and measuring parameters.
|
void |
setComponentContext(ComponentContext context)
Sets the service component context.
|
public void setComponentContext(ComponentContext context)
ComponentContextAware
Sets the service component context.
setComponentContext
in interface ComponentContextAware
context
- The service component context.public MeasureResult measureDistance(Point2D[] points, MeasureParameter measureParam)
GeometryComponent
Measures distances according to 2D geographic coordinates and measuring parameters.
measureDistance
in interface GeometryComponent
points
- The array of 2D geographic coordinates.measureParam
- The measuring parameter.public MeasureResult measureArea(Point2D[] points, MeasureParameter measureParam)
GeometryComponent
Measures areas according to 2D geographic coordinates and measuring parameters.
measureArea
in interface GeometryComponent
points
- The array of 2D geographic coordinates.measureParam
- The measuring parameter.public java.util.List<Geometry> coordtransfer(Geometry[] geometry, PrjCoordSys sourcePrjCoorSys, PrjCoordSys targetPrjCoordSys)
GeometryComponent
Converts the coordinate system of the specified geometry.
coordtransfer
in interface GeometryComponent