Revision 431 org.gvsig.projection/trunk/org.gvsig.projection.api/src/main/java/org/cresques/cts/ICoordTrans.java
ICoordTrans.java | ||
---|---|---|
35 | 35 |
|
36 | 36 |
public IProjection getPDest(); |
37 | 37 |
|
38 |
public Point2D convert(Point2D ptOrig, Point2D ptDest); |
|
38 |
public Point2D convert(Point2D ptOrig, Point2D ptDest) throws CoordTransRuntimeException;
|
|
39 | 39 |
|
40 | 40 |
/** |
41 | 41 |
* Reprojects the input rectangle and returns the minimum rectangle |
42 | 42 |
* containing the result of that reprojection (which was not |
43 | 43 |
* necessarily a rectangle). |
44 |
*
|
|
44 |
* |
|
45 | 45 |
* Reprojecting the diagonal an assuming that |
46 | 46 |
* the result is the diagonal of the rectangle to be returned is wrong |
47 |
*
|
|
47 |
* |
|
48 | 48 |
* Reprojecting the four corners and searching for min and max |
49 | 49 |
* to create the resulting rectangle is not completely accurate |
50 |
* but provides an acceptable approximation
|
|
51 |
*
|
|
50 |
* but provides an acceptable approximation |
|
51 |
* |
|
52 | 52 |
* @param rect |
53 | 53 |
* @return |
54 | 54 |
*/ |
55 |
public Rectangle2D convert(Rectangle2D rect); |
|
55 |
public Rectangle2D convert(Rectangle2D rect) throws CoordTransRuntimeException;
|
|
56 | 56 |
|
57 | 57 |
public ICoordTrans getInverted(); |
58 | 58 |
} |
Also available in: Unified diff