Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking to programatically generate an image from a WKT string (or any other common format, such as WKB or SQL Spatial geography). Are there any existing libraries that allow for this? I am working in .Net, but I am open to anything. The idea is that I could generate dynamic tile layers with the images instead of having to load up my Silverlight UI with heavy vector layers. Any ideas?

share|improve this question

You can use MapScript (part of MapServer) to make images from any sort of geometry. With (e.g.) MapScript for PHP, you could build a geometry from a WKT string with ShapeObj ms_shapeObjFromWkt(string wkt), make the style look good, then render an image object with imageObj draw() (see an example).

There are different flavours of Mapscript, including for .NET (docs, tutorial), but it might be too old. The documentation for PHP is the best, and is similar for the other scripting languages.

share|improve this answer

Mapserver, Mapnik, GeoServer, ArcGIS Server are the usual suspects.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.