[Gfoss] GetFeatureInfo OpenLayers
G. Allegri
giohappy a gmail.com
Ven 5 Set 2008 18:39:51 CEST
Intanto noto che manca INFO_FORMAT=text/html nella richiesta.
Lo visualizzi correttamente il tuo layer?
2008/9/5 francesco334 <francesco334 a interfree.it>:
>
> Ciao,
>
> sto provandola funziona GetFeatureInfo.
>
> Se da browser provo :
> http://world.freemap.in/cgi-bin/mapserv?map=/www/freemap.in/world/map/factbook.map&LAYERS=factbook&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-180%2C-180%2C180%2C180&X=386&Y=199&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=factbook&WIDTH=512&HEIGHT=512
>
> ottengo il risultato (della nazione Cina).
>
> Se provo sul mio layer :
> http://localhost:8081/cgi-bin/mapserv.exe?MAP=%2Fms4w%2Fapps%2Fgmap-puglia%2Fhtdocs%2Fgmap75.map&LAYERS=areesensibili&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=16.58935546875,41.184467835598596,16.611328125,41.201002224633164&WIDTH=256&HEIGHT=256&X=386&Y=199&QUERY_LAYERS=areesensibili
>
> ottengo :
> GetFeatureInfo results: Search returned no results.
>
> Cosa sbaglio?
>
> Illayer nelfilemap contiene:
> LAYER
> NAME areesensibili
> GROUP "Aree Sensibili"
> METADATA
> "DESCRIPTION" "Centri storici/beni paesaggistici (aree)"
> "queryable" "true"
> "SEARCHFIELD" "SITO"
> fields "UBICAZIONE:Nome,FOTO:Foto"
> "wms_srs" "EPSG:26592"
> # "gml_include_items" "UBICAZIONE, FOTO"
> "wms_include_items" "UBICAZIONE,FOTO"
> # "gml_include_items" "all"
> END
> PROJECTION
> "init=epsg:26592"
> END
> TYPE POLYGON
> TOLERANCE 8
> STATUS ON
> DUMP TRUE
> TEMPLATE dummy
> DATA areesensibili.shp
> # FILTERITEM "CATEGORIA"
> # FILTER "Centro storico/bene paesaggistico"
> CLASS
> NAME "areesensibili"
> COLOR 255 0 0
> OUTLINECOLOR 255 0 0
> SYMBOL 8
> SIZE 8
> TEMPLATE dummy
> END
> END # layer
>
> --
> View this message in context: http://www.nabble.com/GetFeatureInfo-OpenLayers-tp19334979p19334979.html
> Sent from the Gfoss mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Iscriviti all'associazione GFOSS.it: http://www.gfoss.it/drupal/iscrizione
> Gfoss a faunalia.com
> http://www.faunalia.com/cgi-bin/mailman/listinfo/gfoss
> Questa e' una lista di discussione pubblica aperta a tutti.
> I messaggi di questa lista non rispecchiano necessariamente
> le posizioni dell'Associazione GFOSS.it.
>
Maggiori informazioni sulla lista
Gfoss