[Qgis-user] Mapserver Export

Micha Silver micha at arava.co.il
Tue Feb 19 02:45:38 PST 2008


Pardon for hi-jacking the thread, but may I point out two other problems 
I find with the mapserver export that might be easy to fix?

The layers in a qgis project are exported to the *.map file in the same 
order that they appear in the qgis table of contents. In qgis (like most 
desktop gis apps) the top layer in the TOC also appears "on top" of the 
other layers. But in mapserver it's reversed: the layers are pushed into 
the graphics file in the order they appear in the *.map file, so the 
bottom most layer displays "on top" of all the others.  Would it be 
possible to write the layers into the *map file in reverse?

In addition, I noticed that PostGIS layers from qgis are always (?) 
entered into the map file with a FILTER line in the LAYER section. If 
there is no filtering done on the PostGIS layer then the FILTER line is 
entered with an empty string, i.e.
LAYER
...
    FILTER ''
...
END
This causes mapserver to make an empty WHERE clause in it's PostGIS  
query which then throws an error. Wouldn't  it be better to push the 
FILTER line into the *.map file *only* when the layer in qgis  actually 
is queried / filtered?

Many thanks,
Micha

>
>


-- 
Micha Silver
Arava Development Co
+972-8-6592270




More information about the Qgis-user mailing list