Re: [Qgis-developer] custom charts?

2016-06-28 Thread Marco Bernasocchi
Nice workflow! On 29 June 2016 02:31:27 GMT+12:00, Raymond Nijssen wrote: >Here is an example of a map with code generated svg images as symbols. >The quick and dirty script does: > >- aggregate all features from input point layer with same geometry >- calculate min/max times and values for whol

Re: [Qgis-developer] custom charts?

2016-06-28 Thread Raymond Nijssen
Here is an example of a map with code generated svg images as symbols. The quick and dirty script does: - aggregate all features from input point layer with same geometry - calculate min/max times and values for whole set - create svg files for every feature with filename based on id - create a la

Re: [Qgis-developer] custom charts?

2016-06-26 Thread Raymond Nijssen
There is this library to make it easier: https://pypi.python.org/pypi/svgwrite/ And since it is python, you can use the standard code editor in QGIS (or an external one if you prefer). Raymond On 25-06-16 21:33, Lauri Kajan wrote: > This would be great also for nautical charts to render light s

Re: [Qgis-developer] custom charts?

2016-06-25 Thread Lauri Kajan
This would be great also for nautical charts to render light sectors from S57 data. Could existing code editor be used to construct the svg with some python svg library? -Lauri ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: h

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: http://nathanw.net/2016/02/04/live-svg

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 H

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 14:45

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 t

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/"; xmlns:cc="http://creativecommon

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 onc

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 a blog post with some

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 look

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 Mercier

Re: [Qgis-developer] custom charts?

2016-06-23 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, o

Re: [Qgis-developer] custom charts?

2016-06-23 Thread Raymond Nijssen
Thanks Hugo, I will try to get this to work. On 23-06-16 09:02, Hugo Mercier wrote: > On 22/06/2016 19:06, Richard Duivenvoorde wrote: >> On 22-06-16 14:39, Hugo Mercier wrote: >>> Hi Raymond, - Add a text field to my feature layer containig svg, and somehow make qgis display that on my

Re: [Qgis-developer] custom charts?

2016-06-23 Thread Hugo Mercier
On 22/06/2016 19:06, Richard Duivenvoorde wrote: > On 22-06-16 14:39, Hugo Mercier wrote: >> Hi Raymond, >>> - Add a text field to my feature layer containig svg, and somehow make >>> qgis display that on my map; >> >> This should work, no ? > > Are you sure? This would mean that the value(!) of a

Re: [Qgis-developer] custom charts?

2016-06-22 Thread Richard Duivenvoorde
On 22-06-16 14:39, Hugo Mercier wrote: > Hi Raymond, >> - Add a text field to my feature layer containig svg, and somehow make >> qgis display that on my map; > > This should work, no ? Are you sure? This would mean that the value(!) of an attribute would contain the actual svg (code, not filenam

Re: [Qgis-developer] custom charts?

2016-06-22 Thread Hugo Mercier
Hi Raymond, On 22/06/2016 14:19, Raymond Nijssen wrote: > Dear developers, > > Can I somehow show custom images for each point feature on a map, > similar to the layer diagrams? > > Having locations with a few sensor values, I'd like to generate a custom > image for every feature (for example sv

Re: [Qgis-developer] custom charts?

2016-06-22 Thread Marco Bernasocchi
are maptips an option or do you need always on images? in 2.16 you'll be able to have full html maptips which would solve your issue. ciao Marco On 23.06.2016 00:19, Raymond Nijssen wrote: > Dear developers, > > Can I somehow show custom images for each point feature on a map, > similar to the l

[Qgis-developer] custom charts?

2016-06-22 Thread Raymond Nijssen
Dear developers, Can I somehow show custom images for each point feature on a map, similar to the layer diagrams? Having locations with a few sensor values, I'd like to generate a custom image for every feature (for example svg or png) and have it displayed on my feature. I've come up with some