<div dir="ltr">I haven't used geojson as a data source, but maybe if you shared a small example of your map file and the data it would help.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 24, 2017 at 8:43 AM, Tuffa <span dir="ltr"><<a href="mailto:chris@wherryengineering.co.uk" target="_blank">chris@wherryengineering.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
I am rendering a map of African countries from a single geojson file.  Each<br>
country is represented as a feature with geometry.  I've added a custom<br>
value to each feature's properties, that I would like to influence the style<br>
selected by MapServer to render the country outline, however I cannot see<br>
how it is possible to configure the layer so that MapServer uses the new<br>
'value' property as the input for the style expressions that I have<br>
created...<br>
<br>
Doing the same job, using a database as the datasource is easy!  I simply<br>
craft a SQL 'select' statement for the mapfile's Layer 'DATA' to retrieve<br>
the desired value and it becomes available to MapServer using the<br>
'[value_name]' syntax in style expressions.<br>
<br>
This same approach does not appear to work for GeoJSON.  MapServer states<br>
that the extent of support for the 'DATA' is driver-dependant, which is fair<br>
enough; examination of the geoJson driver doc in the GDAL doc's does not<br>
help me though.<br>
<br>
Can anyone help?<br>
<br>
Regards<br>
Chris<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.<wbr>nabble.com/Mapserver-User-<wbr>f4226646.html</a><br>
______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.<wbr>org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Richard W. Greenwood, PLS<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div>
</div>