On 10/5/12 22:08 , Ravi Pavuluri wrote:
Hi,
I am trying the latest Geoserver(2.2) and integrated geowebcache. I am
not sure if I am supposed to post it here or in geowebcache forum.
Please let me know.
geowebcache-users whould be more specific, but either one is valid.
I had set the styling to label all features within geoserver sld and
also set the singleTile= true using openlayers to have label shown all
the time. It works as expected with just Geoserver and openlayers.
When I start using GWC, I am not really aware of any way to force the
label the way it was. Any tips are greatly appreciated. Is duplicating
the layer with no symbolization for data, but just for labels a good idea?
Labels are duplicated because WMS requests are stateless, so one request
doesn't know what has been rendered in the other. When you view a cached.
You can do three things:
1) Increase metatiling factors so that it is less likely to occur in
places that you care about. This is the easy fix, but it doesn't give
you a perfect solution.
2) You can fix all the labels by calculating a point for each one and
then putting the labels in a separate layer and render only at these
points. Then create a layer group with both the actual data and the
layer group, and cache this combination.
3) Or you can display the layer with two SLDs. One for labels (untiled,
not cached) and one for the actual data. This will require both the
server and client to do more work.
[This may be openlayers question. Please disregard if inappropriate]
Openlayers GetFeatureInfo is not working with multiple layers when I
had GWC enabled "Enable direct WMS integration" option within
Geoserver. Is this a known limitation or am I missing something here?
Not sure, I would have expected it to work and forward requests without
caching them (there are just too many pixels, and the responses can be
big). But you can also do these requests directly against the WMS,
OpenLayers doesn't require you to configure it against a visible layer
or anything like that.
-Arne
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users