Revision 23195
branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/index/SpatialIndex.java | ||
---|---|---|
57 | 57 |
|
58 | 58 |
import java.util.List; |
59 | 59 |
|
60 |
import org.gvsig.fmap.data.feature.FeatureID; |
|
60 | 61 |
import org.gvsig.fmap.geom.primitive.Envelope; |
61 | 62 |
|
62 | 63 |
/** |
63 | 64 |
* gvSIG spatial index |
64 | 65 |
* |
66 |
* |
|
67 |
* |
|
65 | 68 |
* @author azabala |
66 | 69 |
* @author jyarza |
67 | 70 |
*/ |
... | ... | |
75 | 78 |
* @param rect |
76 | 79 |
* @return |
77 | 80 |
*/ |
78 |
public List query(Envelope env) throws IndexException; |
|
81 |
public List query(Envelope env) throws IndexException;
|
|
79 | 82 |
|
80 | 83 |
/** |
81 | 84 |
* @param rect |
82 |
* @param index
|
|
85 |
* @param fid
|
|
83 | 86 |
*/ |
84 |
public void insert(Envelope env, int index);
|
|
87 |
public void insert(Envelope env, FeatureID fid);
|
|
85 | 88 |
/** |
86 | 89 |
* |
87 | 90 |
* @param rect |
88 |
* @param index
|
|
91 |
* @param fid
|
|
89 | 92 |
*/ |
90 |
public void delete(Envelope env, int index);
|
|
93 |
public void delete(Envelope env, FeatureID fid);
|
|
91 | 94 |
|
92 | 95 |
//TODO Hacer un overwrite and update |
93 | 96 |
} |
branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/index/Index.java | ||
---|---|---|
28 | 28 |
|
29 | 29 |
package org.gvsig.fmap.data.index; |
30 | 30 |
|
31 |
import java.util.List; |
|
32 |
|
|
31 | 33 |
/** |
32 | 34 |
* |
33 | 35 |
* @author jyarza |
34 | 36 |
* |
35 | 37 |
*/ |
36 | 38 |
public interface Index { |
37 |
|
|
39 |
|
|
40 |
public List query(QueryParameters params) throws IndexException; |
|
41 |
|
|
38 | 42 |
} |
39 | 43 |
|
branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/index/SpatialQueryParameters.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2008 {{Company}} {{Task}} |
|
26 |
*/ |
|
27 |
|
|
28 |
|
|
29 |
package org.gvsig.fmap.data.index; |
|
30 |
|
|
31 |
import org.gvsig.fmap.geom.primitive.Envelope; |
|
32 |
|
|
33 |
|
|
34 |
public class SpatialQueryParameters implements QueryParameters { |
|
35 |
|
|
36 |
private Envelope envelope = null; |
|
37 |
|
|
38 |
public Envelope getEnvelope() { |
|
39 |
return envelope; |
|
40 |
} |
|
41 |
|
|
42 |
public void setEnvelope(Envelope envelope) { |
|
43 |
this.envelope = envelope; |
|
44 |
} |
|
45 |
|
|
46 |
} |
|
47 |
|
branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/index/QueryParameters.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
|
|
23 |
/* |
|
24 |
* AUTHORS (In addition to CIT): |
|
25 |
* 2008 {{Company}} {{Task}} |
|
26 |
*/ |
|
27 |
|
|
28 |
|
|
29 |
package org.gvsig.fmap.data.index; |
|
30 |
|
|
31 |
|
|
32 |
public interface QueryParameters { |
|
33 |
|
|
34 |
} |
|
35 |
|
Also available in: Unified diff