JPROJ4
|
This is the public test class to try the jproj api. More...
Public Member Functions | |
Proj4 (String proj) | |
constructor used to instatiate a single projection. More... | |
Proj4 (String srcProj, String destProj) | |
constructor used to instantiate the object for a further reproiection. More... | |
void | transform (ProjectionData dataTP, long point_count, int point_offset) |
method to reproject a dataset from the source projection to the destination projection as defined in the constructor More... | |
LinkedHashMap | getProjInfo () |
LinkedHashMap | getSrcProjInfo () |
LinkedHashMap | getDestProjInfo () |
void | printProjInfo () |
print the projection info to standard output More... | |
void | printSrcProjInfo () |
print the source projection info to standard output More... | |
void | printDestProjInfo () |
print the destination projection info to standard output More... | |
Reads data from file. The input file has three lines of header:
1) source projection code or option
2) destination projection code or option
3) rows of the data
and after the header the data are put in the format: x0 y0 z0 x1 y1 z1 x2 y2 z2 ...etc etc
example: srcProj: +proj=latlong +datum=WGS84 destProj: +init=epsg:32632 rows: 2 ...datatriplets
Proj4 | ( | String | proj | ) |
This is used if the goal is to simply get information about a projection definition
proj | the projection definition |
Proj4 | ( | String | srcProj, |
String | destProj | ||
) |
From the definitions the source and destination projection are created.
srcProj | |
destProj |
void transform | ( | ProjectionData | dataTP, |
long | point_count, | ||
int | point_offset | ||
) |
dataTP | the data set to reproject |
point_count | |
point_offset |
Implements Proj4Factory.
LinkedHashMap getProjInfo | ( | ) |
Implements Proj4Factory.
LinkedHashMap getSrcProjInfo | ( | ) |
Implements Proj4Factory.
LinkedHashMap getDestProjInfo | ( | ) |
Implements Proj4Factory.
void printProjInfo | ( | ) |
void printSrcProjInfo | ( | ) |
void printDestProjInfo | ( | ) |