[Qgis-developer] Python QGis Geometry.transform

motta.luiz at gmail.com motta.luiz at gmail.com
Thu Dec 3 08:06:23 EST 2009


Hi All,

I need transform geometry of one feature to other reference system.

The API of geometry show the method transform
int QgsGeometry::transform(const QgsCoordinateTransform)

But in the Python, this methdos not exist.
Console Python QGis
 > from qgis import
 > core geom = core.QgsGeometry()
 > print dir(geom.transform)
exceptions.AttributeError: 'QgsGeometry' object has no attribute 'transform'

I tested with:
Ubuntu 9.10, QGis 1.3.0-Mimas code revision "exported"
Windows XP, QGis 1.3-Mimas code revision 11638

Do someone use this method in Python ?

Thank you Luiz.


More information about the Qgis-developer mailing list