Hi,<br><br>&nbsp;I've tried shp2img, and to start with it couldn't find the path but I found it in the mapserver directory. When I issue this command: <span style="font-family: courier new,monospace;"><br>/usr/local/mapserver-4.8.3
/shp2img -m dartmoor_points.map test.gif</span><br><br>I get the following error:<br><br><span style="font-family: courier new,monospace;">msDrawMap(): Image handling error. Failed to draw layer named 'test_gis'. &lt;br&gt;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">msOGRLayerOpen(): General error message. OGR support is not available. &lt;br&gt;</span><br><br>so presumably I haven't compiled it with OGR support? But I don't understand because I include --with-ogr and --with-gdal when I compile mapserver. Using --help on the gdal 
configure.sh doesn't list anything for --with-ogr for gdal so how do I include ogr? Or is that not the problem? I have succesfully used ogrinfo on other files which makes me think that OGR is installed.<br><br>Any ideas on what is wrong?
<br><br>Thanks,<br>Sarah<br><br><div><span class="gmail_quote">On 12/07/06, <b class="gmail_sendername">Frank Warmerdam</b> &lt;<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sarah Parrott wrote:<br>&gt; Hi,<br>&gt;<br>&gt;&nbsp;&nbsp;I'm trying to get point data out of mysql to display on a map. I'm<br>&gt; using the following .ovf file, which I've tested using ogrinfo and seems<br>&gt; to work fine.<br>
&gt;<br>&gt; &lt;OGRVRTDataSource&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;OGRVRTLayer name=&quot;test_gis&quot;&gt;<br>&gt;<br>&gt; &lt;SrcDataSource&gt;MYSQL:test_gis,user=root,password=mypword,host=<a href="http://127.0.0.1">127.0.0.1</a><br>
&gt; &lt;<a href="http://127.0.0.1">http://127.0.0.1</a>&gt;,port=3306,tables=boxes&lt;/SrcDataSource&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SrcSQL&gt;SELECT fid, x, y FROM boxes&lt;/SrcSQL&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;GeometryType&gt;wkbPoint&lt;/GeometryType&gt;
<br>&gt;&nbsp;&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;&nbsp;/&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/OGRVRTLayer&gt;<br>&gt; &lt;/OGRVRTDataSource&gt;<br>...<br>&gt; I've tried loads of different things in the .map file (below) but I
<br>&gt; still end up with the same problem. Does anyone know what I'm going wrong?<br><br>Sarah,<br><br>I would suggest trying shp2img on your map.&nbsp;&nbsp;I *suspect* this is the problem<br>with OGR datasources where OGR issues an error internally about not supporting
<br>setting attribute (or perhaps it was spatial) constraints on an ExecuteSQL()<br>result and this causing unnecessary problems in mapserver.&nbsp;&nbsp; But the expected<br>error message is not visible in your report - possibly because it is being
<br>masked by something more generic.<br><br>Possibly shp2img with DEBUG ON for the map and layer in question would give<br>more detailed information.<br><br>Best regards,<br>--<br>---------------------------------------+--------------------------------------
<br>I set the clouds in motion - turn up&nbsp;&nbsp; | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a><br>light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam
</a><br>and watch the world go round - Rush&nbsp;&nbsp;&nbsp;&nbsp;| President OSGF, <a href="http://osgeo.org">http://osgeo.org</a><br><br></blockquote></div><br>