[Qgis-developer] use of SymbologyExport
Tim Sutton
lists at linfiniti.com
Fri Dec 27 10:33:44 PST 2013
Hi
On Fri, Dec 27, 2013 at 3:32 PM, Pim Verver <pim at travelingo.nl> wrote:
> Hi,
>
>
>
> I am using the QGis python console for the use of exporting an active
> layer from postgist to a shape file layer. I want to include the
> symbology as is possible through the GUI of QGis 2.
>
>
>
> I am using the writeAsVectorFormat<http://www.qgis.org/api/classQgsVectorFileWriter.html#a289af78b5b609fbcb0572aaf505f2822>method of the QgsVectorFileWriter class, but keep getting errors as if the
> parameter doesn´t exist. Can anybody give me an example of the use of this
> method that includes the used symbology of the original layer.
>
>
>
> Th alternative would be save the style als SLD and import the style file
> after creating the shape layer, but if I can avoid that …
>
>
>
> Thanx in advance kinds regards,
>
Posting a small code snippet of what you have already come up with would
probably be useful for folks wishing to help you.
Regards
Tim
>
>
> Pim Verver
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
--
Tim Sutton - QGIS Project Steering Committee Member
==============================================
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.
Irc: timlinux on #qgis at freenode.net
==============================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131227/5a4e5a5e/attachment.html>
More information about the Qgis-developer
mailing list