Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [udig-devel] Shapefiles

Hi!

Can anyone tell me how to get the uri (actual file path), for a map file
(.umap).
I have figured out how to get the project file path for the current
project:

		Map map = (Map)ApplicationGIS.getActiveMap();
		URI projectURI =
map.getProjectInternal().eResource().getURI();

But have not yet worked out how to get the uri for the map itself.
I think it is something like:

        URI mapID = ?.getMapID();
        URI mapURI =
map.getProjectInternal().eResource().getResourceSet().getResource(mapID,
true).getURI();

But I am not sure where I get the MapID from?

Anyone have a clue?

Michelle


Back to the top