User Tools

Site Tools


tecnica:gps_cartografia_gis:getfeatureinfo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tecnica:gps_cartografia_gis:getfeatureinfo [2009/08/31 19:13] niccolotecnica:gps_cartografia_gis:getfeatureinfo [2010/01/28 15:53] (current) niccolo
Line 26: Line 26:
     "wms_srs"           "EPSG:4326"     "wms_srs"           "EPSG:4326"
     "gml_include_items" "all"     "gml_include_items" "all"
 +    #"wms_include_items" "all"
   END   END
 END END
 </code> </code>
 +
 +Se il client effettua richieste in formato text/plain (non GML), pare che per ottenere risposta sia necessario il parametro ''wms_include_items''.
  
 La richiesta WMS assume la seguente forma: La richiesta WMS assume la seguente forma:
Line 58: Line 61:
 <code xml> <code xml>
 <?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
- 
 <msGMLOutput <msGMLOutput
     xmlns:gml="http://www.opengis.net/gml"     xmlns:gml="http://www.opengis.net/gml"
Line 87: Line 89:
         </entita_lineari_feature>         </entita_lineari_feature>
     </entita_lineari_layer>     </entita_lineari_layer>
 +</msGMLOutput>
 +</code>
 +
 +===== Query su raster =====
 +
 +In modo analogo si possono effettuare query su layer raster, questo un esempio di risultato:
 +
 +<code xml>
 +<?xml version="1.0" encoding="ISO-8859-1"?>
 +<msGMLOutput
 +    xmlns:gml="http://www.opengis.net/gml"
 +    xmlns:xlink="http://www.w3.org/1999/xlink"
 +    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 +    <ctr25k_layer>
 +        <ctr25k_feature>
 +            <gml:boundedBy>
 +                <gml:Box srsName="EPSG:3003">
 +                    <gml:coordinates>1681609.346909,4707664.375214 1681609.346909,4707664.375214</gml:coordinates>
 +                </gml:Box>
 +            </gml:boundedBy>
 +            <x>1681609.3</x>
 +            <y>4707664.4</y>
 +            <value_0>0</value_0>
 +            <value_list>0</value_list>
 +            <red>255</red>
 +            <green>255</green>
 +            <blue>255</blue>
 +        </ctr25k_feature>
 +    </ctr25k_layer>
 +</msGMLOutput>
 +</code>
 +
 +Questo il risultato di una query su un layer **TIFF** di tipo **Int16**, il colore (red, green, blue) deriva da una classificazione:
 +
 +<code xml>
 +<?xml version="1.0" encoding="ISO-8859-1"?>
 +<msGMLOutput
 +    xmlns:gml="http://www.opengis.net/gml"
 +    xmlns:xlink="http://www.w3.org/1999/xlink"
 +    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 +    <rainfall_layer>
 +        <rainfall_feature>
 +            <gml:boundedBy>
 +                <gml:Box srsName="EPSG:4326">
 +                    <gml:coordinates>-1.000000,-1.000000 -1.000000,-1.000000</gml:coordinates>
 +                </gml:Box>
 +            </gml:boundedBy>
 +            <x>0.2503605</x>
 +            <y>44.916937</y>
 +            <value_0>902</value_0>
 +            <value_list>902</value_list>
 +            <class>5</class>
 +            <red>247</red>
 +            <green>6</green>
 +            <blue>123</blue>
 +        </rainfall_feature>
 +    </rainfall_layer>
 </msGMLOutput> </msGMLOutput>
 </code> </code>
tecnica/gps_cartografia_gis/getfeatureinfo.1251738817.txt.gz · Last modified: 2009/08/31 19:13 by niccolo