Package mil.nga.crs.util.proj
Class ProjParser
- java.lang.Object
-
- mil.nga.crs.util.proj.ProjParser
-
public class ProjParser extends Object
CRS to PROJ parser- Since:
- 1.1.0
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description ProjParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProjParams
params(String wkt)
Parse crs well-known text into PROJ paramsstatic ProjParams
params(CompoundCoordinateReferenceSystem compound)
Convert a compound crs into PROJ paramsstatic ProjParams
params(CRS crs)
Convert a CRS object into PROJ paramsstatic ProjParams
params(GeoCoordinateReferenceSystem geo)
Convert a geodetic or geographic crs into PROJ paramsstatic ProjParams
params(ProjectedCoordinateReferenceSystem projected)
Convert a projected crs into PROJ paramsstatic String
paramsText(String wkt)
Parse crs well-known text into PROJ params textstatic String
paramsText(CompoundCoordinateReferenceSystem compound)
Convert a compound crs into PROJ params textstatic String
paramsText(CRS crs)
Convert a CRS object into PROJ params textstatic String
paramsText(GeoCoordinateReferenceSystem geo)
Convert a geodetic or geographic crs into PROJ params textstatic String
paramsText(ProjectedCoordinateReferenceSystem projected)
Convert a projected crs into PROJ params text
-
-
-
Method Detail
-
params
public static ProjParams params(String wkt) throws IOException
Parse crs well-known text into PROJ params- Parameters:
wkt
- crs well-known text- Returns:
- params
- Throws:
IOException
- upon failure to read
-
paramsText
public static String paramsText(String wkt) throws IOException
Parse crs well-known text into PROJ params text- Parameters:
wkt
- crs well-known text- Returns:
- params text
- Throws:
IOException
- upon failure to read
-
params
public static ProjParams params(CRS crs)
Convert a CRS object into PROJ params- Parameters:
crs
- CRS object- Returns:
- params
-
paramsText
public static String paramsText(CRS crs)
Convert a CRS object into PROJ params text- Parameters:
crs
- CRS object- Returns:
- params text
-
params
public static ProjParams params(GeoCoordinateReferenceSystem geo)
Convert a geodetic or geographic crs into PROJ params- Parameters:
geo
- geodetic or geographic crs- Returns:
- params
-
paramsText
public static String paramsText(GeoCoordinateReferenceSystem geo)
Convert a geodetic or geographic crs into PROJ params text- Parameters:
geo
- geodetic or geographic crs- Returns:
- params text
-
params
public static ProjParams params(ProjectedCoordinateReferenceSystem projected)
Convert a projected crs into PROJ params- Parameters:
projected
- projected crs- Returns:
- params
-
paramsText
public static String paramsText(ProjectedCoordinateReferenceSystem projected)
Convert a projected crs into PROJ params text- Parameters:
projected
- projected crs- Returns:
- params text
-
params
public static ProjParams params(CompoundCoordinateReferenceSystem compound)
Convert a compound crs into PROJ params- Parameters:
compound
- compound crs- Returns:
- params
-
paramsText
public static String paramsText(CompoundCoordinateReferenceSystem compound)
Convert a compound crs into PROJ params text- Parameters:
compound
- compound crs- Returns:
- params text
-
-