[Tilecache] Tilecache cut the icon and label @ edges of tiles .
Dane Springmeyer
blake at hailmail.net
Thu Sep 9 06:47:09 EDT 2010
try changing in your mapnik xml:
avoid_edges=true # in symbolizer
and
buffer_size=128 # or larger at map level
If that does not work, then post to the mapnik-users list.
Dane
On Sep 9, 2010, at 6:55 AM, rakesh.modi1585 wrote:
>
> Hi,
>
> I have problem in mapnik tilecache. I attached png with this mail.
> lables and icons are not come @ edges of tiles while i have set the
> property allow_overlap="true" in both pointsymbolizer as well as
> textsymbolizer and avoid_edges="false".
> My CFG File looks like :-
>
> [cache]
> type=Disk
> base=/tmp/tilecache
> [basic]
>
> type=MapnikLayer
> mapfile= C:/python26/zoom0.xml
> bbox=55.734722,2.188056,105.301389,43.456111
> maxResolution=0.17578125
> extent_type= loose
> extension= png
>
> and XML File
>
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE Map>
> <Map bgcolor="#000099" srs="+proj=latlong +datum=WGS84">
>
> <Style name="India">
> <Rule>
> <PolygonSymbolizer>
> <CssParameter name="fill">#f2eff9</CssParameter>
> </PolygonSymbolizer>
> <LineSymbolizer>
> <CssParameter name="stroke">#000000</CssParameter>
> <CssParameter name="stroke-width">0.2</CssParameter>
> </LineSymbolizer>
> <TextSymbolizer name="Name" face_name="DejaVu Sans Book" size="18"
> fill="white" halo_fill= "#2E2F39" halo_radius="1" wrap_width="20"
> spacing="8" allow_overlap="false" avoid_edges="true" min_distance="10"/>
> </Rule>
> </Style>
>
> <Layer name="India_BND" srs="+proj=latlong +datum=WGS84">
> <StyleName>India</StyleName>
> <Datasource>
> <Parameter name="type">shape</Parameter>
> <Parameter name="file">E:/shape/India_BND</Parameter>
> </Datasource>
> </Layer>
>
>
> <!-- major city -->
> <Style name="major_city">
> <Rule>
> <PointSymbolizer file="city.png" width="13" height="13" type="png"
> allow_overlap="true" />
> <TextSymbolizer name="Name" face_name="DejaVu Sans Book" size="11"
> fill="black" halo_fill= "#2E2F39" halo_radius="0" wrap_width="25"
> allow_overlap="true" placement="point" dy="1" avoid_edges="false" />
> </Rule>
> </Style>
>
> <Layer name="major_city" srs="+proj=latlong +datum=WGS84">
> <StyleName>major_city</StyleName>
> <Datasource>
> <Parameter name="type">shape</Parameter>
> <Parameter name="file">E:/shape/Major_Cities2</Parameter>
> </Datasource>
> </Layer>
>
> </Map>
>
> please help !!!!!
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Tilecache-cut-the-icon-and-label-edges-of-tiles-tp5513241p5513241.html
> Sent from the TileCache mailing list archive at Nabble.com.
> _______________________________________________
> Tilecache mailing list
> Tilecache at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/tilecache
More information about the Tilecache
mailing list