]> granicus.if.org Git - postgis/commitdiff
some other minor cleanup
authorRegina Obe <lr@pcorp.us>
Mon, 26 Dec 2011 20:21:44 +0000 (20:21 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 26 Dec 2011 20:21:44 +0000 (20:21 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8585 b70326c6-7e19-0410-871a-916f4a2858ee

doc/using_raster_dataman.xml

index d4c6faef0cb9ed59f5429d9834a6ad4c4ef7bb53..bfd822a8c26aa100ebf1bc75a1fb62d03f99f419 100644 (file)
@@ -507,8 +507,7 @@ Available GDAL raster formats:
                                a particular wgs 84 bounding box and then unions with <xref linkend="RT_ST_Union" /> the intersecting tiles together returning all bands, transforms to user specified projection using <xref linkend="RT_ST_Transform" />,
                                and then outputs the results as a png using <xref linkend="RT_ST_AsPNG" />.</p>
                        <programlisting>
-<![CDATA[
-<?php
+<![CDATA[<?php
 $conn_str ='dbname=mydb host=localhost port=5432 user=myuser password=mypwd';
 $dbconn = pg_connect($conn_str);
 header('Content-Type: image/png');  
@@ -521,7 +520,7 @@ else { $input_srid = 26986; }
 $sql = "set bytea_output='escape';
 SELECT ST_AsPNG(ST_Transform(
                        ST_AddBand(ST_Union(rast,1), ARRAY[ST_Union(rast,2),ST_Union(rast,3)])
-                               ,$input_srid) ) As web_merc 
+                               ,$input_srid) ) As new_rast
  FROM aerials.boston 
        WHERE 
         ST_Intersects(rast, ST_Transform(ST_MakeEnvelope(-71.1217, 42.227, -71.1210, 42.218,4326),26986) )";