<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">> 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='_new'>Play now!</a></body>
</html>