@Api(allMethods=true)
public interface GeoService
| Modifier and Type | Method and Description |
|---|---|
com.vividsolutions.jts.geom.Coordinate |
calcDefaultLabelPosition(InternalFeature feature)
Determine a default position for positioning the label for a feature.
|
com.vividsolutions.jts.geom.Geometry |
createCircle(com.vividsolutions.jts.geom.Point center,
double radius,
int nrPoints)
Create a geometry which approximates like a circle.
|
MathTransform |
findMathTransform(CoordinateReferenceSystem sourceCrs,
CoordinateReferenceSystem targetCrs)
Get the transformation which converts between two coordinate systems.
|
String |
getCodeFromCrs(CoordinateReferenceSystem crs)
Try to extract the code from the CRS.
|
String |
getCodeFromCrs(Crs crs)
Get the code from the CRS.
|
CoordinateReferenceSystem |
getCrs(String crs)
Deprecated.
use getCrs2()
|
Crs |
getCrs2(String crs)
Get the
Crs with given code. |
CrsTransform |
getCrsTransform(CoordinateReferenceSystem sourceCrs,
CoordinateReferenceSystem targetCrs)
Get the transformation which converts between two coordinate systems.
|
CrsTransform |
getCrsTransform(Crs sourceCrs,
Crs targetCrs)
Get the transformation which converts between two coordinate systems.
|
CrsTransform |
getCrsTransform(String sourceCrs,
String targetCrs)
Get the transformation which converts between two coordinate systems.
|
int |
getSridFromCrs(CoordinateReferenceSystem crs)
Try to extract the SRID (Spatial Reference Id) from the CRS.
|
int |
getSridFromCrs(String crs)
Try to extract the SRID (Spatial Reference Id) from the CRS.
|
org.geomajas.geometry.Bbox |
transform(org.geomajas.geometry.Bbox source,
Crs sourceCrs,
Crs targetCrs)
Transform a
Bbox from the source to the target CRS. |
org.geomajas.geometry.Bbox |
transform(org.geomajas.geometry.Bbox source,
CrsTransform crsTransform)
Transform a
Bbox using the given transformation. |
org.geomajas.geometry.Bbox |
transform(org.geomajas.geometry.Bbox source,
String sourceCrs,
String targetCrs)
Transform a
Bbox from the source to the target CRS. |
com.vividsolutions.jts.geom.Coordinate |
transform(com.vividsolutions.jts.geom.Coordinate source,
Crs sourceCrs,
Crs targetCrs)
Transform a
Coordinate from the source to the target CRS. |
com.vividsolutions.jts.geom.Coordinate |
transform(com.vividsolutions.jts.geom.Coordinate source,
CrsTransform crsTransform)
Transform a
Coordinate using the given transformation. |
com.vividsolutions.jts.geom.Coordinate |
transform(com.vividsolutions.jts.geom.Coordinate source,
String sourceCrs,
String targetCrs)
Transform a
Coordinate from the source to the target CRS. |
com.vividsolutions.jts.geom.Envelope |
transform(com.vividsolutions.jts.geom.Envelope source,
Crs sourceCrs,
Crs targetCrs)
Transform a
Envelope from the source to the target CRS. |
com.vividsolutions.jts.geom.Envelope |
transform(com.vividsolutions.jts.geom.Envelope source,
CrsTransform crsTransform)
Transform a
Envelope using the given transformation. |
com.vividsolutions.jts.geom.Envelope |
transform(com.vividsolutions.jts.geom.Envelope source,
String sourceCrs,
String targetCrs)
Transform a
Envelope from the source to the target CRS. |
com.vividsolutions.jts.geom.Geometry |
transform(com.vividsolutions.jts.geom.Geometry source,
CoordinateReferenceSystem sourceCrs,
CoordinateReferenceSystem targetCrs)
Deprecated.
use transform(Geometry, Crs, Crs) instead
|
com.vividsolutions.jts.geom.Geometry |
transform(com.vividsolutions.jts.geom.Geometry source,
Crs sourceCrs,
Crs targetCrs)
Transform a
Geometry from the source to the target CRS. |
com.vividsolutions.jts.geom.Geometry |
transform(com.vividsolutions.jts.geom.Geometry source,
CrsTransform crsTransform)
Transform a
Geometry using the given transformation. |
com.vividsolutions.jts.geom.Geometry |
transform(com.vividsolutions.jts.geom.Geometry source,
String sourceCrs,
String targetCrs)
Transform a
Geometry from the source to the target CRS. |
@Deprecated CoordinateReferenceSystem getCrs(String crs) throws LayerException
CoordinateReferenceSystem with given code.crs - Coordinate reference system code. (EPSG:xxxx)CoordinateReferenceSystemLayerException - CRS code not foundCrs getCrs2(String crs) throws LayerException
Crs with given code.crs - Coordinate reference system code. (EPSG:xxxx)CoordinateReferenceSystemLayerException - CRS code not foundint getSridFromCrs(String crs)
crs - CRS string in the form of 'EPSG:int getSridFromCrs(CoordinateReferenceSystem crs)
crs - reference system of EPSG type.String getCodeFromCrs(CoordinateReferenceSystem crs)
Crs or best guess based on the srid code otherwise.crs - reference system of EPSG typeString getCodeFromCrs(Crs crs)
crs - reference system of EPSG type.MathTransform findMathTransform(CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem targetCrs) throws GeomajasException
sourceCrs - crs used by source datatargetCrs - crs to be used by targetGeomajasException - building the transformation is not possibleCrsTransform getCrsTransform(Crs sourceCrs, Crs targetCrs) throws GeomajasException
sourceCrs - crs used by source datatargetCrs - crs to be used by targetGeomajasException - building the transformation is not possibleCrsTransform getCrsTransform(CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem targetCrs) throws GeomajasException
sourceCrs - crs used by source datatargetCrs - crs to be used by targetGeomajasException - building the transformation is not possibleCrsTransform getCrsTransform(String sourceCrs, String targetCrs) throws GeomajasException
sourceCrs - crs used by source datatargetCrs - crs to be used by targetGeomajasException - building the transformation is not possiblecom.vividsolutions.jts.geom.Geometry transform(com.vividsolutions.jts.geom.Geometry source,
CrsTransform crsTransform)
Geometry using the given transformation.
An empty geometry is returned (and a warning logged) if the transformation failed.source - source geometrycrsTransform - transformation to be appliedcom.vividsolutions.jts.geom.Geometry transform(com.vividsolutions.jts.geom.Geometry source,
Crs sourceCrs,
Crs targetCrs)
throws GeomajasException
Geometry from the source to the target CRS.
An empty geometry is returned (and a warning logged) if the transformation failed.source - source geometrysourceCrs - source CRStargetCrs - target CRSGeomajasException - building the transformation failedcom.vividsolutions.jts.geom.Geometry transform(com.vividsolutions.jts.geom.Geometry source,
String sourceCrs,
String targetCrs)
throws GeomajasException
Geometry from the source to the target CRS.
An empty geometry is returned (and a warning logged) if the transformation failed.source - source geometrysourceCrs - source CRStargetCrs - target CRSGeomajasException - building the transformation failed@Deprecated com.vividsolutions.jts.geom.Geometry transform(com.vividsolutions.jts.geom.Geometry source, CoordinateReferenceSystem sourceCrs, CoordinateReferenceSystem targetCrs) throws GeomajasException
Geometry from the source to the target CRS.source - source geometrysourceCrs - source CRStargetCrs - target CRSGeomajasException - building the transformationcom.vividsolutions.jts.geom.Envelope transform(com.vividsolutions.jts.geom.Envelope source,
CrsTransform crsTransform)
Envelope using the given transformation.
An empty envelope is returned (and a warning logged) if the transformation failed.source - source envelopecrsTransform - transformation to be appliedcom.vividsolutions.jts.geom.Envelope transform(com.vividsolutions.jts.geom.Envelope source,
Crs sourceCrs,
Crs targetCrs)
throws GeomajasException
Envelope from the source to the target CRS.
An empty envelope is returned (and a warning logged) if the transformation failed.source - source geometrysourceCrs - source CRStargetCrs - target CRSGeomajasException - building the transformation failedcom.vividsolutions.jts.geom.Envelope transform(com.vividsolutions.jts.geom.Envelope source,
String sourceCrs,
String targetCrs)
throws GeomajasException
Envelope from the source to the target CRS.
An empty envelope is returned (and a warning logged) if the transformation failed.source - source geometrysourceCrs - source CRStargetCrs - target CRSGeomajasException - building the transformation failedorg.geomajas.geometry.Bbox transform(org.geomajas.geometry.Bbox source,
CrsTransform crsTransform)
Bbox using the given transformation.
An empty bbox is returned (and a warning logged) if the transformation failed.source - source bboxcrsTransform - transformation to be appliedorg.geomajas.geometry.Bbox transform(org.geomajas.geometry.Bbox source,
Crs sourceCrs,
Crs targetCrs)
throws GeomajasException
Bbox from the source to the target CRS.
An empty bbox is returned (and a warning logged) if the transformation failed.source - source bboxsourceCrs - source CRStargetCrs - target CRSGeomajasException - building the transformationorg.geomajas.geometry.Bbox transform(org.geomajas.geometry.Bbox source,
String sourceCrs,
String targetCrs)
throws GeomajasException
Bbox from the source to the target CRS.
An empty bbox is returned (and a warning logged) if the transformation failed.source - source bboxsourceCrs - source CRStargetCrs - target CRSGeomajasException - building the transformationcom.vividsolutions.jts.geom.Coordinate transform(com.vividsolutions.jts.geom.Coordinate source,
CrsTransform crsTransform)
Coordinate using the given transformation.
Null is returned (and a warning logged) if the transformation failed.source - source coordinatecrsTransform - transformation to be appliedcom.vividsolutions.jts.geom.Coordinate transform(com.vividsolutions.jts.geom.Coordinate source,
Crs sourceCrs,
Crs targetCrs)
throws GeomajasException
Coordinate from the source to the target CRS.
An empty bbox is returned (and a warning logged) if the transformation failed.source - source bboxsourceCrs - source CRStargetCrs - target CRSGeomajasException - building the transformationcom.vividsolutions.jts.geom.Coordinate transform(com.vividsolutions.jts.geom.Coordinate source,
String sourceCrs,
String targetCrs)
throws GeomajasException
Coordinate from the source to the target CRS.
An empty bbox is returned (and a warning logged) if the transformation failed.source - source bboxsourceCrs - source CRStargetCrs - target CRSGeomajasException - building the transformationcom.vividsolutions.jts.geom.Coordinate calcDefaultLabelPosition(InternalFeature feature)
feature - feature which needs the labelcom.vividsolutions.jts.geom.Geometry createCircle(com.vividsolutions.jts.geom.Point center,
double radius,
int nrPoints)
center - center for the circleradius - radius for the circlenrPoints - number of points to calculate for approximating the circleCopyright © 2015 Geosparc. All Rights Reserved.