source: trunk/docs/api/zoo-format.txt @ 163

Last change on this file since 163 was 163, checked in by jmckenna, 13 years ago

add ZOO.Format doc

File size: 2.5 KB
Line 
1.. _api-zoo-format:
2
3ZOO.Format
4==========
5
6Base class for format reading/writing a variety of formats.
7
8Properties     
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     
28Functions       
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
52options
53  {Object} A reference to options passed to the constructor.
54 
55.. _externalProjection:   
56
57externalProjection     
58  {ZOO.Projection} When passed a externalProjection and internalProjection, the format will reproject the geometries it reads or writes.
59
60.. _internalProjection:   
61
62internalProjection     
63  {ZOO.Projection} When passed a externalProjection and internalProjection, the format will reproject the geometries it reads or writes.
64
65.. _data:   
66
67data   
68  {Object} When keepData is true, this is the parsed string sent to read.
69
70.. _keepData:   
71
72keepData       
73  {Object} Maintain a reference (data) to the most recently read data.
74
75**Functions**
76
77.. _ZOO.Format:   
78
79ZOO.Format     
80  Instances of this class are not useful.
81 
82.. _destroy:     
83 
84destroy
85  Clean up.
86
87.. _read:     
88 
89read   
90  Read data from a string, and return an object whose type depends on the subclass.
91
92.. _write:     
93
94write   
95  Accept an object, and return a string.     
Note: See TracBrowser for help on using the repository browser.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png