[mapserver-users] Mapfile for getFeatureInfo

Guillaume Sueur guillaume.sueur at neogeo-online.net
Thu Mar 20 20:09:13 EDT 2008


Hi,

maybe try "wms_include_items"       "all"
too.

hope that helps

guillaume


Luca Casagrande a écrit :
> Hello everybody,
> 
> after configuring a mapfile for WMS serving, I am trying to add the 
> getFeatureInfo option but it's not working. According to doc, it's enough 
> adding DUMP true and gml_include_items. I made some test with Qgis, but 
> the query is not working
> 
> What am I missing? Can be an issue with postgis/schema?
> 
> Thanks for your help
> Luca
> 
> This is the mapfile:
> 
> MAP
>   	NAME test
>   	UNITS meters
>   	SIZE 800 600
> 	RESOLUTION 96
> 	IMAGETYPE png
> 	IMAGECOLOR 255 255 255 	
> 	IMAGEQUALITY 95	
> 	TRANSPARENT ON 
> PROJECTION
>         "init=epsg:23033"
> END	
> 
> 	EXTENT 138667 4624862 452902 4852896
> 
> 	SYMBOL
>                 NAME "quadrato"
> 		TYPE VECTOR
> 		POINTS
> 		0 0
> 		1 0
> 		1 1
> 		0 1
> 		0 0
> 		END
> 		FILLED TRUE
>         END
> 
> WEB
>   METADATA
>     "wms_title"           "Demo server"
>     "wms_onlineresource"  "http://localhost/cgi-bin/wms"
>     "wms_srs"             "EPSG:23033"
>     "wms_abstract" "Test Server"
>   END
> END
> 
> ###Sezione formati di output###
> 
> OUTPUTFORMAT
>     NAME jpeg
>     DRIVER 'GD/JPEG'
>     MIMETYPE 'image/jpeg'
>     #IMAGEMODE PC256
>     EXTENSION 'jpeg'
> END
> 
> OUTPUTFORMAT
>     NAME png
>     DRIVER "GD/PNG"
>     MIMETYPE "image/png"
>     IMAGEMODE RGB
>     FORMATOPTION  INTERLACE=OFF
> END
> 
> 
> LAYER
>     NAME stations
>     TYPE POINT
>     GROUP stazioni
>     CONNECTIONTYPE postgis
>     CONNECTION 'host=localhost user=postgres dbname=test password=postgres'
>     DATA 'the_geom FROM manis.stations'
>     TEMPLATE foo
>     PROJECTION
>         "init=epsg:23033"
>     END
>     DUMP TRUE
>     STATUS ON
>     METADATA
> 			 "wms_extent" "138667 4624862 452902 4852896"
> 			 "wms_title" "stazioni"
> 			 "gml_include_items" "all"
>     END
>     CLASS
> 	STYLE
>          SYMBOL quadrato
>          OUTLINECOLOR 0 0 0
>          COLOR 255 0 0
>          SIZE 15
>         END
>     END
> END
> END
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org




More information about the mapserver-users mailing list