Changes between Version 5 and Version 6 of ExtendedRegions
- Timestamp:
- 11/12/12 08:01:13 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExtendedRegions
v5 v6 20 20 * Add optional geometry for each region (in addition to bbox) 21 21 * integrate into !XmlSearch and Csw so that the region id can be used to look up the geometry of the region for a spatial filter 22 * Add a configurable strategy object for that allows the region implementation to be easily pluggable. For example it might be based on a table in the database or wfs22 * Add a configurable strategy object for that allows the region implementation to be easily pluggable. For example it might be based on a table in the rdf file or wfs 23 23 24 24 === Proposal Type === … … 51 51 * Example Response: 52 52 {{{ 53 <response> 54 <record> 55 <id>338</id> 53 <regions> 54 <region id="338" hasGeom="false" categoryId="continent"> 56 55 <north>38.2</north> 57 56 <south>-34.6</south> … … 72 71 <ita>Africa</ita> 73 72 </label> 74 <category>continent</category> 75 <hasGeom>false</hasGeom> 73 <category> 74 <fre>Continent</fre> 75 <eng>Continent</eng> 76 </category> 76 77 </record> 77 78 </response> … … 85 86 {{{ 86 87 <regions count="1"> 87 <region> 88 <id>country.1</id> 88 <region id="country.1" hasGeom="true" categoryId="country"> 89 89 <label> 90 90 <eng>France</eng> 91 91 </label> 92 <category> 93 <fre>Pays</fre> 94 <eng>Country</eng> 95 </category> 92 96 </region> 93 97 </regions> … … 95 99 * !GetGeom - will return the geometry for the region. If the geometry does not have a geometry then the bbox will be used to construct a polygon. 96 100 * Params 97 * id - required (if multiple are provided then multiple geometries will be returned)101 * id - required 98 102 * simplified - optional (if present and true then the geometry will be a simplified version. Some implementations may ignore this hint and return full geometry) 99 103 * Example Response: 100 104 {{{ 101 <response> 102 <geom id="2"> MULTIPOLYGON (((30 20, 10 40, 45 40, 30 20)), ((15 5, 40 10, 10 20, 5 10, 15 5)))</geom> 103 <geom id="3"> MULTIPOLYGON (((30 20, 10 40, 45 40, 30 20)), ((15 5, 40 10, 10 20, 5 10, 15 5)))</geom> 104 </response> 105 MULTIPOLYGON (((30 20, 10 40, 45 40, 30 20)), ((15 5, 40 10, 10 20, 5 10, 15 5))) 105 106 }}} 107 * !GetMap - return a rendering of the geometry as a png. If no background is specified the image will be a transparent png 108 * id - required 109 * srs - (optional) default is EPSG:4326 otherwise it is the project to use when rendering the image 110 * width - (optional) width of the image that is created. Only one of width and height are permitted 111 * height - (optional) height of the image that is created. Only one of width and height are permitted 112 * background - URL for loading a background image for regions. A WMS Getmap request is the typical example. The URL must be parameterized with the following parameters: 113 * minx 114 * maxx 115 * miny 116 * maxy 117 * width 118 * height 119 * srs (Optional) 106 120 107 121 The !XmlSearch API will be modified so the geom parameter can either be WKT or have the form: region:id, where id is the id of the region to use as a geometry. If the region has a geometry then that geometry will be loaded otherwise the bbox will be used to create a polygon geometry.