1
votes

I've got an ESRI Shapefile containing polygons of administrative regions, and data corresponding to those regions. I'd like to produce images of those shapefiles colored according to the data, like this:

enter image description here

Here's an answer about doing this in ASP.NET, and the above image was generated with R; unfortunately I'm not familiar with either language. Is there a straightforward way to do this in Ruby, eg. GeoRuby? Ideas for easily accomplishing this in eg. Java, C or (shudder) PHP will also be entertained.

2

2 Answers

3
votes

I'm not familiar with shapefile manipulation, but you might want to have a look into the GDAL/OGR ruby bindings. They should allow you to access the data from the shapefile file, which you can then draw using either gnuplot or (and that would be my pick) the RMagick/GraphicsMagick library

2
votes

Have a look at the Ruby wrapper for Gnuplot, and some of these examples for Gnuplot on how to draw filled shapes.