public class Projection extends Object
| Constructor and Description |
|---|
Projection(String authority,
long code,
org.locationtech.proj4j.CoordinateReferenceSystem crs)
Constructor
|
Projection(String authority,
String code,
org.locationtech.proj4j.CoordinateReferenceSystem crs)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Based upon
getAuthority() and getCode() |
boolean |
equals(String authority,
long code)
Check if this projection is equal to the authority and code
|
boolean |
equals(String authority,
String code)
Check if this projection is equal to the authority and code
|
String |
getAuthority()
Get the coordinate authority
|
String |
getCode()
Get the coordinate code
|
org.locationtech.proj4j.CoordinateReferenceSystem |
getCrs()
Get the Coordinate Reference System
|
ProjectionTransform |
getTransformation(long epsg)
Get the transformation from this Projection to the EPSG code.
|
ProjectionTransform |
getTransformation(Projection projection)
Get the transformation from this Projection to the provided projection.
|
ProjectionTransform |
getTransformation(String authority,
long code)
Get the transformation from this Projection to the authority and
coordinate code.
|
org.locationtech.proj4j.units.Unit |
getUnit()
Get the units of this projection
|
int |
hashCode() |
boolean |
isUnit(org.locationtech.proj4j.units.Unit unit)
Determine if the projection is in the provided unit
|
double |
toMeters(double value)
Convert the value to meters
|
String |
toString() |
public Projection(String authority, long code, org.locationtech.proj4j.CoordinateReferenceSystem crs)
authority - coordinate authoritycode - coordinate codecrs - crspublic String getAuthority()
public String getCode()
public org.locationtech.proj4j.CoordinateReferenceSystem getCrs()
public ProjectionTransform getTransformation(long epsg)
epsg - epsgpublic ProjectionTransform getTransformation(String authority, long code)
authority - coordinate authoritycode - coordinate codepublic ProjectionTransform getTransformation(Projection projection)
projection - projectionpublic double toMeters(double value)
value - valuepublic org.locationtech.proj4j.units.Unit getUnit()
public boolean isUnit(org.locationtech.proj4j.units.Unit unit)
unit - unitpublic boolean equals(String authority, long code)
authority - coordinate authoritycode - coordinate codepublic boolean equals(String authority, String code)
authority - coordinate authoritycode - coordinate codepublic boolean equals(Object obj)
getAuthority() and getCode()Copyright © 2020 National Geospatial-Intelligence Agency. All rights reserved.