Sunburned,

Here's the source code for the FeatureDataset class (open source code
base ... ). 

public List query(Envelope envelope) {
    if (!envelope.intersects(getEnvelope())) {
        return new ArrayList();
    }
    ArrayList queryResult = new ArrayList();
    for (Iterator i = features.iterator(); i.hasNext();) {
        Feature feature = (Feature) i.next();
 
if(feature.getGeometry().getEnvelopeInternal().intersects(envelope))
        {
            queryResult.add(feature);
        }
    }
    return queryResult;
}

Looks like it's testing for intersections without an index ...

David Zwiers
Vivid Solutions 
Telephone : (250) 385-6040 
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Sunburned Surveyor
Sent: August 29, 2006 11:00 AM
To: [EMAIL PROTECTED]
Subject: [jump-devel] Fwd: The Query Method on the
FeatureCollectioninterface...

I should have included the JUMP Development Mailing List, since the
questions would apply to JUMP as well. I'll try to do this in the
future. :]

The Sunburned Surveyor

---------- Forwarded message ----------
From: Sunburned Surveyor <[EMAIL PROTECTED]>
Date: Aug 29, 2006 10:53 AM
Subject: The Query Method on the FeatureCollection interface...
To: "List for discussion of JPP development and use."
<jump-pilot-devel@lists.sourceforge.net>


The query() method of the FeatureCollection inteface allows you to
pass an Envelope as an argument and returns a set of Features. I had a
couple of questions about this method, and its default implementation
in the FeatureDataset class JUMP/OpenJUMP.

[1] Does this method return all Features contained by the Envelope, or
does it return all Feature contained and intersecting the Envelope?

[2] Does the FeatureDataset class use some sort of spatial indexing to
implement this method, or is it doing a linear search?

Thanks,

The Sunburned Surveyor
_______________________________________________
jump-devel mailing list
[EMAIL PROTECTED]
http://lists.refractions.net/mailman/listinfo/jump-devel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to