Discussion:
[Community] Creating with Shapely a circle with a meters specified radius
Christian Espinoza
2013-01-10 15:43:32 UTC
Permalink
circle = Point(1,1).buffer(1)
I'm creating a circle of 1x1 and with a radius of 1 unit...

How can I create a circle using decimal coordinates for the point and
circle = Point(-20.212446,-70.150183).buffer(?)
Thanks in advance.
Christian.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20130110/199a55a2/attachment.htm>
Oleksandr Huziy
2013-01-10 15:50:15 UTC
Permalink
It works for me. But this circle is a polygon...
Post by Christian Espinoza
circle = Point(-20.212446,-70.150183).buffer(500)
Cheers
--
Oleksandr (Sasha) Huziy


2013/1/10 Christian Espinoza <chespinoza at gmail.com>
Post by Christian Espinoza
circle = Point(1,1).buffer(1)
I'm creating a circle of 1x1 and with a radius of 1 unit...
How can I create a circle using decimal coordinates for the point and
circle = Point(-20.212446,-70.150183).buffer(?)
Thanks in advance.
Christian.
_______________________________________________
Community mailing list
Community at lists.gispython.org
http://lists.gispython.org/mailman/listinfo/community
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20130110/f9420e9f/attachment.htm>
Stefano Costa
2013-01-10 16:00:04 UTC
Permalink
Post by Oleksandr Huziy
It works for me. But this circle is a polygon...
circle = Point(-20.212446,-70.150183).buffer(500)
This is unavoidable, as circles and arcs are not part of OGC simple
features so they are approximated by polygons. See

http://toblerity.github.com/shapely/manual.html#object.buffer

for more details on the "resolution" parameter and how it affects the
results of the buffer operation.

Best regards
steko
Oliver Tonnhofer
2013-01-10 16:01:27 UTC
Permalink
Post by Oleksandr Huziy
It works for me. But this circle is a polygon...
circle = Point(-20.212446,-70.150183).buffer(500)
I think Christian wants a buffer of 500 meters around the lat/long point (-20.212446,-70.150183) which is not really possible without transforming the point to a projected SRS.
Loading...