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

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon Apr 4 09:08:11 PDT 2016


By the way, I have seen odd problems with column types happen after 
exporting or importing from other formats.  So be careful, and always 
use ogr2ogr for converting :)

-jeff


-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2016-04-04 12:33 AM, Inna Nogeste wrote:
> 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>



More information about the mapserver-users mailing list