<div dir="ltr">Hello,<br><br>It&#39;s the first time i try to make a JOIN in a mapfile layer. I want to query a mysql database for some attributes (columns) of a selected point from the point layer. <br><br>This is the layer definition:<br>
<br>&nbsp; LAYER # States point layer 1 begins here<br>&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;meteostations&quot;<br>&nbsp;&nbsp;&nbsp; DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; meteostationstotal_11<br>&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ON<br>&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POINT<br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL &#39;circle&#39;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 8<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp;&nbsp;&nbsp; END
<br>&nbsp;&nbsp;&nbsp; TEMPLATE &quot;sometemplate.html&quot; TOLERANCE 3 TOLERANCEUNITS PIXELS <br>&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;DESCRIPTION&quot;&nbsp;&nbsp;&nbsp; &quot;Meteo stations&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;RESULT_FIELDS&quot;&nbsp; &quot;A sin_kod NAME IME longi X_COO lat Y_COO&quot;<br>
# the result fields are mixed - the<u> names of some columns</u> from the shapefile and from the database<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; JOIN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME FirstJoin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTION &#39;MYSQL:meteo,host=some_IP,user=myuser,password=mypassword,tables=bgc&#39;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTIONTYPE ogr<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FROM A<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TABLE bgc<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TO sin_kod<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE ONE-TO-ONE<br>&nbsp;&nbsp;&nbsp; END
<br>&nbsp; END # States point layer 1 ends here<br><br>I receive no error (neighther in the mapserver.log file, nor in the web server logs) BUT I don&#39;t receive any info from the database.<br><br>Thanks in advance!<br></div>