Re: [Qgis-developer] Symbology export in save as feature

2016-06-24 Thread Yves Jacolin
Andreas, Thanks for you explenation. I added some of your description in the documentation. Y. On Friday, June 24, 2016 11:15:45 Neumann, Andreas wrote: > Hi Yves, > > This has mainly "historic" reasons. > > It was introduced specifically when saving QGIS layers to DXF through > OGR. I

Re: [Qgis-developer] custom charts?

2016-06-24 Thread kimaidou
Hi all, Great idea indeed. Here is another example of "dynamic" SVG, used here to render PNG as symbols in QGIS. Not with expressions but with a Python method. https://gist.github.com/mdouchin/d66191ccfadd74cff3f0 It is derived of the work of Nathan Woodrow:

Re: [Qgis-developer] custom charts?

2016-06-24 Thread Neumann, Andreas
That's a cool idea. It would be similar to the HTML element in print composer, where one can also mix static and dynamic HTML code - with Expressions. It would be very flexible. Maybe this could even be further extended to also allow Javascript inside the SVG code (like a web-browser does). The

Re: [Qgis-developer] custom charts?

2016-06-24 Thread Hugo Mercier
Actually, we already have a "template" concept in SVG, if you look at the SVG shipped with QGIS, they have things like fill="param(fill)" allowing to have the filling color as a user parameter. That could be easily extended to also support feature's attributes and expressions. On 24/06/2016

Re: [Qgis-developer] custom charts?

2016-06-24 Thread Neumann, Andreas
Hi Raymond, Well - 90% is some default Inkscape/RDF junk. You can trim this down to four lines - header, the path element and the closing SVG element. Also, some of the styling parameters are unncessary, as SVG has default values - not necessary, to write fill-opacity:1;, because this already

Re: [Qgis-developer] custom charts?

2016-06-24 Thread Raymond Nijssen
Hugo, That would be way cooler! For now, I just write generated svg files to a temp directory and add links to them to every feature. Strings might get long though. Here is for example the code from my dummy image (1.4kb): http://purl.org/dc/elements/1.1/;

Re: [Qgis-developer] Problem definig snapping options programmatically

2016-06-24 Thread John Layt
On 24 June 2016 at 12:06, John Stevenson wrote: > Hi Christian, > > Yes, my problem is exactly the same as yours, and so I have the same > questions, too: > > - is it a bug or a feature that the settings are not applied immediately by > setSnapSettingsToLayer()? >

Re: [Qgis-developer] custom charts?

2016-06-24 Thread Hugo Mercier
It would be also cool to be able to directly use a string as image content for a marker (rather than just for the filename). That should be quite easy to do. On 24/06/2016 14:28, Nathan Woodrow wrote: > Raymond, > > Code generated SVGs is a pretty cool idea. Would be super keen to see > that

Re: [Qgis-developer] custom charts?

2016-06-24 Thread Nathan Woodrow
Raymond, Code generated SVGs is a pretty cool idea. Would be super keen to see that once you have something! On Fri, Jun 24, 2016 at 10:25 PM, Neumann, Andreas wrote: > Pretty cool - so we can deliver script-generated SVG code instead of a > filename? Nice! > > Care to do

Re: [Qgis-developer] custom charts?

2016-06-24 Thread Neumann, Andreas
Pretty cool - so we can deliver script-generated SVG code instead of a filename? Nice! Care to do a blog post with some example? This sounds quite exciting to me. Andreas On 2016-06-24 14:12, Raymond Nijssen wrote: > Hi Hugo, > > It works! Thanks a lot!! > > This is exactly what i was

Re: [Qgis-developer] custom charts?

2016-06-24 Thread Raymond Nijssen
Hi Hugo, It works! Thanks a lot!! This is exactly what i was looking for, but somehow could not find. Here is a little example with some fake svg's: http://terglobo.nl/downloads/example.png Now I will script generating svg based on real data. Regards, Raymond On 23-06-16 09:02, Hugo

Re: [Qgis-developer] Problem definig snapping options programmatically

2016-06-24 Thread EFTAS Christian Röttger
Hi John, sorry I think I don't understand your mail at the moment. As I understand it, this is exactly my problem or is here a solution in it? I tried QgsProject.instance().snapSettingsChanged.emit() but it seems that it has no effect and like below fires with no argument. Settings are set but

Re: [Qgis-developer] Symbology export in save as feature

2016-06-24 Thread Neumann, Andreas
Hi Yves, This has mainly "historic" reasons. It was introduced specifically when saving QGIS layers to DXF through OGR. I believe also the KML export is affected to some extent. Our first attempt to export QGIS layer to DXF went through OGR with OGR feature - however, this was too limited,

Re: [Qgis-developer] Problem definig snapping options programmatically

2016-06-24 Thread John Stevenson
Hi all, This is the same issue that I had a few months ago [1]. (Thanks Tom for flagging it up). You can recreate in the console as follows as follows (QGIS 2.14.3, with one vector layer loaded): ``` vlayer = QgsMapLayerRegistry.instance().mapLayers().values()[0] proj = QgsProject.instance()

[Qgis-developer] Symbology export in save as feature

2016-06-24 Thread Yves Jacolin
Hello, Working in the "save as ..." feature documentation I wondering what "Symbology export" parameters mean. There are 3 possibilities: "No symbology", "Feature symbology" and "Symbol layer symbology". Any idea what does it mean? Thanks, Y. signature.asc Description: This is a digitally

Re: [Qgis-developer] custom charts?

2016-06-24 Thread Neumann, Andreas
Hi Raymond, Do you have an example how such a visualization could look like? Kind of a mockup? In QGIS master, Matthieu Pellerin added additional simple markers now (e.g. half/third/quarter circles, squares, triangles, etc.), e.g. to create wingcharts. The combination of custom anchor points,