|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.data.projection.proj.SwissObliqueMercator
public class SwissObliqueMercator
Projection for the SwissGrid CH1903 / L03, see http://de.wikipedia.org/wiki/Swiss_Grid. Calculations are based on formula from http://www.swisstopo.admin.ch/internet/swisstopo/en/home/topics/survey/sys/refsys/switzerland.parsysrelated1.37696.downloadList.12749.DownloadFile.tmp/ch1903wgs84en.pdf August 2010 update to this formula (rigorous formulas) http://www.swisstopo.admin.ch/internet/swisstopo/en/home/topics/survey/sys/refsys/switzerland.parsysrelated1.37696.downloadList.97912.DownloadFile.tmp/swissprojectionen.pdf
Field Summary | |
---|---|
private double |
alpha
|
private double |
b0
|
private Ellipsoid |
ellps
|
private static double |
EPSILON
|
private double |
K
|
private double |
kR
|
Constructor Summary | |
---|---|
SwissObliqueMercator()
|
Method Summary | |
---|---|
java.lang.String |
getName()
A Human readable name of this projection. |
java.lang.String |
getProj4Id()
The Proj.4 identifier. |
private void |
initialize(double lat_0)
|
void |
initialize(ProjParameters params)
Initialize the projection using the provided parameters. |
double[] |
invproject(double y,
double x)
Convert east/north to lat/lon. |
double[] |
project(double phi,
double lambda)
Convert lat/lon to east/north. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Ellipsoid ellps
private double kR
private double alpha
private double b0
private double K
private static final double EPSILON
Constructor Detail |
---|
public SwissObliqueMercator()
Method Detail |
---|
public void initialize(ProjParameters params) throws ProjectionConfigurationException
Proj
initialize
in interface Proj
ProjectionConfigurationException
- in case parameters are not suitableprivate void initialize(double lat_0)
public java.lang.String getName()
Proj
getName
in interface Proj
public java.lang.String getProj4Id()
Proj
getProj4Id
in interface Proj
public double[] project(double phi, double lambda)
Proj
project
in interface Proj
phi
- the latitude in radianslambda
- the longitude in radians
public double[] invproject(double y, double x)
Proj
invproject
in interface Proj
y
- east value in meters, divided by the semi major axis of the ellipsoidx
- north value in meters, divided by the semi major axis of the ellipsoid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |