]> granicus.if.org Git - postgis/log
postgis
13 years agoAdd testcase for ticket #1302 (now passes)
Sandro Santilli [Mon, 21 Nov 2011 09:33:51 +0000 (09:33 +0000)]
Add testcase for ticket #1302 (now passes)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8202 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoUpdate expected error messages not to include the "topology" namespace (now that...
Sandro Santilli [Mon, 21 Nov 2011 08:33:43 +0000 (08:33 +0000)]
Update expected error messages not to include the "topology" namespace (now that it's part of the search_path).

git-svn-id: http://svn.osgeo.org/postgis/trunk@8201 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRename "LibGeom Suite" to simply "libgeom", for easy of use
Sandro Santilli [Mon, 21 Nov 2011 08:23:31 +0000 (08:23 +0000)]
Rename "LibGeom Suite" to simply "libgeom", for easy of use

git-svn-id: http://svn.osgeo.org/postgis/trunk@8200 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoSurrender to evidence of the narrow ring tested being clockwise
Sandro Santilli [Mon, 21 Nov 2011 08:21:41 +0000 (08:21 +0000)]
Surrender to evidence of the narrow ring tested being clockwise

git-svn-id: http://svn.osgeo.org/postgis/trunk@8199 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoImprove robustness of ptarray_isccw (see #1302)
Sandro Santilli [Mon, 21 Nov 2011 08:08:18 +0000 (08:08 +0000)]
Improve robustness of ptarray_isccw (see #1302)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8198 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoLogic to add topology to database search path on install or upgrade
Regina Obe [Mon, 21 Nov 2011 07:48:23 +0000 (07:48 +0000)]
Logic to add topology to database search path on install or upgrade

git-svn-id: http://svn.osgeo.org/postgis/trunk@8197 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFIX upgrade script - complement to r8186 - drop all mapalgebra functions before upgra...
Regina Obe [Mon, 21 Nov 2011 04:02:24 +0000 (04:02 +0000)]
FIX upgrade script - complement to r8186 - drop all mapalgebra functions before upgrade because for pg9.0+ CREATE OR REPLACE FUNCTION fails if argument names have changed.  Also update docs to reflect new naming of userfunction to onerasteruderfunc,tworasteruserfunc,onerasternguserfunc

git-svn-id: http://svn.osgeo.org/postgis/trunk@8196 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agofix some ST_MapAlgebra userfunc arg names to agree with code. Still ng ones to go...
Regina Obe [Sun, 20 Nov 2011 21:37:44 +0000 (21:37 +0000)]
fix some ST_MapAlgebra userfunc arg names to agree with code. Still ng ones to go and drop fix.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8195 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdd another test for ptarray_isccw, which incredibly seems to disagree with the same...
Sandro Santilli [Sun, 20 Nov 2011 21:35:18 +0000 (21:35 +0000)]
Add another test for ptarray_isccw, which incredibly seems to disagree with the same check done when the same ring occurs in a polygon

git-svn-id: http://svn.osgeo.org/postgis/trunk@8194 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoDo not memcpy to self in ptarray_reverse (see #1302)
Sandro Santilli [Sun, 20 Nov 2011 21:19:12 +0000 (21:19 +0000)]
Do not memcpy to self in ptarray_reverse (see #1302)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8193 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoBetter indent for comparing obtained/expected
Sandro Santilli [Sun, 20 Nov 2011 21:19:07 +0000 (21:19 +0000)]
Better indent for comparing obtained/expected

git-svn-id: http://svn.osgeo.org/postgis/trunk@8192 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix 'clean' rule under loader to drop stuff under .libs
Sandro Santilli [Sun, 20 Nov 2011 20:51:27 +0000 (20:51 +0000)]
Fix 'clean' rule under loader to drop stuff under .libs

git-svn-id: http://svn.osgeo.org/postgis/trunk@8191 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdd test for lwgeom_force_clockwise (see #1302)
Sandro Santilli [Sun, 20 Nov 2011 20:51:22 +0000 (20:51 +0000)]
Add test for lwgeom_force_clockwise (see #1302)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8190 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdd test for ptarray_isccw (see #1302)
Sandro Santilli [Sat, 19 Nov 2011 17:28:33 +0000 (17:28 +0000)]
Add test for ptarray_isccw (see #1302)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8189 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAddition of function rt_util_gdal_datatype_to_pixtype to complement rt_util_pixtype_t...
Bborie Park [Fri, 18 Nov 2011 23:47:35 +0000 (23:47 +0000)]
Addition of function rt_util_gdal_datatype_to_pixtype to complement rt_util_pixtype_to_gdal_datatype.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8188 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoDocumented ST_Rotation and ST_SetRotation.
David Zwarg [Fri, 18 Nov 2011 22:38:34 +0000 (22:38 +0000)]
Documented ST_Rotation and ST_SetRotation.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8187 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoUpdate parameter names for regprocedure data types
Bborie Park [Fri, 18 Nov 2011 21:41:55 +0000 (21:41 +0000)]
Update parameter names for regprocedure data types

git-svn-id: http://svn.osgeo.org/postgis/trunk@8186 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoNodata mode defaults to 'ignore' if it is NULL. Added tests for out of range neighbor...
David Zwarg [Fri, 18 Nov 2011 21:28:04 +0000 (21:28 +0000)]
Nodata mode defaults to 'ignore' if it is NULL. Added tests for out of range neighborhoods.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8185 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoNon-functional change. Updated author email address for dzwarg.
David Zwarg [Fri, 18 Nov 2011 20:56:57 +0000 (20:56 +0000)]
Non-functional change. Updated author email address for dzwarg.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8184 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRefactored ST_MapAlgebraFctNgb to cache userfunction lookup, and accept NULL input...
David Zwarg [Fri, 18 Nov 2011 20:53:46 +0000 (20:53 +0000)]
Refactored ST_MapAlgebraFctNgb to cache userfunction lookup, and accept NULL input and output values.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8183 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRefactored ST_MapAlgebraFct to cache userfunction lookup, and accept NULL input and...
David Zwarg [Fri, 18 Nov 2011 20:15:00 +0000 (20:15 +0000)]
Refactored ST_MapAlgebraFct to cache userfunction lookup, and accept NULL input and output values.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8182 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdded a flag --with-raster-dblwarning so as to provide the software builder the optio...
Bborie Park [Fri, 18 Nov 2011 18:30:00 +0000 (18:30 +0000)]
Added a flag --with-raster-dblwarning so as to provide the software builder the option of enabling all the value truncation/clamping/conversion warnings, which can be many.  The new default is to suppress those warnings. All appropriate regression tests have been updated.

Associated ticket is #1307

git-svn-id: http://svn.osgeo.org/postgis/trunk@8181 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoEnabled all tests on ST_MapAlgebraFctNgb.
David Zwarg [Fri, 18 Nov 2011 15:53:54 +0000 (15:53 +0000)]
Enabled all tests on ST_MapAlgebraFctNgb.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8180 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFixed debug problem in #1308
David Zwarg [Fri, 18 Nov 2011 14:53:36 +0000 (14:53 +0000)]
Fixed debug problem in #1308

git-svn-id: http://svn.osgeo.org/postgis/trunk@8179 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agofix minor typo
Regina Obe [Fri, 18 Nov 2011 13:59:37 +0000 (13:59 +0000)]
fix minor typo

git-svn-id: http://svn.osgeo.org/postgis/trunk@8178 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agodocument new ST_GeomFromGeoJSON function. Will provide examples later once resolved...
Regina Obe [Fri, 18 Nov 2011 13:58:47 +0000 (13:58 +0000)]
document new ST_GeomFromGeoJSON function.  Will provide examples later once resolved my JSON-C compilation issues

git-svn-id: http://svn.osgeo.org/postgis/trunk@8177 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agominor corrections
Regina Obe [Fri, 18 Nov 2011 13:24:40 +0000 (13:24 +0000)]
minor corrections

git-svn-id: http://svn.osgeo.org/postgis/trunk@8176 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoincrement alpha release number to allow upgrade with extensions
Regina Obe [Fri, 18 Nov 2011 03:36:13 +0000 (03:36 +0000)]
increment alpha release number to allow upgrade with extensions

git-svn-id: http://svn.osgeo.org/postgis/trunk@8175 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agofix code comment
Regina Obe [Fri, 18 Nov 2011 03:08:15 +0000 (03:08 +0000)]
fix code comment

git-svn-id: http://svn.osgeo.org/postgis/trunk@8174 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoforgot pixeltype in ngb arg list
Regina Obe [Fri, 18 Nov 2011 02:54:03 +0000 (02:54 +0000)]
forgot pixeltype in ngb arg list

git-svn-id: http://svn.osgeo.org/postgis/trunk@8173 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agofix typo in linkends
Regina Obe [Fri, 18 Nov 2011 02:48:08 +0000 (02:48 +0000)]
fix typo in linkends

git-svn-id: http://svn.osgeo.org/postgis/trunk@8172 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoput in missing spaces
Regina Obe [Fri, 18 Nov 2011 02:32:21 +0000 (02:32 +0000)]
put in missing spaces

git-svn-id: http://svn.osgeo.org/postgis/trunk@8171 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoST_MapAlgebraFctNgb (and put in immuatable for other st_mapalgebras)
Regina Obe [Fri, 18 Nov 2011 02:31:02 +0000 (02:31 +0000)]
ST_MapAlgebraFctNgb (and put in immuatable for other st_mapalgebras)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8170 b70326c6-7e19-0410-871a-916f4a2858ee

13 years ago#1306: document rescale and provide examples, fix st_resample args. (still 2 more...
Regina Obe [Fri, 18 Nov 2011 01:15:54 +0000 (01:15 +0000)]
#1306: document rescale and provide examples, fix st_resample args. (still 2 more to go in this ticket)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8169 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoMove library link to appropriate place.
Paul Ramsey [Fri, 18 Nov 2011 00:29:19 +0000 (00:29 +0000)]
Move library link to appropriate place.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8168 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdd ST_GeomFromGeoJSON (#376)
Paul Ramsey [Fri, 18 Nov 2011 00:17:56 +0000 (00:17 +0000)]
Add ST_GeomFromGeoJSON (#376)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8167 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agocorrect ST_Resample arguments to agree with implementation. Still need to fill in...
Regina Obe [Fri, 18 Nov 2011 00:17:37 +0000 (00:17 +0000)]
correct ST_Resample arguments to agree with implementation.  Still need to fill in descriptions of what all params mean

git-svn-id: http://svn.osgeo.org/postgis/trunk@8166 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix the 8.4 error only described in #1296.
Bborie Park [Thu, 17 Nov 2011 22:48:57 +0000 (22:48 +0000)]
Fix the 8.4 error only described in #1296.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8165 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdditional corrections and cleanup for ST_BandNoDataValue
Bborie Park [Thu, 17 Nov 2011 15:04:50 +0000 (15:04 +0000)]
Additional corrections and cleanup for ST_BandNoDataValue

git-svn-id: http://svn.osgeo.org/postgis/trunk@8164 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFixed a bunch of other nodataval datatype issues.
Bborie Park [Thu, 17 Nov 2011 14:57:40 +0000 (14:57 +0000)]
Fixed a bunch of other nodataval datatype issues.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8163 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFixed invalid handling of nodatavalue in ST_BandMetaData(). Issue arises due to...
Bborie Park [Thu, 17 Nov 2011 14:49:34 +0000 (14:49 +0000)]
Fixed invalid handling of nodatavalue in ST_BandMetaData().  Issue arises due to C backend using Float8GetDatum while SQL frontend using real datatype.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8162 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoput in some spacing
Regina Obe [Thu, 17 Nov 2011 04:25:51 +0000 (04:25 +0000)]
put in some spacing

git-svn-id: http://svn.osgeo.org/postgis/trunk@8161 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agomore event ideas
Regina Obe [Thu, 17 Nov 2011 01:44:08 +0000 (01:44 +0000)]
more event ideas

git-svn-id: http://svn.osgeo.org/postgis/trunk@8160 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoput in missing svn:keywords fix formatting of cards so easier to break on pages
Regina Obe [Wed, 16 Nov 2011 20:39:43 +0000 (20:39 +0000)]
put in missing svn:keywords  fix formatting of cards so easier to break on pages

git-svn-id: http://svn.osgeo.org/postgis/trunk@8159 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoPost GIS day commemorative cards generator
Regina Obe [Wed, 16 Nov 2011 17:38:44 +0000 (17:38 +0000)]
Post GIS day commemorative cards generator

git-svn-id: http://svn.osgeo.org/postgis/trunk@8158 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agologic to create a an topology_upgrade_20_minor.sql
Regina Obe [Wed, 16 Nov 2011 03:41:37 +0000 (03:41 +0000)]
logic to create a an topology_upgrade_20_minor.sql

git-svn-id: http://svn.osgeo.org/postgis/trunk@8157 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRemoved hardcoded SRID of 0 and replaced with ST_SRID('Point(0 0)'::geometry)
Bborie Park [Tue, 15 Nov 2011 18:15:36 +0000 (18:15 +0000)]
Removed hardcoded SRID of 0 and replaced with ST_SRID('Point(0 0)'::geometry)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8156 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoput in missing t in raster load examples
Regina Obe [Tue, 15 Nov 2011 00:48:16 +0000 (00:48 +0000)]
put in missing t in raster load examples

git-svn-id: http://svn.osgeo.org/postgis/trunk@8155 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdded single version of map algebra that operates on neighborhoods.
David Zwarg [Mon, 14 Nov 2011 23:21:12 +0000 (23:21 +0000)]
Added single version of map algebra that operates on neighborhoods.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8154 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdded ability to specify raster width and height to ST_Resample.
Bborie Park [Mon, 14 Nov 2011 21:40:25 +0000 (21:40 +0000)]
Added ability to specify raster width and height to ST_Resample.

Associated ticket is #1267

git-svn-id: http://svn.osgeo.org/postgis/trunk@8153 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agorevise extension upgrade builder to use new remove functions from extension before...
Regina Obe [Mon, 14 Nov 2011 08:15:13 +0000 (08:15 +0000)]
revise extension upgrade builder to use new remove functions from extension before attemtpting to readd them. Cool I can now upgrade my 2.0.0a3 to 2.0.0a.6 without any complaints.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8152 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agominor corrections to extension helper, create extension uninstall, incorporate in...
Regina Obe [Mon, 14 Nov 2011 07:36:54 +0000 (07:36 +0000)]
minor corrections to extension helper, create extension uninstall, incorporate in topology extension upgrade script

git-svn-id: http://svn.osgeo.org/postgis/trunk@8151 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agohelper functions for creating upgrade extension script. So far helper so I can sneak...
Regina Obe [Mon, 14 Nov 2011 05:44:18 +0000 (05:44 +0000)]
helper functions for creating upgrade extension script.  So far helper so I can sneakingly drop functions from an existing extension so I can reinstall them if a create or replace will not be sufficient.(so I avoid the dreaded error -- can't drop function /aggregate because its part of an extension.)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8150 b70326c6-7e19-0410-871a-916f4a2858ee

13 years ago#1288: correct some obsolete advice about how to create indexes and register a geomet...
Regina Obe [Sun, 13 Nov 2011 03:45:53 +0000 (03:45 +0000)]
#1288: correct some obsolete advice about how to create indexes and register a geometry column.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8149 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoDo not consider nodes with the same bounding box as being equal.
Sandro Santilli [Sat, 12 Nov 2011 18:20:56 +0000 (18:20 +0000)]
Do not consider nodes with the same bounding box as being equal.

Fixes bug #1284. Includes regression test.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8148 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdded checks to make sure user-function is valid. Also added check for volatility...
Bborie Park [Sat, 12 Nov 2011 15:12:30 +0000 (15:12 +0000)]
Added checks to make sure user-function is valid.  Also added check for volatility of user-function with notice if function is volatile.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8147 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix typo
Regina Obe [Sat, 12 Nov 2011 13:14:40 +0000 (13:14 +0000)]
Fix typo

git-svn-id: http://svn.osgeo.org/postgis/trunk@8146 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoescape html entitities in program listing of ST_MApAlgebrafct 2 band version
Regina Obe [Sat, 12 Nov 2011 05:28:34 +0000 (05:28 +0000)]
escape html entitities in program listing of ST_MApAlgebrafct 2 band version

git-svn-id: http://svn.osgeo.org/postgis/trunk@8145 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoadd examples and fix arg list
Regina Obe [Sat, 12 Nov 2011 04:27:51 +0000 (04:27 +0000)]
add examples and fix arg list

git-svn-id: http://svn.osgeo.org/postgis/trunk@8144 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRemoved third variant as it conflicts with the second variant of 2-raster ST_MapAlgeb...
Bborie Park [Sat, 12 Nov 2011 00:01:45 +0000 (00:01 +0000)]
Removed third variant as it conflicts with the second variant of 2-raster ST_MapAlgebraFct

Related ticket is #1283

git-svn-id: http://svn.osgeo.org/postgis/trunk@8143 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agobegin documentation of 2 band ST_MapAlgebraFct -- waiting for dustymugs to fix signat...
Regina Obe [Fri, 11 Nov 2011 23:07:44 +0000 (23:07 +0000)]
begin documentation of 2 band ST_MapAlgebraFct -- waiting for dustymugs to fix signature before providing examples

git-svn-id: http://svn.osgeo.org/postgis/trunk@8142 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agofix arg list in ST_MapAlgebraExpr single band version (nodatavalexpr got relaplced...
Regina Obe [Fri, 11 Nov 2011 20:34:05 +0000 (20:34 +0000)]
fix arg list in ST_MapAlgebraExpr single band version (nodatavalexpr got relaplced with nodataval which is now double precision instead of text)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8141 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdded more test to plpgsql ST_MapAlgebraFctNgb prototype.
David Zwarg [Fri, 11 Nov 2011 19:31:29 +0000 (19:31 +0000)]
Added more test to plpgsql ST_MapAlgebraFctNgb prototype.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8140 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdded pl/pgsql prototype of the neighborhood map algebra function.
David Zwarg [Fri, 11 Nov 2011 18:50:18 +0000 (18:50 +0000)]
Added pl/pgsql prototype of the neighborhood map algebra function.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8139 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRemoved commented-out stubs for nonexistant RASTER_mapAlgebra2Fct
Bborie Park [Fri, 11 Nov 2011 15:45:32 +0000 (15:45 +0000)]
Removed commented-out stubs for nonexistant RASTER_mapAlgebra2Fct

git-svn-id: http://svn.osgeo.org/postgis/trunk@8138 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdd ST_MapAlgebraFct for 2 rasters. This is the sibling of 2-raster ST_MapAlgebraExp...
Bborie Park [Fri, 11 Nov 2011 15:41:32 +0000 (15:41 +0000)]
Add ST_MapAlgebraFct for 2 rasters.  This is the sibling of 2-raster ST_MapAlgebraExpr.  Renamed RASTER_mapAlgebra2Expr to RASTER_mapAlgebra2 as both 2-raster ST_MapAlgebraExpr and ST_MapAlgebraFct call the same function.

Associated ticket is #1281.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8137 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoput comment about expression
Regina Obe [Fri, 11 Nov 2011 08:40:57 +0000 (08:40 +0000)]
put comment about expression

git-svn-id: http://svn.osgeo.org/postgis/trunk@8136 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoUpdated documentation for all variants of ST_MapAlgebraFct.
David Zwarg [Thu, 10 Nov 2011 20:59:17 +0000 (20:59 +0000)]
Updated documentation for all variants of ST_MapAlgebraFct.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8135 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoMake sure to "round-to-float" boxes read from serialized, no matter if there was...
Sandro Santilli [Thu, 10 Nov 2011 11:10:19 +0000 (11:10 +0000)]
Make sure to "round-to-float" boxes read from serialized, no matter if there was or not a cache. Fixes #1273. Includes regress testing. Note: would be worth to also test the 2-points line case (I didn't in this specific commit, but the patch should fix that as well).

git-svn-id: http://svn.osgeo.org/postgis/trunk@8134 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoadd missing references to other functions used
Regina Obe [Thu, 10 Nov 2011 00:18:44 +0000 (00:18 +0000)]
add missing references to other functions used

git-svn-id: http://svn.osgeo.org/postgis/trunk@8133 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdd example of overlaying single rasters on same canvas
Regina Obe [Thu, 10 Nov 2011 00:15:11 +0000 (00:15 +0000)]
Add example of overlaying single rasters on same canvas

git-svn-id: http://svn.osgeo.org/postgis/trunk@8132 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoSignatures changed for ST_MapAlgebraExpr where nodatavaluerepl (text) is now nodatava...
Bborie Park [Thu, 10 Nov 2011 00:02:49 +0000 (00:02 +0000)]
Signatures changed for ST_MapAlgebraExpr where nodatavaluerepl (text) is now nodataval (double precision)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8131 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRemoved all remaining memory leaks from testapi.c
Bborie Park [Wed, 9 Nov 2011 23:52:45 +0000 (23:52 +0000)]
Removed all remaining memory leaks from testapi.c

git-svn-id: http://svn.osgeo.org/postgis/trunk@8130 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRolled back attempt to clean up memory handling. We'll just live with this until...
Bborie Park [Wed, 9 Nov 2011 23:12:29 +0000 (23:12 +0000)]
Rolled back attempt to clean up memory handling.  We'll just live with this until testapi.c is replaced by cunit tests for raster.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8129 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoSeparated the output raster's extent calculation from RASTER_mapAlgebra2Expr() in...
Bborie Park [Wed, 9 Nov 2011 23:00:53 +0000 (23:00 +0000)]
Separated the output raster's extent calculation from RASTER_mapAlgebra2Expr() in rt_pg.c to rt_raster_from_two_rasters() in rt_api.c.  Added test of rt_raster_from_two_rasters() in testapi.c

git-svn-id: http://svn.osgeo.org/postgis/trunk@8128 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agofix typos, provide description for nodatanodataval (pierre / bborie /dzwarg -- please...
Regina Obe [Wed, 9 Nov 2011 17:15:31 +0000 (17:15 +0000)]
fix typos, provide description for nodatanodataval (pierre / bborie /dzwarg -- please check my definitions to make sure they are right)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8127 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFixed bug where an expression doesn't contain a placeholder (either rast1 or rast2).
Bborie Park [Wed, 9 Nov 2011 15:35:06 +0000 (15:35 +0000)]
Fixed bug where an expression doesn't contain a placeholder (either rast1 or rast2).

Associated ticket is #1276.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8126 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agofix minor typos
Regina Obe [Wed, 9 Nov 2011 05:02:22 +0000 (05:02 +0000)]
fix minor typos

git-svn-id: http://svn.osgeo.org/postgis/trunk@8125 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoincrement version
Regina Obe [Wed, 9 Nov 2011 03:52:04 +0000 (03:52 +0000)]
increment version

git-svn-id: http://svn.osgeo.org/postgis/trunk@8124 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agobreak out what all the different arguments are in 2 map algebra.
Regina Obe [Wed, 9 Nov 2011 03:45:49 +0000 (03:45 +0000)]
break out what all the different arguments are in 2 map algebra.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8123 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agofix some typos, revise example demonstrating difference between intersection and...
Regina Obe [Wed, 9 Nov 2011 02:55:40 +0000 (02:55 +0000)]
fix some typos, revise example demonstrating difference between intersection and union.  include pictures.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8122 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdd ST_BandMetaData to drop target. Upgrade can't install the new version otherwise...
Regina Obe [Wed, 9 Nov 2011 01:05:24 +0000 (01:05 +0000)]
Add ST_BandMetaData to drop target.  Upgrade can't install the new version otherwise since the output parameter data types changed.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8121 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix floating point issues in rt_raster_geopoint_to_cell in addition to other minor...
Bborie Park [Tue, 8 Nov 2011 23:18:37 +0000 (23:18 +0000)]
Fix floating point issues in rt_raster_geopoint_to_cell in addition to other minor changes.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8120 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoBug fix for evaluating remainder when remainder is infinitely close to 1. Basically...
Bborie Park [Tue, 8 Nov 2011 21:34:12 +0000 (21:34 +0000)]
Bug fix for evaluating remainder when remainder is infinitely close to 1.  Basically, the check wasn't added to a block of code those similar blocks of code had the check.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8119 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoST_MapAlgebraExpr - 2 band version - incorporate Pierre's corrections / additions
Regina Obe [Tue, 8 Nov 2011 20:32:09 +0000 (20:32 +0000)]
ST_MapAlgebraExpr - 2 band version - incorporate Pierre's corrections / additions

git-svn-id: http://svn.osgeo.org/postgis/trunk@8118 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agodocument ST_MapAlgebraExpr (2 raster band version). Need to clean up the example...
Regina Obe [Tue, 8 Nov 2011 18:41:57 +0000 (18:41 +0000)]
document ST_MapAlgebraExpr (2 raster band version).  Need to clean up the example also figure out how I managed to crash my server with this.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8117 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoDo the "are boxes different?" test in ST_Equals using a tolerance instead of exact...
Paul Ramsey [Tue, 8 Nov 2011 17:47:04 +0000 (17:47 +0000)]
Do the "are boxes different?" test in ST_Equals using a tolerance instead of exact comparisons.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8116 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRe-fix robustness issue on 32bit system (seg is 0-based, npoints is 1-based but segme...
Sandro Santilli [Tue, 8 Nov 2011 10:23:07 +0000 (10:23 +0000)]
Re-fix robustness issue on 32bit system (seg is 0-based, npoints is 1-based but segments is npoints-1)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8115 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoGive unique names to linearref tests
Sandro Santilli [Tue, 8 Nov 2011 08:55:14 +0000 (08:55 +0000)]
Give unique names to linearref tests

git-svn-id: http://svn.osgeo.org/postgis/trunk@8114 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdd test for bug #1270
Sandro Santilli [Tue, 8 Nov 2011 08:55:09 +0000 (08:55 +0000)]
Add test for bug #1270

git-svn-id: http://svn.osgeo.org/postgis/trunk@8113 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix st_line_locate_point check for "last point" (#1271)
Sandro Santilli [Tue, 8 Nov 2011 08:51:15 +0000 (08:51 +0000)]
Fix st_line_locate_point check for "last point" (#1271)

git-svn-id: http://svn.osgeo.org/postgis/trunk@8112 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRenamed ST_MapAlgebra2Expr to ST_MapAlgebra after concensus with Pierre and Regina.
Bborie Park [Tue, 8 Nov 2011 05:27:51 +0000 (05:27 +0000)]
Renamed ST_MapAlgebra2Expr to ST_MapAlgebra after concensus with Pierre and Regina.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8111 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoReplaced ST_MapAlgebraExpr's "nodatavalueexpr" parameter with "nodataval" and datatyp...
Bborie Park [Tue, 8 Nov 2011 00:00:51 +0000 (00:00 +0000)]
Replaced ST_MapAlgebraExpr's "nodatavalueexpr" parameter with "nodataval" and datatype changed from text to double precision.  This makes this parameter the same as "nodatanodataval" found in ST_MapAlgebra2Expr.

Associated ticket is #866

git-svn-id: http://svn.osgeo.org/postgis/trunk@8110 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRephrased a sentence or two in ST_Resample. Might not be the best.
Bborie Park [Mon, 7 Nov 2011 21:17:02 +0000 (21:17 +0000)]
Rephrased a sentence or two in ST_Resample.  Might not be the best.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8109 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAddition of 2-raster map algebra function ST_MapAlgebra2Expr. Next is ST_MapAlgebra2Fct.
Bborie Park [Mon, 7 Nov 2011 21:07:56 +0000 (21:07 +0000)]
Addition of 2-raster map algebra function ST_MapAlgebra2Expr.  Next is ST_MapAlgebra2Fct.

Ticket is #1268.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8108 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoEnhance robustness of ptarray_locate_point, fixing bug #1269.
Sandro Santilli [Mon, 7 Nov 2011 17:01:50 +0000 (17:01 +0000)]
Enhance robustness of ptarray_locate_point, fixing bug #1269.

Includes regression testcase.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8107 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFollowing the cleanup in r8104, additional cleanup to remove POSTGIS_GDAL_VERSION
Bborie Park [Sun, 6 Nov 2011 20:26:50 +0000 (20:26 +0000)]
Following the cleanup in r8104, additional cleanup to remove POSTGIS_GDAL_VERSION

git-svn-id: http://svn.osgeo.org/postgis/trunk@8106 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoDouble-check line splitting to avoid returning empty components
Sandro Santilli [Sun, 6 Nov 2011 20:17:43 +0000 (20:17 +0000)]
Double-check line splitting to avoid returning empty components

It happened on my 32bit system based on presence or absence of an lwnotice call, probably a compiler bug...

git-svn-id: http://svn.osgeo.org/postgis/trunk@8105 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoDon't change SQL at compile time. The code is safe enough.
Sandro Santilli [Sun, 6 Nov 2011 19:39:40 +0000 (19:39 +0000)]
Don't change SQL at compile time. The code is safe enough.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8104 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRenamed output parameter "hasnodatavalue" to "hasnodata" in ST_BandMetadata(). This...
Bborie Park [Sun, 6 Nov 2011 19:30:32 +0000 (19:30 +0000)]
Renamed output parameter "hasnodatavalue" to "hasnodata" in ST_BandMetadata().  This makes the parameter name consistent with all other use of "hasnodata" and the docs for ST_BandMetadata.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8103 b70326c6-7e19-0410-871a-916f4a2858ee