[mapserver-users] Mapserver and raster layers
Stephen Woodbridge
woodbri at swoodbridge.com
Sat Apr 16 13:34:48 PDT 2011
On 4/16/2011 4:33 PM, Christopher Dedels wrote:
> Thanks for the suggestion. I have tried it and it appears to have no
> effect.
>
> Chris
>
>
> On Sat, Apr 16, 2011 at 4:26 PM, Stephen Woodbridge
> <woodbri at swoodbridge.com <mailto:woodbri at swoodbridge.com>> wrote:
>
> Try changing the layer status to default, ie:
>
> STATUS DEFAULT
>
> -Steve W
>
>
> On 4/16/2011 2:22 PM, Christopher Dedels wrote:
>
> I am having some problems adding a raster layer to my map. The
> image
> produced by mapserver is blank. My mapfile is as follows:
>
> MAP
> SIZE 800 600
> UNITS meters
This is a problem, Your UNITs are meters, but your extents and
projection are DD!
>
> EXTENT -123.8600311 38.0116386 -97.1885986 53.7055626
>
> PROJECTION
> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
> END
>
> LAYER
> NAME "grid"
> TYPE RASTER
> DATA "/tmp/image.tiff"
> STATUS ON
> PROJECTION
> "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
> END
> END
> END
>
> I have also noticed that changing the DATA path to a file which
> does not
> exist in the filesystem (or is not a GDAL-supported file format)
> has no
> effect on the rendered output and does not produce an error message.
>
> Can somebody help me where I am going wrong?
>
> Thanks
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> <mailto:mapserver-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
>
> _______________________________________________
> 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