Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] enabled tilecaching results into rendering problems if labels for features are enabled



2010/3/28 Andrea Aime <aaime@xxxxxxxxxxx>
Jody Garnett ha scritto:
I wonder if we could "cheat" .... if we saved each tile with its

label cache; we could do some kind of label cache merge between on
the tiles and then render the labels at the end. In cases where two
label caches entries have the same featureid we could get a list; and
then take the average of their centroids? (Basically putting the
pieces back together that were split across several tiles).

The tile cache at that point has already sliced all the polygons
and lines to get a centroid that sits within the tile (since the tile is
the whole rendering request from the renderer point of view).
It's going to get ugly.
Better use your time to slice the styles instead and generate a
label layer on top that has labels rendered un-tiled

I agree. Would you confirm that the renderer has to read the features twice? Or does the renderer in combination with the feature reader caches the features till the map extend is rendered? But the filters for labels and features could be different ... Hmm? Any suggestions? If not cached the rendering process could slow down the application, doesn't it?

Cheers
Frank
 

Cheers
Andrea


--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel


Back to the top