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 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, and it was abandoned.
> 
> "No symbology" means, simple black default lines
> 
> "Feature symbology" means "Save with OGR Feature Styles"
> 
> "Symbol Layer symbology" means "Save with OGR Feature Styles but export
> the same geometry multiple times if there are multiple symbology symbol
> layers used"
> 
> Meanwhile the DXF export from QGIS goes through a native DXF writer -
> without OGR, so the above approach was abandoned and hasn't been worked
> on for some years now.
> 
> -
> 
> I hope this explains what it does, but as I said it is limited for
> export to DXF/KML or potentially formats that support OGR feature styles
> - formats that can handle styles.
> 
> For QGIS 3.0 I see the following ways to get rid of this:
> 
> 1. keep it but improve it (unlikely)
> 
> 2. hide it for layers that don't support OGR feature styles (can be
> combined with 1.)
> 
> 3. get rid of it completely (my preferred option if 1. does not happen)
> 
> BTW: 2. could probably be done for QGIS 2.16 and 2.14 already, to have
> fewer confused users ...
> 
> Hope this explains it.
> 
> What do others think?
> 
> Andreas
> 
> On 2016-06-24 10:43, Yves Jacolin wrote
> 
> > 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.
> > ___
> > Qgis-developer mailing list
> > Qgis-developer@lists.osgeo.org
> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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-svgs/

This could be adapted to create a SVG from a template via Python tools like
template:
https://docs.python.org/2/library/string.html#template-strings
or more advanced template engines


​Cheers,
Michaël​
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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 HTML element in print
composer also has support for JSON onload-data based on relations. That
could also be useful for such custom SVG generators created with
Javascript. 

See
https://github.com/qgis/QGIS/commit/794ab065dc7ada524ee9b284f90ea70c8e4c75c8
 

Just brainstorming a bit ;-) 

Andreas 

On 2016-06-24 14:59, Hugo Mercier wrote:

> 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, Raymond Nijssen wrote: 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):
> 
> 
> 
> 
>  xmlns:dc="http://purl.org/dc/elements/1.1/;
> xmlns:cc="http://creativecommons.org/ns#;
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#;
> xmlns:svg="http://www.w3.org/2000/svg;
> xmlns="http://www.w3.org/2000/svg;
> version="1.1"
> width="32"
> height="32"
> id="svg2985">
>  id="defs2987" />
>  id="metadata2990">
> 
>  rdf:about="">
> image/svg+xml
>  rdf:resource="http://purl.org/dc/dcmitype/StillImage; />
> 
> 
> 
> 
>  id="layer1">
>  width="32"
> height="32"
> ry="5.1795878"
> x="0"
> y="0"
> id="rect2993"
> style="fill:#efefef;fill-opacity:1;stroke:none" />
>  d="m 3.2204932,9.8354288 c 0,0 2.1492989,4.3642312
> 5.9021879,4.1948682 2.6857939,-0.121208 2.4849709,-3.285023
> 5.3970119,-3.017097 3.079402,0.283325 2.518907,6.965981
> 6.783374,7.088215 4.047473,0.116014 6.797316,8.50238 6.797316,8.50238"
> id="path3763"
> 
> style="fill:none;stroke:#a32800;stroke-width:1.6002;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
> />
> 
> 
> 
> On 24-06-16 14:34, Hugo Mercier wrote: 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 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 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 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 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 map; 
> This should work, no ?

Are you sure? This would mean that the value(!) of an attribute
would
contain the actual svg (code, not filename).
Any example on how to use that with styling then? 
Hmmm exact, I don't think you can include the content (I tried to
include a data url but it does not work).

> - Add a text field to my feature layer containig a path to a
> png (or
> svg), and somehow make qgis display that on my map. 
> An SVG marker with the file name defined as an expression ?

Same here, while we managed to get for example colors dynamic,
we could
not find a way (yet) to set the marker-svg once filename is
retrieved
from an attribute...

Happy to get an example or pointers :-) 
with an SVG-marker the filename can be "data-defined", so you can
for
instance use an expression like '/xxx/mymarker_' || id || '.svg'

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org

List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org

