Changes between Version 1 and Version 2 of LayerAlgebra


Ignore:
Timestamp:
Aug 6, 2012, 6:35:37 AM (12 years ago)
Author:
Ari Jolma
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LayerAlgebra

    v1 v2  
    11= GDAL Layer Algebra =
    22
    3 This page describes in detail the GDAL layer algebra.
     3This page describes the GDAL layer algebra in detail and gives examples.
    44
    55== Common ideas ==
    66
     7The GDAL layer algebra is implemented as methods in the OGRLayer class. The C API is similar to the methods except that the object itself is the first argument and that the layer pointers are validated. In the Swig bindings these are again methods in Layer class.
     8
     9Each method works on the object itself (the "input" layer) and a second operand (the "method" layer) and produces a result layer. The result layer needs to exist when calling any of these methods (this may not be the case in bindings languages).
     10
     11The schema of the result layer can be user-defined (the layer definition of the result layer has one or more fields) or it can be created by the method. If created, it will be either the schema of the input layer or the combined schema of input and method layers, depending on the method.
     12
     13Each method may accept additional options.
     14
     15A progress callback function can be used with each method.
     16
     17The methods return an error code and set an error context if an error occurs or the execution is interrupted. This may have been converted into an exception in bindings languages.
     18
    719== Intersection ==
     20
     21An intersection is a set of features, which represent the common areas of two layers.
     22
     23[[Image(Intersection.jpg)]]
    824
    925== Union ==
    1026
    11 == SymDifference ==
     27== !SymDifference ==
    1228
    1329== Identity ==