Changes between Version 7 and Version 8 of PythonGotchas


Ignore:
Timestamp:
Sep 20, 2010, 9:34:10 AM (14 years ago)
Author:
jjr8
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PythonGotchas

    v7 v8  
    9393}}}
    9494
    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:
     95If 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:
    9696
    9797{{{