<DIV>
<P>Dear list, </P>
<P>I am using a OGR connection to a MySQL database table to create thematic maps based on the values contained in this table.</P>
<P>Here goes how it is working now:</P><FONT size=2>
<P></P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<P>LAYER</P>
<P>NAME mt</P>
<P>TYPE POLYGON</P>
<P>STATUS ON</P>
<P>MAXSCALE 1000000</P>
<P>LABELITEM 'Nomecomune'</P>
<P>&nbsp;</P>
<P>CONNECTIONTYPE OGR</P>
<P>CONNECTION "C:\Programmi\Apache Group\Apache\htdocs\abruzzo\maps\data\comuni_abruzzo_gb_region.shp"</P>
<P>DATA "SELECT * FROM comuni_abruzzo_gb_region LEFT JOIN 'ODBC:tuna/caparica@mappa_tem'.mp_ini ON comuni_abruzzo_gb_region.Id = mp_ini.ID"</P>
<P></P>
<P>CLASSITEM FIELD</P>
<P>CLASS</P>
<P>NAME 'mt0'</P>
<P>EXPRESSION ([FIELD] &lt; (2))</P>
<P>STYLE</P>
<P>OUTLINECOLOR 255 255 255</P>
<P>COLOR 221 250 220</P>
<P>END</P>
<P>TEMPLATE void</P>
<P>END</P>
<P>METADATA </P>
<P>"ID_MYSQL" "7"</P>
<P>"NICE_NAME" "Mappa Tematica"</P>
<P>END</P>
<P>END</P></BLOCKQUOTE></FONT>
<P>Everything works fine in windows/apache/php/mapserver/mapscript environement... </P>
<P>Now the challenge is: I am transfering this system to LINUX environment and as far as could get so far I still have to use an ODBC connection... is this true? I mean beeing in LINUX environment souldn't I be able to make a direct connection between mapserver an MySQL without having to use a windows native technology?</P>
<P>I am afraid I might be making things more complex than they could be..</P>
<P>thanks in advance for any tips.</P>
<P>&nbsp;</P>
<P>Joao Antunes</P></DIV><p>Send instant messages to your online friends http://uk.messenger.yahoo.com