Revision 40765
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.labeling.app/org.gvsig.labeling.app.mainplugin/src/main/java/org/gvsig/labeling/placements/PolygonPlacementInside.java | ||
---|---|---|
79 | 79 |
if (cancel.isCanceled()) return CannotPlaceLabel.NO_PLACES; |
80 | 80 |
|
81 | 81 |
Point int_po = null; |
82 |
|
|
82 | 83 |
try { |
84 |
|
|
85 |
Geometry vp_env = vp.getAdjustedEnvelope().getGeometry(); |
|
86 |
if (geom.intersects(vp_env)) { |
|
87 |
geom = geom.intersection(vp_env); |
|
88 |
} |
|
89 |
|
|
83 | 90 |
int_po = geom.getInteriorPoint(); |
84 | 91 |
} catch (Exception e) { |
85 | 92 |
logger.error("While getting interior point.", e); |
Also available in: Unified diff