Hello Inna,
I am able to properly display features with an integer value of 0
through an expression, as follows:
LAYER
NAME "prov"
TYPE POLYGON
STATUS ON
DATA "province.shp"
CLASSITEM "INT_TEST"
CLASS
NAME "Provinces"
EXPRESSION "0"
STYLE
COLOR 255 255 0
END
END
END # Layer
You might also want to verify the attributes, by using the ogrinfo
commandline tool, where you can check the column types etc, such as:
ogrinfo data.shp data -summary
I am testing with MS4W 3.1.3 (MapServer 7.0.1). http://ms4w.com
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
On 2016-03-31 9:40 PM, Inna Nogeste 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
_______________________________________________
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users