From: Regina Obe Date: Sat, 24 Dec 2011 21:07:07 +0000 (+0000) Subject: fix formatting of ST_Transform example and add another sub example demonstrating... X-Git-Tag: 2.0.0alpha1~304 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=170674afe8169414c611245e7348bc73a8f46fb1;p=postgis fix formatting of ST_Transform example and add another sub example demonstrating using different algorithm git-svn-id: http://svn.osgeo.org/postgis/trunk@8571 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/html/images/rt_st_transform03.png b/doc/html/images/rt_st_transform03.png new file mode 100644 index 000000000..256b85689 Binary files /dev/null and b/doc/html/images/rt_st_transform03.png differ diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 94a8f1f3b..ecfce8ec9 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -3630,13 +3630,13 @@ SELECT descrip, ST_ScaleX(rast) As newsx, ST_ScaleY(rast) As newsy Examples 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 + + + + + + After transform to wgs 84 long lat with bilinear algorithm instead of NN default (wgs_84_bilin) + + +