Hi,

I need to find all the points which are contained on a particular polygon.
I have written the following query:

$query= $manager->createQueryBuilder('Message')
               ->field('location')->withinPolygon(array($x1, $y1), 
array($x2, $y2), array($x3, $y3),  array($x4, $y4))
               ->getQuery();

It works very well, but I can use only a polygon with 4 sides.
But the polygon that I receive in php has a number of sides that I don't 
know a priori.
So, how can I pass a polygon with n sides in withinPolygon?Is it possible?

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to