[Qgis-developer] Python QGis Geometry.transform
brush.tyler at gmail.com
Thu Dec 3 08:53:25 EST 2009
On Thu, Dec 3, 2009 at 2:06 PM, motta.luiz at gmail.com
<motta.luiz at gmail.com> wrote:
> 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'
Sure, it's a method, but you use it as an attribute...
There are missing parenthesis and method argument.
More information about the Qgis-developer