[udig-devel] [jira] Created: (UDIG-1342) Can't delete hole from polygon with Remove Vertex tool

brock anderson (JIRA) jira at codehaus.org
Mon Dec 10 14:09:57 PST 2007


Can't delete hole from polygon with Remove Vertex tool
------------------------------------------------------

                 Key: UDIG-1342
                 URL: http://jira.codehaus.org/browse/UDIG-1342
             Project: uDIG
          Issue Type: Bug
          Components: tool edit
    Affects Versions: UDIG 1.1 RC13
         Environment: Win 2K, Java 5
            Reporter: brock anderson
            Assignee: brock anderson


I'm trying to remove a hole from a polygon vertex-by-vertex using the Remove Vertex tool.  After I remove all the vertices of the hole I get the following stack trace:

java.lang.IllegalArgumentException: holes must not contain null elements
	at com.vividsolutions.jts.geom.Polygon.<init>(Polygon.java:127)
	at com.vividsolutions.jts.geom.GeometryFactory.createPolygon(GeometryFactory.java:383)
	at net.refractions.udig.tools.edit.support.GeometryCreationUtil.createPolygon(GeometryCreationUtil.java:227)
	at net.refractions.udig.tools.edit.support.GeometryCreationUtil.createGeom(GeometryCreationUtil.java:170)
	at net.refractions.udig.tools.edit.support.GeometryCreationUtil.createAllGeoms(GeometryCreationUtil.java:99)
	at net.refractions.udig.tools.edit.behaviour.WriteChangesBehaviour.getCommand(WriteChangesBehaviour.java:152)
	at net.refractions.udig.tools.edit.MutualExclusiveBehavior.getCommand(MutualExclusiveBehavior.java:66)
	at net.refractions.udig.tools.edit.BehaviourCommand.execute(BehaviourCommand.java:58)
	at net.refractions.udig.project.command.CommandManager$Executor.execute(CommandManager.java:394)
	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:55)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the udig-devel mailing list