[udig-devel] layer deprecated getGeoResource( type ) needs to come back

Jody Garnett jgarnett at refractions.net
Fri Sep 8 07:29:38 PDT 2006


Just found a good one here ... some of the changes to the Layer API 
force me to dodge GeoResource, problem is GeoResource has access to 
GeoResourceInfo (which is way more specific then anything I can get out 
of GeoTools FeatureSource).

So in the case where I have multiple GeoResources for a layer I really 
need the following method to figure out what is going on...
- getGeoResource( type ) - // note this is a non blocking search!

The two alternatives recommended by the @deprecated tag do not measure up:
- getResource( type, monitor ) - // this is blocking, I can not use it 
from the UI thread (specifically for tool enable/disable)

If I have missed something please let me know, if not can we restore the 
method mentioned.
Jody



More information about the udig-devel mailing list