[Qgis-developer] Python QGis Geometry.transform

Giuseppe Sucameli brush.tyler at gmail.com
Thu Dec 3 08:53:25 EST 2009


Hi,
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.

Bye.

-- 
Giuseppe Sucameli


More information about the Qgis-developer mailing list