Commit graph

6459 commits

Author SHA1 Message Date
Regina Obe 65c16daaca put in logic to st_setsrid to wgs84 before doing st_distance_sphere in case Paul decides he doesn't want to fix the regression issue noted in #1243
git-svn-id: http://svn.osgeo.org/postgis/trunk@7996 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-21 12:01:12 +00:00
Bborie Park 74ce043e9c Renamed RASTER_samealignment() to RASTER_sameAlignment() and corrected C++ style comments with C comments
git-svn-id: http://svn.osgeo.org/postgis/trunk@7995 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-20 22:24:07 +00:00
Bborie Park 25d5485a1d Removed use of PG_DETOAST_DATUM_COPY and PG_FREE_IF_COPY as all rasters should be detoasted using PG_DETOAST_DATUM as it doesn't create a copy, thus consuming more space.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7994 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-20 22:07:45 +00:00
David Zwarg f2cf86e0cf Replaced missing signatures of ST_MapAlgebraFct.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7993 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-20 13:31:06 +00:00
Regina Obe dd81a578ca move function args to single line so CREATe EXTENSION topology FROM unpackaged script builds corectly
git-svn-id: http://svn.osgeo.org/postgis/trunk@7992 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-20 00:49:38 +00:00
Regina Obe 975a0714c7 add in missing ST_MapAlgebraFct protos
git-svn-id: http://svn.osgeo.org/postgis/trunk@7991 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-19 23:47:57 +00:00
Regina Obe d551ed454d evidentally missed one or get the wrong ST_MapAlgebraFct proto in last commit
git-svn-id: http://svn.osgeo.org/postgis/trunk@7990 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-19 23:25:54 +00:00
Regina Obe 3728880e49 Get rid of st_mapalgebrafct(raster,text,regprocedure,text[]) proto since there is no matching function - messing up my ability to test my extensions
git-svn-id: http://svn.osgeo.org/postgis/trunk@7989 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-19 20:31:28 +00:00
Regina Obe 69291f1939 #860 Get rid of some dup definitions in ST_MapAlgebraFct and add some missing ones.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7988 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-18 11:37:56 +00:00
Regina Obe 6dabf6feba Add postgis_before_drop for dropping functions that have arument names renamed before reinstall. Just for upgrade script since can't do CREATE OR REPLACE if arg names have changed
git-svn-id: http://svn.osgeo.org/postgis/trunk@7987 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-18 02:23:57 +00:00
David Zwarg 739d0f76e5 Fixed documentation code listing typo for ST_MapAlgebraFct, and added more information about userfunctions and variadic text args.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7986 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-17 16:16:37 +00:00
Regina Obe 06cc13d530 update bios
git-svn-id: http://svn.osgeo.org/postgis/trunk@7985 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-17 13:45:46 +00:00
David Zwarg 4d43150c54 Added ST_MapAlgebraFct to documentation, with same examples as ST_MapAlgebraExpr
git-svn-id: http://svn.osgeo.org/postgis/trunk@7984 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-17 13:10:13 +00:00
Regina Obe bb6de5e095 upgrade from a1-a3 for topology, beginning of upgrade extension for postgis -- still need to resolve issue of ALTER EXTENSION not having a DROP IF EXISTS -- a bit annoying for aggs.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7983 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-16 18:17:54 +00:00
Regina Obe c89313f995 Move XMin/Max etc out of miscellaneous into accessors -- Per Pierre's suggestion. Seems more logical.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7982 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-14 22:43:43 +00:00
Regina Obe e15f60f073 Getr di of the word function in heard. Guess it is kind of stupid
git-svn-id: http://svn.osgeo.org/postgis/trunk@7981 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-14 22:36:49 +00:00
David Zwarg 41b8676733 Implemented raster map algebra with user functions/callbacks. (#860)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7980 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-14 18:11:27 +00:00
Paul Ramsey d2979ad268 Actually we use bash code, not sh code
git-svn-id: http://svn.osgeo.org/postgis/trunk@7979 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-13 17:54:37 +00:00
Regina Obe 49c7b50e8b Add _ST_Resample -- evidentally arg names changed. also got rid of arg names in _ST_AsRaster
git-svn-id: http://svn.osgeo.org/postgis/trunk@7977 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-13 12:28:15 +00:00
Regina Obe 5992d584ee Some functions need to be dropped before upgrade minor if they need to be recreated. This is required for functions where argument names change but fundamental types do not. Will add this to upgrade minor script build later.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7976 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-13 11:56:20 +00:00
Bborie Park d3032ba17c Bug fix for _ST_Intersects(geometry, raster) where the buffering of the intersection could return NULL. This happens if the buffer was passed zero for the buffer distance.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7975 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-12 14:36:53 +00:00
Regina Obe fe7582c955 move ST_AddBand to raster constructors section per ticket #1240 and rename Raster Band Accessors and Constructors to just Raster Band Accessors
git-svn-id: http://svn.osgeo.org/postgis/trunk@7974 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-12 12:51:50 +00:00
Regina Obe f5399081b6 another minor correction
git-svn-id: http://svn.osgeo.org/postgis/trunk@7972 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-12 11:26:24 +00:00
Regina Obe 6d5b93c9ed #1241 apply doc_vacuum_analyze_and_I_None_typo.patch
git-svn-id: http://svn.osgeo.org/postgis/trunk@7971 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-12 11:18:31 +00:00
Sandro Santilli 26646ad7cd Typename in type specifier doesn't need to be quoted.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7970 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-11 14:37:48 +00:00
Sandro Santilli 3c6821c1e1 Ignore more generated files
git-svn-id: http://svn.osgeo.org/postgis/trunk@7969 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-11 10:33:25 +00:00
Sandro Santilli 516b5ef55c Restrict valid spatial_ref_sys SRID values between 1 and 998999 (#1233)
I guess it'll take some special handling for this change in the upgrade scripts. I didn't do any with this commit.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7968 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 20:50:20 +00:00
Sandro Santilli 56f9763913 Clamp SRID in typmod parser. Now we get NOTICE/clamp also on create table.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7967 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 20:38:17 +00:00
Sandro Santilli 277be294bc Clamp SRID in AddGeometryColumn, update expected topology test results to expect -1 being transformed to 0 (current official UNKNOWN SRID value).
git-svn-id: http://svn.osgeo.org/postgis/trunk@7966 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 20:26:22 +00:00
Sandro Santilli 9d7ebcb3e1 Do not use AddGeometryColumn, to avoid having to write an explicit unknown SRID value.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7965 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 19:25:11 +00:00
Sandro Santilli 4f9e710513 Hush NOTICES in regress test currently not emitting any (propedeutic for srid clamping in AddGeometryColumn, which is invoked with SRID=-1 by this testcase)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7964 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 17:50:48 +00:00
Sandro Santilli da5f340340 Clamp SRID on serialization and deserialization. Raise an error when clamp_srid receives a number > 999999
git-svn-id: http://svn.osgeo.org/postgis/trunk@7963 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 07:38:27 +00:00
Sandro Santilli b14980566d Do not input an explicit value to mean unknown SRID (in raster test)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7962 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 07:35:36 +00:00
Sandro Santilli 2e970a0f99 Do not input an explicit value to mean unknown SRID
git-svn-id: http://svn.osgeo.org/postgis/trunk@7961 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 07:20:59 +00:00
Sandro Santilli 6bfec0a01e Use macros for hard-coded "magic" SRIDs used by _BestSRID and ST_Transform, use 999xxx range for them. See ticket #1230.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7960 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 06:55:50 +00:00
Bborie Park 49ca7588dd Added additional error checking and error messages to ST_SameAlignment function
git-svn-id: http://svn.osgeo.org/postgis/trunk@7959 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-07 00:29:40 +00:00
Bborie Park 19867d668b minor cleanup and prettiness.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7958 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-06 23:25:28 +00:00
Bborie Park abb2224ee8 Make use of clamp_srid function for SRID checks
git-svn-id: http://svn.osgeo.org/postgis/trunk@7957 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-06 15:47:22 +00:00
Sandro Santilli bdf85a6160 Raise a NOTICE when a SRID <= 0 but != SRID_UNKNOWN is converted
git-svn-id: http://svn.osgeo.org/postgis/trunk@7956 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-06 14:08:59 +00:00
Sandro Santilli 9125e2d304 Clamp literal SRID values occurring in WKB and WKT.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7955 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-06 13:35:52 +00:00
Sandro Santilli c5019f6762 Add clamp_srid internal function returning UNKNOWN for <= 0 values.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7954 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-06 13:35:46 +00:00
Sandro Santilli ded28891a0 Do not use an explicit SRID=-1 in EKWT. It's not needed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7953 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-06 07:18:16 +00:00
Sandro Santilli 69d951fe76 Do not use an explicit SRID=-1 in EKWT. It's not needed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7952 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-06 06:57:42 +00:00
Bborie Park d911b1ee21 Implements ST_SameAlignment.
Associated ticket is #589.


git-svn-id: http://svn.osgeo.org/postgis/trunk@7951 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-05 23:03:19 +00:00
Bborie Park c577caddff Fixed --with-gdalconfig parameter as per ticket #1167.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7950 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-05 18:55:03 +00:00
Bborie Park a3abb76533 As per Bryce's comments in ticket #1174, reduce the number of calculations when doing rt_raster_geopoint_to_cell by using an inverse geotransform matrix. Unlike the patch attached to the ticket, this commit does not change the structure of the rt_raster struct. It may be worth changing the rt_raster struct eventually, but will cost us the single memcpy when serializing rt_raster. Also, changes for testing SRID as "unknown" if value is lte SRID_UNKNOWN (presently 0).
Associated ticket is #1174.


git-svn-id: http://svn.osgeo.org/postgis/trunk@7949 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-05 18:49:11 +00:00
Bborie Park b5c044ab3d Removed hackish use of POSTGIS_GDAL_VERSION in postgis/sqldefines.h.in and postgis/postgis.sql.in.c. Added conditional compilation of extent resizing based upon GDAL version in rt_api.c
git-svn-id: http://svn.osgeo.org/postgis/trunk@7948 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-05 04:54:00 +00:00
Bborie Park 2bd5baf096 Fixed bug where a call to postgis_full_version causes error if postgis_gdal_version doesn't exist because raster support is not included
git-svn-id: http://svn.osgeo.org/postgis/trunk@7947 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 23:32:59 +00:00
Sandro Santilli a25f098269 don't try to call postgis_gdal_version() if not testing raster (the signature is unavailable)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7946 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 23:13:28 +00:00
Bborie Park 54d6bc0265 Adds postgis_gdal_version() function as per ticket #1225.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7945 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 22:38:46 +00:00