[Cartoweb-users] querying a wms layer

Victoria Alvarez vickyalvarez at gmail.com
Wed Apr 2 14:09:01 EDT 2008


Congratulations for your great work with this project.
 I'm analyzing Geographical Information Software and testing several
 products. I can truly say that Cartoweb is excellent!!
 Now I'm having troubles to query a wms layer, it's a simple query,
 with de query_by_box tool.
 I've made some tests with shapes and database layers, and it works OK,
 but no result is display in the wms layers case.
 I've defined the TEMPLATE in the mapfile and the "wms_" tags in the
 METADATA section, I've tried with more than once wms server and with
 different layers.

 Don't know what to do now...
 May you help me with this, please?

 Thank you.

 Example (part of my mapfile):

 LAYER
   NAME "manzanas"
   TYPE POLYGON
   STATUS ON
   CONNECTION "http://desgis.imm.gub.uy:11080/geoserver/wms?"
   CONNECTIONTYPE WMS
   TEMPLATE "http://desgis.imm.gub.uy/sit/aplicaciones/montevimap/formularios/manzanas.html"
   METADATA
       "exported_values"          "data_object, query_returned_attributes"
       "data_object"                    "mdg_manzanas"
       "wms_srs"             "EPSG:32721"
       "wms_name"            "topp:mdg_manzanas"
       "wms_server_version"  "1.1.1"
       "wms_format"          "image/png"
       "wms_legend_graphic"  "true"
       "query_returned_attributes" "CARPETA_CATASTRAL"
       "wms_info_format"       "text/plain"
   END

 END

 LAYER
  NAME "padrones_menores"
  TYPE POLYGON
  STATUS ON
  CONNECTION "http://desgis.imm.gub.uy/cgi-bin/mapserv_montevideo?"
  CONNECTIONTYPE WMS
  TEMPLATE "padrones.html"
  METADATA
     "wms_srs"             "EPSG:32721"
     "wms_name"            "padrones_menores"
     "wms_server_version"  "1.1.1"
     "wms_format"          "image/png"
     "wms_legend_graphic"  "true"
     "id_attribute_string"  "PADRON"
      "query_returned_attributes" "AREATOT"
      "wms_request"           "GetFeatureInfo"
      "wms_info_format"       "text/plain"
  END
 END


More information about the Cartoweb-users mailing list