Changes between Version 49 and Version 50 of PostGIS_Raster_SoC_Idea_2012/Distance_Analysis_Tools
- Timestamp:
- 06/22/12 12:03:36 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PostGIS_Raster_SoC_Idea_2012/Distance_Analysis_Tools
v49 v50 367 367 #!html 368 368 <div style='background-color: #F4F4F4; border: 1px solid gray; width:800px; padding:10px' > 369 <br>370 369 <b>Comment from Mentor:</b> 371 370 <p> 372 371 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? 373 372 </p> 374 <br>375 373 </div> 376 374 }}} … … 385 383 #!html 386 384 <div style='background-color: #F4F4F4; border: 1px solid gray; width:800px; padding:10px' > 387 <br>388 385 <b>Comment from Mentor:</b> 389 386 <p> 390 387 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. 391 388 </p> 392 <br>393 389 </div> 394 390 }}} … … 411 407 <b>Comment from Mentor:</b> 412 408 <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>417 409 -What do ArcGIS and GRASS do when there is more than one point? We need a more detailed approach for this case.<br> 418 410 <br>