Revision 35485 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/FLyrVect.java

View differences:

FLyrVect.java
1236 1236
        return (FeatureStore) getDataStore();
1237 1237
    }
1238 1238

  
1239
    /**
1240
     * @deprecated use instead {@link #queryByPoint(org.gvsig.fmap.geom.primitive.Point, double, FeatureType)}
1241
     */
1239 1242
    public FeatureSet queryByPoint(Point2D mapPoint,
1240 1243
        double tol,
1241 1244
        FeatureType featureType) throws DataException {
1245
        logger.warn("Deprecated use of queryByPoint.");
1242 1246
        GeometryManager manager = GeometryLocator.getGeometryManager();
1243 1247
        org.gvsig.fmap.geom.primitive.Point center;
1244 1248
        try {
......
1256 1260
        }
1257 1261
    }
1258 1262

  
1263
    public FeatureSet queryByPoint(org.gvsig.fmap.geom.primitive.Point point,
1264
        double tol,
1265
        FeatureType featureType) throws DataException {
1266
        GeometryManager manager = GeometryLocator.getGeometryManager();
1267
        try {
1268
            Circle circle =
1269
                (Circle) manager.create(TYPES.CIRCLE, SUBTYPES.GEOM2D);
1270
            circle.setPoints(point, tol);
1271
            return queryByGeometry(circle, featureType);
1272
        } catch (org.gvsig.fmap.geom.exception.CreateGeometryException e) {
1273
            throw new CreateGeometryException(TYPES.CIRCLE, SUBTYPES.GEOM2D, e);
1274
        }
1275
    }
1276

  
1259 1277
    public FeatureSet queryByGeometry(Geometry geom, FeatureType featureType) throws DataException {
1260 1278
        FeatureQuery featureQuery = featureStore.createFeatureQuery();
1261 1279
        String geomName =
......
1316 1334
            getFeatureStore().getDefaultFeatureType()).getDynObjectSet(fast);
1317 1335
    }
1318 1336

  
1337
    public DynObjectSet getInfo(org.gvsig.fmap.geom.primitive.Point p,
1338
        double tolerance) throws LoadLayerException, DataException {
1339
        return queryByPoint(p,tolerance, getFeatureStore().getDefaultFeatureType()).getDynObjectSet(true);
1340
    }
1341
    
1319 1342
    public void legendCleared(LegendClearEvent event) {
1320 1343
        // this.updateDrawVersion(); TODO
1321 1344
        LegendChangedEvent e =

Also available in: Unified diff