"Hi, the error you get seems to refer to the fact that within the same layer 
you have objects with different crs" - But i get this same error message even  
if i add only the Mapnik wmt layer. And i am sure that there are no other 
resources/layers added . I have also now tested this scenario  in udigGIS: 
added postgis layer-> added wmt layer-> clicked on the "zoom to are of 
interest" tool's icon. Everything works fine... Quite weird. I will further 
investigate this problem. Meanwhile any ideas/suggestions that may help solve 
this problem are welcome.
Cheers
________________________________
 From: andrea antonello <andrea.antone...@gmail.com>
To: User-friendly Desktop Internet GIS <udig-devel@lists.refractions.net> 
Sent: Friday, June 15, 2012 2:44 PM
Subject: Re: [udig-devel] Setting a CRS for a layer or for the whole map
 

Hi, the error you get seems to refer to the fact that within the same layer you 
have objects with different crs, which uDig can't handle. 
Layers are reprojected, if the objects contained are all of the CRS.

I think there is something going on in the feature creation of your.

Andrea


On Fri, Jun 15, 2012 at 1:41 PM, George Schole <georgesch...@yahoo.com> wrote:

Hi,
>How can I set the projection of a
layer at creation? How ca I set  the projection for the whole map? Is
there any better solution?
>Judging by the error I get,it seems
that when a layer is added to a map it is not automatically converted
to a common crs.  
>In my particular case I have
modified preferredzoomlevels tutorial so that I may see a postgis
layer and a wmt layer (openstreetmaps) instead of a shp .  
>
>
>
>
>The error I get when I
try to “zoom to area of interest” :
>!ENTRY
net.refractions.udig.project 1 0 2012-06-15 14:08:53.086
>!MESSAGE
Show All failed to run
>!STACK
0
>org.opengis.geometry.MismatchedReferenceSystemException:
The coordinate reference system must be the same for all objects.
>at
org.geotools.geometry.jts.ReferencedEnvelope.ensureCompatibleReferenceSystem(ReferencedEnvelope.java:305)
>at
org.geotools.geometry.jts.ReferencedEnvelope.expandToInclude(ReferencedEnvelope.java:545)
>at
net.refractions.udig.project.internal.render.impl.ViewportModelImpl.zoomToExtent(ViewportModelImpl.java:787)
>at
net.refractions.udig.project.internal.command.navigation.ZoomExtentCommand.runImpl(ZoomExtentCommand.java:35)
>at
net.refractions.udig.project.internal.command.navigation.AbstractNavCommand.run(AbstractNavCommand.java:72)
>at
net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:400)
>at
net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:325)
>at
net.refractions.udig.project.command.CommandManager$Executor.run(CommandManager.java:311)
>at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
>
>Thanks guys
>
>
>
>_______________________________________________
>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
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to