A minimalist package for affine transformations of Python geospatial objects (in a GeoJSON format, say) would be handy, but I'm not aware of one. Numpy certainly has what you need, and matplotlib has some higher level classes based on numpy such as http://matplotlib.sourceforge.net/devel/transformations.html#matplotlib.transforms.Affine2D.
Cheers, On Mon, Jan 17, 2011 at 10:14 AM, simo <[email protected]> wrote: > Hi all, > > As preamble, I have to say I'm new to Python and don't know (much) > about Java - I come from a PHP world. > > Anyway, since several months I follow GiS python activity, and I was > waiting for the day I'll have opportunity and overall time to work > with shapely and others open source python projects .... > > Finally that time has come and I'm trying to adapt Julien Gaffuri's > SmallestSurroundingRectangle to python (available here : > http://opencarto.svn.sourceforge.net/viewvc/opencarto/trunk/src/main/java/org/opencarto/geomalgo/SmallestSurroundingRectangle.java?revision=168&view=markup > ) > > His algorithm call a Rotate method and I was not able to find > something similar into Python. > Do you know if such method is included somewhere? > > the java rotation class is available at : > http://opencarto.svn.sourceforge.net/viewvc/opencarto/trunk/src/main/java/org/opencarto/geomalgo/Rotation.java?revision=176&view=markup > > subsidiary question : what about a scaling method ? > > the scaling class is available at : > http://opencarto.svn.sourceforge.net/viewvc/opencarto/trunk/src/main/java/org/opencarto/geomalgo/Scaling.java?revision=168&view=markup > > many thanks, > > simo -- Sean
