<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">Hi :<br><br>I sent a mail to gdal-dev list to ask about the testcapabilities of mysql ogr driver<br>and in effect it is a bug in the driver, something similar happens to postgresql driver.<br><br>Could it be safe to test in ogrprovider if driver is mysql and set the capabilities manually<br>temporarily until this bug has been fixed?<br><br>Best regards<br>Godofredo Contreras<br><br><br></div><br><br><br><blockquote><hr id="EC_stopSpelling">From: frdcn@hotmail.com<br>To: wonder.sk@gmail.com<br>Date: Tue, 25 Sep 2007 20:25:09 +0000<br>CC: qgis-developer@lists.qgis.org<br>Subject: Re: [Qgis-developer] question about ogr provider<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass EC_body.hmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div style="text-align: left;"><br></div>Thank you Martin for your answer. I made a program<br>to test what capabilities is the mysql ogr driver reporting<br>and it only reports: <br><br>Random Read.<br>Fast Spatial Filter.<br>Fast Feature Count.<br><br>But there have to be something wrong with the driver capabilities report<br>because in the same test program I use CreateFeature and it works<br>but it is not reporting Sequential Write.<br><br><br>Regards<br>Godofredo Contreras<br><br><hr id="EC_stopSpelling">> Date: Tue, 25 Sep 2007 21:49:09 +0200<br>> From: wonder.sk@gmail.com<br>> To: frdcn@hotmail.com<br>> Subject: Re: [Qgis-developer] question about ogr provider<br>> CC: qgis-developer@lists.qgis.org<br>> <br>> Hi,<br>> <br>> QGIS uses TestCapability() method of ogr layer to detect its<br>> capabilities and enables editing only when some of the write<br>> operations are available - so that would mean that mysql driver in OGR<br>> doesn´t support writing - also when looking at its sources it doesn´t<br>> look like it would support it.<br>> <br>> Martin<br>> <br>> On 9/25/07, godofredo contreras <frdcn@hotmail.com> wrote:<br>> ><br>> > Hi:<br>> > I have been working in a mysql plugin using ogr provider, reading is now<br>> > working<br>> > but I can´t get writing working. ogrinfo --formats reports mysql (read /<br>> > write), I registered<br>> > the datasource with update support with no errors.<br>> ><br>> > ogrDataSource =<br>> > OGRSFDriverRegistrar::Open(QFile::encodeName(uri).constData(),<br>> > TRUE, &ogrDriver);<br>> ><br>> > But the option toggle editing is always deactivated with this kind of<br>> > datasource<br>> ><br>> > How is this option activated?<br>> ><br>> ><br>> > Regards<br>> ><br>> > Godofredo Contreras<br>> ><br>> > ________________________________<br>> > Gear up for Halo(r) 3 and get a $25 Best Buy gift card. It's our way of saying<br>> > thanks for using Windows Live™. Get it now!<br>> > _______________________________________________<br>> > Qgis-developer mailing list<br>> > Qgis-developer@lists.qgis.org<br>> > http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer<br>> ><br>> ><br><br><hr>Can you find the hidden words? Take a break and play Seekadoo! <a href="http://club.live.com/seekadoo.aspx?icid=seek_wlmailtextlink" target="_blank">Play now!</a>
</blockquote><br /><hr />Connect to the next generation of MSN Messenger <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline' target='_new'>Get it now! </a></body>
</html>