Changes between Version 7 and Version 8 of PythonGotchas
- Timestamp:
- Sep 20, 2010, 9:34:10 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PythonGotchas
v7 v8 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 thatobtain 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:95 If you read the GDAL and OGR API documentation carefully, you will see that the functions that end in "Ref" 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 {{{