Skip to main content
correction from Damien below.
Source Link
Eric H.
  • 253
  • 2
  • 8

If an object A is a GeometryCollection, its content can be accessed using :

for geom in A.geoms:
    ...

except if A is a GEOMETRYCOLLECTION EMPTY.

If an object A is a GeometryCollection, its content can be accessed using :

for geom in A:
    ...

except if A is a GEOMETRYCOLLECTION EMPTY.

If an object A is a GeometryCollection, its content can be accessed using :

for geom in A.geoms:
    ...

except if A is a GEOMETRYCOLLECTION EMPTY.

Source Link
Eric H.
  • 253
  • 2
  • 8

If an object A is a GeometryCollection, its content can be accessed using :

for geom in A:
    ...

except if A is a GEOMETRYCOLLECTION EMPTY.