[Qgis-developer] Save dialog for plugin development

Rob Nickerson rob.j.nickerson at gmail.com
Thu Jul 5 17:03:48 PDT 2012


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.

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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120706/24e6d982/attachment.html>


More information about the Qgis-developer mailing list