Revision 3492
Added by ben leinfelder about 17 years ago
src/edu/ucsb/nceas/metacat/spatial/SpatialQuery.java | ||
---|---|---|
130 | 130 |
Feature feature = (Feature) i.next(); |
131 | 131 |
|
132 | 132 |
Geometry geom = (Geometry)feature.getAttribute(0); |
133 |
if ( geom.intersects( bboxGeom ) ) {
|
|
133 |
if ( geom.within( bboxGeom ) ) {
|
|
134 | 134 |
// assumes docid is attribute number 1 |
135 | 135 |
// in a zero-based index of dbf columns |
136 | 136 |
docids.add( (String) feature.getAttribute(1) ); |
Also available in: Unified diff
use "within" rather than "intersects" as the spatial search criteria for dataset location.
(see bugzilla #2972)