[Qgis-developer] Save dialog for plugin development

Marco Bernasocchi marco at bernawebdesign.ch
Fri Jul 6 02:18:42 PDT 2012


Marco Bernasocchi (mobile)
http://opengis.ch
On Jul 6, 2012 2:03 AM, "Rob Nickerson" <rob.j.nickerson at gmail.com> wrote:
>
> Fantastic. I'll take a better look next week and will see if I can
forward a patch to get one of fTools functions writing to any ogr format.
>
> If the qgis team are happy with this I will look at the other functions
in ftools. Probably best to use git for that so may need a quick heads up
on how to use just the ftools folder of qgis git repository.
>
> Also would be nice to know what tools people use for python (e.g. IDEs
etc). I'm new and so far most of my python work has been small but with
something like ftools it is tricky to follow over several .py files.
I use mainly pydev under aptana or under eclipse or Eric4.
Ciao
>
> Rob
>
>
>
>
> On Thursday, 5 July 2012, Giuseppe Sucameli <sucameli at faunalia.it> wrote:
> > Hi Rob,
> >
> > On Thu, Jul 5, 2012 at 9:30 PM, Rob Nickerson <rob.j.nickerson at gmail.com>
wrote:
> >> I noted
> >> that gdal tools have a hard coded look up table. If this is the only
way
> >> then can i suggest we bring such a table into the core so that all
plugins
> >> can make use of it. Alternatively we switch to write to a memory layer
-
> >> however I do not know how to do this...
> >
> > you're right, GdalTools has a map containing all the drivers
> > informations, it gets everything from the gdal module but that
> > part was developed about 2 years ago as workaround for some
> > old QGis bugs.
> >
> > Have a look at QgsVectorFileWriter static methods,
> > supportedFiltersAndFormats() [1] should be the one you need.
> >
> > Regards.
> >
> > [1]
http://qgis.org/api/classQgsVectorFileWriter.html#a6a21cf775f777b9ed4ba445db33aa08d
> >
> > --
> > Giuseppe Sucameli - Faunalia
> >
>
> _______________________________________________
> 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/20120706/f0396ff0/attachment-0001.html>


More information about the Qgis-developer mailing list