From 35f6335f5697b791b8d35dfc5490e48f6140aaec Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Mon, 26 Dec 2011 20:10:35 +0000 Subject: [PATCH] Add php example using postgis raster git-svn-id: http://svn.osgeo.org/postgis/trunk@8583 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/using_raster_dataman.xml | 38 +++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/doc/using_raster_dataman.xml b/doc/using_raster_dataman.xml index e68cc0933..ead4d554d 100644 --- a/doc/using_raster_dataman.xml +++ b/doc/using_raster_dataman.xml @@ -384,7 +384,7 @@ Available GDAL raster formats: - + Raster Catalogs There are two raster catalog views that come packaged with PostGIS. Both views utilize information embedded in the constraints of the raster tables. As a result the catalog views are always consistent with the raster data in the tables since the constraints are enforced. @@ -496,4 +496,40 @@ Available GDAL raster formats: + + Building Custom Applications with PostGIS Raster + + PHP Example Outputting using ST_AsPNG in concert with other raster functions +

In this section, we'll demonstrate how to use the PHP PostgreSQL driver and the family of functions to + output band 1 of a raster to a PHP request stream that can then be embedded in an img src html tag.

+ +

The sample query demonstrates how to combine a whole bunch of raster functions together to grab all tiles that intersect + a particular wgs 84 bounding box and then unions with the intersecting tiles together returning all bands, transforms to user specified projection using , + and then outputs the results as a png using .

+ + +
+
-- 2.40.0