JPROJ4
Public Member Functions
Proj4 Class Reference

This is the public test class to try the jproj api. More...

Inheritance diagram for Proj4:
Inheritance graph
[legend]
Collaboration diagram for Proj4:
Collaboration graph
[legend]

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...
 

Detailed Description

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

Constructor & Destructor Documentation

Proj4 ( String  proj)

This is used if the goal is to simply get information about a projection definition

Parameters
projthe projection definition
Proj4 ( String  srcProj,
String  destProj 
)

From the definitions the source and destination projection are created.

Parameters
srcProj
destProj

Member Function Documentation

void transform ( ProjectionData  dataTP,
long  point_count,
int  point_offset 
)
Parameters
dataTPthe data set to reproject
point_count
point_offset

Implements Proj4Factory.

LinkedHashMap getProjInfo ( )
Returns
the projection info as a hashmap

Implements Proj4Factory.

LinkedHashMap getSrcProjInfo ( )
Returns
the source projection info as a hashmap

Implements Proj4Factory.

LinkedHashMap getDestProjInfo ( )
Returns
the destination projection info as a hashmap

Implements Proj4Factory.

void printProjInfo ( )
void printSrcProjInfo ( )
void printDestProjInfo ( )