<div dir="ltr">Thanks a lot Angelos, finally I was able to get this with GEOS lib and Shapely:<div><br></div><div>>>>from shapely.geometry import Point<br></div><div><div>>>>from shapely.geometry import Polygon</div>
</div><div style>>>>coords =[(x1,y1),(x2,y2),(x3,y3)]</div><div style>>>>polygon = Polygon(coords)<br></div><div style>>>>polygon.contains(Point(x,y))<br></div><div style>>>>true</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/9  <span dir="ltr"><<a href="mailto:owslib-users-request@lists.osgeo.org" target="_blank">owslib-users-request@lists.osgeo.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send OWSLib-users mailing list submissions to<br>
        <a href="mailto:owslib-users@lists.osgeo.org">owslib-users@lists.osgeo.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/owslib-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/owslib-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:owslib-users-request@lists.osgeo.org">owslib-users-request@lists.osgeo.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:owslib-users-owner@lists.osgeo.org">owslib-users-owner@lists.osgeo.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of OWSLib-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Fwd: Question about (Christian Espinoza)<br>
   2. Re: Fwd: Question about (Angelos Tzotsos)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 9 Jan 2013 15:41:38 -0300<br>
From: Christian Espinoza <<a href="mailto:chespinoza@gmail.com">chespinoza@gmail.com</a>><br>
To: <a href="mailto:owslib-users@lists.osgeo.org">owslib-users@lists.osgeo.org</a><br>
Subject: [OWSLib-users] Fwd: Question about<br>
Message-ID:<br>
        <<a href="mailto:CAGBwpM00H5-vAgfo6c3u4hLz-wnsguGY8Ev%2BN45Lqy6FDtJfUw@mail.gmail.com">CAGBwpM00H5-vAgfo6c3u4hLz-wnsguGY8Ev+N45Lqy6FDtJfUw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hello All, I'm working with google maps to get coordinates to build a<br>
polygon and I want to know if with owslib I can check if a point(x,y) is<br>
into this polygon??<br>
<br>
Is possible do that with owslib?<br>
<br>
Thanks in advance.<br>
Christian.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/owslib-users/attachments/20130109/89a99212/attachment-0001.html" target="_blank">http://lists.osgeo.org/pipermail/owslib-users/attachments/20130109/89a99212/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 09 Jan 2013 20:47:44 +0200<br>
From: Angelos Tzotsos <<a href="mailto:gcpp.kalxas@gmail.com">gcpp.kalxas@gmail.com</a>><br>
To: <a href="mailto:owslib-users@lists.osgeo.org">owslib-users@lists.osgeo.org</a><br>
Subject: Re: [OWSLib-users] Fwd: Question about<br>
Message-ID: <<a href="mailto:50EDBB50.1090304@gmail.com">50EDBB50.1090304@gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br>
<br>
On 01/09/2013 08:41 PM, Christian Espinoza wrote:<br>
> Hello All, I'm working with google maps to get coordinates to build a<br>
> polygon and I want to know if with owslib I can check if a point(x,y) is<br>
> into this polygon??<br>
><br>
> Is possible do that with owslib?<br>
><br>
> Thanks in advance.<br>
> Christian.<br>
><br>
><br>
><br>
> _______________________________________________<br>
> OWSLib-users mailing list<br>
> <a href="mailto:OWSLib-users@lists.osgeo.org">OWSLib-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/owslib-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/owslib-users</a><br>
Hi Christian,<br>
<br>
Please take a look at Shapely<br>
<a href="http://pypi.python.org/pypi/Shapely" target="_blank">http://pypi.python.org/pypi/Shapely</a><br>
<br>
Cheers,<br>
Angelos<br>
<br>
--<br>
Angelos Tzotsos<br>
Remote Sensing Laboratory<br>
National Technical University of Athens<br>
<a href="http://users.ntua.gr/tzotsos" target="_blank">http://users.ntua.gr/tzotsos</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.osgeo.org/pipermail/owslib-users/attachments/20130109/30adcd11/attachment-0001.html" target="_blank">http://lists.osgeo.org/pipermail/owslib-users/attachments/20130109/30adcd11/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
OWSLib-users mailing list<br>
<a href="mailto:OWSLib-users@lists.osgeo.org">OWSLib-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/owslib-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/owslib-users</a><br>
<br>
<br>
End of OWSLib-users Digest, Vol 3, Issue 4<br>
******************************************<br>
</blockquote></div><br></div>