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 have a 3D network of streams represented using linestrings with Z-coordinates. I would like to rasterise this feature, where the raster values represent the linearly interpolated Z-values between 3D coordinates from the linestring verticies. I have all open source and Esri tools available, but I don't see any simple solution.

Did I miss an available tool to do this conversion, or do I need to make one myself? (I have a few ideas floating around my head, but it would probably take the better part of an afternoon to code out.)

share|improve this question
It would be nice to know this answer. I used to convert polyline to evenly spaced points and than to raster. – Tomek Jun 26 '12 at 7:52
up vote 3 down vote accepted

I've not tried it, but GDAL's gdal_rasterize should do the trick with its -3d option:

gdal_rasterize -3d -tr 10.0 10.0 -l streams streams.shp streams.tif
share|improve this answer
Cool. It does work for me. Thanks. – Tomek Jun 26 '12 at 12:21
This is a really excellent tool! It also has an API "GDALRasterizeLayers" with intriguing options; for Python, see help(gdal.RasterizeLayer) – Mike T Jun 26 '12 at 22:57

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.