Hello Jody,
I'm very closet o get what I want,
You have told me how to get layers from map of the loaded project, but the 
really important question is how could I retrieve the map from the project 
loaded?
Thank you in advance!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jody Garnett
Sent: miércoles, 01 de octubre de 2008 22:14
To: User-friendly Desktop Internet GIS
Subject: Re: [udig-devel] Loading a Udig project programatically and 
retrievingLayers

Mario Nuñez Jimenez wrote:
>
> Hello,
>
> I have loaded a previously saved Udig Project:
>
> ProjectRegistry projectRegistry = 
> ProjectPlugin.getPlugin().getProjectRegistry();
>
> udigProject = projectRegistry.getProject("C:/Documents and 
> Settings/A146855/Desktop/DEWS.udig");
>
> But I don't know how to get the layers to be shown on the Map View. Is 
> it doesn't done by udig automatically?
>
When you open your Map a MapEditor will be opneed. The layers view 
watches the workbench - and when a MapEditor is selected it will show 
the layers of the Map the MapEditor is displaying. That way when you 
switch Maps the layers view will display the correct information.
>
> Then how can I get the Layers to show them?
>
If you would like to access the layers as a programmer you can look at:

IMap.getMapLayer(): List<ILayer)
>
> Thank you in advance for your help.
>
I am not sure I am helping you :-(

Maybe I can explain - the questions you are asking are very specific - 
and I am not sure why you are asking them. What is it that you are 
hoping to learn? Or what is it that you are hoping to accomplish :-)

You keep mentioning layers and styles for example - why does this matter 
to you?

If you are wanting to know how to create your open Maps, Layers and 
Styles we should be having a different conversation; if you are running 
into problems opening a project then we should be talking about where a 
failure occurs.

Jody

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended 
solely for the addressee; it may also be privileged. If you receive 
this e-mail in error, please notify the sender immediately and destroy it. 
As its integrity cannot be secured on the Internet, the Atos Origin 
group liability cannot be triggered for the message content. Although 
the sender endeavours to maintain a computer virus-free network, 
the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted. 

Este mensaje y los ficheros adjuntos pueden contener informacion confidencial 
destinada solamente a la(s) persona(s) mencionadas anteriormente 
pueden estar protegidos por secreto profesional. 
Si usted recibe este correo electronico por error, gracias por informar 
inmediatamente al remitente y destruir el mensaje. 
Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin 
no se hace responsable por su contenido. Su contenido no constituye ningun 
compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas 
partes. 
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor 
no puede garantizar nada al respecto y no sera responsable de cualesquiera 
danos que puedan resultar de una transmision de virus. 
------------------------------------------------------------------

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

Reply via email to