1

I'm using GSHHG data to create land masks. Rasterizing the original polygons with GDAL_rasterize (via Python) is very quick. However, when I convert the polygons to lines and rasterize that, the process is much slower: seconds for the polygons vs minutes for lines.

Is there a particular reason for this e.g. some optimization I'm missing?

(in case you're wondering why I'm rasterizing the lines, it's to get a raster showing only cells with coastline in them)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.