1 | .. _api-zoo-format-geojson: |
---|
2 | |
---|
3 | ZOO.Format.GeoJSON |
---|
4 | ================== |
---|
5 | |
---|
6 | Read and write GeoJSON. |
---|
7 | |
---|
8 | Properties |
---|
9 | ---------- |
---|
10 | |
---|
11 | .. list-table:: |
---|
12 | :widths: 20 50 |
---|
13 | :header-rows: 1 |
---|
14 | |
---|
15 | * - NAME |
---|
16 | - DESCRIPTION |
---|
17 | * - :ref:`ZOO.Format.GeoJSON <ZOO.Format.GeoJSON>` |
---|
18 | - Create a new parser for GeoJSON. |
---|
19 | * - :ref:`read <read>` |
---|
20 | - Deserialize a GeoJSON string. |
---|
21 | * - :ref:`isValidType <isValidType>` |
---|
22 | - Check if a GeoJSON object is a valid representative of the given type. |
---|
23 | * - :ref:`parseFeature <parseFeature>` |
---|
24 | - Convert a feature object from GeoJSON into an ZOO.Feature. |
---|
25 | * - :ref:`parseGeometry <parseGeometry>` |
---|
26 | - Convert a geometry object from GeoJSON into an ZOO.Geometry. |
---|
27 | |
---|
28 | parseCoords Properties |
---|
29 | ---------------------- |
---|
30 | |
---|
31 | .. list-table:: |
---|
32 | :widths: 20 50 |
---|
33 | :header-rows: 1 |
---|
34 | |
---|
35 | * - NAME |
---|
36 | - DESCRIPTION |
---|
37 | * - :ref:`parseCoords <parseCoords>` |
---|
38 | - Object with properties corresponding to the GeoJSON geometry types. |
---|
39 | |
---|
40 | parseCoords Functions |
---|
41 | --------------------- |
---|
42 | |
---|
43 | .. list-table:: |
---|
44 | :widths: 12 50 |
---|
45 | :header-rows: 1 |
---|
46 | |
---|
47 | * - NAME |
---|
48 | - DESCRIPTION |
---|
49 | * - :ref:`parseCoords.point <parseCoords.point>` |
---|
50 | - Convert a coordinate array from GeoJSON into an ZOO.Geometry.Point. |
---|
51 | * - :ref:`parseCoords.multipoint <parseCoords.multipoint>` |
---|
52 | - Convert a coordinate array from GeoJSON into an ZOO.Geometry.MultiPoint. |
---|
53 | * - :ref:`parseCoords.linestring <parseCoords.linestring>` |
---|
54 | - Convert a coordinate array from GeoJSON into an ZOO.Geometry.LineString. |
---|
55 | * - :ref:`parseCoords.multilinestring <parseCoords.multilinestring>` |
---|
56 | - Convert a coordinate array from GeoJSON into an ZOO.Geometry.MultiLineString. |
---|
57 | * - :ref:`parseCoords.polygon <parseCoords.polygon>` |
---|
58 | - Convert a coordinate array from GeoJSON into an ZOO.Geometry.Polygon. |
---|
59 | * - :ref:`parseCoords.multipolygon <parseCoords.multipolygon>` |
---|
60 | - Convert a coordinate array from GeoJSON into an ZOO.Geometry.MultiPolygon. |
---|
61 | * - :ref:`parseCoords.box <parseCoords.box>` |
---|
62 | - Convert a coordinate array from GeoJSON into an ZOO.Geometry.Polygon. |
---|
63 | * - :ref:`write <write>` |
---|
64 | - Serialize a feature, geometry, array of features into a GeoJSON string. |
---|
65 | * - :ref:`createCRSObject <createCRSObject>` |
---|
66 | - Create the CRS object for an object. |
---|
67 | |
---|
68 | extract Properties |
---|
69 | ------------------ |
---|
70 | |
---|
71 | .. list-table:: |
---|
72 | :widths: 20 50 |
---|
73 | :header-rows: 1 |
---|
74 | |
---|
75 | * - NAME |
---|
76 | - DESCRIPTION |
---|
77 | * - :ref:`extract <extract>` |
---|
78 | - Object with properties corresponding to the GeoJSON types. |
---|
79 | |
---|
80 | extract Functions |
---|
81 | ----------------- |
---|
82 | |
---|
83 | .. list-table:: |
---|
84 | :widths: 12 50 |
---|
85 | :header-rows: 1 |
---|
86 | |
---|
87 | * - NAME |
---|
88 | - DESCRIPTION |
---|
89 | * - :ref:`extract.feature <extract.feature>` |
---|
90 | - Return a partial GeoJSON object representing a single feature. |
---|
91 | * - :ref:`extract.geometry <extract.geometry>` |
---|
92 | - Return a GeoJSON object representing a single geometry. |
---|
93 | * - :ref:`extract.point <extract.point>` |
---|
94 | - Return an array of coordinates from a point. |
---|
95 | * - :ref:`extract.multipoint <extract.multipoint>` |
---|
96 | - Return an array of coordinates from a multipoint. |
---|
97 | * - :ref:`extract.linestring <extract.linestring>` |
---|
98 | - Return an array of coordinate arrays from a linestring. |
---|
99 | * - :ref:`extract.multilinestring <extract.multilinestring>` |
---|
100 | - Return an array of linestring arrays from a linestring. |
---|
101 | * - :ref:`extract.polygon <extract.polygon>` |
---|
102 | - Return an array of linear ring arrays from a polygon. |
---|
103 | * - :ref:`extract.multipolygon <extract.multipolygon>` |
---|
104 | - Return an array of polygon arrays from a multipolygon. |
---|
105 | * - :ref:`extract.collection <extract.collection>` |
---|
106 | - Return an array of geometries from a geometry collection. |
---|
107 | |
---|
108 | **Functions** |
---|
109 | |
---|
110 | .. _ZOO.Format.GeoJSON: |
---|
111 | |
---|
112 | ZOO.Format.GeoJSON |
---|
113 | Create a new parser for GeoJSON. |
---|
114 | |
---|
115 | .. _read: |
---|
116 | |
---|
117 | read |
---|
118 | Deserialize a GeoJSON string. |
---|
119 | |
---|
120 | .. _isValidType: |
---|
121 | |
---|
122 | isValidType |
---|
123 | Check if a GeoJSON object is a valid representative of the given type. |
---|
124 | |
---|
125 | .. _parseFeature: |
---|
126 | |
---|
127 | parseFeature |
---|
128 | Convert a feature object from GeoJSON into an ZOO.Feature. |
---|
129 | |
---|
130 | .. _parseGeometry: |
---|
131 | |
---|
132 | parseGeometry |
---|
133 | Convert a geometry object from GeoJSON into an ZOO.Geometry. |
---|
134 | |
---|
135 | **parseCoords Properties** |
---|
136 | |
---|
137 | .. _parseCoords: |
---|
138 | |
---|
139 | parseCoords |
---|
140 | Object with properties corresponding to the GeoJSON geometry types. |
---|
141 | |
---|
142 | **parseCoords Functions** |
---|
143 | |
---|
144 | .. _parseCoords.point: |
---|
145 | |
---|
146 | parseCoords.point |
---|
147 | Convert a coordinate array from GeoJSON into an ZOO.Geometry.Point. |
---|
148 | |
---|
149 | .. _parseCoords.multipoint: |
---|
150 | |
---|
151 | parseCoords.multipoint |
---|
152 | Convert a coordinate array from GeoJSON into an ZOO.Geometry.MultiPoint. |
---|
153 | |
---|
154 | .. _parseCoords.linestring: |
---|
155 | |
---|
156 | parseCoords.linestring |
---|
157 | Convert a coordinate array from GeoJSON into an ZOO.Geometry.LineString. |
---|
158 | |
---|
159 | .. _parseCoords.multilinestring: |
---|
160 | |
---|
161 | parseCoords.multilinestring |
---|
162 | Convert a coordinate array from GeoJSON into an ZOO.Geometry.MultiLineString. |
---|
163 | |
---|
164 | .. _parseCoords.polygon: |
---|
165 | |
---|
166 | parseCoords.polygon |
---|
167 | Convert a coordinate array from GeoJSON into an ZOO.Geometry.Polygon. |
---|
168 | |
---|
169 | .. _parseCoords.multipolygon: |
---|
170 | |
---|
171 | parseCoords.multipolygon |
---|
172 | Convert a coordinate array from GeoJSON into an ZOO.Geometry.MultiPolygon. |
---|
173 | |
---|
174 | .. _parseCoords.box: |
---|
175 | |
---|
176 | parseCoords.box |
---|
177 | Convert a coordinate array from GeoJSON into an ZOO.Geometry.Polygon. |
---|
178 | |
---|
179 | .. _write: |
---|
180 | |
---|
181 | write |
---|
182 | Serialize a feature, geometry, array of features into a GeoJSON string. |
---|
183 | |
---|
184 | .. _createCRSObject: |
---|
185 | |
---|
186 | createCRSObject |
---|
187 | Create the CRS object for an object. |
---|
188 | |
---|
189 | **extract Properties** |
---|
190 | |
---|
191 | .. _extract: |
---|
192 | |
---|
193 | extract |
---|
194 | Object with properties corresponding to the GeoJSON types. |
---|
195 | |
---|
196 | **extract Functions** |
---|
197 | |
---|
198 | .. _extract.feature: |
---|
199 | |
---|
200 | extract.feature |
---|
201 | Return a partial GeoJSON object representing a single feature. |
---|
202 | |
---|
203 | .. _extract.geometry: |
---|
204 | |
---|
205 | extract.geometry |
---|
206 | Return a GeoJSON object representing a single geometry. |
---|
207 | |
---|
208 | .. _extract.point: |
---|
209 | |
---|
210 | extract.point |
---|
211 | Return an array of coordinates from a point. |
---|
212 | |
---|
213 | .. _extract.multipoint: |
---|
214 | |
---|
215 | extract.multipoint |
---|
216 | Return an array of coordinates from a multipoint. |
---|
217 | |
---|
218 | .. _extract.linestring: |
---|
219 | |
---|
220 | extract.linestring |
---|
221 | Return an array of coordinate arrays from a linestring. |
---|
222 | |
---|
223 | .. _extract.multilinestring: |
---|
224 | |
---|
225 | extract.multilinestring |
---|
226 | Return an array of linestring arrays from a linestring. |
---|
227 | |
---|
228 | .. _extract.polygon: |
---|
229 | |
---|
230 | extract.polygon |
---|
231 | Return an array of linear ring arrays from a polygon. |
---|
232 | |
---|
233 | .. _extract.multipolygon: |
---|
234 | |
---|
235 | extract.multipolygon |
---|
236 | Return an array of polygon arrays from a multipolygon. |
---|
237 | |
---|
238 | .. _extract.collection: |
---|
239 | |
---|
240 | extract.collection |
---|
241 | Return an array of geometries from a geometry collection. |
---|