[Gfoss] GetFeatureInfo OpenLayers

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.

Intanto noto che manca INFO_FORMAT=text/html nella richiesta.
Lo visualizzi correttamente il tuo layer?

2008/9/5 francesco334 <francesco334@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@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.

dalle specifiche,INFO_FORMAT non è obbligatorio.
Non penso sia quello il problema.

G. Allegri wrote:

Intanto noto che manca INFO_FORMAT=text/html nella richiesta.
Lo visualizzi correttamente il tuo layer?

2008/9/5 francesco334 <francesco334@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@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.

_______________________________________________
Iscriviti all'associazione GFOSS.it: http://www.gfoss.it/drupal/iscrizione
Gfoss@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.

--
View this message in context: http://www.nabble.com/GetFeatureInfo-OpenLayers-tp19334979p19359079.html
Sent from the Gfoss mailing list archive at Nabble.com.

inoltre,
testaando l'esempio getFeatureInfo.hmtl ho l'errore in allegato.

Nelfile setto :
    OpenLayers.ProxyHost =
"http://127.0.0.1:8081/openlayers/examples/proxy.cgi?url=&quot;;
è corretto?

se eseguo però da browser, l'url generato dal getFeatureInfo, riesco a
vedere il dettaglio (della Cina nella selezione fatta da me).

Come mainon funziona l'esempio?

G. Allegri wrote:

Intanto noto che manca INFO_FORMAT=text/html nella richiesta.
Lo visualizzi correttamente il tuo layer?

2008/9/5 francesco334 <francesco334@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@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.

_______________________________________________
Iscriviti all'associazione GFOSS.it: http://www.gfoss.it/drupal/iscrizione
Gfoss@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.

--
View this message in context: http://www.nabble.com/GetFeatureInfo-OpenLayers-tp19334979p19359189.html
Sent from the Gfoss mailing list archive at Nabble.com.

Ci sono novità.
Sempre cercando su internet ho letto che usando:
window.open(url);
al posto di:
OpenLayers.loadURL(url, '', this, setHTML);

non ho bisognodi settare il proxy. Ed in effetti con INFO_FORMAT:
'text/plain' il getFeatureInfo funziona.

Ora:
1) Perchè se setto INFO_FORMAT=text/html invece di mostrarmi l'html mi
chiede di scaricare il file mapserv.exe??
2) Se volessi usare il proxy..comedevo chiamare il proxy.cgi??

L'url funzionante è :
http://localhost:8081/cgi-bin/mapserv.exe?MAP=%2Fms4w%2Fapps%2Fgmap-puglia%2Fhtdocs%2Fgmap75.map&LAYERS=suet&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_xml&FORMAT=image%2Fpng&SRS=EPSG%3A4326&BBOX=16.512108%2C41.149706%2C16.666603%2C41.227216&X=420&Y=236&INFO_FORMAT=text%2Fplain&QUERY_LAYERS=areesensibili&WIDTH=900&HEIGHT=600

dove il risultato html è :
"
GetFeatureInfo results:

Layer 'areesensibili'
  Feature 6:
    UBICAZIONE = 'via Palmiro Togliatti'
    FOTO = 'C:\ms4w\apps\gmap-puglia\data\immagini elettrosmog
III\scientifico industriale tecnologico.tif'
"

Tra l'altro non so neanche come gestire questa pagina! Ho creato una mia
pagina di template "vigili.html" ma sembra non venga letta nel file map!

Devo dire che Kamap, per queste cosè è molto più semplice ed
intuitivo!Cmq...era solo un'osservazione!

Ciaoo e Grazie a tutti.
Fancesco

francesco334 wrote:

inoltre,
testaando l'esempio getFeatureInfo.hmtl ho l'errore in allegato.

Nelfile setto :
    OpenLayers.ProxyHost =
"http://127.0.0.1:8081/openlayers/examples/proxy.cgi?url=&quot;;
è corretto?

se eseguo però da browser, l'url generato dal getFeatureInfo, riesco a
vedere il dettaglio (della Cina nella selezione fatta da me).

Come mainon funziona l'esempio?

G. Allegri wrote:

Intanto noto che manca INFO_FORMAT=text/html nella richiesta.
Lo visualizzi correttamente il tuo layer?

2008/9/5 francesco334 <francesco334@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@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.

_______________________________________________
Iscriviti all'associazione GFOSS.it:
http://www.gfoss.it/drupal/iscrizione
Gfoss@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.

--
View this message in context: http://www.nabble.com/GetFeatureInfo-OpenLayers-tp19334979p19387668.html
Sent from the Gfoss mailing list archive at Nabble.com.