GetFeatureInfo problem

François Prunayre fx.prunayre at OIEAU.FR
Fri Jul 1 09:39:50 EDT 2005


Hi José, Try to add gml_include_items in your metadata for the layer ...
  DUMP TRUE
  METADATA
	"ows_title"       		"LAYER TITLE"
	"ows_srs"         		"EPSG:XXX"
	"ows_group_title" 		"LAYER GROUP"
	"ows_extent"			"0 1600000 1200000 2800000"
	"gml_include_items" 		"all"
   END 
HTH

Francois


-----Message d'origine-----
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la
part de José Vicente Higón Valero
Envoyé : vendredi 1 juillet 2005 14:00
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : [UMN_MAPSERVER-USERS] GetFeatureInfo problem

Hi,
I have installed mapserver 4.6.0 on suse 9.0 with postgis 1.0.1. When I
request a GetFeatureInfo, the response hasn't information about the
atributes. I get this:
<?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">
	<embalses_layer>
		<embalses_feature>
			<gml:boundedBy>
				<gml:Box srsName="EPSG:23030">
	
<gml:coordinates>620344.450000,4377612.070000
632854.690000,4394243.500000</gml:coordinates>
				</gml:Box>
			</gml:boundedBy>
		</embalses_feature>
	</embalses_layer>
</msGMLOutput>

But I must get:

<?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">
	<embalses_layer>
		<embalses_feature>
			<gid>28</gid>
			<entity>Complex Shape</entity>
			<layer>55</layer>
			<level>55</level>
			<elevation>0</elevation>
			<color>1</color>
			<mslink_dmr>0</mslink_dmr>
			<codigo>Embalse de Contreras</codigo>
			<tipo>Embalses</tipo>
			<gml:boundedBy>
				<gml:Box srsName="EPSG:23030">
					...

Any clue?
I have compiled mapserver:
./configure --prefix=/usr/local --with-wms --with-wfs --with-wcs
--with-wmsclient --with-wfsclient --with-gd --with-proj --with-geos
--with-freetype --with-gdal=/usr/local/bin/gdal-config
--with-ogr=/usr/local/bin/gdal-config
--with-postgis=/usr/local/pgsql/bin/pg_config
--with-curl-config=/usr/local/bin/curl-config --with-jpeg --with-tiff
--with-httpd=/usr/local/apache2/bin/httpd
--with-mygis=/usr/local/mysql/bin/mysql_config

And the configuration of the map file:
LAYER
     NAME "embalses"
     GROUP "CV300k"
     STATUS ON
     DUMP TRUE
     TEMPLATE "."
     DATA "the_geom from embalses"
     TYPE POLYGON
     TRANSPARENCY 10
     CONNECTIONTYPE POSTGIS
     CONNECTION "user=gis dbname=cv300k host=127.0.0.1 port=5432"
     METADATA
       "wms_name"    "embalses"
	"wms_title"    "Embalses"
       "wms_abstract"    "embalses"
       "wms_keywordlist"    "embalses,valencia"

	"wms_srs"	"EPSG:23030 EPSG:4326"
       "wms_group_title" "CV300k"
       "wms_extent" "600000 4180000 810000 4530000"

     END
     CLASS
     #	NAME "embalses"
         COLOR 0 204 255
         OUTLINECOLOR 0 0 255
     END
   END

Thanks in advance.
--
  José Vicente Higón
  gvSIG development Team
  Conselleria de Infraestructuras y Transporte
  Generalitat Valenciana
  Valencia - Spain
  tlf. 963862397
  http://www.gvsig.gva.es

--
Ce message a ete verifie par MailScanner pour des virus ou des polluriels et
rien de suspect n'a ete trouve.

Les donnees et renseignements contenus dans ce message sont personnels,
confidentiels et prives. Toute publication, utilisation ou diffusion, meme
partielle, doit etre autorisee.

Any data and information contained in this electronic mail is personal,
confidential and secret. Any total or partial publication, use or
distribution must be authorized.


-- 
Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve.

Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.

Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized.



More information about the mapserver-users mailing list