[Chameleon] strange raster rendering in Chameleon

Stephan Holl sholl at gmx.net
Wed May 11 10:10:05 EDT 2005


Dear List,

I have a problem regarding to raster-rendering inside chameleon.
My raster does not show up where it needs to be,  but when I use the
exact mapfile with shp2img, everything is in its place.
Also simplifying the mapfile and doing some mapscript to render the
map, everything is fine.

I am at the end of my knowledge...
Perhaps some other guys out there can give me a hint.

My mapfile:
 OUTPUTFORMAT
    NAME png
    MIMETYPE image/png
    DRIVER GD/PNG
    EXTENSION png
    IMAGEMODE PC256
    TRANSPARENT TRUE
  END
[...]  
  IMAGECOLOR 255 255 255
  UNITS dd

  PROJECTION
    "init=epsg:4326" 
  END
[...]
LAYER
    NAME "lingen"
    STATUS ON
	METADATA
		"DESCRIPTION" "TK Lingen"
		"GROUP" "Raster"
		"LAYER" "lingen"
	END
    TYPE RASTER
	DATA "../data/3384_5820_lel144_2002.tif"
    PROJECTION
      "init=epsg:31467"
    END
  END

As said, everything renders fine with shp2img and with simplistic php-
mapscipt

$map = ms_newMapObj($map_path.$map_file);
$img = $map->draw();

$url = $img->saveWebImage(PNG, 0, 0, -1);
echo"<img SRC=$url  BORDER=1 WIDTH=$map->width
HEIGHT=$map->height NAME=mainmap >";

I have some other raster inside the map with a tileindex which show up
just fine!

Any clues?

Best

	Stephan


-- 
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/chameleon/attachments/20050511/6ef601ab/attachment.bin


More information about the Chameleon mailing list