<div dir="ltr">Hello,<br><br>It'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> LAYER # States point layer 1 begins here<br> NAME "meteostations"<br> DATA meteostationstotal_11<br> STATUS ON<br> TYPE POINT<br> CLASS<br> SYMBOL 'circle'
<br> SIZE 8<br> COLOR 255 0 0<br> OUTLINECOLOR 0 0 0<br> END
<br> TEMPLATE "sometemplate.html" TOLERANCE 3 TOLERANCEUNITS PIXELS <br> METADATA<br> "DESCRIPTION" "Meteo stations"<br> "RESULT_FIELDS" "A sin_kod NAME IME longi X_COO lat Y_COO"<br>
# the result fields are mixed - the<u> names of some columns</u> from the shapefile and from the database<br> END<br> JOIN<br> NAME FirstJoin<br> CONNECTION 'MYSQL:meteo,host=some_IP,user=myuser,password=mypassword,tables=bgc'<br>
CONNECTIONTYPE ogr<br> FROM A<br> TABLE bgc<br> TO sin_kod<br> TYPE ONE-TO-ONE<br> END
<br> 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't receive any info from the database.<br><br>Thanks in advance!<br></div>