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 int
ETRS89_3D_SRS_EPSG
static int
ETRS89_LAEA_SRS_EPSG
static org.apache.logging.log4j.Logger
LOGGER
static int
WEB_MERCATOR_CRS_EPSG
static int
WGS_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.CoordinateReferenceSystem
getCRS(int EPSG)
static CRSType
getCRSType(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
static int
getEPSGCode(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
static org.opengis.referencing.crs.CoordinateReferenceSystem
getETRS89_2D_CRS()
static org.opengis.referencing.crs.CoordinateReferenceSystem
getETRS89_LAEA_CRS()
static org.opengis.referencing.crs.CoordinateReferenceSystem
getWEB_MERCATOR_CRS()
static org.opengis.referencing.crs.CoordinateReferenceSystem
getWGS_84_CRS()
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)
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)
static void
toLAEA(Collection<Feature> fs, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)
static org.locationtech.jts.geom.Geometry
toLAEA(org.locationtech.jts.geom.Geometry geom, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)
static void
toWebMercator(Collection<Feature> fs, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)
static org.locationtech.jts.geom.Geometry
toWebMercator(org.locationtech.jts.geom.Geometry geom, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)
static void
toWGS84(Collection<Feature> fs, org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS)
static org.locationtech.jts.geom.Geometry
toWGS84(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)
-
-