Raster layers from PNG + .wld file

Stephen Davies sdc at SDC.COM.AU
Tue Jan 24 02:13:04 PST 2006


G'day all.

I have been successful in using ECW files as raster layers but am now 
trying to use a PNG file plus a .wld file with blank results.

My test map file looks like this:
MAP
  NAME test
   
    EXTENT 735810 8454630 742810 8461630
    PROJECTION
       "init=epsg:28352"
    END

    SIZE 600 600
    FONTSET "/usr/local/apache2/htdocs/benparts/fonts.list"
    SYMBOLSET "/usr/local/apache2/htdocs/benparts/symbols"
    UNITS METERS
    IMAGETYPE  png24
    IMAGECOLOR 255 255 255

    WEB
	template /usr/local/apache2/htdocs/benparts/templates/test1.html
	imagepath "/usr/local/apache2/htdocs/tmp/"
	imageurl  "/tmp/"
    END

    LAYER
      TYPE RASTER
      NAME "bkgrnd"
      STATUS DEFAULT
      PROJECTION
       "init=epsg:28352"
      END
      DATA "/usr/local/apache2/htdocs/benparts/rasters/dd1.png"
      PROCESSING "DITHER=YES"
    END
END

My dd1.wld file looks like:

2.1
0.0000000000
0.0000000000
-2.1
746046.00
8450252.00

The URL:

http://www.sdc.com.au/cgi-bin/mapserv?map=/tmp/test.map

gives no errors and an empty display.

What am I doing wrong?

Cheers and thanks,
Stephen Davies
-- 
 =======================================================================
This email is for the person(s) identified above, and is confidential to
the sender and the person(s).  No one else is authorised to use or
disseminate this email or its contents.

Stephen Davies Consulting                            Voice: 08-8177 1595
Adelaide, South Australia.                             Fax: 08-8177 0133
Computing & Network solutions.                       Mobile:0403 0405 83



More information about the MapServer-users mailing list