Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Rendered features

We do not as a rule cache any features - in part so we can work with massive content.

As a framework we want to be as light on resources as possible, and leave it up to applications that use uDig to choose when (and what) to cache.

There is a cache checkbox in the style editor you can tick as an experimental option, it keeps the features in a spatial index (and pull features in as needed as your scroll around. It is very effective when working with things like WFS.

The second question is a bit more interesting, wanting features in world coordinates.

If you want to do that make a request of the feature source and fill in the viewport CRS in the Query object. The features will be reprojected as they come out of the database or shapefile. Indeed in some cases the data sources supports native reproduction allowing us to do less work in uDig.

Note that the features that are drawn on screen are subject to "decimation" by the rendering engine, we throw out coordinates on the fly, based on the math transform constructed between the original data, the world CRS and the affine transformation to the screen. The earlier we can throw out coordinates the less information involved in drawing, and the faster we can update the screen.

Jody




On Wed, Feb 6, 2013 at 10:33 PM, Piotr Zduńczyk <zdu@xxxxxxxxxx> wrote:
Hi,

Is any
possibility in uDig to get all features rendered on map?
Is there any cache or something like that?
I was previously collect features in BasicFeatureRenderer by caching features in BasicRenderListener but from uDig 1.3 features have coordinates recalculated from work to pixel, and I want features with word coordinates..
Any ideas how to do that?

Thanks,
Peter

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel



Back to the top