Revision 21102 branches/v2_0_0_prep/libraries/libFMap/src/org/gvsig/fmap/mapcontext/layers/FLyrVectLinkProperties.java

View differences:

FLyrVectLinkProperties.java
6 6
import java.net.URISyntaxException;
7 7
import java.util.BitSet;
8 8

  
9
import org.gvsig.fmap.drivers.exceptions.VisitorException;
9
import org.gvsig.data.ReadException;
10 10
import org.gvsig.fmap.mapcontext.layers.operations.AlphanumericData;
11 11
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
12 12

  
13
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
14
import com.hardcode.gdbms.engine.data.DataSource;
15 13

  
16 14
/**
17 15
 * This class extends AbstractLinkProperties and implements the method to get an array of URI
18 16
 * using a point2D and a tolerance. This class extends AstractLinkProperties to add HyperLink
19
 * to Vectorial Layer(FLyrVect) 
17
 * to Vectorial Layer(FLyrVect)
20 18
 */
21 19

  
22 20
public class FLyrVectLinkProperties extends AbstractLinkProperties{
......
32 30
    }
33 31

  
34 32
    /**
35
     * Constructor. Constructs a LinkProperties with the information that receives 
33
     * Constructor. Constructs a LinkProperties with the information that receives
36 34
     * @param tipo
37 35
     * @param fieldName
38 36
     * @param extension
......
42 40
        setField(fieldName);
43 41
        setExt(extension);
44 42
    }
45
    
43

  
46 44
    /**
47 45
     * Creates an array of URI. With the point and the tolerance makes a query to the layer
48 46
     * and gets the geometries that contains the point with a certain error (tolerance).
49 47
     * For each one of this geometries creates one URI and adds it to the array
50
     * @param layer 
48
     * @param layer
51 49
     * @param point
52 50
     * @param tolerance
53
     * @return Array of URI 
51
     * @return Array of URI
54 52
     */
55 53
    public URI[] getLink(FLayer layer, Point2D point, double tolerance)  {
56 54
        //Sacado de la clase LinkListener
......
64 62
        try {
65 63
            newBitSet = lyrVect.queryByPoint(point, tolerance);
66 64
            bitset = newBitSet;
67
        } catch (ReadDriverException e) {
65
        } catch (ReadException e) {
68 66
            return null;
69
        } catch (VisitorException e) {
70
            return null;
71 67
        }
72 68

  
73 69
        //Si el bitset creado no est? vac?o creamos el vector de URLS correspondientes
......
129 125
                    System.out.println("Error");
130 126
                }
131 127

  
132
            } catch (ReadDriverException e) {
128
            } catch (ReadException e) {
133 129
                //Posible error
134 130
                System.out.println("Error");
135 131
            }

Also available in: Unified diff