<div><font face="Arial" size="2">Hello,<br>I need something specific: To draw polygons 
(parcels) over a SHP map, and none of the examples I found on the web worked. 
</font></div>
<div><font face="Arial" size="2">Also I have no problems displaying points and I&#39;m 
using UTM coordinates.<br><br>This is what I did:<br><br></font></div>
<div><font face="Arial" size="2">1.- Compiled MS on Linux (CentOS) and 
Install.</font></div>
<div><font face="Courier" size="2">MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG 
OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER 
SUPPORTS=SOS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=MYGIS 
INPUT=SHAPEFILE<br><br></font></div>
<div><font face="Arial" size="2">2.- Installed MySql.<br><br></font></div>
<div><font face="Arial" size="2">3.- Created a table on MySql to store polygons. 
Here is the description. This table is called &quot;prueba&quot;<br><font face="Courier">+----------+---------+------+-----+---------+-------+<br>| Field&nbsp;&nbsp;&nbsp; 
| Type&nbsp;&nbsp;&nbsp; | Null | Key | Default | Extra 
|<br>+----------+---------+------+-----+---------+-------+<br>| NUM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 
int(11) | YES&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; | NULL&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <br>| ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | int(11) | YES&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; | 
NULL&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp; <br>| poligono | text&nbsp;&nbsp;&nbsp; | YES&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; | NULL&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 
<br>+----------+---------+------+-----+---------+-------+<br></font></font></div>
<div><font face="Arial" size="2">This is what inserted on field 
poligono:</font></div>
<div><font face="Arial" size="2"><font face="Courier">POLYGON((350000 6270000,350000 
6275000,360000 6275000,360000 6270000,350000 6270000))</font></font></div>
<div><strong></strong>&nbsp;</div>
<div><font face="Arial" size="2">4.- Then created a OVF file, according to this 
example. (aqidata.ovf)</font></div>
<div><font face="Arial" size="2"><a href="http://www.dottedeyes.com/web_mapping/blog/2008/02/06/how-to-display-polygons-from-non-spatial-databases/">http://www.dottedeyes.com/web_mapping/blog/2008/02/06/how-to-display-polygons-from-non-spatial-databases/</a></font></div>

<div>&nbsp;</div>
<div><font face="Arial" size="2">This is my OVF file :</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2"><font face="Courier">&lt;OGRVRTDataSource&gt;<br>&nbsp;&nbsp;&nbsp; 
&lt;OGRVRTLayer name=&quot;aqidata&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;SrcDataSource&gt;MYSQL:test,user=root,password=xxxxx,host=localhost,port=3306,tables=prueba&lt;/SrcDataSource&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;SrcSQL&gt;select NUM, ID,&nbsp;poligono from prueba&lt;/SrcSQL&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;FID&gt;ID&lt;/FID&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;GeometryType&gt;wkbPolygon&lt;/GeometryType&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;GeometryField 
encoding=&quot;WKT&quot; 
field=&quot;poligono&quot;/&gt;<br>&nbsp;&lt;/OGRVRTLayer&gt;<br>&lt;/OGRVRTDataSource&gt;</font><br></font></div>
<div><font face="Arial" size="2">Using OGRINFO I Tested the connection, this is the 
result:</font></div>
<div><font face="Courier" size="2">&nbsp;</font></div>
<div><font face="Courier" size="2">INFO: Open of 
`/var/www/cgi-bin/tests/aqidata.ovf&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using driver `VRT&#39; 
successful.</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2"><font face="Courier">Layer name: aqidata<br>Geometry: 
Polygon<br>Feature Count: 1<br>Layer SRS WKT:<br>(unknown)<br>NUM: Integer 
(11.0)<br>ID: Integer (11.0)<br>poligono: Binary 
(0.0)<br>OGRFeature(aqidata):1<br>&nbsp; NUM (Integer) = 1<br>&nbsp; ID (Integer) = 1<br>&nbsp; 
poligono (Binary) = 
504F4C59474F4E282833353030303020363237303030302C333530303030203632373530...</font></font></div>
<div><font face="Courier" size="2">&nbsp;</font></div>
<div><font face="Arial" size="2">&nbsp;</font></div>
<div><font face="Arial" size="2">5.- Then a created a MAP file:</font></div>
<div><font face="Courier" size="2">&nbsp;</font></div>
<div><font face="Courier" size="2">MAP<br>&nbsp; NAME &quot;Testing&quot;<br>&nbsp; EXTENT -177773.12 
6409691.13 525065 6511086<br>&nbsp; #IMAGETYPE JPEG<br>&nbsp; #IMAGETYPE PNG24<br>&nbsp; 
IMAGETYPE PNG<br>&nbsp; IMAGECOLOR 255 255 255<br>&nbsp; STATUS ON<br>&nbsp; SIZE 400 400<br>&nbsp; 
FONTSET &quot;fonts.txt&quot;<br>&nbsp; SYMBOLSET &quot;symbols.txt&quot;</font></div>
<div>&nbsp;</div><font size="2">
</font><div><font size="2"><br><font face="Courier">&nbsp; WEB<br>&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;key1&quot; 
&quot;value1&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;key2&quot; &quot;value2&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;key3&quot; &quot;value3&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;key4&quot; 
&quot;value4&quot;<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp; END</font></font></div>
<div><font size="2">&nbsp;</font></div>
<div>&nbsp;</div>
<div><font face="Courier" size="2">&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp; &quot;init=epsg:4326&quot;<br>&nbsp; 
END</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2"><font face="Courier">&nbsp;LAYER<br>&nbsp;&nbsp;&nbsp; NAME 
&quot;POLIGONO&quot;<br>&nbsp;&nbsp;&nbsp; DEBUG ON<br>&nbsp;&nbsp;&nbsp; STATUS DEFAULT<br>&nbsp;&nbsp;&nbsp; TYPE POLYGON<br>&nbsp;&nbsp;&nbsp; 
PROJECTION<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;init=epsg:4326&quot;<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; CONNECTIONTYPE OGR<br>&nbsp;&nbsp;&nbsp; 
CONNECTION &quot;aqidata.ovf&quot;<br>&nbsp;DATA &quot;aqidata&quot;<br>&nbsp;&nbsp;&nbsp; CLASS<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 
&quot;MyClass&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
OUTLINECOLOR 255 0 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 8<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp; 
END<br>END<br></font></font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2"><font face="Courier">&nbsp;</font></font></div>
<div><font face="Arial" size="2">It doesn&#39;t show anything, just a white rectangle. 
Not even an error. </font></div>
<div><font face="Arial" size="2"><font face="Courier"><font face="Arial">But when I 
display just points it works fine (using 
&quot;PointsFromColumns&quot;).</font></font></font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2"><font face="Courier"><font face="Arial">I hope you 
could help me.</font></font></font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2"><font face="Courier"><font face="Arial">Thanks,</font></font></font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2"><font face="Courier"><font face="Arial">Pablo Molina 
S.</font></font></font></div>