[mapserver-dev] Performance issue with hatching with a pattern of a polygon

lars.schylberg at blixtmail.se lars.schylberg at blixtmail.se
Mon Nov 14 07:17:30 PST 2016


Hi,

I just became curious since I haven't used hatch patterns that much.  So I made some examples myself.
It is clear from my experiments that hatch patterns takes quite some time to render in the current implementation.

My test is here:  https://gist.github.com/LarsSchy/5236d172a7534275e2d1406ca2cca5c3

mapserv -v
MapServer version 7.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

$ shp2img -m polygon-examples-hatch.map -o polygon-examples-hatch.png -map_debug 5
msDrawMap(): rendering using outputformat named png (AGG/PNG).
msDrawMap(): WMS/WFS set-up and query, 0.000s
msDrawMap(): Layer 0 (Example 1), 0.002s
msDrawMap(): Layer 1 (Example 2), 0.018s
msDrawMap(): Layer 2 (Example 3), 0.011s
msDrawMap(): Layer 3 (Example 4), 0.005s
msDrawMap(): Layer 4 (Example 5), 0.001s
msDrawMap(): Layer 5 (Example 6), 0.018s
msDrawMap(): Layer 6 (Example 7), 0.013s
msDrawMap(): Layer 7 (Example 8), 0.045s
msDrawMap(): Layer 8 (Example 9), 0.000s
msDrawMap(): Layer 9 (Example 10), 0.000s
msDrawMap(): Layer 10 (Example 11), 0.000s
msDrawMap(): Layer 11 (Example 12), 0.000s
msDrawMap(): Drawing Label Cache, 0.003s
msDrawMap() total time: 0.118s
msSaveImage(polygon-examples-hatch.png) total time: 0.025s
msFreeMap(): freeing map at 0x22d1340.

A simple box filled with the hatch and PATTERN takes 18 ms to render in example 2.  Example 8 with a double hatch is 45 ms.
The other patterns without hatch in example 9 - 12 are all less than 1 ms.  

Lars Schylberg

-----Originalmeddelande----- 
> Från: "Stephen Woodbridge" <woodbri at swoodbridge.com> 
> Till: mapserver-dev at lists.osgeo.org 
> Datum: 2016-11-13 16:47 
> Ämne: Re: [mapserver-dev] Performance issue with hatching with a pattern of a polygon 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20161114/f7490046/attachment.html>


More information about the mapserver-dev mailing list