001 //$HeadURL: http://svn.wald.intevation.org/svn/deegree/base/trunk/src/org/deegree/graphics/transformation/GeoTransform.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 package org.deegree.graphics.transformation;
037
038 import org.deegree.model.spatialschema.Envelope;
039 import org.deegree.model.spatialschema.Position;
040
041 /**
042 * <code>GeoTransformInterface</code> declares the methods which have to be implemented by each
043 * class that executes a geographical coordinat transformation.
044 *
045 *
046 * @author <a href="mailto:poth@lat-lon.de">Andreas Poth</a>
047 * @author last edited by: $Author: mschneider $
048 *
049 * @version $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Thu, 18 Jun 2009) $
050 */
051 public interface GeoTransform {
052 /**
053 *
054 *
055 * @param xdest
056 *
057 * @return source x coordinate
058 */
059 public double getSourceX( double xdest );
060
061 /**
062 *
063 *
064 * @param xsource
065 *
066 * @return destination x coordinate
067 */
068 public double getDestX( double xsource );
069
070 /**
071 *
072 *
073 * @param ydest
074 *
075 * @return source y coordinate
076 */
077 public double getSourceY( double ydest );
078
079 /**
080 *
081 *
082 * @param ysource
083 *
084 * @return destination y coordinate
085 */
086 public double getDestY( double ysource );
087
088 /**
089 * @param rect
090 *
091 */
092 public void setSourceRect( Envelope rect );
093
094 /**
095 *
096 *
097 * @param xMin
098 * @param yMin
099 * @param xMax
100 * @param yMax
101 */
102 public void setSourceRect( double xMin, double yMin, double xMax, double yMax );
103
104 /**
105 * @return source rectange
106 *
107 */
108 public Envelope getSourceRect();
109
110 /**
111 * @param rect
112 *
113 */
114 public void setDestRect( Envelope rect );
115
116 /**
117 *
118 *
119 * @param xMin
120 * @param yMin
121 * @param xMax
122 * @param yMax
123 */
124 public void setDestRect( double xMin, double yMin, double xMax, double yMax );
125
126 /**
127 * @return destination rectange
128 *
129 */
130 public Envelope getDestRect();
131
132 /**
133 *
134 *
135 * @param point
136 *
137 * @return source position
138 */
139 public Position getSourcePoint( Position point );
140
141 /**
142 *
143 *
144 * @param point
145 *
146 * @return destination position
147 */
148 public Position getDestPoint( Position point );
149 }