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 <[email protected]>:
> 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
> [email protected]
> http://lists.gispython.org/mailman/listinfo/community



-- 
Sean Gillies
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to