Changeset 176 for trunk/docs
- Timestamp:
- Apr 19, 2011, 11:51:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/api/zoo-format-wkt.txt
r164 r176 44 44 ZOO.Format.WKT 45 45 Create a new parser for WKT 46 47 *Parameters* 48 49 ``options {Object}`` An optional object whose properties will be set on this instance 50 51 *Returns* 52 53 :ref:`{ZOO.Format.WKT} <api-zoo-format-wkt>` A new WKT parser. 46 54 47 55 .. _read: 48 56 49 57 read 50 Deserialize a WKT string and return a vector feature or an array of vector features. 58 :: 59 60 read: function(wkt) 61 62 Deserialize a WKT string and return a vector feature or an array of vector features. 63 Supports WKT for POINT, MULTIPOINT, LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON, 64 and GEOMETRYCOLLECTION. 65 66 *Parameters* 67 68 ``wkt {String}`` A WKT string 69 70 *Returns* 71 72 {<ZOO.Feature.Vector>|Array} A feature or array of features for GEOMETRYCOLLECTION WKT. 51 73 52 74 .. _write: 53 75 54 76 write 77 :: 78 79 write: function(features) 80 55 81 Serialize a feature or array of features into a WKT string. 82 83 *Parameters* 84 85 ``features {<ZOO.Feature.Vector>|Array}`` A feature or array of features 86 87 *Returns* 88 89 ``{String}`` The WKT string representation of the input geometries 56 90 57 91 .. _extract: 58 92 59 93 extract 60 Object with properties corresponding to the geometry types. 94 Object with properties corresponding to the geometry types. Property values are 95 functions that do the actual data extraction. 61 96 62 97 .. _parse: 63 98 64 99 parse 65 Object with properties corresponding to the geometry types. 100 Object with properties corresponding to the geometry types. Property values are 101 functions that do the actual parsing. 66 102 67 103 .. _parse.point: … … 70 106 Return point feature given a point WKT fragment. 71 107 108 *Parameters* 109 110 ``str {String}`` A WKT fragment representing the point 111 112 *Returns* 113 114 :ref:`{ZOO.Feature} <api-zoo-feature>` A point feature 115 72 116 .. _parse.multipoint: 73 117 74 118 parse.multipoint 75 119 Return a multipoint feature given a multipoint WKT fragment. 76 120 121 *Parameters* 122 123 ``str {String}`` A WKT fragment representing the multipoint 124 125 *Returns* 126 127 :ref:`{ZOO.Feature} <api-zoo-feature>` A multipoint feature 128 77 129 .. _parse.linestring: 78 130 79 131 parse.linestring 80 132 Return a linestring feature given a linestring WKT fragment. 133 134 *Parameters* 135 136 ``str {String}`` A WKT fragment representing the linestring 137 138 *Returns* 139 140 :ref:`{ZOO.Feature} <api-zoo-feature>` A linestring feature 81 141 82 142 .. _parse.multilinestring: … … 85 145 Return a multilinestring feature given a multilinestring WKT fragment. 86 146 147 *Parameters* 148 149 ``str {String}`` A WKT fragment representing the multilinestring 150 151 *Returns* 152 153 :ref:`{ZOO.Feature} <api-zoo-feature>` A multilinestring feature 154 87 155 .. _parse.polygon: 88 156 89 157 parse.polygon 90 158 Return a polygon feature given a polygon WKT fragment. 159 160 *Parameters* 161 162 ``str {String}`` A WKT fragment representing the polygon 163 164 *Returns* 165 166 :ref:`{ZOO.Feature} <api-zoo-feature>` A polygon feature 91 167 92 168 .. _parse.multipolygon: … … 94 170 parse.multipolygon 95 171 Return a multipolygon feature given a multipolygon WKT fragment. 172 173 *Parameters* 174 175 ``str {String}`` A WKT fragment representing the multipolygon 176 177 *Returns* 178 179 :ref:`{ZOO.Feature} <api-zoo-feature>` A multipolygon feature 96 180 97 181 .. _parse.geometrycollection: … … 100 184 Return an array of features given a geometrycollection WKT fragment. 101 185 186 *Parameters* 187 188 ``str {String}`` A WKT fragment representing the geometrycollection 189 190 *Returns* 191 192 ``{Array}`` An array of ZOO.Feature
Note: See TracChangeset
for help on using the changeset viewer.