Failed to draw layer error with mysql points

Frank Warmerdam warmerdam at POBOX.COM
Tue Jul 25 14:22:05 EDT 2006


Sarah Parrott wrote:
> Hi,
> 
>  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:
> /usr/local/mapserver-4.8.3 /shp2img -m dartmoor_points.map test.gif
> 
> I get the following error:
> 
> msDrawMap(): Image handling error. Failed to draw layer named 
> 'test_gis'. <br>
> msOGRLayerOpen(): General error message. OGR support is not available. <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.

Sarah,

You can check the mapserver version info to see if OGR support actually
got compiled in.  It should include "INPUT=OGR" somewhere.   If you don't
see that it seems likely that you either aren't running the same version
you built, or you didn't do a 'make clean' before a re-configure, or
the configure failed in some subtle way that disabled the OGR support.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org



More information about the mapserver-users mailing list