[Gdal-dev] how gdal_rasterize works

Ari Jolma ari.jolma at tkk.fi
Fri Jun 16 16:40:52 EDT 2006


On Tue, 13 Jun 2006 16:34:21 -0400 Luke Roth <lukeroth at verizon.net> wrote:

> I've been trying to use the polygon rasterization functions in 
> alg/gdalrasterize.cpp for a while now, but I just can't get it to do 
> what I want.  I've been using apps/gdal_rasterize.exe to rasterize an 
> entire vector layer, but what I'd really like to do is to rasterize 
> individual polygons from my C code without having to run 
> gdal_rasterize.exe for each individual feature.  I've tried using the 
> apps/gdal_rasterize.cpp code as a template, but I'm not getting 
> anywhere.  Can anyone who has used this code give me a simple 
> walkthrough or nudge me in the right direction?  I can give more
> details 
> if it would help.

I've written simple rasterization functions into libral (libral.sf.net). With it
you can rasterize OGR data onto images that fit into run-time memory. 

Ari

> 
> Thanks,
> Luke
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
> 

-- 
Prof. Ari Jolma
Kartografia ja Geoinformatiikka / Cartography and Geoinformatics
Teknillinen Korkeakoulu / Helsinki University of Technology
POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma



More information about the Gdal-dev mailing list