[mapserver-users] Problem display digital raster graphics(drg)

Ed McNierney ed at topozone.com
Mon Mar 4 07:29:26 PST 2002


Jason -

Which "compressed TIF format" are you using?  There are two - PackBits
and LZW.  The standard libtiff library only supports PackBits
compression due to Unisys patent requirements.  Is it possible that your
orthoquads are PackBits and your DRGs are LZW?

	- Ed

Ed McNierney
Chief Mapmaker
TopoZone.com
ed at topozone.com
(978) 251-4242


-----Original Message-----
From: Jason Wolfe [mailto:jwolfe at sdimaps.com]
Sent: Monday, March 04, 2002 9:54 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [mapserver-users] Problem display digital raster graphics(drg)


I have been trying to solve this issue for awhile, but can not seem to
figure out what is going on.

I have no problem displaying shapefiles,digital ortho quads in
compressed tif format.
But I can not display a digital raster graphic(drg) in compressed tif
format.
Something is happening in the conversion process from tif to either jpeg
or png.
I have two different images I am testing with, neither one will display
and the output jpg/png for both images are the exact same size.  This
does not make any since, I have tried everything I can think of.  Does
anyone have any other suggestions?
I don't think it is a .map issue, but just in case here is my .map:

MAP
  NAME DRGVIEWER
  EXTENT 678106.875 3458540.750 690518.813 3473092.500
#  EXTENT -108 30 -110 32
  SIZE 400 400
  SHAPEPATH "../downloads/drgs/24k/clipped"
  STATUS ON
  IMAGETYPE jpeg
  UNITS meters
 IMAGECOLOR 64 105 255
# IMAGETYPE tiff
  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 '31109c1cg.tif'
     backgroundcolor 56 56 56
     COLOR 124 124 124
     outlinecolor 0 0 0
#     TEMPLATE counties.html
    END
  END
END

Thanks in advance for the help,

Jason




More information about the MapServer-users mailing list