[Community] Compute centroid from BBOX

Sean Gillies sean.gillies at gmail.com
Wed Feb 22 21:30:24 EET 2012


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

2012/2/22 Andrés Maneiro <amaneiro at icarto.es>:
> 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


More information about the Community mailing list