FW: [UMN_MAPSERVER-USERS] GetFeatureInfo problem
Kralidis,Tom [Burlington]
Tom.Kralidis at EC.GC.CA
Mon Jul 4 08:29:50 EDT 2005
There have been a few emails w.r.t. this subject.
We should really document the new GML functionality and mapfile requirements. The question is where is this best placed? In the WFS-Server howto? I would suggest a GML howto.
..Tom
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden
Sent: Monday, 04 July, 2005 03:35
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] GetFeatureInfo problem
Hi,
you need to add gml_include_items to your LAYER's METADATA section:
METADATA
..
gml_include_items "all"
..
END
starting version 4.6.
Best regards,
Bart
Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG DELFT
tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
>>> José Vicente Higón Valero <higon_jos at GVA.ES> 07/01/05 01:59pm >>>
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-dev
mailing list