Category Archives: tools

KML to DXF (hell)

kmlhell

The time goes by and I don’t have enough personal space to write in this blog. It is crazy how life changes and how many things are thrown at you.

That being said, recently I helped a friend with some format problems, and I thought it was a perfect excuse to prepare a new blog post.

come get some

2 Comments

Filed under gis, ogc, tools

Numpy in C

C + numpy

When I was temporary working at my former university UPC (Universitat politècnica de Catalunya) in the TALP department (Center for Language and Speech Technologies and Applications), I found myself in the following situation:
My employers had a lot of python code creating matrices and stuff saved to .npy (numpy files) but wanted to speed up their processes.

I thought about loading those files in existing C code, to effectively use the GPU with OpenGL/CUDA. And once everyone was convinced, I spent some time developing a small library to do so, in the following post you will find an explanation of the numpy format and the code for the C library.

really? continue please

4 Comments

Filed under code, tools

xkeyval and the 9 arguments

LaTeX_logo.svg
Recently I’ve been playing D&D with some friends. Tired of writing my small homebrew adventures in OpenOffice I turned into my old friend \LaTeX.

Seemed to me that a D&D adventure was specific enough to have its own document class, like article, book etc. And could not find it online, so right now I am writing one.html select jquery set selected

In this article I will explai how to write \LaTeX commands accepting more than the 9 default parameters.

more please

4 Comments

Filed under code, tools

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

3 Comments

Filed under code, curious, gis, Maps, tools

ModernCV


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

α – Shape generation with R

α-shape, is a family of piecewise linear simple curves in the Euclidean plane associated with the shape of a finite set of points.
— Wikipedia

Boum!. Let’s make it simpler. α-shape is a generalization of the convex hull concept. And the convex hull of a set of points is the minimal convex set containing all the points. Is typical to depict as some pins covered by a rubber band.

convex hull

Representation of convex hull idea


α-shape me!

1 Comment

Filed under code, tips, tools