Revision 44005 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/ViewPort.java
ViewPort.java | ||
---|---|---|
637 | 637 |
public Point convertToMapPoint(Point2D pScreen) { |
638 | 638 |
Point2D p = toMapPoint(pScreen); |
639 | 639 |
try { |
640 |
return geomManager.createPoint(p.getX(), p.getY(), |
|
641 |
Geometry.SUBTYPES.GEOM2D); |
|
640 |
Point point = geomManager.createPoint( |
|
641 |
p.getX(), |
|
642 |
p.getY(), |
|
643 |
Geometry.SUBTYPES.GEOM2D |
|
644 |
); |
|
645 |
point.setProjection(this.getProjection()); |
|
646 |
return point; |
|
642 | 647 |
} |
643 | 648 |
catch (CreateGeometryException e) { |
644 | 649 |
// FIXME: Use a most especific exception. |
Also available in: Unified diff