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 @ 805
History | View | Annotate | Download (2 KB)
1 |
package org.cresques.cts; |
---|---|
2 |
|
3 |
import java.awt.geom.Point2D; |
4 |
|
5 |
import org.gvsig.tools.lang.Cloneable; |
6 |
|
7 |
/**
|
8 |
*
|
9 |
* @author "Luis W. Sevilla" (sevilla_lui@gva.es)
|
10 |
* @deprecated Use {@link org.gvsig.proj.CoordinateReferenceSystem} instead
|
11 |
*/
|
12 |
@Deprecated
|
13 |
public interface IProjection extends Cloneable{ |
14 |
|
15 |
/**
|
16 |
* Return the string representation of projection in the format.
|
17 |
*
|
18 |
* Return null if can't export to format
|
19 |
*
|
20 |
* @param format
|
21 |
* @return
|
22 |
*/
|
23 |
@Deprecated
|
24 |
public String export(String format); |
25 |
|
26 |
// @Deprecated
|
27 |
// public Point2D createPoint(double x, double y);
|
28 |
|
29 |
@Deprecated
|
30 |
public String getAbrev(); |
31 |
|
32 |
/**
|
33 |
* Devuelve getAbrev() mas los parametros de transformacion si los hay
|
34 |
* ej.: (EPSG:23030:proj@+proj...@...)
|
35 |
*
|
36 |
* @return getAbrev() o getAbrev()+parametros
|
37 |
*/
|
38 |
@Deprecated
|
39 |
public String getFullCode(); |
40 |
|
41 |
@Deprecated
|
42 |
public boolean isProjected(); |
43 |
|
44 |
@Deprecated
|
45 |
public IDatum getDatum();
|
46 |
|
47 |
/**
|
48 |
* First two parameters must be in meters.
|
49 |
* This should be changed (map units should be used) and then
|
50 |
* change the places where this method is used.
|
51 |
*
|
52 |
* @param minX in meters
|
53 |
* @param maxX in meters
|
54 |
* @param width in pixels (dots)
|
55 |
* @param dpi dots per inch
|
56 |
* @return Scale denominator ( the "X" in "1 : X" )
|
57 |
*/
|
58 |
//public double getScale(double minX, double maxX, double width, double dpi);
|
59 |
|
60 |
//public Rectangle2D getExtent(Rectangle2D extent,double scale,double wImage,double hImage,double mapUnits,double distanceUnits,double dpi);
|
61 |
|
62 |
// public void drawGrid(Graphics2D g, ViewPortData vp);
|
63 |
//
|
64 |
// public void setGridColor(Color c);
|
65 |
//
|
66 |
// public Color getGridColor();
|
67 |
|
68 |
/**
|
69 |
* Crea un ICoordTrans para transformar coordenadas
|
70 |
* desde el IProjection actual al dest.
|
71 |
* @param dest
|
72 |
* @return
|
73 |
*/
|
74 |
|
75 |
// public ICoordTrans getCT(IProjection dest);
|
76 |
//
|
77 |
// public Point2D toGeo(Point2D pt);
|
78 |
//
|
79 |
// public Point2D fromGeo(Point2D gPt, Point2D mPt);
|
80 |
} |