Skip to main content

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

I am eventually going to associated a Point on a uDig Map with a
Compendium application discussion Map.
So when uDig asks Compendium to create a new discussion map about a
Point, it will send it the map(+layer and point?) as a backward link.

Then in Compendium, if you ever want to see the map the discussion was
about,  you can select an option on the right-click menu and it launches
uDig and sends it a message (using socket connections between the two
apps), to open that map.

So I need the uri of the map, so I can open it programmatically later
when Compendium asks uDig to.

If that makes sense.

Michelle

-----Original Message-----
From: udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx
[mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jesse
Eichar
Sent: 21 March 2006 15:12
To: User-friendly Desktop Internet GIS
Subject: 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

_______________________________________________
User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel


Back to the top