Changeset 3390
- Timestamp:
- 06/20/07 19:54:02 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/tschaub/naturaldocs/lib/OpenLayers/Format/WKT.js
r3386 r3390 4 4 5 5 /** 6 * Read and write WKT.7 6 * @requires OpenLayers/Format.js 7 * 8 * Class: OpenLayers.Format.WKT 9 * Class for reading and writing Well-Known Text. Create a new instance 10 * with the <OpenLayers.Format.WKT> constructor. 11 * 8 12 * Inherits from: 9 13 * - <OpenLayers.Format> … … 14 18 15 19 /** 16 * 20 * Constructor: OpenLayers.Format.WKT 21 * Create a new parser for WKT 22 * 23 * Parameters: 24 * options - {Object} An optional object whose properties will be set on 25 * this instance 26 * 27 * Return: 28 * {<OpenLayers.Format.WKT>} A new WKT parser. 17 29 */ 18 30 initialize: function(options) { … … 28 40 29 41 /** 42 * Method: read 30 43 * Deserialize a WKT string and return an OpenLayers.Feature.Vector or an 31 44 * array of OpenLayers.Feature.Vector. Supports WKT for POINT, MULTIPOINT, 32 45 * LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON, and 33 46 * GEOMETRYCOLLECTION. 34 * @param {String} wkt A WKT string 35 * @returns {OpenLayers.Feature.Vector|Array} A feature or array of 36 * features for 37 * GEOMETRYCOLLECTION WKT. 47 * 48 * Parameters: 49 * wkt - {String} A WKT string 50 * 51 * Return: 52 * {<OpenLayers.Feature.Vector>|Array} A feature or array of features for 53 * GEOMETRYCOLLECTION WKT. 38 54 */ 39 55 read: function(wkt) { … … 51 67 52 68 /** 69 * Method: write 53 70 * Serialize a feature or array of features into a WKT string. 54 * @param {OpenLayers.Feature.Vector|Array} features A feature or array of 55 * features 56 * @returns {String} The WKT string representation of the input geometries 71 * 72 * Parameters: 73 * features - {<OpenLayers.Feature.Vector>|Array} A feature or array of 74 * features 75 * 76 * Return: 77 * {String} The WKT string representation of the input geometries 57 78 */ 58 79 write: function(features) {
