MapTools.org

[maplab-users] RE: [mapserver-users] WMS layers

Daniel Morissette morissette@dmsolutions.ca
Mon, 18 Nov 2002 13:52:07 -0500
(Note: I removed mapserver-users from the CC: in order to avoid
cross-posting)

Scott,

This almost looks like one of the mapfiles on one of your WMS servers
doesn't have its projection set properly, maybe some layer or top-level
map projection definition mmissing.  Also make sure that all projections
specified everywhere are valid.

Another thing to check would be to make sure that none of your servers
is missing the PROJ4 datum shift files (under C:\proj\nad on Windows).

Unfortunately suggestions like this is all we can offer given the
information we have.

Daniel



"Tweedy, Scott" wrote:
> 
> OK, I'm sure I didn't make my explanation very clear and it's too bad I
> can't use the actual URLs.  I've included 3 screen shots of the same area of
> one of my maps.  The first shot <original_map.gif> is a screen shot of the
> area using a .map file that contains references to files (ECW file and
> shapefiles) that are located on my computer and are being viewed in a
> MapEdit Preview widow.
> 
> The second screen shot <original_map_getmap.gif> is the same map, but viewed
> through Netscape using a WMS GetMap request.  The colours changed a little,
> but the area is rendered fairly well.
> 
> The third screen shot <map_with_WMS_layers.gif> is the one I'm concerned
> with.  I took the shapefiles of the polygon, line and point layers and
> copied them to another computer with MapServer on it.  I added those layers
> as WMS layers to my original .map file and displayed the results.  This is
> just the difference when shapefiles are used.  The difference with rasters
> is even greater (because of the number of colours, I guess).  Is this normal
> or could it be something to do with my configuration?
> 
> Thanks in advance,
> st
> 
> -----Original Message-----
> From: Ed McNierney [mailto:ed@topozone.com]
> Sent: Monday, November 18, 2002 10:51 AM
> To: Tweedy, Scott; MapLab Users (E-mail); MapServer Users (E-mail)
> Subject: RE: [mapserver-users] WMS layers
> 
> Scott -
> 
> Could you post screen shots of the two images you're comparing?
> 
> I'm not completely clear on what these two usage scenarios are - in
> particular:
> 
> "If I add a layer definition in a .map file for one of the same layers in
> the
> same .map file used previously and view the .map file on the Intranet or
> through MapLab the WMS layer is rendered very poorly."
> 
> Are you working with two DIFFERENT .map files, or the same .map file viewed
> in two different contexts?
> 
> Are your layers raster layers, vector, or both?  If they're raster layers,
> are they being viewed at the same scale in both contexts (image
> resizing/resampling can degrade the image quality a lot).
> 
> Your comment, "Shouldn't a map layer added as a WMS layer in a .map file
> look the same as that same layer does when using a WMS GetMap request?"
> still puzzles me.  How are you looking at a "WMS layer" in a .map file OTHER
> than by using a WMS GetMap request?  Sorry if I'm sounding dense, but if you
> could clarify what these two scenarios are it would help me.  Thanks.
> 
>         - Ed
> 
> Ed McNierney
> President and Chief Mapmaker
> TopoZone.com / Maps a la carte, Inc.
> 73 Princeton Street, Suite 305
> North Chelmsford, MA  01863
> ed@topozone.com
> (978) 251-4242
> -----Original Message-----
> From: Tweedy, Scott [mailto:sctweedy@NRCan.gc.ca]
> Sent: Monday, November 18, 2002 10:21 AM
> To: MapLab Users (E-mail); MapServer Users (E-mail)
> Subject: [mapserver-users] WMS layers
> 
> I've been experimenting with WMS layers and creating a WMS application and I
> have a question about image quality and georeferencing with MapServer and
> maybe MapLab.
> 
> Unfortunately, the application is on an Intranet or I could give the actual
> URL examples.
> 
> If I create a .map file and call that file through MapServer as a WMS GetMap
> request:
> http://<myserver>/cgi-bin/mapserv.exe?map=wms.map&version=1.1.0&request=GetM
> ap
>  the file comes up exactly as I want it, the images are crisp and accurate.
> 
> If I add a layer definition in a .map file for one of the same layers in the
> same .map file used previously and view the .map file on the Intranet or
> through MapLab the WMS layer is rendered very poorly.  The colours are all
> different, lines are very pixilated and the location of the element (whether
> it's a point, line, polygon or raster layer) is not correct.  If necessary I
> can send screen shots of the problem.
> 
> Is there something I'm missing?  Shouldn't a map layer added as a WMS layer
> in a .map file look the same as that same layer does when using a WMS GetMap
> request?  Am I missing something?
> 
> I'm using:
> MapServer version 3.5 (beta) OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
> MapLab 2.0rc2
> php 4.2.2
> MapScript 3.6
> 
>   ------------------------------------------------------------------------
>                        Name: original_map.gif
>    original_map.gif    Type: GIF Image (image/gif)
>                    Encoding: base64
> 
>                               Name: original_map_getmap.gif
>    original_map_getmap.gif    Type: GIF Image (image/gif)
>                           Encoding: base64
> 
>                               Name: map_with_WMS_layers.gif
>    map_with_WMS_layers.gif    Type: GIF Image (image/gif)
>                           Encoding: base64



This archive was generated by Pipermail.