Changes between Version 6 and Version 7 of PythonGotchas
- Timestamp:
- Sep 20, 2010, 9:33:28 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PythonGotchas
v6 v7 93 93 }}} 94 94 95 If you read the GDAL and OGR API documentation carefully, you will see that the functions that end in "Ref" mention that they transfer ownership of objects. This is a clue that the problem could occur. Be careful when using the "Ref" functions. Also watch out for functions that end in "Directly", such as {{{SetGeometryDirectly()}}}.95 If you read the GDAL and OGR API documentation carefully, you will see that the functions that end in "Ref" mention that obtain references to internal objects, rather than making new copies. This is a clue that the problem could occur. Be careful when using the "Ref" functions. Also watch out for functions that end in "Directly", such as {{{SetGeometryDirectly()}}}, which transfer ownership of internal objects: 96 96 97 97 {{{