[mapserver-users] circular symbol for roads at border of tiles
Andreas Heckwolf
andreas.heckwolf at menturagroup.com
Fri Nov 18 02:42:54 PST 2011
Hello Edward,
thanks a lot. I installed tilecache and set the metaTile and metaBuffer.
Now it looks a lot better.
Cheers,
Andreas
On Fri, 2011-11-18 at 09:27 +0100, Edward Mac Gillavry wrote:
> Andreas,
>
> Check out http://mapserver.org/output/tile_mode.html. It mentions the parameter "tile_map_edge_buffer". That addresses the issue you are experiencing. However, this is only available from MapServer 6, whereas you are using mapserver 5.6.5.
>
> You may want to defer this operation to a cache renderer ,e.g. TileCache or MapProxy. You can configure these in such a way that they will request an image slightly bigger than 256x256 and will cut out a map tile at 256x256. Furthermore, for labelling purposes these cache renderers typically request even larger images (e.g. 1300*1300), cut off a 10 pixel border to counter the effects your are experiencing and then slice the remaining image 1280x1280 into 25 map tiles 256x256.
>
> This cache renderers prove these advantages:
> - less requests to MapServer at rendering time (only 1 large one instead of 25 small ones)
> - better labelling
> - no map tile creation upon each request, but map tiles are simply delivered from cache.
>
> Hope this helps.
>
> Kind regards,
>
> Edward
>
>
>
> > From: andreas.heckwolf at menturagroup.com
> > To: mapserver-users at lists.osgeo.org
> > Date: Fri, 18 Nov 2011 00:44:03 +0200
> > Subject: [mapserver-users] circular symbol for roads at border of tiles
> >
> > Hi all,
> >
> > I am using mapserver 5.6.5, as installed on Debian stable, to render
> > tiles (WMS) to an OpenLayers map. Streets are rendered with a circular
> > symbol. Roads going across tile borders do have at the border a circle
> > visible. Please see picture at:
> >
> > http://andreas.menturagroup.com/MapTilesProblem.jpg.
> >
> > I understand what is happening, and why. Is there any way to avoid this,
> > or a better way of rendering streets?
> >
> > Thanks,
> >
> > Andreas
> >
> >
> > Here my SYMBOL definition and the styles:
> >
> > SYMBOL
> > NAME "line_solid"
> > TYPE ellipse
> > POINTS 1 1 END
> > FILLED true
> > END
> >
> >
> > Then for the streets layer I have defined the following styles:
> >
> > STYLE
> > SYMBOL 'line_solid'
> > COLOR 130 130 130
> > SIZE 12
> > END
> > STYLE
> > SYMBOL 'line_solid'
> > COLOR 255 255 200
> > SIZE 10
> > END
> >
> >
> >
> > MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
> > 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
> > SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
> > INPUT=SHAPEFILE
> >
> >
> > --
> > \_________________________________________________________________
> > Dipl.-Ing. Andreas Heckwolf Voice : +358 40 5847 445
> > Mentura Group Oy Fax: +358 424480 800
> > Lönnrotinkatu 32 A 26 00180 Helsinki www.menturagroup.com
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
\_________________________________________________________________
Dipl.-Ing. Andreas Heckwolf Voice : +358 40 5847 445
Mentura Group Oy Fax: +358 424480 800
Lönnrotinkatu 32 A 26 00180 Helsinki www.menturagroup.com
More information about the MapServer-users
mailing list