Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Related to this question asked here on gis.se and this thread on postgis-user, has anyone worked out a good solution for in-database rasterization of a vector layer using PostGIS? It sounds like the necessary functions are available and it is possible to get a valid output, but not one that is readable by GDAL et al. because it has irregular tiles.

To be more specific, I would like to rasterize two distinct vector maps of the US, counties and NBCD mapping zones, to a particular resolution and both aligned with an existing raster. It is possible to do this with gdal_rasterize, but with some trial and error as I recall -- mainly because the extents of the three inputs do not match, I expect.

Any thoughts?

share|improve this question

2 Answers 2

I think you could use ST_AsRaster: http://postgis.refractions.net/documentation/manual-svn/RT_ST_AsRaster.html

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

    
Hi, please do add more detail to your answer. Link only answers are not good enough. –  R.K. Dec 6 at 18:13

Here is a guide on how to rasterize a vector table in PostGIS...

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

    
Hi, please do add more detail to your answer. Link only answers discouraged. –  R.K. Dec 6 at 18:14

Your Answer

 
discard

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.