You can often get away with not caching your labels, and even pulling them
back in really big chunks, like 1024x1024.  Probably not recommended, but
highly effective. .

 

Best,

Steve

 

http://www.clemetparks.com/images/esig/cmp-ms-90x122.pngStephen Mather
Geographic Information Systems (GIS) Manager
(216) 635-3243

[email protected]
 <http://www.clemetparks.com/> clevelandmetroparks.com

 

 

 

 

From: David Winslow [mailto:[email protected]] 
Sent: Monday, July 16, 2012 9:52 AM
To: vrbikdan
Cc: [email protected]
Subject: Re: [Geoserver-users] meta tiling doesn't preserve position of
labels

 

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

 

<<image001.png>>

------------------------------------------------------------------------------
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