Revision 40372 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/CrossEnvelopeEvaluator.java
CrossEnvelopeEvaluator.java | ||
---|---|---|
9 | 9 |
import org.gvsig.fmap.geom.Geometry; |
10 | 10 |
import org.gvsig.fmap.geom.operation.GeometryOperationException; |
11 | 11 |
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException; |
12 |
import org.gvsig.fmap.geom.operation.towkt.ToWKT; |
|
13 | 12 |
import org.gvsig.fmap.geom.primitive.Envelope; |
14 | 13 |
import org.gvsig.tools.evaluator.AbstractEvaluator; |
15 | 14 |
import org.gvsig.tools.evaluator.EvaluatorData; |
... | ... | |
37 | 36 |
// this.projection=CRSFactory.getCRS(fad.getSRS()); |
38 | 37 |
// this.envelopeProjection=envelopeProjection; |
39 | 38 |
// ICoordTrans ct = null; |
40 |
// if (!this.srs.equals(fad.getSRS())) { // FIXME comparaci?n
|
|
39 |
// if (!this.srs.equals(fad.getSRS())) { // FIXME comparaci�n
|
|
41 | 40 |
// ct = envelopeProjection.getCT(fad.getSRS()); |
42 | 41 |
// } |
43 | 42 |
// if (ct != null) { |
... | ... | |
90 | 89 |
public String getSQL() { |
91 | 90 |
if (envelopeWKT == null) { |
92 | 91 |
try { |
93 |
envelopeWKT = (String) envelope.getGeometry().invokeOperation( |
|
94 |
ToWKT.CODE, |
|
95 |
null); |
|
92 |
envelopeWKT = envelope.getGeometry().convertToWKT(); |
|
96 | 93 |
} catch (GeometryOperationNotSupportedException e) { |
97 | 94 |
throw new DataEvaluatorRuntimeException(e); |
98 | 95 |
} catch (GeometryOperationException e) { |
Also available in: Unified diff