[mapserver-users] WMS client sample

Jeff McKenna jmckenna at gatewaygeomatics.com
Wed Jul 22 12:47:57 PDT 2009


Evemar Wernick wrote:
> Hi all,
> 
> I'm trying to show a WMS layer in Mapserver (5.4.1). I've tried to use 
> lots of samples from the Internet, but without success.
> It woks fine with some local data (shapefiles), so it's not a 
> Mapserver/Apache problem (I'm using MS4W). I also have tested the 
> connection url in ArcGis, and was ok.
> When I try to get WMS layer, it just show a blank rectangle...
> Does anyone could help or send me some working sample (html and .map)?

Hello,

My guess is that you're running into projection problems.  Here are some 
quick notes:

- make sure your MAP level EXTENTS match the projection defined at the 
MAP level
   - if you don't have a projection object at MAP level then add one 
(think of this as output projection)
- make sure your WMS layer contains a projection object, in order to 
tell MapServer what the requested image's projection is
   - the EPSG code is the code that you requested from the WMS server

Hope that helps.

-jeff


-- 
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/





More information about the MapServer-users mailing list