List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: 

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, Raymond Nijssen wrote:
> 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):
> 
> 
> 
> 
> xmlns:dc="http://purl.org/dc/elements/1.1/;
>xmlns:cc="http://creativecommons.org/ns#;
>xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#;
>xmlns:svg="http://www.w3.org/2000/svg;
>xmlns="http://www.w3.org/2000/svg;
>version="1.1"
>width="32"
>height="32"
>id="svg2985">
> id="defs2987" />
> id="metadata2990">
> 
> rdf:about="">
> image/svg+xml
> rdf:resource="http://purl.org/dc/dcmitype/StillImage; />
> 
>   
> 
>   
> id="layer1">
> width="32"
>height="32"
>ry="5.1795878"
>x="0"
>y="0"
>id="rect2993"
>style="fill:#efefef;fill-opacity:1;stroke:none" />
> d="m 3.2204932,9.8354288 c 0,0 2.1492989,4.3642312
> 5.9021879,4.1948682 2.6857939,-0.121208 2.4849709,-3.285023
> 5.3970119,-3.017097 3.079402,0.283325 2.518907,6.965981
> 6.783374,7.088215 4.047473,0.116014 6.797316,8.50238 6.797316,8.50238"
>id="path3763"
> 
> style="fill:none;stroke:#a32800;stroke-width:1.6002;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
> />
>   
> 
> 
> 
> 
> 
> 
> 
> On 24-06-16 14:34, Hugo Mercier wrote:
>> 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 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 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 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 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 map;
>>>
>>> This should work, no ?
>>
>> Are you sure? This would mean that the value(!) of an attribute
>> would
>> contain the actual svg (code, not filename).
>> Any example on how to use that with styling then?
>
> Hmmm exact, I don't think you can include the content (I tried to
> include a data url but it does not work).
>
>>
 - Add a text field to my feature layer containig a path to a
 png (or
 svg), and somehow make qgis display that on my map.
>>>
>>> An SVG marker with the file name defined as an expression ?
>>
>> Same here, while we managed to get for example colors dynamic,
>> we could
>> not find a way (yet) to set the marker-svg once filename is
>> retrieved
>> from an attribute...
>>
>> Happy to get an example or pointers :-)
>
> with an SVG-marker the filename can be "data-defined", so you can for
> instance use an expression like '/xxx/mymarker_' || id || '.svg'
>
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> 
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>

 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org 
 List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
 

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
the default. 

BTW: Inkscape can save to "Optimized SVG", which should also be much
smaller. 

Andreas 

On 2016-06-24 14:45, Raymond Nijssen wrote:

> 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):
> 
> 
> 
> 
>  xmlns:dc="http://purl.org/dc/elements/1.1/;
> xmlns:cc="http://creativecommons.org/ns#;
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#;
> xmlns:svg="http://www.w3.org/2000/svg;
> xmlns="http://www.w3.org/2000/svg;
> version="1.1"
> width="32"
> height="32"
> id="svg2985">
>  id="defs2987" />
>  id="metadata2990">
> 
>  rdf:about="">
> image/svg+xml
>  rdf:resource="http://purl.org/dc/dcmitype/StillImage; />
> 
> 
> 
> 
>  id="layer1">
>  width="32"
> height="32"
> ry="5.1795878"
> x="0"
> y="0"
> id="rect2993"
> style="fill:#efefef;fill-opacity:1;stroke:none" />
>  d="m 3.2204932,9.8354288 c 0,0 2.1492989,4.3642312
> 5.9021879,4.1948682 2.6857939,-0.121208 2.4849709,-3.285023
> 5.3970119,-3.017097 3.079402,0.283325 2.518907,6.965981
> 6.783374,7.088215 4.047473,0.116014 6.797316,8.50238 6.797316,8.50238"
> id="path3763"
> 
> style="fill:none;stroke:#a32800;stroke-width:1.6002;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
> />
> 
> 
> 
> On 24-06-16 14:34, Hugo Mercier wrote: 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 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 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 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 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 map; 
> This should work, no ?

Are you sure? This would mean that the value(!) of an attribute
would
contain the actual svg (code, not filename).
Any example on how to use that with styling then? 
Hmmm exact, I don't think you can include the content (I tried to
include a data url but it does not work).

> - Add a text field to my feature layer containig a path to a
> png (or
> svg), and somehow make qgis display that on my map. 
> An SVG marker with the file name defined as an expression ?

Same here, while we managed to get for example colors dynamic,
we could
not find a way (yet) to set the marker-svg once filename is
retrieved
from an attribute...

Happy to get an example or pointers :-) 
with an SVG-marker the filename can be "data-defined", so you can
for
instance use an expression like '/xxx/mymarker_' || id || '.svg'

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org

