From 068effd2a7da139218e7ee65571344c3f17d92b2 Mon Sep 17 00:00:00 2001 From: Bborie Park Date: Fri, 30 Nov 2012 01:13:04 +0000 Subject: [PATCH] Added NEWS item and doc updates for changes related to ticket #2119 git-svn-id: http://svn.osgeo.org/postgis/trunk@10769 b70326c6-7e19-0410-871a-916f4a2858ee --- NEWS | 2 ++ doc/reference_raster.xml | 25 ++++++++++++++----------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/NEWS b/NEWS index b07ee63fa..4145de9d8 100644 --- a/NEWS +++ b/NEWS @@ -90,6 +90,8 @@ PostGIS 2.1.0 - #2097, Added RANGE uniontype option for ST_Union(raster) - #2105, Added ST_Transform(raster) variant for aligning output to reference raster + - #2119, Rasters passed to ST_Resample(), ST_Rescale(), ST_Reskew(), + and ST_SnapToGrid() no longer require an SRID * Fixes * diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 142e6b15e..5ab901685 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -5490,10 +5490,9 @@ WHERE rid = 2; A maxerror percent of 0.125 is used if no maxerr is specified. - Only works if raster is in a known spatial reference system (SRID). Refer to: GDAL Warp resampling methods for more details. Availability: 2.0.0 Requires GDAL 1.6.1+ - Changed: 2.1.0 Parameter srid removed. Use ST_Transform() to reproject raster + Changed: 2.1.0 Parameter srid removed. Use ST_Transform() to reproject raster. Works on rasters with no SRID. @@ -5568,12 +5567,11 @@ FROM ( A maxerror percent of 0.125 is used if no maxerr is specified. Refer to: GDAL Warp resampling methods for more details. - - Only works if raster is in a known spatial reference system (SRID). ST_Rescale is different from in that ST_SetScale do not resample the raster to match the raster extent. ST_SetScale only changes the metadata (or georeference) of the raster to correct an originally mis-specified scaling. ST_Rescale results in a raster having different width and height computed to fit the geographic extent of the input raster. ST_SetScale do not modify the width, nor the height of the raster. Availability: 2.0.0 Requires GDAL 1.6.1+ + Changed: 2.1.0 Works on rasters with no SRID @@ -5642,13 +5640,12 @@ SELECT ST_PixelWidth(ST_Rescale(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 0. A maxerror percent of 0.125 if no maxerr is specified. - Only works if raster is in a known spatial reference system (SRID). - Refer to: GDAL Warp resampling methods for more details. ST_Reskew is different from in that ST_SetSkew do not resample the raster to match the raster extent. ST_SetSkew only changes the metadata (or georeference) of the raster to correct an originally mis-specified skew. ST_Reskew results in a raster having different width and height computed to fit the geographic extent of the input raster. ST_SetSkew do not modify the width, nor the height of the raster. Availability: 2.0.0 Requires GDAL 1.6.1+ + Changed: 2.1.0 Works on rasters with no SRID @@ -5726,13 +5723,12 @@ SELECT ST_Rotation(ST_Reskew(ST_AddBand(ST_MakeEmptyRaster(100, 100, 0, 0, 0.001 A maxerror percent of 0.125 if no maxerr is specified. - Only works if raster is in a known spatial reference system (SRID). - Refer to: GDAL Warp resampling methods for more details. Use if you need more control over the grid parameters. Availability: 2.0.0 Requires GDAL 1.6.1+ + Changed: 2.1.0 Works on rasters with no SRID @@ -5799,14 +5795,21 @@ SELECT ST_UpperLeftX(ST_SnapToGrid(ST_AddBand(ST_MakeEmptyRaster(10, 10, 0, 0, 0 Uses 'NearestNeighbor' if no algorithm is specified and maxerror percent of 0.125 if no maxerr is specified. Algorithm options are: 'NearestNeighbor', 'Bilinear', 'Cubic', 'CubicSpline', and 'Lanczos'. Refer to: GDAL Warp resampling methods for more details. + + ST_Transform is often confused with ST_SetSRID(). ST_Transform actually changes the coordinates of a raster (and resamples the pixel values) from one spatial reference system to another, while ST_SetSRID() simply changes the SRID identifier of the raster. + + Unlike the other variants, Variant 3 requires a reference raster as alignto. The transformed raster will be transformed to the spatial reference system (SRID) of the reference raster and be aligned (ST_SameAlignment = TRUE) to the reference raster. - Availability: 2.0.0 Requires GDAL 1.6.1+ - If you find your transformation support is not working right, you may need to set the environment variable PROJSO to the .so or .dll projection library - your PostGIS is using. This just needs to have the name of the file. So for example on windows, you would in Control Panel -> System -> Environment Variables add a system variable called PROJSO and set it to libproj.dll (if you are using proj 4.6.1). You'll have to restart your PostgreSQL service/daemon after this change. + + + If you find your transformation support is not working right, you may need to set the environment variable PROJSO to the .so or .dll projection library your PostGIS is using. This just needs to have the name of the file. So for example on windows, you would in Control Panel -> System -> Environment Variables add a system variable called PROJSO and set it to libproj.dll (if you are using proj 4.6.1). You'll have to restart your PostgreSQL service/daemon after this change. + + + Availability: 2.0.0 Requires GDAL 1.6.1+ Enhanced: 2.1.0 Addition of ST_Transform(rast, alignto) variant -- 2.50.1