Discussion:
[Community] Compute centroid from BBOX
Andrés Maneiro
2012-02-22 16:24:41 UTC
Permalink
Hi all,

I've been testing shapely and fiona by growing some tiny scripts. Just to be
sure I understood well what each other does... does this make sense?
https://github.com/amaneiro/snippets/blob/master/gispython/compute-centroid-from-bbox.py

Andr?s
Sean Gillies
2012-02-22 19:30:24 UTC
Permalink
That looks right to me. Here's another example I just wrote in a more
functional style. All the code operating on a single record or its
parts has been moved to separate functions, which cleans up the code
involving the input and output files.

https://gist.github.com/1886782
Post by Andrés Maneiro
Hi all,
I've been testing shapely and fiona by growing some tiny scripts. Just to be
sure I understood well what each other does... does this make sense?
https://github.com/amaneiro/snippets/blob/master/gispython/compute-centroid-from-bbox.py
Andr?s
_______________________________________________
Community mailing list
Community at lists.gispython.org
http://lists.gispython.org/mailman/listinfo/community
--
Sean Gillies
Loading...