Tag Archives: color

Color to attribute. Qgis 2.X

qgis-logo-plugincolor

In 2012 I created a small plugin for Qgis1.x. It allowed you to modify a vector layer, creating a new column to hold the color of the features. This proved useful for me at the time. I could use Qgis to decide the color palettes and then export to wherever I wanted.

Come 2013, a new version of Qgis appeared, and the plugin broke. I wasn’t using it at the time and I didn’t realize it. But someone did, and kindly pointed me to the problem. I don’t have as much free time as I used to. However as my grandma used to say “better later than never”, here we have the plugin to work with the 2.x series!.

You can get it from my github. The master branch has the original code, and there is a new qgis2.0 branch with the new revamped plugin.

Salut!

Advertisements

Leave a comment

Filed under gis

Qgis – Color to layer attribute


Recently I was working with some data layers in QuantumGIS, playing to decide the proper color combination for my visualization. The result had to be presented in a web environment using OpenLayers.

The point is. I define and check the visualization in Qgis, and then I want to export the results to be served as a OpenLayers Vectorlayer, or as a Mapserver layer. Of course, with the color defined in Qgis.

Openlayers and Mapserver give the option to read the color from an attribute value (here and here). Maybe there is an easier way, but in this case I developed a small plugin to export the current visualized color into a specific layer attribute.

Screenshots

humm… more

Leave a comment

Filed under code, curious, gis, Maps, tools