[Qgis-developer] question about ogr provider
godofredo contreras
frdcn at hotmail.com
Tue Sep 25 16:25:09 EDT 2007
Thank you Martin for your answer. I made a program
to test what capabilities is the mysql ogr driver reporting
and it only reports:
Random Read.
Fast Spatial Filter.
Fast Feature Count.
But there have to be something wrong with the driver capabilities report
because in the same test program I use CreateFeature and it works
but it is not reporting Sequential Write.
Regards
Godofredo Contreras
> Date: Tue, 25 Sep 2007 21:49:09 +0200
> From: wonder.sk at gmail.com
> To: frdcn at hotmail.com
> Subject: Re: [Qgis-developer] question about ogr provider
> CC: qgis-developer at lists.qgis.org
>
> Hi,
>
> QGIS uses TestCapability() method of ogr layer to detect its
> capabilities and enables editing only when some of the write
> operations are available - so that would mean that mysql driver in OGR
> doesn´t support writing - also when looking at its sources it doesn´t
> look like it would support it.
>
> Martin
>
> On 9/25/07, godofredo contreras <frdcn at hotmail.com> wrote:
> >
> > Hi:
> > I have been working in a mysql plugin using ogr provider, reading is now
> > working
> > but I can´t get writing working. ogrinfo --formats reports mysql (read /
> > write), I registered
> > the datasource with update support with no errors.
> >
> > ogrDataSource =
> > OGRSFDriverRegistrar::Open(QFile::encodeName(uri).constData(),
> > TRUE, &ogrDriver);
> >
> > But the option toggle editing is always deactivated with this kind of
> > datasource
> >
> > How is this option activated?
> >
> >
> > Regards
> >
> > Godofredo Contreras
> >
> > ________________________________
> > Gear up for Halo(r) 3 and get a $25 Best Buy gift card. It's our way of saying
> > thanks for using Windows Live™. Get it now!
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.qgis.org
> > http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
> >
> >
_________________________________________________________________
Can you find the hidden words? Take a break and play Seekadoo!
http://club.live.com/seekadoo.aspx?icid=seek_wlmailtextlink
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20070925/b51ff61f/attachment.html
More information about the Qgis-developer
mailing list