php mapscript error

Kipp Jones kippster at YAHOO.COM
Fri Nov 3 13:55:47 PST 2006


This may be a configuration error, but I'm stumped.  I'm getting an  
error when trying to use ogr to connect to mysql via phpmapscript.   
The error:

PHP Warning:  [MapServer Error]: msOGRLayerOpen(): OGR support is not  
available.

I'm running on Mac OS X 10.4.8.

Things seem to be happy, gmap is working just fine.

My output from phpinfo shows:

MapServer Version
MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG  
OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE  
SUPPORTS=WMS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=GDAL  
INPUT=SHAPEFILE DEBUG=MSDEBUG
PHP MapScript Version
($Revision: 1.260 $ $Date: 2006/09/06 16:42:36 $)


The layer in my map is pretty simple:
LAYER
     NAME "scanner"
     STATUS DEFAULT
     TYPE POINT
     CONNECTIONTYPE OGR
     CONNECTION "/Users/kippster/tiger/scanner.ovf"
     DATA "scanner"
     CLASS
        NAME "scanner"
            STYLE
                SYMBOL 2
                SIZE 15
                COLOR 0 255 0
            END
     END
END


My ovf file is:

<OGRVRTDataSource>
     <OGRVRTLayer name="scanner">
          
<SrcDataSource>MYSQL:db,user=xxxx,password=xxxxxx,host=127.0.0.1,port=33 
06,tables=GpsLogs</SrcDataSource>
         <SrcSQL>SELECT scannerId, latitude, longitude FROM GpsLogs</ 
SrcSQL>
         <GeometryType>wkbPoint</GeometryType>
         <GeometryField encoding="PointFromColumns" x="latitude"  
y="longitude"/>
     </OGRVRTLayer>
</OGRVRTDataSource>


When I perform ' ogrinfo /Users/kippster/tiger/scanner.ovf -al' it  
spews out all of the data points in the db just fine.


Any ideas?

Thanks!

Kipp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061103/1843df53/attachment.htm>


More information about the MapServer-users mailing list