001 //$HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/base/branches/2.5_testing/src/org/deegree/crs/coordinatesystems/GeocentricCRS.java $ 002 /*---------------------------------------------------------------------------- 003 This file is part of deegree, http://deegree.org/ 004 Copyright (C) 2001-2009 by: 005 Department of Geography, University of Bonn 006 and 007 lat/lon GmbH 008 009 This library is free software; you can redistribute it and/or modify it under 010 the terms of the GNU Lesser General Public License as published by the Free 011 Software Foundation; either version 2.1 of the License, or (at your option) 012 any later version. 013 This library is distributed in the hope that it will be useful, but WITHOUT 014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 015 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 016 details. 017 You should have received a copy of the GNU Lesser General Public License 018 along with this library; if not, write to the Free Software Foundation, Inc., 019 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 020 021 Contact information: 022 023 lat/lon GmbH 024 Aennchenstr. 19, 53177 Bonn 025 Germany 026 http://lat-lon.de/ 027 028 Department of Geography, University of Bonn 029 Prof. Dr. Klaus Greve 030 Postfach 1147, 53001 Bonn 031 Germany 032 http://www.geographie.uni-bonn.de/deegree/ 033 034 e-mail: info@deegree.org 035 ----------------------------------------------------------------------------*/ 036 037 package org.deegree.crs.coordinatesystems; 038 039 import java.util.List; 040 041 import org.deegree.crs.Identifiable; 042 import org.deegree.crs.components.Axis; 043 import org.deegree.crs.components.GeodeticDatum; 044 import org.deegree.crs.transformations.polynomial.PolynomialTransformation; 045 046 /** 047 * A <code>GeocentricCRS</code> is a coordinatesystem having three axis and a mass point defined to be equivalent to 048 * earths center. 049 * 050 * @author <a href="mailto:bezema@lat-lon.de">Rutger Bezema</a> 051 * 052 * @author last edited by: $Author: mschneider $ 053 * 054 * @version $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $ 055 * 056 */ 057 058 public class GeocentricCRS extends CoordinateSystem { 059 060 private static final long serialVersionUID = -260838602288197302L; 061 062 /** 063 * The default geocentric coordinate system. Geocentric datum is WGS84 and linear units are metre. The <var>X</var> 064 * axis points towards the prime meridian (e.g. front). The <var>Y</var> axis points East. The <var>Z</var> axis 065 * points North. 066 */ 067 public static final GeocentricCRS WGS84 = new GeocentricCRS( GeodeticDatum.WGS84, "GC_WGS84", "Geocentric WGS84" ); 068 069 /** 070 * @param datum 071 * @param axisOrder 072 * @param identity 073 */ 074 public GeocentricCRS( GeodeticDatum datum, Axis[] axisOrder, Identifiable identity ) { 075 this( null, datum, axisOrder, identity ); 076 } 077 078 /** 079 * @param datum 080 * @param axisOrder 081 * @param identifiers 082 * @param names 083 * @param versions 084 * @param descriptions 085 * @param areasOfUse 086 */ 087 public GeocentricCRS( GeodeticDatum datum, Axis[] axisOrder, String[] identifiers, String[] names, 088 String[] versions, String[] descriptions, String[] areasOfUse ) { 089 super( datum, axisOrder, identifiers, names, versions, descriptions, areasOfUse ); 090 } 091 092 /** 093 * @param datum 094 * @param axisOrder 095 * @param identifier 096 * @param name 097 * @param version 098 * @param description 099 * @param areaOfUse 100 */ 101 public GeocentricCRS( GeodeticDatum datum, Axis[] axisOrder, String identifier, String name, String version, 102 String description, String areaOfUse ) { 103 this( datum, axisOrder, new String[] { identifier }, new String[] { name }, new String[] { version }, 104 new String[] { description }, new String[] { areaOfUse } ); 105 } 106 107 /** 108 * @param datum 109 * @param axisOrder 110 * @param identifier 111 */ 112 public GeocentricCRS( GeodeticDatum datum, Axis[] axisOrder, String identifier ) { 113 this( datum, axisOrder, new String[] { identifier }, null, null, null, null ); 114 } 115 116 /** 117 * Geocentric crs with it's axis pointing to x=front, y=east, z=north. 118 * 119 * @param datum 120 * @param identifier 121 * @param name 122 */ 123 public GeocentricCRS( GeodeticDatum datum, String identifier, String name ) { 124 this( datum, new Axis[] { new Axis( "X", Axis.AO_FRONT ), new Axis( "Y", Axis.AO_EAST ), 125 new Axis( "Z", Axis.AO_NORTH ) }, new String[] { identifier }, new String[] { name }, 126 null, null, null ); 127 } 128 129 /** 130 * @param transformations 131 * @param usedDatum 132 * @param axisOrder 133 * @param identity 134 */ 135 public GeocentricCRS( List<PolynomialTransformation> transformations, GeodeticDatum usedDatum, Axis[] axisOrder, 136 Identifiable identity ) { 137 super( transformations, usedDatum, axisOrder, identity ); 138 } 139 140 @Override 141 public int getType() { 142 return CoordinateSystem.GEOCENTRIC_CRS; 143 } 144 145 @Override 146 public int getDimension() { 147 return 3; 148 } 149 }