GetFeatureInfo problem

José Vicente Higón Valero higon_jos at GVA.ES
Fri Jul 1 04:59:54 PDT 2005


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



More information about the MapServer-users mailing list