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
Bborie Park
295c02be84
Changed adjustment of extent by half-pixel to full-pixel for points and linestrings to ensure compatibility with GDAL 1.6, 1.7 and 1.8. GDAL 1.9 (current trunk) appears to work fine with half-pixel adjustments.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7944 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 20:51:10 +00:00
Regina Obe
7c79bd13f9
add KNN GIST + credits to news release (was already in docs)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7943 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 20:46:26 +00:00
Regina Obe
3a550fae42
minor correction to <#> description
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7942 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 20:43:54 +00:00
Bborie Park
2bbfeb294e
For linestrings, use same logic for points where extent is increased by half a pixel to catch geometries on the edges.
...
Associated ticket is #1213
git-svn-id: http://svn.osgeo.org/postgis/trunk@7941 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 19:50:54 +00:00
Sandro Santilli
782e9051ff
Do not base availability of SQL ST_Hausdorff* signatures on GEOS version
...
Tested with GEOS from the 3.1 branch (yes, we still support it !)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7940 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 17:08:11 +00:00
Sandro Santilli
840765e5c9
Simple review of the topology README. Wasn't that outdated :)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7939 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 16:45:33 +00:00
Sandro Santilli
eb9b051c56
Do not base availability of SQL isValid* signatures on GEOS version
...
This is a work for the C level library.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7938 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 16:27:34 +00:00
Sandro Santilli
1032a74af8
Tweak expected test output to expect unknown srid to be reported as 0
...
If this will change before release, git-revert is our friend
git-svn-id: http://svn.osgeo.org/postgis/trunk@7937 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 14:33:31 +00:00
Sandro Santilli
1a9e140b67
Make topology.CreateTopology unknown-srid-agnostic (uses ST_Srid to tell)
...
Hopefully this makes the topology code stable during the SRID fights :)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7936 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-04 14:33:23 +00:00
Regina Obe
390312abbe
Guess Nicklas was right - should have looked at my explain. Revised example to use geometry constants. Seems to be a limitation in KNN that it needs constants. Same annoying behavior with my trigram KNN that only constant phrases work, not even constant phrases wrapped in alias work.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7935 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-03 15:29:34 +00:00
Sandro Santilli
f8ce0dcdf9
Drop more non-ascii dashes, update regress tests ( #1226 ) [RT-SIGTA]
...
There's a still-failing regress test due to SRID 0 being considered != 1
git-svn-id: http://svn.osgeo.org/postgis/trunk@7934 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-03 10:32:47 +00:00
Sandro Santilli
4a635b187b
Use ASCII dash, not UTF8 one. Fixes #1226 . [RT-SIGTA]
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7933 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-03 10:26:10 +00:00
Regina Obe
9c6080b1a1
Add in st_valuecount evidentally changed output in 2.0 series
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7932 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-02 23:38:36 +00:00
Bborie Park
960fbbb469
fixed _st_intersects(raster, geometry, integer) where call to ST_Intersects was hardcoding the first band of raster instead of using user-provided nband.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7931 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-02 14:12:12 +00:00
Regina Obe
2822ebbf98
preliminary logic to build an rtpostgis_upgrade_20_minor.sql script. Still missing a drop somewhere since my older db doesn't upgrade because complains about out parameters changed in some function.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7930 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-02 03:18:47 +00:00
Bborie Park
40d787f573
Fixed installation path of rtpostgis.sql to contrib/postgis-2.0. Added build of rtpostgis_drop.sql
...
Associated ticket is #615
git-svn-id: http://svn.osgeo.org/postgis/trunk@7929 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-01 17:28:58 +00:00
Regina Obe
59993666e8
itemize more removed functions for upgrade purposes
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7928 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-01 16:47:33 +00:00
Regina Obe
bafec11f4a
add very paertinatnet ST_3DDistance reference to ST_3DDwithin
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7927 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-01 03:46:39 +00:00
Regina Obe
f7d0472b1b
get rid of obsolete proto, replace with new onesfor ST_Intersects. Clarify distinctions between raster/goemtry and geometry/raster operations
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7926 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-01 02:58:06 +00:00
David Zwarg
bc06f1739b
Changed ST_MapAlgebra to ST_MapAlgebraExpr. Also moved around the pixeltype parameter -- it is no longer optional. Also updated docs that referred to ST_MapAlgebra. ( #860 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7925 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-30 20:03:23 +00:00
David Zwarg
26ef9c305d
Renamed 'nodatavalueexpr' variable. ( #866 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7924 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-30 18:34:08 +00:00
Bborie Park
6a8a4356c4
Updated regression tests to correctly support change of unknown SRID from -1 to 0.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7923 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-30 00:11:55 +00:00
Sandro Santilli
1e179f2522
Fix distclean rule to drop Makefile too
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7922 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-29 19:43:06 +00:00