Skip to content

Commit

Permalink
Add note about dataset object destruction with layers
Browse files Browse the repository at this point in the history
Updates #62
  • Loading branch information
shawnlaffan committed Oct 27, 2023
1 parent db2f63a commit 02c2ba2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Geo/GDAL/FFI/Layer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,13 @@ A set of (vector) features having a same schema (the same Defn
object). Obtain a layer object by the CreateLayer or GetLayer method
of a vector dataset object.
Note that the system stores a reference to the parent dataset for
each layer object to ensure layer objects remain viable.
If you are relying on a dataset object's destruction to
flush its dataset cache and then close it then you need to ensure
all associated child layers are also destroyed. Failure to do so could
lead to corrupt data when reading in newly written files.
=head1 METHODS
=head2 GetDefn
Expand Down

0 comments on commit 02c2ba2

Please sign in to comment.