Changes between Version 49 and Version 50 of PostGIS_Raster_SoC_Idea_2012/Distance_Analysis_Tools


Ignore:
Timestamp:
Jun 22, 2012, 12:03:36 PM (12 years ago)
Author:
qliu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • PostGIS_Raster_SoC_Idea_2012/Distance_Analysis_Tools

    v49 v50  
    367367#!html
    368368<div style='background-color: #F4F4F4; border: 1px solid gray; width:800px; padding:10px' >
    369 <br>
    370369<b>Comment from Mentor:</b>
    371370<p>
    372371I don't think this is a good idea as you would have no control on the alignment of the raster produced. I want to be able to control the dimensions and how the raster is georeferenced. I think your best friend here is ST_AsRaster() which allows passing a geometry and some raster properties and burns the geometry in the raster. Basically ST_AsDistanceRaster() should not be so different from ST_AsRaster(), the only difference is that instead of burning the geometry in the raster, we compute a distance to the geometry for each pixel. It is very possible in this case that the geometry will be outside the extent of the requester raster. Should we want this to work for lines and polygons?
    373372</p>
    374 <br>
    375373</div>
    376374}}}
     
    385383#!html
    386384<div style='background-color: #F4F4F4; border: 1px solid gray; width:800px; padding:10px' >
    387 <br>
    388385<b>Comment from Mentor:</b>
    389386<p>
    390387You should avoid to do two passes to compute the final pixel values: one to compute the distance in pixel/cell and another to convert into the geographical distance.
    391388</p>
    392 <br>
    393389</div>
    394390}}}
     
    411407<b>Comment from Mentor:</b>
    412408<p>
    413 - "Algorythm: a. Make an empty raster new_rast, using the same extent as the input vector point data source_point, set pixel value to NoData value." I don't think this is a good idea as you would have no control on the alignment of the raster produced. I want to be able to control the dimensions and how the raster is georeferenced. I think your best friend here is ST_AsRaster() which allows passing a geometry and some raster properties and burns the geometry in the raster. Basically ST_AsDistanceRaster() should not be so different from ST_AsRaster(), the only difference is that instead of burning the geometry in the raster, we compute a distance to the geometry for each pixel. It is very possible in this case that the geometry will be outside the extent of the requester raster. Should we want this to work for lines and polygons?<br>
    414 <br>
    415 -You should avoid to do two passes to compute the final pixel values: one to compute the distance in pixel/cell and another to convert into the geographical distance.<br>
    416 <br>
    417409-What do ArcGIS and GRASS do when there is more than one point? We need a more detailed approach for this case.<br>
    418410<br>