Hola David,
No he conseguido aún que me funcionen las plantillas, pero lo que sí he
conseguido es que me devuelva todos los atributos en texto plano. Lo he
conseguido añadiendo lo siguiente: "wms_include_items" "all" en el objeto
LAYER. Y entonces me devuelve lo correcto (aunque de momento sin formato html):
GetFeatureInfo results:
Layer 'ENP'
Feature 6:
ENP_NOMBRE = 'Carrascoy y El Valle'
ENP_CAT = 'Parque Regional'
HECTAREAS = '11873.77004420'
ENP_FECHA = '20050610'
LINK = 'http://www.carm.es/medioambiente/articulos.html?id=2469'
SHAPE_AREA = '1.18737700435e+008'
SHAPE_LEN = '1.31916887359e+005'
En fin, voy a seguir probando.
Un saludo.
Hi David,
Template still does not work, but i get full results with plain text. I get it
adding this tag "wms_include_items" "all" in the LAYER object. And then it
returns correct results (though without html format).
Well, I continue testing.
Bye.
---------------------------------------------
Alexandre Rodier
Asistencia Técnica del SIGA
Servicio de Información e Integración Ambiental
Dirección General de Patrimonio Natural y Biodiversidad
Consejería de Agricultura y Agua.
c/ Arquitecto Emilio Piñero, 1 Entresuelo C
30.007 Murcia
Tel. 968246272
Correo-e: [email protected]
http://www.carm.es/medioambiente
---------------------------------------------
________________________________
De: David Martinez Morata [mailto:[email protected]]
Enviado el: viernes, 09 de enero de 2009 10:23
Para: RODIER BATISSE, ALEXANDRE
Asunto: Re: [mapserver-users] Problem with template
No se si esto te ayudara, pero elimina ciertos elementos html de tus ficheros
plantilla imaginate que los tres forman un solo fichero html, es decir que no
cierres el contenido html (/html) en la cabecera ni en el cuerpo, hazlo solo en
el pie, no pongas cabeceras a los ficheros cuerpo y pie...
Suerte
2009/1/9 RODIER BATISSE, ALEXANDRE <[email protected]>
Hi everyone,
Before to explain my problem I wish a happy new year.
Well, my problem is relationed with a mail than i sent past dicember about
problem with template.
I define a map file with template definition in layer object (I attach it). I
define also MIME format for query in the web object like
"wms_feature_info_mime_type" "text/html,text/plain". And finaly I define the
templates files (I also attach them). The mapfile define a vector layer from
shape file with few atrributes.
The problem appears when I perform a GetFeatureinfo request:
A GetFeatureInfo request in my web browser like this
"http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/datos/map/prueba.map&SERVICE=wms&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=ENP&STYLES=&QUERY_LAYERS=ENP&x=300&y=300&SRS=EPSG:23030&BBox=
610822.81,4137430.54,707593.47,4266594&WIDTH=800&HEIGHT=500&INFO_FORMAT=text/html"
returns this result:
GetFeatureInfo results:
Layer 'ENP'
Feature 6:
As you can see, the query doesn't return attribute from shape file.
When X,Y coordinates doesn't match with any feature, the request returns:
GetFeatureInfo results:
Search returned no results.
Someone knows the source of the problem.
Thanks.
---------------------------------------------
Alexandre Rodier
Asistencia Técnica del SIGA
Servicio de Información e Integración Ambiental
Dirección General de Patrimonio Natural y Biodiversidad
Consejería de Agricultura y Agua.
c/ Arquitecto Emilio Piñero, 1 Entresuelo C
30.007 Murcia
Tel. 968246272
Correo-e: [email protected] <mailto:[email protected]>
http://www.carm.es/medioambiente <http://www.carm.es/medioambiente>
---------------------------------------------
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Martinez Morata David
Thinking GIS
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users