| Constructor and Description |
|---|
Projections() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
degreeToRadiant(double[] la,
double[] lo)
transform latitude and longitude from degree to radiant format
|
protected void |
doTheTransform(Projections srcProj,
ProjectionData dataTP,
long point_count,
int point_offset)
do the transform.
|
String |
getEllipseInfo()
public method to call the native getEllispdInfo
|
protected String |
getEllipsInfo(String proj)
get the ellipsoid parameters from the
projection code
|
String |
getProjInfo()
public method to call the native getProjInfo
|
protected String |
getProjInfo(String proj)
get all the projection informations needed from the
projection code (reproduces pj_get_def() of the proj api)
|
LinkedHashMap |
mapProjInfo()
return all the proj info into a Linked Hashmap
|
abstract void |
prepareData(ProjectionData dataTP)
if there is some operation to perform on the input data, this is
the right moment (ex.
|
abstract void |
prepareTransformedData(ProjectionData dataTP)
this takes care that the reprojected data are in the correct format
(ex.
|
void |
printProjInfo()
print to standard output the proj info in a nice format
|
protected void |
radiantToDegree(double[] la,
double[] lo)
transform latitude and longitude from radiant to degree format
|
protected void |
transform(double[] firstCoord,
double[] secondCoord,
double[] values,
String srcCodeString,
String destCodeString,
long pointcount,
int pointoffset)
native call to the reprojections routines of proj
|
protected String getProjInfo(String proj)
the - proj code or optionsprotected String getEllipsInfo(String proj)
the - proj code or optionsprotected void transform(double[] firstCoord,
double[] secondCoord,
double[] values,
String srcCodeString,
String destCodeString,
long pointcount,
int pointoffset)
firstCoord - array of xsecondCoord - array of yvalues - array of zsrcCodeString - source projection code or optiondestCodeString - destination projection code or optionpointcount - pointoffset - public String getProjInfo()
public String getEllipseInfo()
public void printProjInfo()
public LinkedHashMap mapProjInfo()
public abstract void prepareData(ProjectionData dataTP)
dataTP - protected void doTheTransform(Projections srcProj, ProjectionData dataTP, long point_count, int point_offset)
srcProj - object holding the source projectiondataTP - the data setpoint_count - point_offset - public abstract void prepareTransformedData(ProjectionData dataTP)
dataTP - the data setprotected void degreeToRadiant(double[] la,
double[] lo)
la - lo - protected void radiantToDegree(double[] la,
double[] lo)
la - lo - Copyright © 2014. All rights reserved.