[mapserver-users] wms layer query

Eric Weisbender Weisbend at wapa.gov
Wed May 12 10:42:43 EDT 2010


Thanks Dave,

I have tried a direct getFeatureInfo request and it works great... "http://rmgsc.cr.usgs.gov/arcgis/services/nhss_haz/MapServer/WMSServer?service=WMS&version=1.1.1&request=GetFeatureInfo&SRS=EPSG:4326&BBOX=-159.845000,20.809000,-72.815000,67.239000&query_layers=1&WIDTH=1&HEIGHT=1&X=1&Y=1&info_format=text/html&".  When I query it through my MapServer I get the following error... " msQueryByRect(): Search returned no results. No matching record(s) found."  I am using MapServer Version 5.2.2 and the WMS service is a USGS service available in both WMS Version 1.1.1 and 1.3.0.  I'm wondering if there are some compatibility issues and if anyone has a working example I might take a look at.  Again, thanks in advance.

EW

>>> "Fawcett, David (MPCA)" <David.Fawcett at state.mn.us> 5/10/2010 7:33 AM >>>
Have you tried a direct getFeatureInfo request from a browser?  

David.

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Eric Weisbender
Sent: Friday, May 07, 2010 2:19 PM
To: mapserver-users at lists.osgeo.org 
Subject: [mapserver-users] wms layer query

Hello,

I have a wms layer defined in my map file coming from a USGS service that is supposed to be queryable  but when I query it I get nothing in return.  It draws fine and the GetCapabilities request says Layer queryable="1".  I wondering if it's my layer definition or if you just can't do this in basic mapserver.  Below is my layer def and any help is beer worthy.  Thanks in advance.


LAYER
  NAME "firetest"
  METADATA
    "wms_srs"             "EPSG:4326"
    "wms_name"            "1"
    "wms_server_version"  "1.1.1"
    "wms_format"          "image/png"
	"wms_title" "1"
    "wfs_title" "1"
	"wms_metadataurl_format" "text/html"
	 gml_include_items "all"
     wms_include_items "all"
 END
  STATUS OFF
  TYPE RASTER
  #MINSCALE 3800
  CONNECTIONTYPE WMS
  CONNECTION "http://rmgsc.cr.usgs.gov/arcgis/services/nhss_haz/MapServer/WMSServer?service=WMS&version=1.1.1&request=GetMap&layers=1&styles=defalut&transparent=TRUE&format=image/png"
  PROJECTION
  "init=epsg:4326"
  END
  CLASS
    NAME "fire wms test"
	KEYIMAGE '/data/gis/www/html/ms_common/fire.png'
  END
  TEMPLATE "http://gis.hq.wapa.gov/ms_common/fires.html"
  HEADER "http://gis.hq.wapa.gov/ms_common/fires_header.html"
  FOOTER "http://gis.hq.wapa.gov/ms_common/fires_footer.html"
  TOLERANCE 10
END



_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org 
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list