[Mapbender-users] Mapbender and GetMap-Problem (manually changed mapfile)

Kai Behncke Kai-Behncke at gmx.de
Wed Jul 11 06:14:57 EDT 2007


Hallo Liste,
ich "zerpfluecke" gerade den Mapbender, um das grudsätzliche Procedere
 in diesem etwas besser zu verstehen und stoße da auf ein Problem.
Ich benutze als Kartenserver den UMN.

Das XML-Dokument aus dem Capabilities-Aufruf wird ja im Mapbender geparst und in die Datenbank geschrieben,
woraus dann ja z.B. auch der GetMap-Request generiert wird, richtig? 

Wenn ich nun in dem Mapfile z.B. Parameter der Legende oder aber die Farbe eines Layers verändere, so
wird auch prompt beim nächsten Aufruf im Mapbender eine Veränderung angezeigt (was ja nur logisch ist).

Aber: Wenn ich nun in das Mapfile einen neuen Layer händisch eingebe und dann den Mapbender aufrufe
(ohne die Capabilities neu eingelesen zu haben), dann gibts einen Fehler in der Ausgabe, der neu eingetragene Layer wird nicht angezeigt.

Nur wieso?
Der GetMap-Aufruf in der Datenbanktabelle "wms" bleibt doch der gleiche, verweist also auf das veränderte Mapfile (??).

In der Tabelle "layer" in der DB ist dieser händisch ins Mapfile eingetragene Layer natürlich nicht zu finden.
Ist dieses denn zwingend notwendig? Der GetMap-Aufruf muesste doch eigentlich auch unabhängig davon funktionieren?
Kann mir da jemand auf die Sprünge helfen? Danke im Voraus!!
Kai

-----------------------------

Hello list,

I pick to pieces the source Code of the Mapbender to understand the procedure of mapbender a bit better.
As mapserver I use the UMN.

The xml-document out of the capabilities-request is being parsed and written in the database.
>From these data the getmap-request is build, rigth?

If I change the mapfile (e.g. parameter of the legend or color of a layer) a different map is produced what seemes quite logic.

But: If I write a new layer in the mapfile und call up the mapbender again( without reading in new capabilities), then I get an error.
The map is not drawn!

But why?
The getmap-request in the databasetable "wms" remains the same, I is linked to the changed mapfile??
In the table "layer" in the database the new layer entry is of course not stored.
Is this mandatory necessary? The getmap-request should work without that, shouldn`t it?
Could anybody give me a hint please?
Thanks a lot, Kai
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser


More information about the Mapbender_users mailing list