[OpenLayers-Dev] Feature.Vector.atPoint() and Geometry.intersects()

Tim Schaub tschaub at openplans.org
Wed Dec 12 13:21:49 EST 2007


Attila Csipa wrote:
> Hi, I was looking at the ticket mentioned below, are the tests from GEOES 
> mentioned by Chris Schmit committed somewhere (I can't seem to find them in 
> the tests dir) ? I worked on JTS on similar things a while back and as I need 
> this functionality for one of my ongoing projects, I actually might be of 
> help, just need to get in focus where things are. I did not check on 
> OpenLayers in quite some time but it seemed a good fit for a task so I 
> checked out the latest stuff and was surprised how much it has progressed in 
> the last year and a half.

I've put point in poly and geometry intersection methods in my geom sandbox:

All but 30 or so of the 500 geos tests pass (see the geometry tests in 
the test dir) - and I know what the problem is, but I haven't stopped to 
fix it yet.


See geometry intersection in action here:

> On Monday 10 December 2007 13:42:10 Pierre GIRAUD wrote:
>> You're right, the atPoint method intended behavior is to check whether
>> a point in contained into a geometry bounding box. This was
>> implemented a while ago as an simple way to simulate event handling in
>> some cases, though it's far away from being perfect.
>> About 2 months ago, Tim Schaub proposed a real intersection method
>> support [1]. It's still in progress and help on this would be much
>> appreciated.
>> Regards,
>> Pierre
>> [1] http://trac.openlayers.org/ticket/1072
>> On Dec 10, 2007 1:34 PM, Attila Csipa <plists at prometheus.org.yu> wrote:
>>> I have a question about this method, the description says "Determins
>>> whether the feature intersects with the specified location.", however in
>>> my experience this returns true if the given point is in the feature's
>>> _bounding box_, not the feature itself. Is this the intended behaviour (a
>>> bit of clarification of the description would help in that case), or is
>>> this a 'todo' style item for which bbox matching is a quick hack ? I'm
>>> using the latest svn release of openlayers. Sorry if this has come up
>>> earlier, I joined the list fairly recently and found no reference to this
>>> on issue on google. _______________________________________________
>>> Users mailing list
>>> Users at openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
> !DSPAM:4033,475f1d4297695332866982!

More information about the Dev mailing list