Michael Brasser wrote:

> We are working with data in a PostGIS database. We have no problem
> adding a
> layer to our map, but once it is added we seem unable to add any new
> features.
> ...
> Great, thanks. I would be happy to help with debugging if someone could
> point me in the right direction.... (I do already have a development
> version of uDig up and running)
> Thanks,
> Michael

Hi Michael,

I can't pass that offer up :) Unfortunately i'm not too familiar with
what is going on... Jody or Richard might be able to chime in, but Jesse
is the expert on the editing tools and he's away for a little while. I
would expect that the geometry should be defined for something that is
being added, so I would set a break point in the run method of
net.refractions.udig.tool.edit/.../edit/commands/CreateAndSetNewFeature.java.
You can also follow the debug thread back one call to UndoableComposite
and look at the commands that are being called along with
CreateAndSetNewFeature to get a grasp of what else is going on.

The Edit tools are composed of a BehaviourCommand, which have several
commands which are executed in sequence. At a glance it looks like
CreateAndSetNewFeature has the "geom" defined properly, but it isn't
being passed to AddFeatureCommand in the feature. The crazy flashing is
just a result of the edit tool behaviour tossing an exception before
completing. It could just be that we need to set the geometry of the
feature before spawning the AddFeatureCommand.

Thanks,
Cory.
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to