Revision 40382 branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/mapcontrol/MapControl.java
MapControl.java | ||
---|---|---|
2439 | 2439 |
double minDist = mapTolerance; |
2440 | 2440 |
double middleTol = mapTolerance * 0.5; |
2441 | 2441 |
Point2D mapPoint = point; |
2442 |
org.gvsig.fmap.geom.primitive.Envelope r; |
|
2443 |
com.vividsolutions.jts.geom.Envelope e = null; |
|
2442 |
org.gvsig.fmap.geom.primitive.Envelope r = null;
|
|
2443 |
// com.vividsolutions.jts.geom.Envelope e = null;
|
|
2444 | 2444 |
try { |
2445 | 2445 |
r = |
2446 | 2446 |
geomManager.createEnvelope(mapPoint.getX() - middleTol, |
... | ... | |
2448 | 2448 |
mapPoint.getY() + middleTol, SUBTYPES.GEOM2D); |
2449 | 2449 |
|
2450 | 2450 |
// e = Converter.convertEnvelopeToJTS(r); |
2451 |
e = ((com.vividsolutions.jts.geom.Geometry) r.getGeometry().invokeOperation(ToJTS.CODE, null)).getEnvelopeInternal(); |
|
2451 |
// e = ((com.vividsolutions.jts.geom.Geometry) r.getGeometry().invokeOperation(ToJTS.CODE, null)).getEnvelopeInternal();
|
|
2452 | 2452 |
|
2453 | 2453 |
} catch (Exception e1) { |
2454 | 2454 |
LOG.info("Error creating the envelope", e1); |
... | ... | |
2466 | 2466 |
// La lista de snappers est? siempre ordenada por prioridad. Los |
2467 | 2467 |
// de mayor |
2468 | 2468 |
// prioridad est?n primero. |
2469 |
List geoms = cache.query(e);
|
|
2469 |
List geoms = cache.query(r);
|
|
2470 | 2470 |
|
2471 | 2471 |
for (int i = 0; i < mapControlManager.getSnapperCount(); i++) |
2472 | 2472 |
{ |
Also available in: Unified diff