Yes, GeoServer only takes into account the area being rendered when
determining label positions, so this sort of thing is expected.  You can
mitigate it by using a caching server to render large areas and then use
simple image cropping to generate the small tiles - we call that technique
"metatiling."  GeoWebCache can do it automatically:
http://geowebcache.org/docs/current/concepts/metatiles.html

--
David Winslow
OpenGeo - http://opengeo.org/

On Mon, Jul 16, 2012 at 5:20 AM, vrbikdan <[email protected]> wrote:

> Hi all,
> I'm trying to set labels for my layers. I have point layer with about 3000
> points and this layer is only for showing labels. In SLD I set AnchorPointX
> and Y to 0.5 and 0.5 so center of label should be exactly above the point.
> And this work if I serve this labels as single tile. But from some reasons
> I
> don't want to use single tile. So I define tiled: true in my OpenLayers.
> But
> in some cases label center is not exactly above point but displaced little
> bit. It is shown on images (it is only one example, this shift could be to
> any direction on any pixels). Code I used is here:
>
> new OpenLayers.Layer.WMS(
>                     "admin_obec_centroid_label_type",
> "http://192.168.1.98:8080/geoserver/zk/wms";,
>                     {   layers: 'zk:admin_obec_centroid_label_type',
>                         srs: 'EPSG:3857',
>                         format: 'image/png',
>                         tiled: true,
>                         tilesOrigin : map.maxExtent.left + ',' +
> map.maxExtent.bottom,
>                         transparent: 'true'
>                     },
>                     {singleTile: false,
>                     yx : {'EPSG:3857' : false}})
>
> Is anything I forget to define or is it normal behavior and could't be
> changed?
>
> Thanks,
> Dan
> http://osgeo-org.1560.n6.nabble.com/file/n4988536/singleTile.png
> http://osgeo-org.1560.n6.nabble.com/file/n4988536/tiled.png
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/meta-tiling-doesn-t-preserve-position-of-labels-tp4988536.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to