<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
----------+---------+----------+---------
</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>