In case anyone else wants the createLegendIcon to return the image based what
would be drawn at the current mapscale, here is what I did.
In the mapserver 7.0.4 source code, mapscript/php/mapscript_i.c line 1116 has
scale_independant hard coded to MS_TRUE. I changed it to MS_FALSE, recompiled
Sorry I forgot to say that I have tried the script with the following versions
with the same results.
MapServer version 7.0.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CL
I am finding that createLegendIcon returns a different legend item than what is
used in the map output when using scaledenom in the style.
Below is a test script that produces what I am talking about.
The script will create 4 images.
map_scale_873.png -> map->draw output with a 873 scaledenom
m
On 2017-03-30 6:14 AM, Jan Hartmann wrote:
Hi folks,
Perhaps I overlooked something, but I don't see how to define a
composite block within a layer with php-mapscript. In a regular mapfile
it works beautifully (http://mapserver.org/mapfile/composite.html)
Hi Jan, there is already a ticket for
Hi folks,
Perhaps I overlooked something, but I don't see how to define a
composite block within a layer with php-mapscript. In a regular mapfile
it works beautifully (http://mapserver.org/mapfile/composite.html)
Regards,
Jan Hartmann
Amsterdam
___