List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org

List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer 

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org

List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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://creativecommons.org/ns#;
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#;
   xmlns:svg="http://www.w3.org/2000/svg;
   xmlns="http://www.w3.org/2000/svg;
   version="1.1"
   width="32"
   height="32"
   id="svg2985">
  
  

  
image/svg+xml
http://purl.org/dc/dcmitype/StillImage; />

  

  
  


  







On 24-06-16 14:34, Hugo Mercier wrote:
> 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 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 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 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 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 map;
>>
>> This should work, no ?
>
> Are you sure? This would mean that the value(!) of an attribute
> would
> contain the actual svg (code, not filename).
> Any example on how to use that with styling then?

 Hmmm exact, I don't think you can include the content (I tried to
 include a data url but it does not work).

>
>>> - Add a text field to my feature layer containig a path to a
>>> png (or
>>> svg), and somehow make qgis display that on my map.
>>
>> An SVG marker with the file name defined as an expression ?
>
> Same here, while we managed to get for example colors dynamic,
> we could
> not find a way (yet) to set the marker-svg once filename is
> retrieved
> from an attribute...
>
> Happy to get an example or pointers :-)

 with an SVG-marker the filename can be "data-defined", so you can for
 instance use an expression like '/xxx/mymarker_' || id || '.svg'


 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 
 List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
 Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

>>>
>>> ___
>>> Qgis-developer mailing list
>>> Qgis-developer@lists.osgeo.org 
>>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>  
>>
>>  
>>
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org 
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>
>>
>>
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
> 
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> 

-- 
Terglobo
Fahrenheitstraat 1
5223 BJ 's-Hertogenbosch
06 25 31 49 83
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: 

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()?
> - is there a way to change snapping settings to Advanced via Python?

Have a look at my code for doing lots of snapping stuff like that,
feel free to borrow it under GPLv2+:

https://github.com/lparchaeology/libarkqgis/blob/master/snapping.py

Really must get around to releasing that plugin I wrote to configure
snapping using a single toolbar button...

John.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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 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 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 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 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 map;
>
> This should work, no ?

 Are you sure? This would mean that the value(!) of an attribute
 would
 contain the actual svg (code, not filename).
 Any example on how to use that with styling then?
>>>
>>> Hmmm exact, I don't think you can include the content (I tried to
>>> include a data url but it does not work).
>>>

>> - Add a text field to my feature layer containig a path to a
>> png (or
>> svg), and somehow make qgis display that on my map.
>
> An SVG marker with the file name defined as an expression ?

 Same here, while we managed to get for example colors dynamic,
 we could
 not find a way (yet) to set the marker-svg once filename is
 retrieved
 from an attribute...

 Happy to get an example or pointers :-)
>>>
>>> with an SVG-marker the filename can be "data-defined", so you can for
>>> instance use an expression like '/xxx/mymarker_' || id || '.svg'
>>>
>>>
>>> ___
>>> Qgis-developer mailing list
>>> Qgis-developer@lists.osgeo.org
>>> 
>>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>>
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org 
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
>  
> 
>  
> 
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org 
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> 
> 
> 
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> 

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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 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 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 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 map;
>
>
> This should work, no ?
>
>
> Are you sure? This would mean that the value(!) of an attribute would
> contain the actual svg (code, not filename).
> Any example on how to use that with styling then?
>
>
> Hmmm exact, I don't think you can include the content (I tried to
> include a data url but it does not work).
>
>
> - Add a text field to my feature layer containig a path to a png (or
> svg), and somehow make qgis display that on my map.
>
>
> An SVG marker with the file name defined as an expression ?
>
>
> Same here, while we managed to get for example colors dynamic, we could
> not find a way (yet) to set the marker-svg once filename is retrieved
> from an attribute...
>
> Happy to get an example or pointers :-)
>
>
> with an SVG-marker the filename can be "data-defined", so you can for
> instance use an expression like '/xxx/mymarker_' || id || '.svg'
>
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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 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 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 map; 
> This should work, no ?

Are you sure? This would mean that the value(!) of an attribute would
contain the actual svg (code, not filename).
Any example on how to use that with styling then? 
Hmmm exact, I don't think you can include the content (I tried to
include a data url but it does not work).

> - Add a text field to my feature layer containig a path to a png (or
> svg), and somehow make qgis display that on my map. 
> An SVG marker with the file name defined as an expression ?

