[Geomoose-users] feature editing in geomoose

Jeffrey Schmitz jeffreykschmitz at gmail.com
Mon Jan 17 18:48:12 EST 2011


Hey everyone,

We followed the feature editing guide
http://www.geomoose.org/docs/feature_editor.html and were able get features
successfully added, edited and deleted from our database. The issue we are
having is editing when new features are added with (or edited to have) blank
fields. When you click to edit a field which has had a comments section left
blank (for example), the field will be populated with the most recent
comments field that was not blank and was edited. I realize this sounds a
bit confusing, so here is an example:

Feature 1:
comments field: blah blah blah

Feature 2:
comments field:

Feature 3:
comments field: hahaha

If you first edit feature 2, the comments field will be correctly left
blank.
If you edit feature 1 and then edit feature 2 the comments field will show
up as blah blah blah
If you edit feature 1 then 3  then 2 the comments field will show up as
hahaha

I'm guessing this is due to the fact that geomoose sees the comments field
as null with a blank comment and thus, the most recent entry in the field
persists (instead of filling it as blank).

To fix this, I have edited the identify.html file mentioned in the guide so
that the edit link contains a space instead of nothing for any texts fields
that are blank.

Like this:
'feature:comments' : '[comments] '

instead of this:
'feature:comments' : '[comments]'

This seams like a hackish way to fix the issue to me, and I was wondering if
anyone else has come across the issue. If so, how did you solve it? I assume
this has something to do with how geomoose generates it's service input
fields, and how it handles null values. I just can't figure out where this
would be in the geomoose code.

Thanks!
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20110117/c3030157/attachment.html


More information about the Geomoose-users mailing list