[Gvsig_english] Problem adding vertex to a polygon

ernesto sferlazza e.sferlazza at gmail.com
Fri Nov 18 11:04:42 CET 2011


Hello developers, I came up against a strange error (or bug) editing a
shapefile of polygons.
I tried to add a vertex in a side of a polygon. Once added the vertex,
using "edit vertex" tool, then typing "A" (add) and finally clicking
the new vertex, the resulting modified polygon contains, in addition
to the new entered vertex, one more vertex, coincident with the last
vertex of the original polygon.
I report below what happens, using wkt format to describe polygon:

# this is the original polygon:
POLYGON ((
        860.50 767.32,
        926.70 401.02,
        388.28 480.46,
        860.50 767.32
    ))

# this is the modified polygon once added a new vertex
POLYGON ((
        860.5 767.32,
        894.0667782294647 581.5872074705,
        926.7 401.02,
        388.28 480.46,
        388.28 480.46,
        860.5 767.32
    ))

# this is the modified polygon once added a further new vertex
POLYGON ((
        860.5 767.32,
        894.0667782294647 581.5872074705,
        926.7 401.02,
        388.28 480.46,
        388.28 480.46,
        659.2341937930034 645.0568405223434,
        388.28 480.46,
        860.5 767.32
    ))

The problem occurs using gvSIG 1.11 final (build 1305) on windows XP and
gvSIG desktop 2.0.0 (build 2040).

No problem, instead, when I use on gvSIG 1.11 final the new CAD tool
(substituting folder com.iver.cit.gvsig.cad), available at the link
[1].
Best regards
Ernesto

[1] http://dl.dropbox.com/u/2131623/com.iver.cit.gvsig.cad.zip

-- 
ing. Ernesto Sferlazza
responsabile nodo provinciale di Agrigento del SITR Sicilia
resp. gruppo Sistema Informativo Territoriale
Provincia regionale di Agrigento
sede istituzionale: piazza Aldo Moro, 1 - 92100 AGRIGENTO
sede operativa: via Acrone, 27 - 92100 AGRIGENTO
cell. 3392718463 (personale)
       3316874296 (aziendale)
tel. uff 0922593752


More information about the Gvsig_internacional mailing list