Changeset 177 for trunk/docs
- Timestamp:
- Apr 20, 2011, 12:00:57 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/api/zoo-projection.txt
r162 r177 49 49 50 50 proj 51 {Object}Proj4js.Proj instance.51 ``{Object}`` Proj4js.Proj instance. 52 52 53 53 .. _projCode: 54 54 55 55 projCode 56 {String}56 ``{String}`` 57 57 58 58 **Functions** … … 63 63 This class offers several methods for interacting with a wrapped zoo-pro4js projection object. 64 64 65 *Parameters* 66 67 | ``projCode {String}`` A string identifying the Well Known Identifier for the projection. 68 | ``options {Object}`` An optional object to set additional properties. 69 70 *Returns* 71 72 :ref:`{ZOO.Projection} <api-zoo-projection>` A projection object. 73 65 74 .. _getCode: 66 75 67 76 getCode 77 :: 78 79 getCode: function() 80 68 81 Get the string SRS code. 82 83 *Returns* 84 85 ``{String}`` The SRS code. 69 86 70 87 .. _getUnits: 71 88 72 89 getUnits 90 :: 91 92 getUnits: function() 93 73 94 Get the units string for the projection -- returns null if zoo-proj4js is not available. 74 95 96 *Returns* 97 98 ``{String}`` The units abbreviation. 99 75 100 .. _toString: 76 101 77 102 toString 103 :: 104 105 toString: function() 106 78 107 Convert projection to string (getCode wrapper). 108 109 *Returns* 110 111 ``{String}`` The projection code. 79 112 80 113 .. _equals: 81 114 82 115 equals 83 Test equality of two projection instances. 116 :: 117 118 equals: function(projection) 119 120 Test equality of two projection instances. Determines equality based soley on the projection code. 121 122 *Returns* 123 124 ``{Boolean}`` The two projections are equivalent. 84 125 85 126 .. _destroy: 86 127 87 128 destroy 88 Destroy projection object. 129 :: 130 131 destroy: function() 132 133 Destroy projection object. 89 134 90 135 .. _transform: 91 136 92 137 transform 93 Transform a point coordinate from one projection to another. 138 :: 139 140 ZOO.Projection.transform = function(point,source,dest) 141 142 Transform a point coordinate from one projection to another. Note that the input point is 143 transformed in place. 144 145 *Parameters* 146 147 | ``point {{ZOO.Geometry.Point> | Object}`` An object with x and y properties representing coordinates in those dimensions. 148 | ``sourceProj {ZOO.Projection}`` Source map coordinate system 149 | ``destProj {ZOO.Projection}`` Destination map coordinate system 150 151 *Returns* 152 153 ``point {object}`` A transformed coordinate. The original point is modified.
Note: See TracChangeset
for help on using the changeset viewer.