Same here, while we managed to get for example colors dynamic, we could
not find a way (yet) to set the marker-svg once filename is retrieved
from an attribute...

Happy to get an example or pointers :-) 
with an SVG-marker the filename can be "data-defined", so you can for
instance use an expression like '/xxx/mymarker_' || id || '.svg'

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer 

  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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 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 map;
>>>
>>> This should work, no ?
>>
>> Are you sure? This would mean that the value(!) of an attribute would
>> contain the actual svg (code, not filename).
>> Any example on how to use that with styling then?
> 
> Hmmm exact, I don't think you can include the content (I tried to
> include a data url but it does not work).
> 
>>
 - Add a text field to my feature layer containig a path to a png (or
 svg), and somehow make qgis display that on my map.
>>>
>>> An SVG marker with the file name defined as an expression ?
>>
>> Same here, while we managed to get for example colors dynamic, we could
>> not find a way (yet) to set the marker-svg once filename is retrieved
>> from an attribute...
>>
>> Happy to get an example or pointers :-)
> 
> with an SVG-marker the filename can be "data-defined", so you can for
> instance use an expression like '/xxx/mymarker_' || id || '.svg'
> 
> 
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> 

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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 are not applied.

The only "solution" which I see at the moment is:
"Settings > Snapping Options > Snapping Mode" remains at "Current Layer".  
Changing this to to "Advanced" shows correct values have been
set, but they are not activated until "OK" is pressed.

Thanks for the help
Christian

> -Ursprüngliche Nachricht-
> Von: Qgis-developer [mailto:qgis-developer-boun...@lists.osgeo.org] Im
> Auftrag von John Stevenson
> Gesendet: Freitag, 24. Juni 2016 10:43
> An: Matthias Kuhn; qgis-developer@lists.osgeo.org
> Cc: Tom Chadwin
> Betreff: Re: [Qgis-developer] Problem definig snapping options
> programmatically
> 
> 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()
> proj.setSnapSettingsForLayer(vlayer.id(), True,
> QgsSnapper.SnapToVertex, QgsTolerance.LayerUnits, 5.0, False)
> ```
> 
> The settings are not applied.
> 
> "Settings > Snapping Options > Snapping Mode" remains at "Current
> Layer".  Changing this to to "Advanced" shows correct values have been
> set, but they are not activated until "Apply" is pressed.
> 
> Connecting a function to QgsProject.instance().snapSettingsChanged()
> shows that the signal fires with no arguments when
> setSnapSettingsForLayer is called.  Emitting the signal manually does
> nothing.
> 
> Cheers
> John
> 
> [1]: http://osgeo-org.1560.x6.nabble.com/Setting-snapping-settings-via-
> Python-td5246362.html
> 
> John Stevenson
> Senior Developer
> Email:mailto:john.steven...@thinkwhere.com
> 
> Glendevon House
> Castle Business Park
> Stirling FK9 4TZ
> 
> Tel: 01786 476060
> Tel: 01786 476093 (Direct Dial)
> 
> 
> From: Qgis-developer [qgis-developer-boun...@lists.osgeo.org] on behalf
> of Matthias Kuhn [matth...@opengis.ch]
> Sent: 23 June 2016 14:55
> To: qgis-developer@lists.osgeo.org
> Subject: Re: [Qgis-developer] Problem definig snapping options
> programmatically
> 
> Hi Christian,
> 
> Does it help if you call
> 
> QgsProject.instance().snapSettingsChanged()
> 
> Cheers
> Matthias
> 
> On 06/23/2016 03:38 PM, EFTAS Christian Röttger wrote:
> > Hi developers,
> >
> >
> >
> > i’m facing a problem which i do not understand. In our plugin I
> created
> > a function to set snapping options and bound it to a shortcut.
> >
> > Using Qgis 2.14.3, source code see below.
> >
> >
> >
> > The assigned shortcut works well, but for the snapping I have to do
> the
> > following on every QGIS start:
> >
> > Go to snapping options, mode = advanced, press ok (without changing
> > anything). Then it works afterwards!
> >
> > But when I print the options *before* I do this, I definitely get the
> > right options (see below).
> >
> >
> >
> > Does anyone know what I’m missing? Should I open an bug report? Is
> there
> > a workaround do do: “Go to snapping options, mode = advanced, press
> ok”
> > programmatically ?
> >
> >
> >
> > Thanks for any help
> >
> > Christian
> >
> >
> >
> > ## Print result
> >
> > Initialize, when aggroInstance is true
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > checked
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > (True, True, 2, 0, 2.0, False)
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > (True, True, 2, 0, 2.0, False)
> >
> > (True, False, 2, 0, 2.0, True)
> >
> > (True, False, 2, 0, 2.0, True)
> >
> >
> >
> > ## function
> >
> >
> >
> > *def *toggleSnapping(checked):
> > /'''
> > Toggle snapping option
> > /*:param*/checked: True if snapping has been activated, False
> otherwise
> > '''
> > /aggroInstance = initModule.aggroInstance
> > *print **'Initialize'
> > **if *bool(agroInstance):
> > *for *item *in
> *QgsMapLayerRegistry.instance().mapLayers().values():
> > QgsProject.instance().setSnapSettingsForLayer(item.id(),
> > False, 2, 0, 2, True)
> > fieldLayer =
> > mapUtils.getLayerByName(aggroInstance.dictData[*'field'*])
> > backgroundLayer = mapUtils.getLayerByName(*'bg'*)
> > *for *item *in
> *QgsMapLayerRegistry.instance().mapLayers().values():
> > *print
> *QgsProject.instance().snapSettingsForLayer(item.id())

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, and it was abandoned. 

"No symbology" means, simple black default lines 

"Feature symbology" means "Save with OGR Feature Styles" 

"Symbol Layer symbology" means "Save with OGR Feature Styles but export
the same geometry multiple times if there are multiple symbology symbol
layers used" 

Meanwhile the DXF export from QGIS goes through a native DXF writer -
without OGR, so the above approach was abandoned and hasn't been worked
on for some years now. 

- 

I hope this explains what it does, but as I said it is limited for
export to DXF/KML or potentially formats that support OGR feature styles
- formats that can handle styles. 

For QGIS 3.0 I see the following ways to get rid of this: 

1. keep it but improve it (unlikely) 

2. hide it for layers that don't support OGR feature styles (can be
combined with 1.) 

3. get rid of it completely (my preferred option if 1. does not happen) 

BTW: 2. could probably be done for QGIS 2.16 and 2.14 already, to have
fewer confused users ... 

Hope this explains it. 

What do others think? 

Andreas 

On 2016-06-24 10:43, Yves Jacolin wrote

> 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. 
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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()
proj.setSnapSettingsForLayer(vlayer.id(), True, QgsSnapper.SnapToVertex, 
QgsTolerance.LayerUnits, 5.0, False)
```

