[Mapserver-users] Newbie Question about rasters

Ed McNierney ed at topozone.com
Fri Mar 26 15:28:33 PST 2004


Paul -

JPEG is a very poor format type to use for geospatial data, mainly due
to performance issues (you need to read and decode the entire image just
to get the value of one pixel).  It seems likely that MapServer is not
reading georeference information for your JPEG, while ArcGIS is.

What do you get when you run "mapserv -v" from the command line?

What is the filename of the georeference "world" file?  It will be
raster/ak.something

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com
-----Original Message-----
From: Paul VanDyke [mailto:pvandyke at kib.co.kodiak.ak.us] 
Sent: Friday, March 26, 2004 5:50 PM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Newbie Question about rasters

I've got a working installation of Mapserver w/ some test maps @
209.165.152.94.  Please feel free to drop by and check them out.  I'd
like to add a raster image layer to my maps.  I can't seem to get the
raster working w/ Mapserver.  I am using the same raster image in ArcGIS
and it works fine.  

I've tried several different things to try and make it work.  Please
give me any hints, clues or advice that you think is relative.  No help
will be turned away. :-)

Here is my map file:

MAP
  NAME map6
  IMAGETYPE PNG24
  EXTENT -903026 648632 1888140 1849511
  SIZE 800 400
  SHAPEPATH "data"
  IMAGECOLOR 255 255 255
#  DEBUG ON

  WEB
    TEMPLATE  'map6.html'
    IMAGEPATH 'c:/program files/apache group/apache2/htdocs/tmp/'
    IMAGEURL '/tmp/'
#    LOG 'c:\mapserver.log'
  END


  # Start of LAYER DEFINITIONS -----------------------------

  LAYER # water
	NAME water
	DATA kib_boundary
	STATUS DEFAULT
	TYPE POLYGON

	CLASS
	  STYLE
		COLOR 115 207 255
		OUTLINECOLOR 32 32 32
	  END
	END
   END
  


  LAYER # coast
	NAME coast
	DATA kib_coast
	STATUS DEFAULT
	TYPE POLYGON

	CLASS
	  STYLE
		COLOR 0 216 56
		OUTLINECOLOR 32 32 32
	  END
	END
   END


 LAYER # MODIS raster layer begins here
    NAME modis
    DATA "raster/ak.jpg"
    STATUS DEFAULT
    TYPE RASTER
#    PROCESSING "BANDS=1"
#    OFFSITE 71 74 65
  END # MODIS raster layer ends here




  LAYER # parcels polygon layer begins here
    NAME parcels
    DATA parcels2
    STATUS ON
    TYPE POLYGON

    CLASS
      STYLE
        COLOR 241 238 163
        OUTLINECOLOR 32 32 32
      END
    END
  END # States polygon layer ends here


  LAYER # lakes
	NAME lakes
	DATA lake
	STATUS OFF
	TYPE POLYGON

	CLASS
	  STYLE
		COLOR 39 70 255
		OUTLINECOLOR 32 32 32
	  END
	END
   END

  LAYER # rivers
	NAME rivers
	DATA river
	STATUS OFF
	TYPE POLYGON

	CLASS
	  STYLE
		COLOR 39 70 255
		OUTLINECOLOR 32 32 32
	  END
	END
   END

  LAYER # roads
	NAME roads
	DATA roads
	STATUS OFF
	TYPE LINE

	CLASS
	  STYLE
		COLOR 0 0 0
		OUTLINECOLOR 32 32 32
	  END
	END
   END

  SCALEBAR
    IMAGECOLOR 255 255 255
    LABEL
      COLOR 0 0 0
      SIZE TINY
    END
    STYLE 1
    SIZE 100 2
    COLOR 0 0 0
    UNITS MILES
    INTERVALS 2
    TRANSPARENT FALSE
    STATUS ON
  END




  # End of LAYER DEFINITIONS -------------------------------


END # end of map file/object

_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users





More information about the MapServer-users mailing list