This works for me.
Try this:
Create two layers with the same name and group.
Layer 1 ( takes care of values 2000 and 2100) :
LAYER
NAME "A"
GROUP "A"
.....
PROCESSING 'NATIVE_FILTER=gst IS NOT NULL'
CLASS for 2000
....
CLASS for 2100
....
END
Layer 2 ( value = NULL ) ❤️
LAYER
NAME "A"
GROUP "A"
....
PROCESSING 'NATIVE_FILTER=gst IS NULL'
CLASS for NULL
....
END
________________________________
Från: MapServer-users <[email protected]> för Seth G via
MapServer-users <[email protected]>
Skickat: den 28 mars 2025 10:43
Till: [email protected] <[email protected]>;
MapServer Users <[email protected]>
Ämne: Re: [MapServer-users] NULL-EXPRESSION
Hi,
Unfortunately, MapServer doesn't have a NULL type.
The workaround is to create a database view or query that will set the NULL to
a numeric value of your choosing, e.g. -1 and then use that value in the CLASS
expressions.
Seth
--
web:https://geographika.net & https://mapserverstudio.net
mastodon: @[email protected]<mailto:[email protected]>
On Fri, Mar 28, 2025, at 8:55 AM, Angelique Kroisl via MapServer-users wrote:
Hello,
I'm trying to create a class using the class item "gst."
The attribute in the database can only have three values (2000, 2100, and
<NULL>).
Unfortunately, I can't create the NULL EXPRESSION.
I've already tried the following:
EXPRESSION IS NULL
EXPRESSION "<NULL>"
EXPRESSION <NULL>
EXPRESSION EMPTY
What is the correct syntax for this?
________________________________
Monatlich aktuelle Informationen Ihrer Stadtverwaltung in unserem Newsletter!
Newsletter
Anmeldung<https://www.stadt-koeln.de/service/onlinedienste/newsletter-anmeldung?para=allgemein>
________________________________
[https://www.stadt-koeln.de/images/footer-final4-2025.jpg]<https://www.stadt-koeln.de/leben-in-koeln/freizeit-natur-sport/veranstaltungskalender/lidl-final4-dhb-pokal>
_______________________________________________
MapServer-users mailing list
[email protected]<mailto:[email protected]>
https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users