[Mapserver-users] Mapscript $layerObj->draw($imageObj) bug?

Sean Gillies sgillies at frii.com
Tue Jun 1 14:14:20 EDT 2004


On Jun 1, 2004, at 11:47 AM, Homme Zwaagstra wrote:

> Hi,
>
> I have a mapscript problem:
>
> Using the draw method of a layerObj instance doesn't seem to correctly
> draw scaled symbols; I am attempting to set a point layer's SIZEUNITS
> property to KILOMETERS in an effort to draw a scaled buffer (see
> attached test.map for minimalist mapfile).
>
> Calling shp2img on this mapfile produces an image with a correctly
> scaled symbol. Creating the image with the the mapObj's draw method
> also works correctly (see attached output image map_draw.png). Using
> the layerObj's draw method, however, seems to ignore the SIZEUNITS
> setting and uses the default scaling of pixels (see attached output
> image layer_draw.png).
>
> This issue exists in PHP mapscript and Python mapscript. See the
> attached files test.php and test.py for scripts demonstrating the
> problem.
>
> I'm using mapscript and mapserver 4.2.0. This problem manifested
> itself in 4.0.1 but I upgraded before investigating further.
>
> I've searched the archives but could find no mention of this
> problem. Am I missing something here or is this a bug? If I don't hear
> back I'll file it in bugzilla...
>
> Kind regards,
>
> Homme Zwaagstra

Homme,

Each flavor of mapscript is calling on the same function, msDrawLayer, 
to do the
actual drawing.  I think that is where the sizeunits are being ignored.

Please do file it in Bugzilla, but under MapServer C Library instead of 
mapscript,
and add your attachments to the bug.

cheers,
Sean

--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies




More information about the mapserver-users mailing list