using OGR to connect MySQL
beyhan at DEPREM.GOV.TR
Mon Aug 21 08:41:52 EDT 2006
I'm trying to connect MySQL database to draw earthquake epicenters on the map
that the data are stored in mysql like
ID, Latitude, Longitude, magnitude
1 30 40 3.5
2 31 41 5.5
I have tried to test ogr with the following command as explaeined in the
Document on Webpages' Mapserver.
The agidata.ovf file is as follow.
<SrcSQL>SELECT ID,Lat,Lon,Mag FROM deneme</SrcSQL>
<GeometryField encoding="PointFromColumns" x="lat" y="lon"/>
But I haven't achieved. The following messages is appearing on the screen.
[murat at sakura mapdata]$ ogrinfo /var/www/html/map/agidata.ovf
ERROR 1: Unable to create Xerces C++ based GML reader, Xerces support
not configured into GDAL/OGR.
ERROR 1: File /var/www/html/map/agidata.ovf appears to be GML but the GML
be instantiated, likely because Xerces support wasn't
Unable to open datasource `/var/www/html/map/agidata.ovf' with the following
-> ESRI Shapefile
-> UK .NTF
-> IHO S-57 (ENC)
-> MapInfo File
How can I fix this problem...
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the mapserver-users