Skip to main content

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

You can get it by calling map.eResource().getURI(). But I'm curious why you need it?

Jesse


On 21-Mar-06, at 4:31 AM, M.S.Bachler wrote:

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
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel



Back to the top