Hi,<br><br>&nbsp;I'm trying to get point data out of mysql to display on a map. I'm using the following .ovf file, which I've tested using ogrinfo and seems to work fine.<br><br><span style="font-family: courier new,monospace;">
&lt;OGRVRTDataSource&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &lt;OGRVRTLayer name=&quot;test_gis&quot;&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SrcDataSource&gt;MYSQL:test_gis,user=root,password=mypword,host=<a href="http://127.0.0.1">127.0.0.1</a>,port=3306,tables=boxes&lt;/SrcDataSource&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SrcSQL&gt;SELECT fid, x, y FROM boxes&lt;/SrcSQL&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;GeometryType&gt;wkbPoint&lt;/GeometryType&gt;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;GeometryField encoding=&quot;PointFromColumns&quot; x=&quot;x&quot; y=&quot;y&quot; z=&quot;z&quot;&nbsp; /&gt;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; &lt;/OGRVRTLayer&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&lt;/OGRVRTDataSource&gt;</span><br><br>When I go to the jsp that draws the map I get these errors:<br><br><span style="font-family: times new roman,serif;">description The server encountered an internal error () that prevented it from fulfilling this request.
</span><br style="font-family: times new roman,serif;"><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">exception</span><br style="font-family: times new roman,serif;"><br style="font-family: times new roman,serif;">
<span style="font-family: times new roman,serif;">org.apache.jasper.JasperException: Failed to draw layer named 'test_gis'.</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">
&nbsp;&nbsp; &nbsp;org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:375)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)</span><br style="font-family: times new roman,serif;">
<span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">
&nbsp;&nbsp; &nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</span><br style="font-family: times new roman,serif;"><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">root cause
</span><br style="font-family: times new roman,serif;"><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">javax.servlet.ServletException: Failed to draw layer named 'test_gis'.
</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)</span><br style="font-family: times new roman,serif;">
<span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">
&nbsp;&nbsp; &nbsp;org.apache.jsp.boxes.dartmoor_005fpoints_jsp._jspService(dartmoor_005fpoints_jsp.java:74)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;org.apache.jasper.runtime.HttpJspBase.service
(HttpJspBase.java:97)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</span><br style="font-family: times new roman,serif;">
<span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">
&nbsp;&nbsp; &nbsp;org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;org.apache.jasper.servlet.JspServlet.service
(JspServlet.java:264)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</span><br style="font-family: times new roman,serif;">
<br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">root cause</span><br style="font-family: times new roman,serif;"><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">
java.lang.UnknownError: Failed to draw layer named 'test_gis'.</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method)
</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;edu.umn.gis.mapscript.mapObj.draw(mapObj.java:382)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">
&nbsp;&nbsp; &nbsp;org.apache.jsp.boxes.dartmoor_005fpoints_jsp._jspService(dartmoor_005fpoints_jsp.java:56)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;org.apache.jasper.runtime.HttpJspBase.service
(HttpJspBase.java:97)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</span><br style="font-family: times new roman,serif;">
<span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">
&nbsp;&nbsp; &nbsp;org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;org.apache.jasper.servlet.JspServlet.service
(JspServlet.java:264)</span><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">&nbsp;&nbsp; &nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</span><br><br><br><br>I've tried loads of different things in the .map file (below) but I still end up with the same problem. Does anyone know what I'm going wrong?
<br><br>Thanks,<br>Sarah<br><br>Map file:<br><br><span style="font-family: courier new,monospace;">MAP</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; NAME DARTMOOR_POINTS
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; STATUS ON</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; SHAPEPATH &quot;/usr/local/apache-tomcat-5.5.17/webapps/ROOT/boxes/&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; EXTENT 250000.000000 57000.000000 260000.000000
 70000.000000</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; SIZE 400 400</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; WEB</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEPATH &quot;/usr/local/apache-tomcat-5.5.17/webapps/ROOT/temp/&quot;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEURL &quot;/temp/&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; END</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; LAYER</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME &quot;test_gis&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS ON</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE POINT</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PROJECTION</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;proj=latlong&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;ellps=WGS84&quot;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;datum=WGS84&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTIONTYPE OGR</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTION &quot;test_gis.ovf&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA &quot;test_gis&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLASS</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME &quot;boxes&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 0</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 0 0</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; END</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">END</span><br><br>----------------------------------------------------------------------------------------------------------------------------
<br><br>JSP File:<br><br><span style="font-family: courier new,monospace;">&lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=ISO-8859-1&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; pageEncoding=&quot;ISO-8859-1&quot;%&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 
4.01 Transitional//EN&quot;&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;html&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&lt;%@ page import = &quot;edu.umn.gis.mapscript.mapObj&quot; %&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;%@ page import = &quot;edu.umn.gis.mapscript.imageObj
&quot; %&gt;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;%&nbsp;&nbsp;&nbsp;&nbsp; mapObj vMap;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; String vMapName = &quot;/usr/local/apache-tomcat-5.5.17/webapps/ROOT/boxes/dartmoor_points.map&quot;;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; vMap = new mapObj(vMapName);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; String vMapFile = &quot;/usr/local/apache-tomcat-5.5.17/webapps/ROOT/boxes/dartmoor_points.mapfile&quot;;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; vMap.setMappath(vMapName);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp; imageObj img = vMap.draw();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; img.save(vMapFile,vMap);</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">%&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;head&gt;</span>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;/head&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;body&gt;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Image:&lt;br&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&lt;image src=&quot;dartmoor_points.mapfile&quot;&gt;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&lt;/body&gt;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&lt;/html&gt;</span>