[Mapbender-users] error messeges

Daniel Grum daniel.grum at unibw.de
Tue Dec 1 10:11:37 EST 2009


Hi,

If the WFS-T get en error he wrote the messages of the: 
mod_digitize_messages.php

What I have to do if I want that mapbender show the messages of my 
PostgreSQL-Trigger-->because there I have a special messege for each case!

f.e.:   FOR current_row IN
        SELECT * FROM public.rohstoffe_von_spieler1 roh
        WHERE roh.stein<100
        LOOP
        RAISE EXCEPTION 'Zu wenig Stein vorhanden!';
        END LOOP;

or

        FOR current_row IN
        SELECT * FROM public.rohstoffe_von_spieler1 roh
        WHERE roh.bretter<100
        LOOP
        RAISE EXCEPTION 'Zu wenig Bretter vorhanden!';
        END LOOP;

or

    FOR current_row IN
    SELECT * FROM public.lager la
    WHERE ST_Intersects(ST_Buffer(NEW.the_geom, 200),la.the_geom)
    LOOP
    RAISE EXCEPTION '-->zu nah an einem Lagergebäude!!!';
    END LOOP;

Can someone help me, or has an idea for this problem.

Thanks
--daniel


More information about the Mapbender_users mailing list