Hello Andrea,
I tried to use scaledenominator but with few features (less than 100 ) it
takes very long. I would investigate further but have no time right now, so
I switched to use style in JS openlayers by implementing this solution
http://gis.stackexchange.com/questions/30901/label-in-the-middle-of-linestring-in-openlayers
thanks for the support
- Antonio
On 18 January 2013 08:55, Andrea Aime <andrea.a...@geo-solutions.it> wrote:
> On Wed, Jan 16, 2013 at 9:29 PM, Antonio Parrotta <
> antonioparro...@gmail.com> wrote:
>
>> I got it working with sld attachet but is has become really slow.
>> Geoserver starts to make heavy use of HD with apparently no reason. If I
>> remove both points styling it works speedy Would you please give me some
>> hints? The layer is actualy a view on a postgres DB
>
>
> The reason is likely that you're trying to put into the map way too many
> labels, and GeoServer has to accumulate
> all of them in memory in order to perform conflict resolution. Either
> that, or the database view is heavy and
> PostgreSQL is strugglying getting the data out of the disk.
>
> Labelling must always be accompained with some scale limitation to avoid
> having too many labels
> end up on screen, or in the conflict resolution engine
>
> See also:
>
> http://demo.geo-solutions.it/share/foss4g2011/gs_steroids_sgiannec_foss4g2011.pdf
>
> Cheers
> Andrea
>
>
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39 339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users