]> granicus.if.org Git - postgis/commitdiff
fix formatting of ST_Transform example and add another sub example demonstrating...
authorRegina Obe <lr@pcorp.us>
Sat, 24 Dec 2011 21:07:07 +0000 (21:07 +0000)
committerRegina Obe <lr@pcorp.us>
Sat, 24 Dec 2011 21:07:07 +0000 (21:07 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8571 b70326c6-7e19-0410-871a-916f4a2858ee

doc/html/images/rt_st_transform03.png [new file with mode: 0644]
doc/reference_raster.xml

diff --git a/doc/html/images/rt_st_transform03.png b/doc/html/images/rt_st_transform03.png
new file mode 100644 (file)
index 0000000..256b856
Binary files /dev/null and b/doc/html/images/rt_st_transform03.png differ
index 94a8f1f3b60208c5142aac98eb4c84ab09f5aa4d..ecfce8ec93b8d0534926667a491dc79e17424842 100644 (file)
@@ -3630,13 +3630,13 @@ SELECT descrip, ST_ScaleX(rast) As newsx, ST_ScaleY(rast) As newsy
                                        <title>Examples</title>
                                
                                        <programlisting>SELECT ST_Width(mass_stm) As w_before, ST_Width(wgs_84) As w_after,
-                                               ST_Height(mass_stm) As h_before, ST_Height(wgs_84) As h_after
-                                               FROM 
-                                               ( SELECT rast As mass_stm, ST_Transform(rast,4326) As wgs_84
-                                               FROM aerials.o_2_boston 
-                                               WHERE ST_Intersects(rast,
-                                                       ST_Transform(ST_MakeEnvelope(-71.128, 42.2392,-71.1277, 42.2397, 4326),26986) )
-                                               LIMIT 1) As foo;
+  ST_Height(mass_stm) As h_before, ST_Height(wgs_84) As h_after
+       FROM 
+       ( SELECT rast As mass_stm, ST_Transform(rast,4326) As wgs_84,  ST_Transform(rast,4326, 'Bilinear') AS wgs_84_bilin
+               FROM aerials.o_2_boston 
+                       WHERE ST_Intersects(rast,
+                               ST_Transform(ST_MakeEnvelope(-71.128, 42.2392,-71.1277, 42.2397, 4326),26986) )
+               LIMIT 1) As foo;
                                                
  w_before | w_after | h_before | h_after
 ----------+---------+----------+---------
@@ -3664,6 +3664,15 @@ SELECT descrip, ST_ScaleX(rast) As newsx, ST_ScaleY(rast) As newsy
                        </mediaobject>
                  </informalfigure>
                 </entry>
+               <entry><informalfigure>
+                       <mediaobject>
+                         <imageobject>
+                               <imagedata fileref="images/rt_st_transform03.png" />
+                         </imageobject>
+                         <caption><para>After transform to wgs 84 long lat with bilinear algorithm instead of NN default (wgs_84_bilin)</para></caption>
+                       </mediaobject>
+                 </informalfigure>
+                </entry>
                </row>
        </tbody>
 </tgroup>