<div dir="ltr"><div>First note that we're using MapServer 7.2.2 to display our data from AWS S3 buckets.</div><div><br></div><div>We're successfully using MapServer to display point data from GeoJSON files stored in AWS S3.  What we would like to do next is to use the wind speed attribute from one file and the wind direction attribute from another to create a layer that displays wind barb information at those points.  We have used MapServer's uvraster capability for a such a display but these are at grid points versus at selected locations.  So, it appeared that using MapServer's UNION layer feature could work.  The UNION layer would need the speed value for determining which wind barb symbol to use and the direction value for the angle of the symbol.  As a test, just displaying the speed value and attempting to rotate the text with the direction value.<br></div><div><br></div><div>While I can set up the mapfile for the UNION layer to just display values from either the speed or direction layers as a test to see if the data is being accessed from S3 correctly, I can't seem to access both attributes within the UNION layer.  Relative parts of the mapfile:</div><div><br></div><div>LAYER<br>    <br>  NAME wspdvalues #wind speed layer <br>  TYPE POINT<br>  STATUS OFF<br> <br>  CONNECTIONTYPE OGR<br>       <br>  CONNECTION "/vsis3/bucketname/windspd_2020-09-11T00:00_2020-09-11T01:00.json"<br>  <br>  DATA "0"<br>       <br>END<br><br>LAYER<br>        <br>  NAME wdirvalues # wind direction layer <br>  TYPE POINT<br>  STATUS OFF<br>    <br>  CONNECTIONTYPE OGR<br>       <br> CONNECTION "/vsis3/bucketname/winddir_2020-09-11T00:00_2020-09-11T01:00.json"<br>  DATA "0"<br>    <br>    <br>END<br><br>LAYER<br>    <br>        NAME pointtest # union layer<br>  TYPE POINT<br>    <br>      STATUS DEFAULT<br>        CONNECTIONTYPE UNION<br>  CONNECTION "wspdvalues,wdirvalues"<br>  PROCESSING "ITEMS=spd,dir"<br>  <br>      CLASS<br>  STYLE<br>   COLOR 0 255 0<br>   SYMBOL "circle"<br>   SIZE 3<br>   MAXSIZE 6<br>  END<br>  LABEL<br>   TEXT (tostring([spd],"%.0f"))<br>   ANGLE [dir]<br>   OUTLINECOLOR 0 0 0<br>   COLOR 255 255 255<br>   TYPE truetype<br>   FONT arial-bold<br>   SIZE 13<br>   POSITION uc<br>   BUFFER 4<br>    PRIORITY [priority]<br>   END<br>  END<br>  PROJECTION<br>   "init=epsg:920910"<br> END<br>END</div><div><br></div><div>Again, this is just a first test rather than using symbols at this time.  If the GeoJSON file has spd and dir attributes in the same file and used in one layer, then it displays fine.  As we're displaying the data values individually, we'd rather not have to duplicate this data by combining into another file.  Hence why UNION looked like it might work.  <br></div><div><br></div><div>The geometry sections of each GeoJSON file are identical and in the same order.  Hopefully, just missing something.</div><div><br></div><div>Thanks for any help!</div><div><br></div><div>Dave M<br></div><div><br></div><br></div>