Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have some geometries in a PostGIS table that I would like to convert to raster:

select ST_AsRaster(geom,256,256,'2BUI',1,0,564224,333824,0, 0, false) from table

I would like the resulting raster to have a specific extent and image size. The documentation gives lots of different options, but none as yet give the correct extents or image size.

What combination of ST_AsRaster parameters will return a raster with predefined extents and size.

The extents of the geometry are larger than the desired extent of the raster.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.