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

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
<ugo.taddei@xxxxxxxxxxxxxxxxxx <mailto:ugo.taddei@xxxxxxxxxxxxxxxxxx>>
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: udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx
    <mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx>
    [udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx
    <mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx>] on behalf of Jody
    Garnett [jody.garnett@xxxxxxxxx <mailto:jody.garnett@xxxxxxxxx>]

    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
    <ugo.taddei@xxxxxxxxxxxxxxxxxx
    <mailto: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







    _______________________________________________
    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



Back to the top