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
Last revisionBoth sides next revision
tecnica:gps_cartografia_gis:getfeatureinfo [2009/08/31 18:29] niccolotecnica:gps_cartografia_gis:getfeatureinfo [2009/08/31 19:56] niccolo
Line 52: Line 52:
 </code> </code>
  
 +Attenzione: il numero di feature (oggetti) ritornati dipende dalla dimensione del dintorno del punto (la **''TOLERANCE''** del mapfile) e dal parametro **''FEATURE_COUNT''** (numero massimo di feature ritornati) della query.
 +
 +Il risultato è qualcosa del tipo:
 +
 +<code xml>
 +<?xml version="1.0" encoding="UTF-8"?>
 +<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">
 +    <entita_lineari_layer>
 +        <entita_lineari_feature>
 +            <gml:boundedBy>
 +                <gml:Box srsName="EPSG:4326">
 +                    <gml:coordinates>11.173595,43.788665 11.197719,43.790197</gml:coordinates>
 +                </gml:Box>
 +            </gml:boundedBy>
 +            <FOGLIO>275030</FOGLIO>
 +            <CODICE>0301</CODICE>
 +            <RECORD>150872</RECORD>
 +            <IDENTIF></IDENTIF>
 +        </entita_lineari_feature>
 +        <entita_lineari_feature>
 +            <gml:boundedBy>
 +                <gml:Box srsName="EPSG:4326">
 +                    <gml:coordinates>11.180460,43.788754 11.189372,43.789513</gml:coordinates>
 +                </gml:Box>
 +            </gml:boundedBy>
 +            <FOGLIO>275030</FOGLIO>
 +            <CODICE>0102</CODICE>
 +            <RECORD>151559</RECORD>
 +            <IDENTIF></IDENTIF>
 +        </entita_lineari_feature>
 +    </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>
 +</code>
tecnica/gps_cartografia_gis/getfeatureinfo.txt · Last modified: 2010/01/28 15:53 by niccolo