Hi,
I´m struggeling with an expression, hoping you guys can help. I need to
select a subset of data using an expression like the one below.
Status is char. Komnr, datoforsl, datovedt, datoaflyst are all integers
I´m trying with the following expression but somehow it´s not working..
expression
The expression seems fine as is. You seem to be using the xml mapfile
syntax, correct? Try posting the actual EXPRESSION written in the
mapfile, maybe the xml to mapfile conversion is failing here.
--
thomas
On 27/01/2014 22:20, Chrishelring wrote:
> Hi,
>
> I´m struggeling with an expression, h
Hi,
Thats right. :) Below is the full section from the map-file.
layer
name 'lokalplaner-udarbejdelse'
status off
type polygon
connectiontype WFS
connection 'http://geoservice.plansystem.dk/wfs?'
metadata
"wfs_version" "1.0.0"
"wfs_request_method" "GET"
"wfs_typename" "lokalplan"
I guess for string operations you need "eq" instead of "=":
expression ('[status]' eq 'K' AND [komnr] = 175 AND [datoforsl] = 0 AND
[datovedt] = 0 AND [datoaflyst] = 0)
Harry
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Help-with-expression-tp5100327p5100409.html
Sent
it's worth a try, however "=" is supposed to work for strings also.
On 28/01/2014 11:26, kaipi wrote:
> I guess for string operations you need "eq" instead of "=":
>
> expression ('[status]' eq 'K' AND [komnr] = 175 AND [datoforsl] = 0 AND
> [datovedt] = 0 AND [datoaflyst] = 0)
>
> Harry
>
>
o.org
[mapserver-users-boun...@lists.osgeo.org] on behalf of Chrishelring
[christianhelr...@gmail.com]
Sent: Tuesday, January 28, 2014 3:42 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Help with expression
Hi,
Thats right. :) Below is the full section from the map-file.