<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=704351119-04042008><FONT face=Arial color=#0000ff size=2>There 
may be greater issues, but your extent line looks wrong.&nbsp; 
</FONT></SPAN></DIV>
<DIV><SPAN class=704351119-04042008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=704351119-04042008><FONT face=Arial color=#0000ff size=2>It 
should be: minx miny maxx maxy</FONT></SPAN></DIV>
<DIV><SPAN class=704351119-04042008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=704351119-04042008><FONT face=Arial color=#0000ff size=2>Yours 
looks like miny maxy minx maxx?</FONT></SPAN></DIV>
<DIV><SPAN class=704351119-04042008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=704351119-04042008><FONT face=Arial color=#0000ff 
size=2>David.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  mapserver-users-bounces@lists.osgeo.org 
  [mailto:mapserver-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Kamen 
  Rider<BR><B>Sent:</B> Friday, April 04, 2008 2:03 PM<BR><B>To:</B> 
  mapserver-users@lists.osgeo.org<BR><B>Subject:</B> [mapserver-users] Problem 
  with polygons<BR><BR></FONT></DIV>Sorry, but I must insist. I hope someone 
  could help me.<BR><BR>---------- Forwarded message ----------<BR><SPAN 
  class=gmail_quote>From: <B class=gmail_sendername>Kamen Rider</B> &lt;<A 
  href="mailto:kamenriderichigo@gmail.com">kamenriderichigo@gmail.com</A>&gt;<BR>Date: 
  26-mar-2008 9:51<BR>Subject: <BR>To: <A 
  href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><BR><BR></SPAN>
  <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'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 "prueba"<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 
  onclick="return top.js.OpenExtLink(window,event,this)" 
  href="http://www.dottedeyes.com/web_mapping/blog/2008/02/06/how-to-display-polygons-from-non-spatial-databases/" 
  target=_blank>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="aqidata"&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="WKT" 
  field="poligono"/&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></FONT>&nbsp;</DIV>
  <DIV><FONT face=Courier size=2>INFO: Open of 
  `/var/www/cgi-bin/tests/aqidata.ovf'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using 
  driver `VRT' 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></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>5.- Then a created a MAP file:</FONT></DIV>
  <DIV><FONT face=Courier size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Courier size=2>MAP<BR>&nbsp; NAME "Testing"<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 
  "fonts.txt"<BR>&nbsp; SYMBOLSET "symbols.txt"</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; "key1" 
  "value1"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "key2" 
  "value2"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "key3" 
  "value3"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "key4" 
  "value4"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END</FONT></FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Courier size=2>&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp; 
  "init=epsg:4326"<BR>&nbsp; END</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><FONT 
  face=Courier>&nbsp;LAYER<BR>&nbsp;&nbsp;&nbsp; NAME 
  "POLIGONO"<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; 
  "init=epsg:4326"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; 
  CONNECTIONTYPE OGR<BR>&nbsp;&nbsp;&nbsp; CONNECTION 
  "aqidata.ovf"<BR>&nbsp;DATA "aqidata"<BR>&nbsp;&nbsp;&nbsp; 
  CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 
  "MyClass"<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></FONT></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>It doesn'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 
  "PointsFromColumns").</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></BLOCKQUOTE></BODY></HTML>