[Mapbender-users] Digitize multiple geometries with similar attributes possible?

Christoph Baudson christoph at baudson.de
Fri Nov 19 13:30:04 EST 2010

Hash: SHA1

On 11/18/2010 10:46 AM, Michael Schulz wrote:
> Hi,
> I am wondering whether it is currently possible with the digitize
> module to digitize e.g. several points and then assign them all the
> same attributes at once? A use-case may be: your digitizing all the
> telephone booths in a town. But clearly all booths will get the same
> attribute value "telephone booth". Then when you save them, all
> geometries share the same attribute values. Is that possible? Would it
> only work when e.g. multipoint geometrytype is used?

Just brainstorming:

What you can do is (mis)use the auth_varname wfsconf attribute: In
digitizing, this is used to store the user id in the wfs. Instead of
userid, you could add another expression, which is evaluated by php.

Another thing you could do (on trunk) is create a new module which
registers a function with the openDialog event. You could check whether
the wfs conf of the current geometry matches the telephone booth wfsconf
(configured via element var), and then set the attribute of the geometry.

If you need more details, let me know.

Have a ncie weekend


> Thanks for some help or thoughts,
> Michael

Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


More information about the Mapbender_users mailing list