Ari Simmons
2014-02-25 09:46:03 UTC
Hello (again)...
I am attempting to re-create yet another Visvilingam simplify algorithm
using Shapely/Fiona (...this is mostly an effort to experiment with
Fiona/Shapely).
I have some test data (trivial in size -- polygons under 700 sq meters),
but in calculating the triangles (which all should be less then 700 sq.
meters)...I am pulling out areas in the millions.
I've exhaustively run through the way I am picking up points (and
calculating area)...so to try this a different way...could this all have
something to do with the Fiona reading/writing...? A projection issue
perhaps...? From what I can tell the file reads and outputs fine -- I am
just getting really large areas out of my 'not that big' polygons.
Anybody ever had something like this come up? Or have a tip...
P.S> I didn't really think posting my code is going to be that helpful, but
here is a link to my Git[2] if nothing I said above computes...since the
test data was small I added it in too...
[1]: https://pypi.python.org/pypi/Fiona . I modeled most the read/write
code based on what I found on the site ...but in my noobness might be
totally not getting it...
[2]: https://github.com/ARSimmons/Shapely_Fiona_Visvalingam_Simplify
my git, with code and the trivial size polygons if you want to see what I
mean...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20140225/ee0b706f/attachment.htm>
I am attempting to re-create yet another Visvilingam simplify algorithm
using Shapely/Fiona (...this is mostly an effort to experiment with
Fiona/Shapely).
I have some test data (trivial in size -- polygons under 700 sq meters),
but in calculating the triangles (which all should be less then 700 sq.
meters)...I am pulling out areas in the millions.
I've exhaustively run through the way I am picking up points (and
calculating area)...so to try this a different way...could this all have
something to do with the Fiona reading/writing...? A projection issue
perhaps...? From what I can tell the file reads and outputs fine -- I am
just getting really large areas out of my 'not that big' polygons.
Anybody ever had something like this come up? Or have a tip...
P.S> I didn't really think posting my code is going to be that helpful, but
here is a link to my Git[2] if nothing I said above computes...since the
test data was small I added it in too...
[1]: https://pypi.python.org/pypi/Fiona . I modeled most the read/write
code based on what I found on the site ...but in my noobness might be
totally not getting it...
[2]: https://github.com/ARSimmons/Shapely_Fiona_Visvalingam_Simplify
my git, with code and the trivial size polygons if you want to see what I
mean...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20140225/ee0b706f/attachment.htm>