The settings are not applied.

"Settings > Snapping Options > Snapping Mode" remains at "Current Layer".  
Changing this to to "Advanced" shows correct values have been set, but they are 
not activated until "Apply" is pressed.

Connecting a function to QgsProject.instance().snapSettingsChanged() shows that 
the signal fires with no arguments when setSnapSettingsForLayer is called.  
Emitting the signal manually does nothing.

Cheers
John

[1]: 
http://osgeo-org.1560.x6.nabble.com/Setting-snapping-settings-via-Python-td5246362.html

John Stevenson
Senior Developer
Email:mailto:john.steven...@thinkwhere.com

Glendevon House
Castle Business Park
Stirling FK9 4TZ

Tel: 01786 476060
Tel: 01786 476093 (Direct Dial)


From: Qgis-developer [qgis-developer-boun...@lists.osgeo.org] on behalf of 
Matthias Kuhn [matth...@opengis.ch]
Sent: 23 June 2016 14:55
To: qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] Problem definig snapping options programmatically

Hi Christian,

Does it help if you call

QgsProject.instance().snapSettingsChanged()

Cheers
Matthias

On 06/23/2016 03:38 PM, EFTAS Christian Röttger wrote:
> Hi developers,
>
>
>
> i’m facing a problem which i do not understand. In our plugin I created
> a function to set snapping options and bound it to a shortcut.
>
> Using Qgis 2.14.3, source code see below.
>
>
>
> The assigned shortcut works well, but for the snapping I have to do the
> following on every QGIS start:
>
> Go to snapping options, mode = advanced, press ok (without changing
> anything). Then it works afterwards!
>
> But when I print the options *before* I do this, I definitely get the
> right options (see below).
>
>
>
> Does anyone know what I’m missing? Should I open an bug report? Is there
> a workaround do do: “Go to snapping options, mode = advanced, press ok”
> programmatically ?
>
>
>
> Thanks for any help
>
> Christian
>
>
>
> ## Print result
>
> Initialize, when aggroInstance is true
>
> (True, False, 2, 0, 2.0, True)
>
> (True, False, 2, 0, 2.0, True)
>
> (True, False, 2, 0, 2.0, True)
>
> (True, False, 2, 0, 2.0, True)
>
> (True, False, 2, 0, 2.0, True)
>
> (True, False, 2, 0, 2.0, True)
>
> (True, False, 2, 0, 2.0, True)
>
> (True, False, 2, 0, 2.0, True)
>
> checked
>
> (True, False, 2, 0, 2.0, True)
>
> (True, False, 2, 0, 2.0, True)
>
> (True, True, 2, 0, 2.0, False)
>
> (True, False, 2, 0, 2.0, True)
>
> (True, False, 2, 0, 2.0, True)
>
> (True, True, 2, 0, 2.0, False)
>
> (True, False, 2, 0, 2.0, True)
>
> (True, False, 2, 0, 2.0, True)
>
>
>
> ## function
>
>
>
> *def *toggleSnapping(checked):
> /'''
> Toggle snapping option
> /*:param*/checked: True if snapping has been activated, False otherwise
> '''
> /aggroInstance = initModule.aggroInstance
> *print **'Initialize'
> **if *bool(agroInstance):
> *for *item *in *QgsMapLayerRegistry.instance().mapLayers().values():
> QgsProject.instance().setSnapSettingsForLayer(item.id(),
> False, 2, 0, 2, True)
> fieldLayer =
> mapUtils.getLayerByName(aggroInstance.dictData[*'field'*])
> backgroundLayer = mapUtils.getLayerByName(*'bg'*)
> *for *item *in *QgsMapLayerRegistry.instance().mapLayers().values():
> *print *QgsProject.instance().snapSettingsForLayer(item.id())
> *if *checked:
> *print **'checked'
> */# Convenience function to set snap settings per layer.
> # it defines the snapping options:
> # id : the id of your layer, True : to enable the layer
> snapping, 2 : options (2: vertex+segment), 0: type of unit on map, 2 :
> tolerance, true : avoidIntersection)
>
> /QgsProject.instance().setSnapSettingsForLayer(fieldLayer.id(), True, 2,
> 0, 2, False)
>
> QgsProject.instance().setSnapSettingsForLayer(backgroundLayer.id(),
> True, 2, 0, 2, False)
> *for *item *in
> *QgsMapLayerRegistry.instance().mapLayers().values():
> *print
> *QgsProject.instance().snapSettingsForLayer(item.id())
>
>
>
> ## initialization in run() method
>
>
>
> /# Call Snapping Tool by a key shortcut
> /*for *action *in *self.actions:
> *if *action.text() == *'Toggle Snapping'*:
> /# Action triggered by shortcut key
> /self.iface.registerMainWindowAction(action, *"c"*)
>
>
>
>
>
>
>
>
>
>
>
> --
>
> image003
>
> eftas3
>
> Dipl.-Geoinf. Christian Röttger
>
> -Forschung und Entwicklung
>
> E F T A SFernerkundung
> Technologietransfer GmbH
> Oststraße 2-18
> 48145 Münster
>
> Fon: +49 251 13307-23 E-Mail: 

[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 signed message part.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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, offsets,
rotation and scaling on the symbol level allows for many interesting
visualizations - such as the "wing chart" showing commuters at train
stations by type (work, education, leisure, etc) at
http://www.carto.net/neumann/temp/commuters_by_type.png. With these
basic symbols you can also do other chart types as combinations of
scaled, rotated and offseted simple symbols to visualize sensor values. 

More such simple markers could be added, should there be the need for. 

Hope this helps, 

Greetings, 

Andreas 

On 2016-06-22 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 svg or png) and have it displayed
> on my feature.
> 
> I've come up with some ideas:
> 
> - Create many custom svg files in a directory linked to qgis, and
> afterwards create a long rule-based style for every unique feature;
> 
> - Add a text field to my feature layer containig svg, and somehow make
> qgis display that on my map;
> 
> - Add a text field to my feature layer containig a path to a png (or
> svg), and somehow make qgis display that on my map.
> 
> None of those options seems to be possible. Does anybody know a solution?
> 
> Thanks!
> 
> Raymond
> 
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

  ___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer