On 11/30/2010 09:33 AM, Jesse Eichar wrote:
I am trying to remember. I think selection is its own renderer in the
RenderManager. That is how all selections appear on the top of the screen.
Ok. Whatever it is, it's not transforming to/from screen coords <-> real
word coords. I'll look into this.
Very odd behaviour. I suspect it is related having your own mapeditor
and tools.
I understand. Only that I'm trying things out with the tutorials.rcp app
and it's AOK there.
Reading through the code I see for example
CreateFeatureCommand.runFeatureCreationInterceptors(feature);
(in AcceptChangesBehaviour). This interceptor is loaded with
ExtensionPointList.getExtensionPointList(FeatureInterceptor.EXTENSION_ID);
and is the sort of thing likely to cause the weird behaviour. (Here, of
course, just a wild guess.) It might be some sort of interceptor (???)
along the way simply not transforming the geoms.
If anything sprigns to mind, please let me know.
Thanks,
Ugo
On Tue, Nov 30, 2010 at 9:01 AM, Ugo Taddei
<[email protected] <mailto:[email protected]>>
wrote:
On 11/29/2010 09:04 PM, Jesse Eichar wrote:
which datastore are you editing?
Shapefile.
When I select the geoms on the map, I see the selection as if it's
been transformed from screen to real world coords. (The effect is,
for example, the geoms around 7°W,50°N apeear at pixel position
7,50.) Looks like the affine transform is not (or wrongly) set. Is
the selection a layer of its own?
Cheers,
Ugo
On Mon, Nov 29, 2010 at 6:59 PM, Taddei Ugo
<[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>>
wrote:
Hello,
thanks for the tip. Will look into it. As said, I'm handling the
tools programmatically (much in the same way as the tuorial.rcp
exmple) and got into trouble (mostly because of ModelTool
initialisation). So, this problem I'm having might be some
side-effect of this.
I'm not having this problem with the udig app, but I'll post a
patch, if I find anything.
Cheers,
Ugo
From: [email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
[[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>] on behalf of
Jody
Garnett [[email protected] <mailto:[email protected]>
<mailto:[email protected] <mailto:[email protected]>>]
Sent: Monday, November 29, 2010 4:44 PM
To: User-friendly Desktop Internet GIS
Subject: Re: [udig-devel] CRS Problem when digitising a geometry
Interesting :-)
The problem; such as it is; would be in the edit tools. When the
feature is complete datastore addFeatures is called with the result;
looks like we need to transform the geoemtry into the data CRS
before calling addfeatures.
Are you comfortable preparing a patch?
Jody
On Mon, Nov 29, 2010 at 10:35 PM, Ugo Taddei
<[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
Hello,
I'm using edit tools for geom digitising. I'm using the MapViewer,
creating and setting the tools programmatically. The new geometries
are created OK, more or less. The problem is the CRS, which is not
applied to geometry. Apparently, the geoms don't pick up
their layer's CRS. (The map is in EPSG:3857, whereas the vector
layer is in 4326.) Looks like the geometry keeps the screen
coordinates (in pixels) and don't get transformed into 4326.
Any ideas of what's going on? Any hints for where to look for
geometry creation?
Any help is appreciated.
Thanks in advance,
Ugo
_______________________________________________
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
_______________________________________________
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