| 1 | .. _api-zoo-format: |
|---|
| 2 | |
|---|
| 3 | ZOO.Format |
|---|
| 4 | ========== |
|---|
| 5 | |
|---|
| 6 | Base class for format reading/writing a variety of formats. |
|---|
| 7 | |
|---|
| 8 | Properties |
|---|
| 9 | ---------- |
|---|
| 10 | |
|---|
| 11 | .. list-table:: |
|---|
| 12 | :widths: 30 50 |
|---|
| 13 | :header-rows: 1 |
|---|
| 14 | |
|---|
| 15 | * - NAME |
|---|
| 16 | - DESCRIPTION |
|---|
| 17 | * - :ref:`options <options>` |
|---|
| 18 | - {Object} A reference to options passed to the constructor. |
|---|
| 19 | * - :ref:`externalProjection <externalProjection>` |
|---|
| 20 | - {ZOO.Projection} When passed a externalProjection and internalProjection, the format will reproject the geometries it reads or writes. |
|---|
| 21 | * - :ref:`internalProjection <internalProjection>` |
|---|
| 22 | - {ZOO.Projection} When passed a externalProjection and internalProjection, the format will reproject the geometries it reads or writes. |
|---|
| 23 | * - :ref:`data <data>` |
|---|
| 24 | - {Object} When keepData is true, this is the parsed string sent to read. |
|---|
| 25 | * - :ref:`keepData <keepData>` |
|---|
| 26 | - {Object} Maintain a reference (data) to the most recently read data. |
|---|
| 27 | |
|---|
| 28 | Functions |
|---|
| 29 | --------- |
|---|
| 30 | |
|---|
| 31 | .. list-table:: |
|---|
| 32 | :widths: 12 50 |
|---|
| 33 | :header-rows: 1 |
|---|
| 34 | |
|---|
| 35 | * - NAME |
|---|
| 36 | - DESCRIPTION |
|---|
| 37 | * - :ref:`ZOO.Format <ZOO.Format>` |
|---|
| 38 | - Instances of this class are not useful. |
|---|
| 39 | * - :ref:`destroy <destroy>` |
|---|
| 40 | - Clean up. |
|---|
| 41 | * - :ref:`read <read>` |
|---|
| 42 | - Read data from a string, and return an object whose type depends on the subclass. |
|---|
| 43 | * - :ref:`data <data>` |
|---|
| 44 | - {Object} When keepData is true, this is the parsed string sent to read. |
|---|
| 45 | * - :ref:`write <write>` |
|---|
| 46 | - Accept an object, and return a string. |
|---|
| 47 | |
|---|
| 48 | **Properties** |
|---|
| 49 | |
|---|
| 50 | .. _options: |
|---|
| 51 | |
|---|
| 52 | options |
|---|
| 53 | {Object} A reference to options passed to the constructor. |
|---|
| 54 | |
|---|
| 55 | .. _externalProjection: |
|---|
| 56 | |
|---|
| 57 | externalProjection |
|---|
| 58 | {ZOO.Projection} When passed a externalProjection and internalProjection, the format will reproject the geometries it reads or writes. |
|---|
| 59 | |
|---|
| 60 | .. _internalProjection: |
|---|
| 61 | |
|---|
| 62 | internalProjection |
|---|
| 63 | {ZOO.Projection} When passed a externalProjection and internalProjection, the format will reproject the geometries it reads or writes. |
|---|
| 64 | |
|---|
| 65 | .. _data: |
|---|
| 66 | |
|---|
| 67 | data |
|---|
| 68 | {Object} When keepData is true, this is the parsed string sent to read. |
|---|
| 69 | |
|---|
| 70 | .. _keepData: |
|---|
| 71 | |
|---|
| 72 | keepData |
|---|
| 73 | {Object} Maintain a reference (data) to the most recently read data. |
|---|
| 74 | |
|---|
| 75 | **Functions** |
|---|
| 76 | |
|---|
| 77 | .. _ZOO.Format: |
|---|
| 78 | |
|---|
| 79 | ZOO.Format |
|---|
| 80 | Instances of this class are not useful. |
|---|
| 81 | |
|---|
| 82 | .. _destroy: |
|---|
| 83 | |
|---|
| 84 | destroy |
|---|
| 85 | Clean up. |
|---|
| 86 | |
|---|
| 87 | .. _read: |
|---|
| 88 | |
|---|
| 89 | read |
|---|
| 90 | Read data from a string, and return an object whose type depends on the subclass. |
|---|
| 91 | |
|---|
| 92 | .. _write: |
|---|
| 93 | |
|---|
| 94 | write |
|---|
| 95 | Accept an object, and return a string. |
|---|