[mapserver-users] Shapefile features = 0 (zero integer value) are empty and ignored? [SEC=UNCLASSIFIED]

Inna Nogeste I.Nogeste at bom.gov.au
Sun Apr 3 20:33:47 PDT 2016


Hi Thomas,

After many attempts using the same expression syntax it finally worked. Is there any reason as to why the following expression syntax didn’t work the first time?

.layer.part
CLASSITEM "class"

.style.part
CLASS
EXPRESSION "0"

I also needed to map the following attributes which all displayed the first time with no problems
EXPRESSION "-1"
EXPRESSION "1"
EXPRESSION "2"


Regards,

Inna Nogeste | Spatial Information Specialist
Geospatial Data and Services

Information Systems and Services Division

Bureau of Meteorology


From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
Sent: Friday, 1 April 2016 8:26 PM
To: Inna Nogeste
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Shapefile features = 0 (zero integer value) are empty and ignored? [SEC=UNCLASSIFIED]

What expression syntax are you using in your mapfile to select/filter these features?

--
Thomas

On 1 April 2016 at 02:40, Inna Nogeste <I.Nogeste at bom.gov.au<mailto:I.Nogeste at bom.gov.au>> wrote:
I'm using MapServer 6.4 and have a shapefile where features have an attribute = 0 (zero integer value). I want to display these features = 0 but they seem to be regarded as null/empty features in MapServer so are ignored and won’t display on the map.

Other integer values in the same field can be displayed on the map, including the value of -1, but not 0.
I can select these records = 0 in ArcGIS and QGIS 2.8.2

Can anyone tell me how, or if, shapefile features with attribute = 0 integer value can be used in a MapServer expression, or how to enter values = 0 in to a shapefile for MapServer Expressions?

Regards,
Inna Nogeste | Spatial Information Specialist
Geospatial Data and Services
Information Systems and Services Division
Bureau of Meteorology
www.bom.gov.au<http://www.bom.gov.au>
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160404/d1887df8/attachment.html>


More information about the mapserver-users mailing list