public class LambertConformalConic extends java.lang.Object implements MapProjection
Modifier and Type | Field and Description |
---|---|
static int |
FROM_LAT_LONG
Indicates a transformation from latitude/longitude
|
static int |
TO_LAT_LONG
Indicates a transformation to latitude/longitude
|
Constructor and Description |
---|
LambertConformalConic(double lat1,
double lon0,
double lat0)
Initialises the projection converter assuming spherical figure of the earth and single standard parallel
and centred at the given location.
|
LambertConformalConic(Ellipsoid ellipsoid,
double lat1,
double lat2,
double lon0,
double lat0,
double falseEast,
double falseNorth)
Initialises the projection converter with the given ellipsoid.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doInterpolation()
Indicates whether the transformation should use nearest neighbour (false)
or some interpolator (true).
|
java.lang.String |
getDescription()
Provides a general description of the transformation.
|
Ellipsoid |
getEllipsoid()
Reports the ellipsoid used in the transformation.
|
processing.core.PVector |
invTransformCoords(processing.core.PVector p)
Performs an inverse transformation (Lambert conformal conic to latitude/longitude) on the
given location.
|
processing.core.PVector |
LambertToLatLong(processing.core.PVector p)
Converts the given coordinates that use the Lambert conformal conic projection
into a (longitude,latitude) location.
|
processing.core.PVector |
latLongToLambert(processing.core.PVector p)
Converts the given (
lng , lat ) coordinates into a location referenced
using the Lambert conformal conic projection. |
void |
setInterpolation(boolean doInterpolation)
Sets whether the transformation should use nearest neighbour (false)
or some interpolator (true).
|
processing.core.PVector |
transformCoords(processing.core.PVector p)
Performs a forward transformation (latitude/longitude to Lambert conformal conic) on the
given location.
|
public static final int FROM_LAT_LONG
public static final int TO_LAT_LONG
public LambertConformalConic(double lat1, double lon0, double lat0)
lat1
- The single standard parallel in degrees (north of equator positive).lon0
- Centre longitude in degrees (east of Greenwich positive).lat0
- Centre latitude in degrees (north of equator positive).public LambertConformalConic(Ellipsoid ellipsoid, double lat1, double lat2, double lon0, double lat0, double falseEast, double falseNorth)
ellipsoid
- to use in projection.lat1
- First standard parallel in degrees (north of equator positive).lat2
- Second standard parallel in degrees (north of equator positive).lon0
- Centre longitude in degrees (east of Greenwich positive).lat0
- Centre latitude in degrees (north of equator positive).falseEast
- False easting (offset in metres).falseNorth
- False northing (offset in metres).public processing.core.PVector transformCoords(processing.core.PVector p)
transformCoords
in interface MapProjection
p
- Location of point to transform.public processing.core.PVector invTransformCoords(processing.core.PVector p)
invTransformCoords
in interface MapProjection
p
- Location of point to transform.public java.lang.String getDescription()
getDescription
in interface MapProjection
public boolean doInterpolation()
public void setInterpolation(boolean doInterpolation)
doInterpolation
- True if transformation should perform some local interpolation.public processing.core.PVector latLongToLambert(processing.core.PVector p)
lng
, lat
) coordinates into a location referenced
using the Lambert conformal conic projection.
Latitude/longitude coordinates should be in decimal degrees with positive North and positive East.p
- Longitude/latitude point. Longitude varies within +-180 degrees, latitude within +-90 degrees.public processing.core.PVector LambertToLatLong(processing.core.PVector p)
p
- Location of point as an easting and northing in the Lambert projection (metres from local origin).public Ellipsoid getEllipsoid()