root / org.gvsig.proj / branches / refactor2018 / org.gvsig.proj / org.gvsig.proj.lib / org.gvsig.proj.lib.api / src / main / java / org / cresques / cts / IProjection.java @ 827
History | View | Annotate | Download (2.97 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
package org.cresques.cts; |
25 |
|
26 |
import java.awt.geom.Point2D; |
27 |
|
28 |
import org.gvsig.proj.CoordinateReferenceSystem; |
29 |
import org.gvsig.tools.lang.Cloneable; |
30 |
|
31 |
/**
|
32 |
*
|
33 |
* @author "Luis W. Sevilla" (sevilla_lui@gva.es)
|
34 |
* @deprecated Use {@link org.gvsig.proj.CoordinateReferenceSystem} instead
|
35 |
*/
|
36 |
@Deprecated
|
37 |
public interface IProjection extends Cloneable{ |
38 |
|
39 |
/**
|
40 |
* Return the string representation of projection in the format.
|
41 |
*
|
42 |
* Return null if can't export to format
|
43 |
*
|
44 |
* @param format
|
45 |
* @return
|
46 |
*/
|
47 |
public String export(String format); |
48 |
|
49 |
public IDatum getDatum();
|
50 |
|
51 |
// TODO Quitar si no son necesarias.
|
52 |
public String getAbrev(); |
53 |
|
54 |
/**
|
55 |
* Devuelve getAbrev() mas los parametros de transformacion si los hay
|
56 |
* ej.: (EPSG:23030:proj@+proj...@...)
|
57 |
*
|
58 |
* @return getAbrev() o getAbrev()+parametros
|
59 |
*/
|
60 |
public String getFullCode(); |
61 |
|
62 |
/**
|
63 |
* Crea un ICoordTrans para transformar coordenadas
|
64 |
* desde el IProjection actual al dest.
|
65 |
* @param dest
|
66 |
* @return
|
67 |
*/
|
68 |
|
69 |
public ICoordTrans getCT(IProjection dest);
|
70 |
|
71 |
public Point2D toGeo(Point2D pt); |
72 |
|
73 |
public boolean isProjected(); |
74 |
|
75 |
/**
|
76 |
* First two parameters must be in meters.
|
77 |
* This should be changed (map units should be used) and then
|
78 |
* change the places where this method is used.
|
79 |
*
|
80 |
* @param minX in meters
|
81 |
* @param maxX in meters
|
82 |
* @param width in pixels (dots)
|
83 |
* @param dpi dots per inch
|
84 |
* @return Scale denominator ( the "X" in "1 : X" )
|
85 |
*/
|
86 |
public double getScale(double minX, double maxX, double width, double dpi); |
87 |
|
88 |
/**
|
89 |
* Gets an instance of a CoordinateReferenceSystem equivalent to this
|
90 |
* IProjection object. {@link CoordinateReferenceSystem} is the interface
|
91 |
* used to represent CRSs in the new API.
|
92 |
*
|
93 |
* @return
|
94 |
*/
|
95 |
public CoordinateReferenceSystem getCoordinateReferenceSystem();
|
96 |
|
97 |
//public Rectangle2D getExtent(Rectangle2D extent,double scale,double wImage,double hImage,double mapUnits,double distanceUnits,double dpi);
|
98 |
} |