public class CRSParser extends Object
| Constructor and Description |
|---|
CRSParser() |
| Modifier and Type | Method and Description |
|---|---|
static org.locationtech.proj4j.CoordinateReferenceSystem |
convert(CompoundCoordinateReferenceSystem compound)
Convert a compound crs into a proj4 coordinate reference system
|
static org.locationtech.proj4j.CoordinateReferenceSystem |
convert(CRS crsObject)
Convert a CRS object into a proj4 coordinate reference system
|
static org.locationtech.proj4j.datum.Ellipsoid |
convert(Ellipsoid ellipsoid)
Convert an Ellipsoid
|
static org.locationtech.proj4j.CoordinateReferenceSystem |
convert(GeoCoordinateReferenceSystem geo)
Convert a geodetic or geographic crs into a proj4 coordinate reference
system
|
static org.locationtech.proj4j.datum.Datum |
convert(GeoDatum geoDatum)
Convert a Datum
|
static String |
convert(List<Axis> axes)
Convert the list of axes to a proj4j axis order
|
static org.locationtech.proj4j.CoordinateReferenceSystem |
convert(ProjectedCoordinateReferenceSystem projected)
Convert a projected crs into a proj4 coordinate reference system
|
static double[] |
convertDatumTransform(OperationMethod method)
Convert the operation method into datum transform
|
static double |
convertValue(double value,
Unit fromUnit,
Unit toUnit)
Convert the value from a unit to another
|
static org.locationtech.proj4j.proj.Projection |
createProjection(CoordinateSystem coordinateSystem)
Create a proj4j projection for the unit
|
static org.locationtech.proj4j.proj.Projection |
createProjection(CoordinateSystem coordinateSystem,
MapProjection mapProjection)
Create a proj4j projection for the method and unit
|
static org.locationtech.proj4j.proj.Projection |
createProjection(String projectionName,
CoordinateSystem coordinateSystem)
Create a proj4j projection for the projection name and unit
|
static org.locationtech.proj4j.CRSFactory |
getCRSFactory()
Get the CRS Factory
|
static org.locationtech.proj4j.datum.Ellipsoid |
getEllipsoid(String name)
Get a predefined proj4j ellipsoid by name or short name
|
static double |
getValue(OperationParameter parameter,
org.locationtech.proj4j.units.Unit unit)
Get the operation parameter value in the specified unit
|
static double |
getValue(OperationParameter parameter,
Unit unit)
Get the operation parameter value in the specified unit
|
static org.locationtech.proj4j.CoordinateReferenceSystem |
parse(String wkt)
Parse crs well-known text into a proj4 coordinate reference system
|
static void |
updateProjection(org.locationtech.proj4j.proj.Projection projection,
org.locationtech.proj4j.datum.Ellipsoid ellipsoid,
GeoDatum geoDatum)
Create a proj4j projection
|
static void |
updateProjection(org.locationtech.proj4j.proj.Projection projection,
OperationMethod method)
Update the method parameters in the projection
|
static void |
updateProjection(org.locationtech.proj4j.proj.Projection projection,
OperationMethod method,
OperationParameter parameter)
Update the method parameter in the projection
|
public static org.locationtech.proj4j.CRSFactory getCRSFactory()
public static org.locationtech.proj4j.datum.Ellipsoid getEllipsoid(String name)
name - name or short namepublic static org.locationtech.proj4j.CoordinateReferenceSystem parse(String wkt)
wkt - crs well-known textpublic static org.locationtech.proj4j.CoordinateReferenceSystem convert(CRS crsObject)
crsObject - CRS objectpublic static org.locationtech.proj4j.CoordinateReferenceSystem convert(GeoCoordinateReferenceSystem geo)
geo - geodetic or geographic crspublic static org.locationtech.proj4j.CoordinateReferenceSystem convert(ProjectedCoordinateReferenceSystem projected)
projected - projected crspublic static org.locationtech.proj4j.CoordinateReferenceSystem convert(CompoundCoordinateReferenceSystem compound)
compound - compound crspublic static org.locationtech.proj4j.datum.Datum convert(GeoDatum geoDatum)
geoDatum - crs wkt geo datumpublic static org.locationtech.proj4j.datum.Ellipsoid convert(Ellipsoid ellipsoid)
ellipsoid - crs wkt ellipsoidpublic static double[] convertDatumTransform(OperationMethod method)
method - operation methodpublic static void updateProjection(org.locationtech.proj4j.proj.Projection projection,
org.locationtech.proj4j.datum.Ellipsoid ellipsoid,
GeoDatum geoDatum)
projection - projectionellipsoid - ellipsoidgeoDatum - geo datumpublic static org.locationtech.proj4j.proj.Projection createProjection(CoordinateSystem coordinateSystem)
coordinateSystem - coordinate systempublic static org.locationtech.proj4j.proj.Projection createProjection(CoordinateSystem coordinateSystem, MapProjection mapProjection)
coordinateSystem - coordinate systemmapProjection - map projectionpublic static org.locationtech.proj4j.proj.Projection createProjection(String projectionName, CoordinateSystem coordinateSystem)
projectionName - projection namecoordinateSystem - coordinate systempublic static void updateProjection(org.locationtech.proj4j.proj.Projection projection,
OperationMethod method)
projection - proj4j projectionmethod - operation methodpublic static void updateProjection(org.locationtech.proj4j.proj.Projection projection,
OperationMethod method,
OperationParameter parameter)
projection - proj4j projectionmethod - operation methodparameter - operation parameterpublic static String convert(List<Axis> axes)
axes - list of axespublic static double getValue(OperationParameter parameter, org.locationtech.proj4j.units.Unit unit)
parameter - operation parameterunit - desired unitpublic static double getValue(OperationParameter parameter, Unit unit)
parameter - operation parameterunit - desired unitCopyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.