Revision 35625 branches/dal_time_support/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/FLyrVect.java
FLyrVect.java | ||
---|---|---|
1251 | 1251 |
return (FeatureStore) getDataStore(); |
1252 | 1252 |
} |
1253 | 1253 |
|
1254 |
/** |
|
1255 |
* @deprecated use instead {@link #queryByPoint(org.gvsig.fmap.geom.primitive.Point, double, FeatureType)} |
|
1256 |
*/ |
|
1254 | 1257 |
public FeatureSet queryByPoint(Point2D mapPoint, |
1255 | 1258 |
double tol, |
1256 | 1259 |
FeatureType featureType) throws DataException { |
1260 |
logger.warn("Deprecated use of queryByPoint."); |
|
1257 | 1261 |
GeometryManager manager = GeometryLocator.getGeometryManager(); |
1258 | 1262 |
org.gvsig.fmap.geom.primitive.Point center; |
1259 | 1263 |
try { |
... | ... | |
1271 | 1275 |
} |
1272 | 1276 |
} |
1273 | 1277 |
|
1278 |
public FeatureSet queryByPoint(org.gvsig.fmap.geom.primitive.Point point, |
|
1279 |
double tol, |
|
1280 |
FeatureType featureType) throws DataException { |
|
1281 |
GeometryManager manager = GeometryLocator.getGeometryManager(); |
|
1282 |
try { |
|
1283 |
Circle circle = |
|
1284 |
(Circle) manager.create(TYPES.CIRCLE, SUBTYPES.GEOM2D); |
|
1285 |
circle.setPoints(point, tol); |
|
1286 |
return queryByGeometry(circle, featureType); |
|
1287 |
} catch (org.gvsig.fmap.geom.exception.CreateGeometryException e) { |
|
1288 |
throw new CreateGeometryException(TYPES.CIRCLE, SUBTYPES.GEOM2D, e); |
|
1289 |
} |
|
1290 |
} |
|
1291 |
|
|
1274 | 1292 |
public FeatureSet queryByGeometry(Geometry geom, FeatureType featureType) throws DataException { |
1275 | 1293 |
FeatureQuery featureQuery = featureStore.createFeatureQuery(); |
1276 | 1294 |
String geomName = |
... | ... | |
1331 | 1349 |
getFeatureStore().getDefaultFeatureType()).getDynObjectSet(fast); |
1332 | 1350 |
} |
1333 | 1351 |
|
1352 |
public DynObjectSet getInfo(org.gvsig.fmap.geom.primitive.Point p, |
|
1353 |
double tolerance) throws LoadLayerException, DataException { |
|
1354 |
return queryByPoint(p,tolerance, getFeatureStore().getDefaultFeatureType()).getDynObjectSet(true); |
|
1355 |
} |
|
1356 |
|
|
1334 | 1357 |
public void legendCleared(LegendClearEvent event) { |
1335 | 1358 |
// this.updateDrawVersion(); TODO |
1336 | 1359 |
LegendChangedEvent e = |
Also available in: Unified diff