[mapserver-users] displaying raster images..

Lowell Filak lfilak at medinaco.org
Wed Mar 13 10:48:12 EST 2002


If you temporarily move ../downloads/drgs/24k/clipped/31109c1c.tif to the cgi-bin directory or a subdirectory of it does that help?
Lowell F.

The following message was sent by Jason Wolfe <jwolfe at sdimaps.com> on Tue, 12 Mar 2002 14:56:10 -0500.

> here is a copy of my .map file:
> 
> MAP
>   NAME DRGVIEWER
>   EXTENT 678106.875 3458540.750 690518.813 3473092.500
>   SIZE 400 400
>   SHAPEPATH "../downloads/drgs/24k/clipped"
>   STATUS ON
>   IMAGETYPE jpeg
>   UNITS meters
> # IMAGECOLOR 64 105 255
>   WEB
>     IMAGEPATH "/var/www/html/tmp/"
>     IMAGEURL "/tmp/"
>     TEMPLATE drg.html
> #    LOG "/tmp/log.dat"
>   END
> 
>   LAYER
>     NAME drg_g1
>     DATA "31109c1c.tif"
>     TYPE RASTER
>     LABELCACHE ON
>     POSTLABELCACHE TRUE
>     STATUS ON
>     CLASS
>      NAME '31109c1.tif'
>      backgroundcolor 56 56 56
>      COLOR 124 124 124
>      outlinecolor 0 0 0
>     END
>   END
> END
> 
> 
> And this is a copy of the .tfw that is defining the image:
> 
>        2.43840000000000
>        0.00000000000000
>        0.00000000000000
>       -2.43840000000000
>   678312.55959095864000
>  3472708.77648849230000
> 
> As I see it, the extents should be correct, but I do not no for sure.. I am
> just out of ideas..
> 
> Thanks
> 
> Stephen Woodbridge wrote:
> 
> > You probably need to post yout map file to the list along with the text
> > you get from mapserver -v
> >
> > -Steve W.
> >
> > Jason Wolfe wrote:
> > >
> > > I have been trying to display tif images now for about 3 weeks.  I can
> > > not get mapserver to display them.  I have tried multiple .tif images
> > > and none work.  When mapserver goes and creates the .jpg to display no
> > > matter what image it is, the file size will be 1524 bytes.  If I create
> > > a png file the file sizes will be 143 bytes.  Does anyone have any clue
> > > to what is going on?
> > > I compiled mapserver with everything it needs to work.  It acts like it
> > > is only doing a specific amount of processing then cutting it off at
> > > 1524 bytes.
> > > I desperately need help...
> > >
> > > Thanks,
> > >
> > > Jason




More information about the mapserver-users mailing list