[mapserver-users] getfeatureinfo from cascaded WMS layer,
Fuchs Juan Carlos
jfuch at indec.mecon.gov.ar
Thu Aug 8 12:48:20 PDT 2013
Hi folks,
getfeatureinfo from cascaded WMS layer, won't work.
The origin layer is publish in GeoServer (sorry)
With WMS published and query allowed
On the other side we have MAapserver with a cascaded layer service
http://200.51.91.237/cgi-bin/mapserv?map=/home/wms/codgeo_cascada.map
<http://200.51.91.237/cgi-bin/mapserv?map=/home/wms/codgeo_cascada.map>
It displays well, but getfeatureinfo don´t work
All I get is a "Search returns no results"
In a neutral browser like Gaia.
Here is my *.map file (Cascaded service via Mapserver)
MAP # Abrir mapa
DEBUG ON
NAME CODGEO
STATUS ON
SIZE 604 604
EXTENT 1688948.00 3785439.00 5996706.00 7725558.00 #revisar
UNITS METERS
FONTSET "/mserv/web/mapas/fonts.inc"
IMAGECOLOR 255 255 255
IMAGETYPE PNG
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
END
#OUTPUTFORMAT
# NAME jpeg
# DRIVER "GD/JPEG"
# MIMETYPE "image/jpeg"
# IMAGEMODE RGB
# EXTENSION "jpg"
#END
# web interface definition
WEB
# the template for browsing mode
TEMPLATE "/example/main.html"
IMAGEPATH "/mserv/web/produccion/www/temp/"
IMAGEURL "/tmp/"
LOG "/tmp/mapserverlog.txt"
# DUMP TRUE
METADATA
"wms_title" "INDEC - CodGeo 2010"
"ows_title" "INDEC - CodGeo 2010" # necesario para getfeatureinfo ?
"wms_onlineresource"
"http://200.51.91.237/cgi-bin/mapserv?map=/home/wms/codgeo_cascada.map"
"wms_getfeatureinfo"
"http://200.51.91.237/cgi-bin/mapserv?map=/home/wms/codgeo_cascada.map" #
necesario para getfeatureinfo ?
"wfs_onlineresource" "No HAY"
"wms_srs" "AUTO epsg:22183 epsg:22184 epsg:22185 epsg:22186 epsg:22187
EPSG:4326 epsg:22182 epsg:22172 epsg:22173 epsg:41001 epsg:22192 epsg:22193
epsg:22194 epsg:22195 epsg:22196 epsg:22197"
# "wms_feature_info_mime_type" "text/plain" # ERA "text/html plain/text"
"wms_getfeatureinfo_format" "application/vnd.ogc.gml" # necesario
para getfeatureinfo ?
"wms_abstract" "Este servicio publica los códigos utilizados en el
operativo censal Censo Nacional de Población, Hogares y Viviendas (CNPHyV)
2010."
"wms_contactelectronicmailaddress" "jfuch at indec.mecon.gov.ar"
"wms_contactperson" "Juan Carlos Fuchs"
"wms_contactorganization" "INDEC - Proyecto SIG"
"wms_contactposition" "Asesor Técnico Proyecto SIG"
"wms_enable_request" "*" # necesario para getfeatureinfo ?
"gml_enable_request" "*" # necesario para getfeatureinfo ?
"ows_enable_request" "*" # necesario para getfeatureinfo ?
END
QUERYFORMAT text/plain # necesario para getfeatureinfo ?
LEGENDFORMAT text/html # necesario para getfeatureinfo ?
BROWSEFORMAT text/html # necesario para getfeatureinfo ?
END
PROJECTION
"init=epsg:22183"
END
#********************************************
#****CONEXION A wms del Server Virtual*******
#********************************************
# PROVINCIAS
LAYER
NAME "indec:t_pais_x_provincia_color"
TYPE RASTER
STATUS ON
CONNECTION "http://172.26.66.41:8080/geoserver/indec/wms"
CONNECTIONTYPE WMS
# DUMP TRUE
TOLERANCE 3
TOLERANCEUNITS PIXELS
TEMPLATE "/example/main.html"
PROJECTION
"init=epsg:22183"
END
METADATA
#"wms_title" "Provincias CodGeo WMS"
"wms_title" "Provincias Argentinas 2010"
"wms_srs" "epsg:22183"
"wms_name" "indec:t_pais_x_provincia_color" #Lista de
Layers que mostrar, separados x comas
"wms_server_version" "1.0.0"
"wms_format" "image/png"
"wms_metadataurl_format" "application/vnd.iso.19139+xml"
"wms_metadataurl_type" "TC211"
"wms_metadataurl_href"
"http://200.51.91.237/metadata/ARG-INDEC-CNPHyV2010-DPT-WMS-2013_08_02.xml"
"gml_include_items" "all"
"wms_include_items" "all"
"ows_include_items" "all" # necesario para getfeatureinfo ?
"wms_info_format" "application/vnd.ogc.gml" # necesario para
getfeatureinfo ?
"wms_enable_request" "*" # necesario para getfeatureinfo ?
"gml_enable_request" "*" # necesario para getfeatureinfo ?
"ows_enable_request" "*" # necesario para getfeatureinfo ?
END
END
#*********************************************
#****FIN CONEXION A wms del Server Virtual****
#*********************************************
END
I`m out of answers, any help will be welcome
Thanks in advance
JC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130808/7dc8fa73/attachment.htm>
More information about the MapServer-users
mailing list