[Qgis-developer] Re: API 2.0

luca_manganelli at comune.trento.it luca_manganelli at comune.trento.it
Mon Sep 12 08:51:52 EDT 2011


Another useful method:

   QgsDataProvider.searchForFeatures ( fieldIndex, searchString,
searchMethod = 0 )

      fieldIndex: search on idx-th field;
      searchString: search terms;
      searchMethod:
                         0x00001 = match whole searchString
                         0x00002 = search inside values;

 it returns an array of found features.



qgis-developer-bounces at lists.osgeo.org scritti il 12/09/2011 14.30.59

> Hi!

> Probably a WIKI page with proposed API updates/cleanings?
> Could be handy for Documentation afterwards too

> regards
> Werner
> Am 12.09.2011 14:28, schrieb Martin Dobias:
> > Hi Giuseppe
> >
> > feel free to mark the such methods as deprecated - when we start
> > cleaning the API it will be handy.
> >
> > Martin
> >
> > On Mon, Sep 12, 2011 at 2:22 PM, Giuseppe Sucameli
> > <brush.tyler at gmail.com>  wrote:
> >> Also QgsRasterLayer::usesProvider() should be deprecated
> >> because file-based rasters use gdal provider now.
> >>
> >> On Mon, Sep 12, 2011 at 1:39 PM, Giuseppe Sucameli
> >> <brush.tyler at gmail.com>  wrote:
> >>> Hi devs,
> >>> thinking to 2.0, we should uniform API by using the same name
> for these methods
> >>> QgsRasterLayer::providerKey() and QgsVectorLayer::providerType().
> >>>
> >>> I think is better to use providerType() for both them.
> >>> Cheers.
> >>>
> >>> --
> >>> Giuseppe Sucameli
> >>>
> >>
> >>
> >>
> >> --
> >> Giuseppe Sucameli
> >> _______________________________________________
> >> Qgis-developer mailing list
> >> Qgis-developer at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/qgis-developer
> >>
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer

> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110912/afcce12d/attachment.html


More information about the Qgis-developer mailing list