[Qgis-user] Symbology Export

Andreas Neumann a.neumann at carto.net
Mon Mar 10 09:16:13 PDT 2014


Hi Jonathan,

I think this option should be disabled if a format does not support
feature styling. I don't know if OGR provides this information?

http://www.gdal.org/ogr/drv_kml.html
says about KML:
"Limited support is available for fills, line color and other styling
attributes. Please try a few sample files to get a better sense of
actual behavior."

Andreas

Am 10.03.2014 16:10, schrieb Jonathan Moules:
> Hi Andreas,
> Thanks for further testing. I figured if something as simple as a fill
> wasn't implemented then catogorisation probably wouldn't be.
> 
> A further thought - not all vector formats support styling (shapefile being
> the most notable exception). Should it remain a general option or be moved
> to "Datasource Options" for any supported style?
> I lean towards the later option myself.
> 
> Cheers,
> 
> Jonathan
> 
> 
> 
> 
> On 10 March 2014 16:04, Andreas Neumann <a.neumann at carto.net> wrote:
> 
>> Hi Jonathan,
>>
>> I can only partially confirm what you describe.
>>
>> I agree that for area feature the feature styling does not work for KML.
>> However, for line features, it works fine and there is a difference
>> between the three options. The "no symbology" only exports a single line
>> color, the "feature symbology" correctly exports the colors assigned to
>> the categories and the "symbol layer symbology" exports line features
>> multiple times in case of multiple levels in the line symbology.
>>
>> So I'd rather improve this than remove it. If someone could work on the
>> area feature styling it would be great. Or maybe hook up with the OGR
>> project if things don't work as expected.
>>
>> Andreas
>>
>> Am 10.03.2014 15:47, schrieb Jonathan Moules:
>>> Hi Andreas,
>>> I'm testing with a simple polygon that's using the default style QGIS
>> gave
>>> it (so basically black border and a random fill colour).
>>> I've exported using both options - all I get in the KML file is a black
>>> border, no fill.
>>> I can change the colour of the border in QGIS and it changes in the KML
>>> file. So I guess that's a very partial implementation.
>>>
>>> *However* - If I set it to "no symbology" I still get the coloured
>>> boundary. So changing the value appears to do absolutely nothing which
>> is I
>>> guess what I saw when I first tested it (a while back). Hence my
>> wondering
>>> what it actually did.
>>>
>>> Can you confirm this behaviour? It seems superfluous to have an option
>> that
>>> is ignored.
>>>
>>> Cheers,
>>> Jonathan
>>>
>>>
>>>
>>> On 10 March 2014 15:30, Andreas Neumann <a.neumann at carto.net> wrote:
>>>
>>>> Hi Jonathan,
>>>>
>>>> The thread you are quoting is from 2011. The OGR feature styling was
>>>> introduced later (in late 2012 or early 2013 I think).
>>>>
>>>> So did you really test KML export with "Feature symbology" or "symbol
>>>> layer symbology"?
>>>>
>>>> I just tested it with QGIS master and with line features and different
>>>> line colors. It worked. What did you do that it did not work? What
>>>> steps? Do you have project/data to share?
>>>>
>>>> Andreas
>>>>
>>>> Am 10.03.2014 15:07, schrieb Jonathan Moules:
>>>>> Hi Andreas,
>>>>> I don't believe QGIS exports any KML styling. I was interested in
>> doing a
>>>>> full style KML export and got this -
>>>>>
>>>>
>> http://osgeo-org.1560.x6.nabble.com/styling-a-KML-KMZ-file-using-QGIS-td4125929.html-
>>>>> seems not to be possible.
>>>>>
>>>>> I'll open a ticket for removing/hiding it. I'd suggest you open a
>> ticket
>>>>> for expanding it - you know more about it so will be able to write a
>>>> better
>>>>> ticket about it. :-)
>>>>>
>>>>> Regards,
>>>>> Jonathan
>>>>>
>>>>>
>>>>>
>>>>> On 10 March 2014 14:59, Andreas Neumann <a.neumann at carto.net> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Actually it is not tied to DXF, but DXF was the reason why it was
>>>>>> introduced. It is just generic OGR feature styling.
>>>>>>
>>>>>> Maybe it should be removed/hidden/disabled because DXF now has its
>>>>>> separate export. Maybe assign Marco Hugentobler to this ticket as he
>>>>>> worked on this.
>>>>>>
>>>>>> Unless someone wants to work on it and improve it.
>>>>>>
>>>>>> Does it not work at all with KML? Not even a simple line color?
>>>>>>
>>>>>> Andreas
>>>>>>
>>>>>> Am 10.03.2014 14:49, schrieb Jonathan Moules:
>>>>>>> Hi Andreas,
>>>>>>> Thanks for the information. I'd suggest it should probably be removed
>>>>>>> until/unless it is fleshed out as you note. Either that or changed to
>>>> be
>>>>>> a
>>>>>>> "Datasource option" specific for DXF.
>>>>>>> Should I open a ticket for this?
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Jonathan
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 10 March 2014 14:35, Andreas Neumann <a.neumann at carto.net> wrote:
>>>>>>>
>>>>>>>> Hi Jonathan,
>>>>>>>>
>>>>>>>> This was originally introduced for DXF export to keep symbology as
>>>> good
>>>>>>>> as it can - which is now in its separate function (Project -> DXF
>>>>>>>> Export) and not in the "save layer as" anymore.
>>>>>>>>
>>>>>>>> It uses the OGR feature styling, which in itself is rather limiting.
>>>>>>>> This isn't widely implemented and tested. Would be nice if some devs
>>>> or
>>>>>>>> interested customers/users could give it some love.
>>>>>>>>
>>>>>>>> Andreas
>>>>>>>>
>>>>>>>> Am 10.03.2014 13:45, schrieb Jonathan Moules:
>>>>>>>>> Hi List,
>>>>>>>>> General curiosity question.
>>>>>>>>> When using "Save Vector Layer as" to save a vector layer, there's
>> an
>>>>>>>>> optioon:
>>>>>>>>> "Symbology Export"
>>>>>>>>>
>>>>>>>>> This in turn has three options:
>>>>>>>>> "No Symbology"
>>>>>>>>> "Feature symbology"
>>>>>>>>> "Symbol layer symbology"
>>>>>>>>>
>>>>>>>>> What does this do? I've tried exporting to both KML and TAB files
>>>> using
>>>>>>>>> these options but they don't appear to keep the symbology.
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>> Jonathan
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Qgis-user mailing list
>>>>>>>>> Qgis-user at lists.osgeo.org
>>>>>>>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Qgis-user mailing list
>>>>>>>> Qgis-user at lists.osgeo.org
>>>>>>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
> 




More information about the Qgis-user mailing list