Hi,<br><br> 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'. <br>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">msOGRLayerOpen(): General error message. OGR support is not available. <br></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> <<a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com</a>> 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>> Hi,<br>><br>> I'm trying to get point data out of mysql to display on a map. I'm<br>> using the following .ovf file, which I've tested using ogrinfo and seems<br>> to work fine.<br>
><br>> <OGRVRTDataSource><br>> <OGRVRTLayer name="test_gis"><br>><br>> <SrcDataSource>MYSQL:test_gis,user=root,password=mypword,host=<a href="http://127.0.0.1">127.0.0.1</a><br>
> <<a href="http://127.0.0.1">http://127.0.0.1</a>>,port=3306,tables=boxes</SrcDataSource><br>> <SrcSQL>SELECT fid, x, y FROM boxes</SrcSQL><br>> <GeometryType>wkbPoint</GeometryType>
<br>> <GeometryField encoding="PointFromColumns" x="x" y="y" z="z" /><br>> </OGRVRTLayer><br>> </OGRVRTDataSource><br>...<br>> I've tried loads of different things in the .map file (below) but I
<br>> 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. 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. 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 | 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 | President OSGF, <a href="http://osgeo.org">http://osgeo.org</a><br><br></blockquote></div><br>