I am looking at the shapely documentation for transform
with the following examples:
<code>>>> from shapely import Point
>>> from shapely.ops import transform
>>> transform(Point(0, 0), lambda x:x + 1)
<POINT (1 1)>
</code>
<code>>>> from shapely import Point
>>> from shapely.ops import transform
>>> transform(Point(0, 0), lambda x:x + 1)
<POINT (1 1)>
</code>
>>> from shapely import Point
>>> from shapely.ops import transform
>>> transform(Point(0, 0), lambda x:x + 1)
<POINT (1 1)>
However, when I try it, it does this:
<code>>>>transform(Point(0, 0), lambda x: x + 1)
Traceback (most recent call last):
File "xxxxxx.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "xxxxxxxxxxxsite-packagesshapelyops.py", line 264, in transform
if geom.is_empty:
AttributeError: 'function' object has no attribute 'is_empty'
</code>
<code>>>>transform(Point(0, 0), lambda x: x + 1)
Traceback (most recent call last):
File "xxxxxx.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "xxxxxxxxxxxsite-packagesshapelyops.py", line 264, in transform
if geom.is_empty:
AttributeError: 'function' object has no attribute 'is_empty'
</code>
>>>transform(Point(0, 0), lambda x: x + 1)
Traceback (most recent call last):
File "xxxxxx.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "xxxxxxxxxxxsite-packagesshapelyops.py", line 264, in transform
if geom.is_empty:
AttributeError: 'function' object has no attribute 'is_empty'
What am I missing?