Class CRSUtil
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.io.geo.CRSUtil
-
public class CRSUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intETRS89_3D_SRS_EPSGstatic intETRS89_LAEA_SRS_EPSGstatic org.apache.logging.log4j.LoggerLOGGERstatic intWEB_MERCATOR_CRS_EPSGstatic intWGS_84_CRS_EPSG
-
Constructor Summary
Constructors Constructor Description CRSUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.opengis.referencing.crs.CoordinateReferenceSystemgetCRS(int EPSG)static CRSTypegetCRSType(org.opengis.referencing.crs.CoordinateReferenceSystem crs)static intgetEPSGCode(org.opengis.referencing.crs.CoordinateReferenceSystem crs)static org.opengis.referencing.crs.CoordinateReferenceSystemgetETRS89_2D_CRS()static org.opengis.referencing.crs.CoordinateReferenceSystemgetETRS89_LAEA_CRS()static org.opengis.referencing.crs.CoordinateReferenceSystemgetWEB_MERCATOR_CRS()static org.opengis.referencing.crs.CoordinateReferenceSystemgetWGS_84_CRS()static org.locationtech.jts.geom.Coordinateproject(org.locationtech.jts.geom.Coordinate c, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS)static org.locationtech.jts.geom.Geometryproject(org.locationtech.jts.geom.Geometry geom, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS)static voidtoLAEA(Collection<Feature> fs, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)static org.locationtech.jts.geom.GeometrytoLAEA(org.locationtech.jts.geom.Geometry geom, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)static voidtoWebMercator(Collection<Feature> fs, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)static org.locationtech.jts.geom.GeometrytoWebMercator(org.locationtech.jts.geom.Geometry geom, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)static voidtoWGS84(Collection<Feature> fs, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)static org.locationtech.jts.geom.GeometrytoWGS84(org.locationtech.jts.geom.Geometry geom, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)
-
-
-
Field Detail
-
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER
-
WGS_84_CRS_EPSG
public static int WGS_84_CRS_EPSG
-
WEB_MERCATOR_CRS_EPSG
public static int WEB_MERCATOR_CRS_EPSG
-
ETRS89_LAEA_SRS_EPSG
public static int ETRS89_LAEA_SRS_EPSG
-
ETRS89_3D_SRS_EPSG
public static int ETRS89_3D_SRS_EPSG
-
-
Method Detail
-
getWGS_84_CRS
public static org.opengis.referencing.crs.CoordinateReferenceSystem getWGS_84_CRS()
-
getWEB_MERCATOR_CRS
public static org.opengis.referencing.crs.CoordinateReferenceSystem getWEB_MERCATOR_CRS()
-
getETRS89_LAEA_CRS
public static org.opengis.referencing.crs.CoordinateReferenceSystem getETRS89_LAEA_CRS()
-
getETRS89_2D_CRS
public static org.opengis.referencing.crs.CoordinateReferenceSystem getETRS89_2D_CRS()
-
getCRS
public static org.opengis.referencing.crs.CoordinateReferenceSystem getCRS(int EPSG)
-
project
public static org.locationtech.jts.geom.Coordinate project(org.locationtech.jts.geom.Coordinate c, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS)
-
project
public static org.locationtech.jts.geom.Geometry project(org.locationtech.jts.geom.Geometry geom, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem targetCRS)
-
toWebMercator
public static org.locationtech.jts.geom.Geometry toWebMercator(org.locationtech.jts.geom.Geometry geom, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)
-
toWebMercator
public static void toWebMercator(Collection<Feature> fs, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)
-
toWGS84
public static org.locationtech.jts.geom.Geometry toWGS84(org.locationtech.jts.geom.Geometry geom, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)
-
toWGS84
public static void toWGS84(Collection<Feature> fs, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)
-
toLAEA
public static org.locationtech.jts.geom.Geometry toLAEA(org.locationtech.jts.geom.Geometry geom, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)
-
toLAEA
public static void toLAEA(Collection<Feature> fs, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)
-
getCRSType
public static CRSType getCRSType(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
-
getEPSGCode
public static int getEPSGCode(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
-
-