Changes between Version 6 and Version 7 of PythonGotchas


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

--

Legend:

Unmodified
Added
Removed
Modified
  • PythonGotchas

    v6 v7  
    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 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()}}}.
     95If 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:
    9696
    9797{{{