Unable to get a transparent layer using shp2img -t

Frank Warmerdam warmerdam at POBOX.COM
Fri May 12 17:09:51 EDT 2006


cropwithdawn wrote:
> Here is the command:
>  
> shp2img -t -m wfs_only.map -o wfs_only.png -i PNG
>  
> The wfs_only.map is using a simple shapefile.
>  
> I get a PNG file but it's not transparent. What's up?

JAB,

I have confirmed the problem, and determined it is because
map->transparent is now applied in msPostMapParseOutputFormatSetup().
This is already done by the time shp2img processes the -t flag.

Since it doesn't work, I have removed the switch from shp2img.  Instead
you can add the line:

   TRANSPARENT ON

in your mapfile.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org



More information about the mapserver-users mailing list