MapServer / MapServer-import

3 stars 2 forks source link

[MapServer-msautotest]raster layer not projected correctly with tomk_workshop.map #1920

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: nsavard@mapgears.com Date: 2006/09/26 - 21:24

The raster layer "land_shallow_topo_2048" in tomk_workshop is not projected
correctly on Linux compared to Windows.  The projection is set correctly (  
"init=epsg:4326") in the layer and in the map file.  I tested on MS beta 3 on
both OS.  I will attached files for comparison.
tbonfort commented 12 years ago

Author: nsavard@mapgears.com Date: 2006/09/26 - 21:33

MapServer configuration on Windows:
version = MapServer version 4.10.0-beta3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPU
T=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
 SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
 SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG
INPUT=SDE INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
 DEBUG=MSDEBUG

MapServer configuration on Linux:
version = MapServer version 4.10.0-beta3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
tbonfort commented 12 years ago

Author: nsavard@mapgears.com Date: 2006/09/27 - 15:16

The simple way to reproduce this is to execute the following command:
shp2img -m tomk_workshop.map -o map.png
tbonfort commented 12 years ago

Author: nsavard@mapgears.com Date: 2006/09/27 - 19:08

Could you have a look at this bug Tom?
tbonfort commented 12 years ago

Author: tomkralidis Date: 2006/09/27 - 21:40

Normand: can you contact me offline via email to help me checkout msautotest? 
I'll take a look at things
tbonfort commented 12 years ago

Author: nsavard@mapgears.com Date: 2006/10/04 - 20:27

Tom's answer:

The problem is the TIFF image in
msautotest/wxs/data/land_shallow_topo_2048.tif.

The accompanying .wld file is defined for an image of 2048 x 1024.  The
image in the CVS is 512 x 256.

So, there are two options you can take:

1./ fetch the actual (2048 * 1024) image from the MS OGC Web Services
workshop from http://ms-ogc-workshop.maptools.org/, remove the old image
and replace it with the large one

OR

2./ the image may have been shrunk in the interest of size.  Because
it's cut down by a factor of 4, multiplying the x/y coords in the .wld
file will render the image correctly.

I have tested with the following .wld file:

0.703125
0.0
0.0
-0.703125
-180
90

And all works fine.
tbonfort commented 12 years ago

Author: nsavard@mapgears.com Date: 2006/10/04 - 20:29

I will go for option 2.  Fixed in CVS.

Frank's comment:

Guys,

Thanks for taking this option.  It is my intention that the msautotest
datasets be pretty small.  Dealing with FDO (part of MapGuide) and it's
enourmous test datasets in source control has once again convinced me
that keeping test datasets smallish is valuable!