| 120 | |
| 121 | === Convex Hull === |
| 122 | |
| 123 | Returns the smallest convex Polygon that contains all the points in the given Geometry |
| 124 | |
| 125 | || '''Name''' || '''Value''' || '''Required''' || '''Description''' || |
| 126 | || OPERATION || GEO.CONVEXHULL || Yes || Operation to execute || |
| 127 | || VERSION || 3.3.0 || Yes || Operation version || |
| 128 | || CLIENTAGENT || text || Optional || Descriptive text for client || |
| 129 | || GEOMETRY || string || Yes || The Well-Known Text of the input geometry || |
| 130 | || FORMAT || WKT/GEOJSON || Yes || Output the operation result as WKT or GeoJSON || |
| 131 | || COORDINATESYSTEM || string || Optional || The coordinate system (CS-Map code) of the input geometries. Only required in combination with `TRANSFORMTO` if you intend to transform the geometry result || |
| 132 | || TRANSFORMTO || string || Optional || The coordinate system (CS-Map code) to transform the simplified geometry into. Only required in combination with `COORDINATESYSTEM ` if you intend to transform the geometry result || |
| 133 | |
| 134 | === Distance === |
| 135 | |
| 136 | Returns the shortest distance between this geometry and another |
| 137 | |
| 138 | || '''Name''' || '''Value''' || '''Required''' || '''Description''' || |
| 139 | || OPERATION || GEO.DISTANCE || Yes || Operation to execute || |
| 140 | || VERSION || 3.3.0 || Yes || Operation version || |
| 141 | || CLIENTAGENT || text || Optional || Descriptive text for client || |
| 142 | || GEOMETRY || string || Yes || The Well-Known Text of the input geometry || |
| 143 | || OTHERGEOMETRY || string || Yes || The Well-Known Text of the other geometry (to compute distance to) || |
| 144 | || COORDINATESYSTEM || string || Optional || The coordinate system (CS-Map code) to use for measuring distance. If provided, the distance result with be returned in meters. If not provided, a linear distance measurement is used and the result will be returned in unknown units. || |
| 145 | || FORMAT || string || Yes || {{{text/xml}}} for XML, {{{application/json}}} for JSON || |
| 146 | || CLEAN || 1/0 || Optional || If requested format is {{{application/json}}}, returns a clean JSON structure per [wiki:MapGuideRfc158] || |
| 147 | |
| 148 | The result adheres to the new {{{UnitOfMeasure-3.3.0.xsd}}} XML schema |
| 149 | |
| 150 | {{{ |
| 151 | <?xml version="1.0" encoding="UTF-8"?> |
| 152 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> |
| 153 | <xs:element name="UnitOfMeasure"> |
| 154 | <xs:annotation> |
| 155 | <xs:documentation>Unit of measure</xs:documentation> |
| 156 | </xs:annotation> |
| 157 | <xs:complexType> |
| 158 | <xs:sequence> |
| 159 | <xs:element name="Value" type="xs:double" /> |
| 160 | <xs:element name="Unit" type="xs:string" /> |
| 161 | </xs:sequence> |
| 162 | </xs:complexType> |
| 163 | </xs:element> |
| 164 | </xs:schema> |
| 165 | |
| 166 | }}} |