Dashboard > UDIG Developer Guide > Home > FAQ > GIS Application Questions > How can I find what maps and projects are currently available
How can I find what maps and projects are currently available Log In | Sign Up   View a printable version of the current page.

Added by Jesse Eichar , last edited by Administrator on Nov 16, 2007  (view change)
Labels: 
(None)

Q: How can I find what maps and projects are currently available?

A: ApplicationGIS provides access to all the projects currently registered with the uDig instance.

ApplicationGIS.getProjects() will return all the projects currently registered with the system. Given a project all the contained elements can be searched via the getElements() method. If a single type of elements is desired such as maps the getElements( Class<T> ) method can be used. For example:

ApplicationGIS.openMap(ApplicationGIS.getProjects().get(0).getElements(IMap.class).get(0));

will return open the first map in the first registered project.

Powered by a free Atlassian Confluence Open Source Project License granted to uDig. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators
User-friendly Desktop Internet GIS