Hello Jody,
the main difficulty its that when i have loaded the project udig does'nt show 
anything in the map view, and i understand as you are saying that it would be 
automatically done by udig when it looks for a match in the catalog right?
 
Well if it does'nt loads the layers in the project and i get forgot about the 
project, i think i should do it on my own, i mean loading all things directly 
and programatically, but i don't know how. I have loaded a shapefile from my 
hard drive, but how can i load a WMS layer and also a postgis layer?
 
There is other mail thread resolving this or any example or tutorial?
Many thanks in advance!

________________________________

De: [EMAIL PROTECTED] en nombre de Jody Garnett
Enviado el: lun 14/07/2008 18:50
Para: User-friendly Desktop Internet GIS
Asunto: Re: [udig-devel] Loading a Udig project programatically



Mario Nuñez Jimenez wrote:
> Hello,
>
> i think im in the correct way:
>
> ProjectRegistry registry = ProjectPlugin.getPlugin().getProjectRegistry();
>
> Project project = registry.getProject("file:D://workspace//project.udig");
>
> But then with the project how may i do to load all database references, 
> shapefiles, WMS, WFS referenced elements and load them as maps, layers, etc...
>  
The catalog entries will be loaded as each map is opened for the first
time; it will look in the catalog for a match - and if found use it. If
not it will connect and add the entry.
If you want to statically connect to all these data sources you can go
through the Map data structure and have a look yourself.

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