Details
-
Type:
Test
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: UDIG 1.1.RC4
-
Fix Version/s: UDIG 1.1.RC8
-
Component/s: framework
-
Labels:None
Issue Links
- duplicates
-
UDIG-881
Cache georesource info and lazy load correct
-
7)Catalog
Catalog is not friendly at lot. It is simple and brutal. But is a core thing
like ArcCatalog.. all resources are coming into application through catalog
- a kind of central geographical resources repository. Resources must be
lazily activated. Is IService interface good enough to be a kind of
lightweight descriptor for the data source? Seems, yes, but if to switch on
all logs, when UDIG is opening, a lot of warnings appear like
WARNING: projection (.prj) for shapefile:
file:/D:/eclipse/kuviogis-workspace/db2shp/2006_09_13/18_03_58/MHGIS_GISA1_K
UVIO.shp is not available
for shapefiles contained in Catalog. Seems something tries to load data
source to create label, whatever, not lazy now.. (debugging has shown that
CatalogPlugin.title() methods causes loading resources in Catalog during
opening the application when there is no opened editors..
I think everyone agrees that the catalog needs to be extended most likely it will even be able to have a full perspective for searching/viewing and browsing the catalog.
With regards to the lazy loading. We have 2 conflicting requirements. In the catalog we want to know the Titles of the IService/not the URL but we want them to be lazy loading. What I do now is cache the titles when an IService is added to the catalog and use that until the IService is opened. I will write a test-case to ensure that is still the case.