Revision 35753 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/FLyrVect.java
FLyrVect.java | ||
---|---|---|
1261 | 1261 |
|
1262 | 1262 |
} |
1263 | 1263 |
|
1264 |
/** |
|
1265 |
* It return the {@link FeatureSet} that intersects with the envelope. |
|
1266 |
* @param envelope |
|
1267 |
* envelope that defines the area for the query. |
|
1268 |
* @param featureType |
|
1269 |
* only the features with this feature type are used in |
|
1270 |
* the query. |
|
1271 |
* @return |
|
1272 |
* the set of features that intersect with the envelope. |
|
1273 |
* @throws DataException |
|
1274 |
*/ |
|
1264 | 1275 |
public FeatureSet queryByEnvelope(Envelope envelope, FeatureType featureType) throws DataException { |
1265 | 1276 |
return queryByEnvelope(envelope, featureType, null); |
1266 | 1277 |
} |
1267 | 1278 |
|
1279 |
/** |
|
1280 |
* It return the {@link FeatureSet} that intersects with the envelope. |
|
1281 |
* @param envelope |
|
1282 |
* envelope that defines the area for the query. |
|
1283 |
* @param featureType |
|
1284 |
* only the features with this feature type are used in |
|
1285 |
* the query. |
|
1286 |
* @param names |
|
1287 |
* the feature attributes that have to be checked. |
|
1288 |
* @return |
|
1289 |
* the set of features that intersect with the envelope. |
|
1290 |
* @throws DataException |
|
1291 |
*/ |
|
1268 | 1292 |
public FeatureSet queryByEnvelope(Envelope envelope, |
1269 | 1293 |
FeatureType featureType, |
1270 | 1294 |
String[] names) throws DataException { |
... | ... | |
1278 | 1302 |
String geomName = |
1279 | 1303 |
featureStore.getDefaultFeatureType() |
1280 | 1304 |
.getDefaultGeometryAttributeName(); |
1281 |
ContainsEnvelopeEvaluator iee =
|
|
1282 |
new ContainsEnvelopeEvaluator(envelope,
|
|
1305 |
IntersectsGeometryEvaluator iee =
|
|
1306 |
new IntersectsGeometryEvaluator(envelope.getGeometry(),
|
|
1283 | 1307 |
getMapContext().getViewPort().getProjection(), |
1284 | 1308 |
featureStore.getDefaultFeatureType(), |
1285 | 1309 |
geomName); |
Also available in: Unified diff