Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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 <ugo.taddei@xxxxxxxxxxxxxxxxxx> 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


Back to the top