<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;"><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="stopSpelling">&gt; Date: Tue, 25 Sep 2007 21:49:09 +0200<br>&gt; From: wonder.sk@gmail.com<br>&gt; To: frdcn@hotmail.com<br>&gt; Subject: Re: [Qgis-developer] question about ogr provider<br>&gt; CC: qgis-developer@lists.qgis.org<br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; QGIS uses TestCapability() method of ogr layer to detect its<br>&gt; capabilities and enables editing only when some of the write<br>&gt; operations are available - so that would mean that mysql driver in OGR<br>&gt; doesn´t support writing - also when looking at its sources it doesn´t<br>&gt; look like it would support it.<br>&gt; <br>&gt; Martin<br>&gt; <br>&gt; On 9/25/07, godofredo contreras &lt;frdcn@hotmail.com&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; Hi:<br>&gt; &gt;     I have been working in a mysql plugin using ogr provider, reading is now<br>&gt; &gt; working<br>&gt; &gt;    but I can´t get writing working.  ogrinfo --formats reports mysql (read /<br>&gt; &gt; write), I registered<br>&gt; &gt;    the datasource  with update support with no errors.<br>&gt; &gt;<br>&gt; &gt;    ogrDataSource =<br>&gt; &gt; OGRSFDriverRegistrar::Open(QFile::encodeName(uri).constData(),<br>&gt; &gt; TRUE, &amp;ogrDriver);<br>&gt; &gt;<br>&gt; &gt;    But the option toggle editing is always deactivated with this kind of<br>&gt; &gt; datasource<br>&gt; &gt;<br>&gt; &gt;    How is this option activated?<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Regards<br>&gt; &gt;<br>&gt; &gt; Godofredo Contreras<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Gear up for Halo(r) 3 and get a $25 Best Buy gift card. It's our way of saying<br>&gt; &gt; thanks for using Windows Live™. Get it now!<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Qgis-developer mailing list<br>&gt; &gt; Qgis-developer@lists.qgis.org<br>&gt; &gt; http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer<br>&gt; &gt;<br>&gt; &gt;<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='_new'>Play now!</a></body>
</html>