[postgis-users] ST_Raster question, Use spot heights and create an Elevation raster layer

Simon Greener simon at spatialdbadvisor.com
Wed Feb 29 02:22:21 PST 2012


Pierre,

>> What I wish to now do is to use those spot heights to create an elevation raster
>> layer via which all NoDataValued pixels have an elevation set that is interpreted
>> from the spot heights around it.
>>
>> Has anyone any suggestions as to how this can be done by PostGIS's ST_Raster?
>> (ST_MapAlgebra perhaps etc?)
>
> We don't have any interpolation algorithm yet. But we have ST_MapAlgebraFctNgb() which compute pixels value as focal functions (or moving windows). I not sure to which degree you can implement interpolation with moving windows but if your points are close to each other enough you could compute the mean of the point surrounding each point. Have a look at:
>
> http://postgis.refractions.net/documentation/manual-svn/RT_ST_MapAlgebraFctNgb.html

Thanks for answering and the pointer to the MapAlgebra function. Unfortunately I can't see how
to create an interpreted elevation surface all that easily using the current vector and raster
tool sets. Such an ability, native to raster itself, would be very, very useful but I can understand
how difficult it is to create one as part of an open source project.

If anyone else can provide pointers to a solution, I would appreciate it.

regards
Simon
-- 
Holder of "2011 Oracle Spatial Excellence Award for Education and Research."
SpatialDB Advice and Design, Solutions Architecture and Programming,
Oracle Database 10g Administrator Certified Associate; Oracle Database 10g SQL Certified Professional
Oracle Spatial, SQL Server, PostGIS, MySQL, ArcSDE, Manifold GIS, FME, Radius Topology and Studio Specialist.
39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia.
Website: www.spatialdbadvisor.com
   Email: simon at spatialdbadvisor.com
   Voice: +61 362 396397
Mobile: +61 418 396391
Skype: sggreener
Longitude: 147.20515 (147° 12' 18" E)
Latitude: -43.01530 (43° 00' 55" S)
GeoHash: r22em9r98wg
NAC:W80CK 7SWP3



More information about the postgis-users mailing list