[mapserver-users] WMS image doesn't shows at major scales

Smith, Michael D ERDC-CRREL-NH michael.smith at usace.army.mil
Mon Dec 6 14:23:35 EST 2010


Carlos,

Can you set DEBUG 5 at both the LAYER and MAP level and see what shows up in
the error log?

Also I note that you are specifying the projection at the WMS level in EPSG
terms but not at the MAP and LAYER levels. You should use the EPSG code at
the MAP and LAYER projection blocks as MapServer does not know that your
projection text and the EPSG codes are equivalent so you will be undergoing
reprojection on each call.

Mike


-- 
Michael Smith
Remote Sensing/GIS Center
US Army Corps of Engineers
Hanover, NH



On 12/6/10  2:18 PM, "Carlos Ruiz" <boolean10001 at yahoo.com> wrote:

> Hi to all,
> 
> I have a problem here with an WMS layer, and have no clue about what could be
> happening. I have an ECW file
> with the following info:
> 
> Driver: ECW/ERMapper Compressed Wavelets
> Files: mosaico_spot_2009.ecw
> Size is 192034, 184370
> Coordinate System is `'
> Origin = (425473.750000000000000,2527371.250000000000000)
> Pixel Size = (2.500000000000000,-2.500000000000000)
> Corner Coordinates:
> Upper Left  (  425473.750, 2527371.250)
> Lower Left  (  425473.750, 2066446.250)
> Upper Right (  905558.750, 2527371.250)
> Lower Right (  905558.750, 2066446.250)
> Center      (  665516.250, 2296908.750)
> Band 1 Block=192034x1 Type=Byte, ColorInterp=Red
>   Overviews: arbitrary
>   Metadata:
>     LAYER_TYPE=athematic
> Band 2 Block=192034x1 Type=Byte, ColorInterp=Green
>   Overviews: arbitrary
>   Metadata:
>     LAYER_TYPE=athematic
> Band 3 Block=192034x1 Type=Byte, ColorInterp=Blue
>   Metadata:
>      LAYER_TYPE=athematic
>  
> It is provided as a WMS and here is the MAP file contents:
> 
> MAP
> 
>         NAME 'spot'
>         SIZE 800 600
>         UNITS meters
> 
>         DEBUG 5
>         CONFIG "MS_ERRORFILE" "/var/www/html/spot.log"
>                 
>         EXTENT 425473 2066446 905559 2527371
> 
>         PROJECTION
>                 'proj=utm'
>                 'ellps=WGS84'
>                 'datum=WGS84'
>                 'zone=13'
>                 'north'
>                 'nodefs'
>         END
>     
>         OUTPUTFORMAT
>                 NAME jpeg
>                 DRIVER "GD/JPEG"
>                 MIMETYPE "image/jpeg"
>                 IMAGEMODE RGB
>                 EXTENSION "jpg"
>         END
> 
>         METADATA
>                         'wms_title'                             'SPOT'
>                         'wms_onlineresource'
> 'http://sitel.jalisco.gob.mx/cgi-bin/spot'
>                         'wms_srs'                               'EPSG:32613'
>                         'wms_fees'                              'none'
>                         'wms_contactperson'                     'IC Carlos
> Ruiz'
>                         'wms_contactelectronicmailaddress'
> 'cruizch at gmail.com'
>         END
>                 
>         LAYER
>                 
>             NAME 'spot'
>             TYPE RASTER
>             DATA '/var/www/html/raster/spot.ecw'
>             STATUS DEFAULT
>             
>             PROJECTION
>                 'proj=utm'
>                 'ellps=WGS84'
>                 'datum=WGS84'
>                 'zone=13'
>                 'north'
>                 'no_defs'
>             END
>             
>             METADATA
>                 'wms_title' 'Imagen SPOT'
>             END
>                  
>          END
> 
> END
> 
> Everything works fine above the 1:152,000 scale, but when you try to reach
> major scales, it shows nothing. The
> map has no MINSCALEDENOM nor MAXSCALEDENOM.
> 
> Taking a look at the log file, nothing's wrong. If I set the "MS_NONSQUARE"
> config key throws:
> 
> msDrawMap(): kicking into non-squarepixel preserving mode.
> 
> but nothing yet shows beyond 1:152,000.
> 
> Does anyone have a clue about what's wrong ? I'm using Mapserver 5.6.5
> 
> Thanks in advance
> 
> IC Carlos Ruiz
> 
>  
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101206/b9a44862/attachment.html


More information about the mapserver-users mailing list