[udig-devel] ServiceFinder/Catalog and DefaultPerspective

Ingmar Eveslage eveslage at gmail.com
Sun Feb 17 06:06:59 PST 2008


Only for update of my problem. I finally got it. It was much easier as  
i expected:

		try {
			URL url;
			url = new URL("http://127.0.0.1:8081/geoserver/wfs?service=WFS&request=GetCapabilities 
");
			List<IService> results =  
CatalogPlugin.getDefault().getServiceFactory().createService(url);
			CatalogPlugin.getDefault().getLocalCatalog().add(results.get(0));
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

the 3+Custom+Application+Tutorial works great. if you use RC14. Realy  
great tutorial.

thanks

Ingmar

Am 16.02.2008 um 04:09 schrieb Jody Garnett:

> Ingmar Eveslage wrote:
>> Hello,
>>
>> me again ;) i have two questions:
>>
>> I want to ship uDig with a plugin i programmed. this plugin  
>> contains a
>> perspective and i want that this perspective is loaded on startup.  
>> i found a
>> "dirty" way:
>>
>> - import project net.refractions.udig.ui
>> - open net.refractions.udig.ui.preferences.PreferenceInitializer
>> - change this line
>> store.setDefault(PreferenceConstants.P_DEFAULT_PERSPECTIVE,
>> "MYPERSPECTIVE_ID");
>>
>> this works. but is there a "smoother" and "nicer" way?
>>
> Make your own custom application (amounts to the same thing you have  
> done above):
> - http://udig.refractions.net/confluence/display/DEV/3+Custom+Application+Tutorial
>> and the second point of interest: i want to add a wfs-server to the  
>> local
>> catalog, when udig (with my plugin) starts. the first idea i had:  
>> ship a
>> workspace with udig. but this isnt realy nice. i searched the  
>> mailing list
>> and found a link to the catalog tutorial
>> (http://docs.codehaus.org/display/GEOTOOLS/Catalog+Tutorial). i  
>> found an
>> interesting code snippet:
>>
> I am afraid that is for the GeoTools fork of our catalog (same name,  
> different/failed idea); I would suggest looking at the map graphics  
> plug-in; it registers a service
> with the local catalog on startup.
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel



More information about the udig-devel mailing list