Geomajas Community Documentation
GeoServices provides a set of methods which ease the working with geometries and related objects.
CoordinateReferenceSystem getCrs(String crs) throws
LayerException
: get the CRS object based on the CRS
id.
int getSridFromCrs(String crs)
: attempts to
extract the SRID (Spatial Reference Id) from the CRS.
int getSridFromCrs(CoordinateReferenceSystem crs)
: attempts to extract the SRID (Spatial Reference Id) from the
CRS.
MathTransform
findMathTransform(CoordinateReferenceSystem sourceCrs,
CoordinateReferenceSystem targetCrs) throws GeomajasException
: get the transformation which converts between two coordinate
systems.
Geometry transform(Geometry source,
CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem
targetCrs) throws GeomajasException
: transform a geometry
from source to target CRS.
Coordinate calcDefaultLabelPosition(InternalFeature
feature)
: determine a default position for positioning the
label for a feature.
Geometry createCircle(Point center, double radius, int
nrPoints)
: get a geometry which approximates a circle (if
only a geometry could contain curves).