<div dir="ltr"><div><div><div>Hello,<br><br></div>I have a point shape layer and I would like to color each point according to a number in a  csv file= The csv file is:<br><br></div>id,color<br>1080,2<br>1090,4<br>11,2<br>
12,5<br><br><br></div><div>The ID column is the same as the NUMBER column in the shape file. <br><br></div><div>This is my layer:<br>LAYER # Stations point layer 1 begins here<br>    NAME         "meteo_oper"<br>
    CONNECTIONTYPE ogr<br>    CONNECTION "../data/ESRI/meteo_oper.shp"<br>    DATA "SELECT * FROM meteo_oper LEFT JOIN 'CSV:SPI201301.csv' ON meteo_oper.NUMBER=SPI201301.id"    <br>    STATUS ON<br>
    TYPE point<br>       CLASS<br>        SYMBOL 'circle'
<br>        SIZE 8<br>        COLOR 0 255 0<br>        OUTLINECOLOR 0 0 0<br>      END<br>  DEBUG ON<br>  END # Stations point layer 1 ends here<br><br></div><div>And when I use OGR from command line to test my map-file:<br>
shp2img -m watersheds.map -o tr.png<br><br></div><div>I receive:<br>msDrawMap(): Image handling error. Failed to draw layer named 'meteo_oper'. <br><br>msOGRFileOpen(): OGR error. ExecuteSQL(SELECT * FROM meteo_oper LEFT JOIN 'CSV:SPI201301.csv' ON meteo_oper.NUMBER=SPI201301.id) failed.<br>
SELECT from table CSV:SPI201301.csv failed, no such table/featureclass. <br><br>Segmentation fault<br><br></div><div>Any idea?<br></div><div>Minka<br></div><div><br><br></div></div>