Monthly Archives: June 2012

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.


humm… more



Filed under code, curious, gis, Maps, tools

Europe Countries – DbPedia+SPARQL+Python


DBpedia is a project that aims to extract structured information from Wikipedia. They generate RDF information that can be queried in different ways, one of this is using the SPARQL query language.

In this post I’ll show how to query Dbpedia using a python SPARQL wrapper to obtain all the Wikipedia points of places in Europe. The post explains it step by step, you can fork the code at my github.

NOTE from the future:
the original code was The closest actual code would be


The result will look something like this:

DBpedia Europe Points

DBpedia Europe Points

I have time, show me how it’s done


Filed under code, gis, Maps


My time at ITC is temporal, since my current CV dates from 4 years ago (I was not even a computer engineer) it’s time to prepare another one.

Show me the code!

1 Comment

Filed under code, tips, tools