]> granicus.if.org Git - postgis/log
postgis
5 years agoRevert r17929
Raúl Marín Rodríguez [Thu, 17 Oct 2019 18:09:19 +0000 (18:09 +0000)]
Revert r17929

References #4546

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

5 years agoNEWS entry
Sandro Santilli [Thu, 17 Oct 2019 14:46:11 +0000 (14:46 +0000)]
NEWS entry

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

5 years agoFix AddRasterConstraints in presence of null geoms in table
Sandro Santilli [Thu, 17 Oct 2019 14:10:17 +0000 (14:10 +0000)]
Fix AddRasterConstraints in presence of null geoms in table

References #4547 in 2.3 branch

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

5 years agoAvoid use of bogus AddRasterConstraint when running upgrade tests
Sandro Santilli [Thu, 17 Oct 2019 11:46:34 +0000 (11:46 +0000)]
Avoid use of bogus AddRasterConstraint when running upgrade tests

Works around bug #4547 for 2.3 branch

Closes #4530 in 2.3 branch

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

5 years agoFix svn revision fetching from git worktree
Sandro Santilli [Thu, 17 Oct 2019 11:46:23 +0000 (11:46 +0000)]
Fix svn revision fetching from git worktree

For worktrees, .git is a file, not a directory

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

5 years agoFix ST_ConcaveHull under FDW
Raúl Marín Rodríguez [Thu, 17 Oct 2019 11:11:14 +0000 (11:11 +0000)]
Fix ST_ConcaveHull under FDW

Closes #4546

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

5 years agoFix leak in WKT collection parser
Raúl Marín Rodríguez [Thu, 10 Oct 2019 13:02:38 +0000 (13:02 +0000)]
Fix leak in WKT collection parser

Closes #4537
Closes https://github.com/postgis/postgis/pull/494

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

5 years agoFix leak in lwcollection_from_wkb_state
Raúl Marín Rodríguez [Thu, 10 Oct 2019 11:43:55 +0000 (11:43 +0000)]
Fix leak in lwcollection_from_wkb_state

References #4536

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

5 years agoFix leak in lwcurvepoly_from_wkb_state
Raúl Marín Rodríguez [Thu, 10 Oct 2019 11:39:48 +0000 (11:39 +0000)]
Fix leak in lwcurvepoly_from_wkb_state

References #4534

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

5 years agogetSRIDbySRS: Fix crash
Raúl Marín Rodríguez [Wed, 2 Oct 2019 14:25:20 +0000 (14:25 +0000)]
getSRIDbySRS: Fix crash

- Prevents stack overflow when the srs is long (query + srs > 256 chars).
- Prevents sql injection.

Closes #4519

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

5 years agoRestrict build for PostgreSQL > 9.6
Paul Ramsey [Tue, 17 Sep 2019 17:16:17 +0000 (17:16 +0000)]
Restrict build for PostgreSQL > 9.6
Closes #4498

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

5 years agoFix ST_SnapToGrid output having an outdated bbox
Raúl Marín Rodríguez [Mon, 2 Sep 2019 12:15:42 +0000 (12:15 +0000)]
Fix ST_SnapToGrid output having an outdated bbox

Closes #4495

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

5 years agoFix ST_RemoveRepeatedPoints output having an outdated bbox
Raúl Marín Rodríguez [Fri, 30 Aug 2019 13:35:44 +0000 (13:35 +0000)]
Fix ST_RemoveRepeatedPoints output having an outdated bbox

Closes #4493

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

5 years agoBackport json-c 0.13 support
Raúl Marín Rodríguez [Fri, 30 Aug 2019 10:35:13 +0000 (10:35 +0000)]
Backport json-c 0.13 support

References #4497
Closes https://github.com/postgis/postgis/pull/471

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

5 years agoFix bbox refresh
Raúl Marín Rodríguez [Thu, 29 Aug 2019 15:58:17 +0000 (15:58 +0000)]
Fix bbox refresh

The function used was introduced in 2.5, so the direct
backport broke the build

Closes #4494

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

5 years agoFix ST_Simplify output having an outdated bbox
Raúl Marín Rodríguez [Thu, 29 Aug 2019 15:24:10 +0000 (15:24 +0000)]
Fix ST_Simplify output having an outdated bbox

Closes #4494
Closes https://github.com/postgis/postgis/pull/470

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

5 years agoFix ST_Simplify ignoring the value of the 3rd parameter
Raúl Marín Rodríguez [Thu, 29 Aug 2019 11:56:36 +0000 (11:56 +0000)]
Fix ST_Simplify ignoring the value of the 3rd parameter

Closes #4492

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

5 years agoUpdate regarding #4475
Paul Ramsey [Fri, 16 Aug 2019 21:00:16 +0000 (21:00 +0000)]
Update regarding #4475

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

5 years agoAvoid reading into empty ptarray
Paul Ramsey [Fri, 16 Aug 2019 20:59:43 +0000 (20:59 +0000)]
Avoid reading into empty ptarray
References #4475

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

5 years agoFlip to 2.3.11dev
Regina Obe [Sun, 11 Aug 2019 04:31:09 +0000 (04:31 +0000)]
Flip to 2.3.11dev

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

5 years agoPrepare for release of PostGIS 2.3.10
Regina Obe [Sun, 11 Aug 2019 04:00:37 +0000 (04:00 +0000)]
Prepare for release of PostGIS 2.3.10

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

5 years agoFix compile error on travis
Regina Obe [Sun, 11 Aug 2019 03:03:19 +0000 (03:03 +0000)]
Fix compile error on travis
Closes https://github.com/postgis/postgis/pull/459

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

5 years agoST_GeomFromGeoJSON crash on empty rings
Darafei Praliaskouski [Sun, 4 Aug 2019 07:42:45 +0000 (07:42 +0000)]
ST_GeomFromGeoJSON crash on empty rings

Closes #4470

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

5 years agoHandle POINT EMPTY in shape loader/dumper
Paul Ramsey [Wed, 31 Jul 2019 21:41:51 +0000 (21:41 +0000)]
Handle POINT EMPTY in shape loader/dumper
References #4437

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

5 years agoHandle NULL geometry values in pgsql2shp
Paul Ramsey [Mon, 29 Jul 2019 16:45:24 +0000 (16:45 +0000)]
Handle NULL geometry values in pgsql2shp
Closes #4209

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

5 years ago[gitlab-ci] Be explicit about target distro (stretch)
Sandro Santilli [Mon, 29 Jul 2019 16:30:25 +0000 (16:30 +0000)]
[gitlab-ci] Be explicit about target distro (stretch)

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

5 years agoFix undefined behaviour in _postgis_gserialized_stats
Raúl Marín Rodríguez [Mon, 29 Jul 2019 15:32:29 +0000 (15:32 +0000)]
Fix undefined behaviour in _postgis_gserialized_stats

References #4466

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

5 years agoAdd CPPFLAGS where missing
Raúl Marín Rodríguez [Tue, 16 Jul 2019 08:57:58 +0000 (08:57 +0000)]
Add CPPFLAGS where missing

Spotted by Debian's build log hardening checker, blhc.

https://salsa.debian.org/debian-gis-team/postgis/-/jobs/222378

Patch by Christoph Berg <myon -at- debian.org>

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

5 years ago[drone] Branch 2.3 is not ready for parallel builds...
Sandro Santilli [Thu, 20 Jun 2019 15:13:22 +0000 (15:13 +0000)]
[drone] Branch 2.3 is not ready for parallel builds...

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

5 years agoEnsure sql and expected dirs are created when needed
Sandro Santilli [Thu, 20 Jun 2019 07:08:13 +0000 (07:08 +0000)]
Ensure sql and expected dirs are created when needed

See https://dronie.osgeo.org/postgis/postgis/311/3/2

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

6 years agoThrow on invalid characters when decoding geohash
Raúl Marín Rodríguez [Thu, 13 Jun 2019 11:54:34 +0000 (11:54 +0000)]
Throw on invalid characters when decoding geohash

References #4406

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

6 years agoAvoid pfree'ing the result of getenv
Raúl Marín Rodríguez [Thu, 13 Jun 2019 07:44:49 +0000 (07:44 +0000)]
Avoid pfree'ing the result of getenv

Closes #4327

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

6 years agoAddRasterConstraints: Ignore NULLs when generating constraints
Raúl Marín Rodríguez [Wed, 12 Jun 2019 13:31:25 +0000 (13:31 +0000)]
AddRasterConstraints: Ignore NULLs when generating constraints

Closes #4388

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

6 years ago[drone] Add drone-1.0 config
Sandro Santilli [Thu, 6 Jun 2019 10:24:48 +0000 (10:24 +0000)]
[drone] Add drone-1.0 config

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

6 years agoTypos..
Sandro Santilli [Thu, 6 Jun 2019 06:57:23 +0000 (06:57 +0000)]
Typos..

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

6 years agoRemove extraneous UTF8 characters
Sandro Santilli [Thu, 6 Jun 2019 06:51:11 +0000 (06:51 +0000)]
Remove extraneous UTF8 characters

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

6 years agoCircular string distances have some failure modes, and test
Paul Ramsey [Fri, 12 Apr 2019 22:21:18 +0000 (22:21 +0000)]
Circular string distances have some failure modes, and test
suite should test everything bi-directionally.
References #4326

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

6 years agoFix postgis_type_name with (GEOMETRYM,3)
Raúl Marín Rodríguez [Fri, 29 Mar 2019 14:30:38 +0000 (14:30 +0000)]
Fix postgis_type_name with (GEOMETRYM,3)

Patch by Matt Bretl

References #4361

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

6 years agoFlip to 2.3.10dev, also flip winnie to use latest stable GEOS
Regina Obe [Mon, 11 Mar 2019 20:05:00 +0000 (20:05 +0000)]
Flip to 2.3.10dev, also flip winnie to use latest stable GEOS

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

6 years agoFix typos in doc release and update change log
Regina Obe [Mon, 11 Mar 2019 19:39:51 +0000 (19:39 +0000)]
Fix typos in doc release and update change log

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

6 years agoPrep for 2.3.9 release
Regina Obe [Mon, 11 Mar 2019 18:38:39 +0000 (18:38 +0000)]
Prep for 2.3.9 release

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

6 years agoSchema qualify all geometry casts in raster code, otherwise materialized views do...
Regina Obe [Mon, 11 Mar 2019 18:21:25 +0000 (18:21 +0000)]
Schema qualify all geometry casts in raster code, otherwise materialized views do not resture
Closes #4291 for PostGIS 2.3.9

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

6 years agoUpdate test running instructions
Paul Ramsey [Fri, 15 Feb 2019 19:00:50 +0000 (19:00 +0000)]
Update test running instructions

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

6 years agoUpdate OGC certification scripts to match SFSQL 1.2 signatures
Paul Ramsey [Fri, 15 Feb 2019 18:54:06 +0000 (18:54 +0000)]
Update OGC certification scripts to match SFSQL 1.2 signatures

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

6 years agoAdd generated file
Paul Ramsey [Mon, 11 Feb 2019 17:34:55 +0000 (17:34 +0000)]
Add generated file

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

6 years agoAdd initialization to lexer
Paul Ramsey [Mon, 11 Feb 2019 17:34:48 +0000 (17:34 +0000)]
Add initialization to lexer
References #4017

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

6 years agoRevert r17178
Raúl Marín Rodríguez [Tue, 22 Jan 2019 09:02:30 +0000 (09:02 +0000)]
Revert r17178

It changes the behaviour of _postgis_pgsql_version

References #4303

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

6 years agoUn space
Paul Ramsey [Fri, 18 Jan 2019 21:56:55 +0000 (21:56 +0000)]
Un space

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

6 years agoGeodetic tolerance issue in 32-bit
Paul Ramsey [Fri, 18 Jan 2019 18:05:36 +0000 (18:05 +0000)]
Geodetic tolerance issue in 32-bit
References #4298

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

6 years agoUse `server_version_num` instead of parsing `version()`
Raúl Marín Rodríguez [Fri, 18 Jan 2019 17:24:12 +0000 (17:24 +0000)]
Use `server_version_num` instead of parsing `version()`

References #4296

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

6 years agoAvoid passing a NULL pointer to GEOSisEmpty
Raúl Marín Rodríguez [Fri, 18 Jan 2019 16:07:59 +0000 (16:07 +0000)]
Avoid passing a NULL pointer to GEOSisEmpty

Closes #4275
Closes https://github.com/postgis/postgis/pull/362

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

6 years agoMore robust geography distance
Paul Ramsey [Fri, 11 Jan 2019 21:45:25 +0000 (21:45 +0000)]
More robust geography distance
References #4290

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

6 years agoFix so custom --with-projdir= configure switch works again.
Regina Obe [Wed, 26 Dec 2018 04:12:21 +0000 (04:12 +0000)]
Fix so custom --with-projdir= configure switch works again.
Closes #4279 for PostGIS 2.3

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

6 years agoSupport Proj 6. Support is via legacy API.
Darafei Praliaskouski [Mon, 17 Dec 2018 10:39:54 +0000 (10:39 +0000)]
Support Proj 6. Support is via legacy API.

Closes #4254
Closes https://github.com/postgis/postgis/pull/354

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

6 years agoChange test conditions to explicit empty test
Paul Ramsey [Tue, 27 Nov 2018 00:16:20 +0000 (00:16 +0000)]
Change test conditions to explicit empty test
References #4245

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

6 years agoStabilize GiST ND indexes for mixed dimensions
Darafei Praliaskouski [Sun, 25 Nov 2018 19:36:07 +0000 (19:36 +0000)]
Stabilize GiST ND indexes for mixed dimensions

Patch by Darafei Praliaskouski

Thanks to
 Arthur Lesuisse for synthesizing test case,
 Andrew Gierth for finding runaway memcpy,
 Raúl Marín for pointing to memory problem in index construction.

Closes #4139

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

6 years agoFlip to 2.3.9dev
Regina Obe [Sat, 24 Nov 2018 05:08:36 +0000 (05:08 +0000)]
Flip to 2.3.9dev

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

6 years agoPreparing for 2.3.8 release
Regina Obe [Sat, 24 Nov 2018 05:02:47 +0000 (05:02 +0000)]
Preparing for 2.3.8 release

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

6 years agoAvoid unaligned memory access in BOX2D_out
Raúl Marín Rodríguez [Thu, 22 Nov 2018 16:14:23 +0000 (16:14 +0000)]
Avoid unaligned memory access in BOX2D_out

References #4244

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

6 years agoFix undefined behaviour in ST_3DDistance
Raúl Marín Rodríguez [Thu, 22 Nov 2018 13:40:38 +0000 (13:40 +0000)]
Fix undefined behaviour in ST_3DDistance

References #4246

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

6 years agoFix undefined behaviour in raster intersection
Raúl Marín Rodríguez [Wed, 21 Nov 2018 14:10:31 +0000 (14:10 +0000)]
Fix undefined behaviour in raster intersection

References #4249

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

6 years agoAvoid undefined behaviour in next_float functions (Raúl Marín)
Raúl Marín Rodríguez [Wed, 21 Nov 2018 11:43:09 +0000 (11:43 +0000)]
Avoid undefined behaviour in next_float functions (Raúl Marín)

References #4247

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

6 years agoAllocate enough memory in gidx_to_string
Raúl Marín Rodríguez [Thu, 15 Nov 2018 09:05:32 +0000 (09:05 +0000)]
Allocate enough memory in gidx_to_string

References #4236

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

6 years agoAdd 4223 news line
Paul Ramsey [Wed, 7 Nov 2018 17:17:16 +0000 (17:17 +0000)]
Add 4223 news line

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

6 years agoPatch over bad behaviour for near-parallel boxes and distancetree.
Paul Ramsey [Wed, 7 Nov 2018 17:15:58 +0000 (17:15 +0000)]
Patch over bad behaviour for near-parallel boxes and distancetree.

Unfortunately, this "fix" is probably breakable, just put the boxes closer and closer together until we get "close enough to be the same" results from the edge normal comparison again. Only way around this is to do dot product and comparisons in higher-than-double space
References #4223

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

6 years ago[raster] Fix envelope Contains shortcut in ST_Clip
Darafei Praliaskouski [Tue, 23 Oct 2018 13:07:29 +0000 (13:07 +0000)]
[raster] Fix envelope Contains shortcut in ST_Clip

Patch by Sai-bot

Closes #3457

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

6 years agoFix support for PostgreSQL-12 ("getrelid" macro removed)
Sandro Santilli [Wed, 17 Oct 2018 14:28:02 +0000 (14:28 +0000)]
Fix support for PostgreSQL-12 ("getrelid" macro removed)

The call is replaced with its expansion which should work
as back as PostgreSQL-9.1 which is before the oldest version
PostGIS-2.2 (our oldest maintained branch) supports.

This is then safe to backport to all branches till 2.2.

Patch by Laurenz Albe

References #4206 in 2.3 branch

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

6 years agoOnly drop function IF EXISTS ...
Sandro Santilli [Mon, 15 Oct 2018 11:47:36 +0000 (11:47 +0000)]
Only drop function IF EXISTS ...

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

6 years agoUse portable code to write extension-protection line
Sandro Santilli [Mon, 15 Oct 2018 11:31:38 +0000 (11:31 +0000)]
Use portable code to write extension-protection line

References #4203 in 2.3 branch

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

6 years ago[topology] properly drop removed internal functions on upgrade
Sandro Santilli [Mon, 15 Oct 2018 10:41:25 +0000 (10:41 +0000)]
[topology] properly drop removed internal functions on upgrade

References #4202 in 2.3 branch

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

6 years agoFix undefined behaviour in ptarray_clone_deep
Raúl Marín Rodríguez [Tue, 2 Oct 2018 11:40:07 +0000 (11:40 +0000)]
Fix undefined behaviour in ptarray_clone_deep

References #4191

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

6 years agoFix undefined behaviour in SADFWrite
Raúl Marín Rodríguez [Tue, 2 Oct 2018 09:45:39 +0000 (09:45 +0000)]
Fix undefined behaviour in SADFWrite

References #4189

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

6 years agoUse qualified names in topology extension install
Raúl Marín Rodríguez [Fri, 14 Sep 2018 15:30:57 +0000 (15:30 +0000)]
Use qualified names in topology extension install

References #4160

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

6 years agoAvoid array overflow in ANALYZE (References #2985)
Paul Ramsey [Thu, 13 Sep 2018 19:24:48 +0000 (19:24 +0000)]
Avoid array overflow in ANALYZE (References #2985)

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

7 years agoFix flags in case where a boxless geom comes in with a "has box" set of flags.
Paul Ramsey [Tue, 12 Jun 2018 12:56:10 +0000 (12:56 +0000)]
Fix flags in case where a boxless geom comes in with a "has box" set of flags.
Closes #4707

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

7 years agoAvoid segfault in median test (32bits)
Raúl Marín Rodríguez [Wed, 23 May 2018 09:27:31 +0000 (09:27 +0000)]
Avoid segfault in median test (32bits)

References #4095

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

7 years agoInconsistent results from qsort callback (yugr)
Paul Ramsey [Tue, 22 May 2018 19:37:27 +0000 (19:37 +0000)]
Inconsistent results from qsort callback (yugr)
References #4093

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

7 years agoFix bug in lwgeom_median and avoid division by zero
Raúl Marín Rodríguez [Mon, 21 May 2018 11:03:01 +0000 (11:03 +0000)]
Fix bug in lwgeom_median and avoid division by zero

References #3997
Closes https://github.com/postgis/postgis/pull/245

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

7 years agoFixes bounding box handling in twkb_input #4089
Nicklas Avén [Wed, 16 May 2018 21:39:00 +0000 (21:39 +0000)]
Fixes bounding box handling in twkb_input #4089

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

7 years agocomment out sfcgal tests for now until we resolve cgal/sfcgal dependency issue on...
Regina Obe [Sat, 12 May 2018 20:31:49 +0000 (20:31 +0000)]
comment out sfcgal tests for now until we resolve cgal/sfcgal dependency issue on debian (hopefully got syntax right this time)
References #4068

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

7 years agocomment out sfcgal tests for now until we resolve cgal/sfcgal dependency issue on...
Regina Obe [Wed, 9 May 2018 07:30:42 +0000 (07:30 +0000)]
comment out sfcgal tests for now until we resolve cgal/sfcgal dependency issue on debian
References #4068

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

7 years agoDisable interrupt tests by default, now requires --with-interrupt-tests to turn on.
Regina Obe [Tue, 24 Apr 2018 09:28:02 +0000 (09:28 +0000)]
Disable interrupt tests by default, now requires --with-interrupt-tests to turn on.
This is to quiet false alarms which often happen on a busy box
Closes #4074

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

7 years agoST_ClusterKMeans crash on NULL and EMPTY
Darafei Praliaskouski [Sat, 21 Apr 2018 13:17:14 +0000 (13:17 +0000)]
ST_ClusterKMeans crash on NULL and EMPTY

Closes #4071

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

7 years agoFlip version to 2.3.8dev
Regina Obe [Fri, 6 Apr 2018 04:58:54 +0000 (04:58 +0000)]
Flip version to 2.3.8dev

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

7 years agoFix winnie's packaging versions for GEOS and GDAL
Regina Obe [Mon, 2 Apr 2018 07:04:37 +0000 (07:04 +0000)]
Fix winnie's packaging versions for GEOS and GDAL

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

7 years agoUpdate postgis_release_docs recipe for 2.2 (to be same as 2.4, so debbie can build)
Regina Obe [Mon, 2 Apr 2018 03:58:29 +0000 (03:58 +0000)]
Update postgis_release_docs recipe for 2.2 (to be same as 2.4, so debbie can build)

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

7 years agoUpdate to 2.3.7 and get everything ready in prep for official tagging on Friday ...
Regina Obe [Mon, 2 Apr 2018 03:01:59 +0000 (03:01 +0000)]
Update to 2.3.7 and get everything ready in prep for official tagging on Friday (2018-04-06)

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

7 years agoFix crasher in raster when fed an empty raster (note was tempted to change the def...
Regina Obe [Wed, 28 Mar 2018 09:02:04 +0000 (09:02 +0000)]
Fix crasher in raster when fed an empty raster (note was tempted to change the def of empty raster to include raster with no bands but not sure where else that is used, so just revised the clip check to not try to clip if no bands).
References #3055 for PostGIS 2.3.7,
also minor doc fix references #2925 for PostGIS 2.3.7
reorder NEWS tickets numerically

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

7 years agoST_CPAWithin precision fix
Darafei Praliaskouski [Tue, 27 Mar 2018 17:38:18 +0000 (17:38 +0000)]
ST_CPAWithin precision fix

Closes #4032

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

7 years agoAvoid dropping SRID in ST_ClusterIntersecting
Daniel Baston [Sat, 24 Mar 2018 00:01:14 +0000 (00:01 +0000)]
Avoid dropping SRID in ST_ClusterIntersecting

References #4055

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

7 years agoschema qualify geography functions (including ST_Buffer)
Regina Obe [Thu, 22 Mar 2018 15:45:31 +0000 (15:45 +0000)]
schema qualify geography functions (including ST_Buffer)
References #4052 for PostGIS 2.3.7

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

7 years agoAdd generated lexer (for 2.3)
Paul Ramsey [Mon, 26 Feb 2018 20:14:56 +0000 (20:14 +0000)]
Add generated lexer (for 2.3)

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

7 years agoFix memory corruption in case where lexer is interrupted mid-process
Paul Ramsey [Mon, 26 Feb 2018 20:14:36 +0000 (20:14 +0000)]
Fix memory corruption in case where lexer is interrupted mid-process
References #4017
For 2.3

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

7 years agoUse more precise bounds when testing overlap of temporal ranges.
Paul Ramsey [Mon, 26 Feb 2018 18:27:03 +0000 (18:27 +0000)]
Use more precise bounds when testing overlap of temporal ranges.
For 2.3, references #4025

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

7 years agoAdd Raúl Marín Rodríguez to svn and git authors lists
Regina Obe [Fri, 23 Feb 2018 19:54:14 +0000 (19:54 +0000)]
Add Raúl Marín Rodríguez  to svn and git authors lists

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

7 years agoBackport ci changes to 2.3
Regina Obe [Thu, 22 Feb 2018 22:22:10 +0000 (22:22 +0000)]
Backport ci changes to 2.3

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

7 years ago[gitlab-ci] Switch to PostgreSQL 9.6 and libjson-c-dev
Sandro Santilli [Thu, 22 Feb 2018 13:42:00 +0000 (13:42 +0000)]
[gitlab-ci] Switch to PostgreSQL 9.6 and libjson-c-dev

Fixes gitlab-ci build for 2.3, references #4023

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

7 years agoFix cast from box3d to geometry
Darafei Praliaskouski [Thu, 22 Feb 2018 11:16:37 +0000 (11:16 +0000)]
Fix cast from box3d to geometry

Patch by Matthias Bay

Closes https://github.com/postgis/postgis/pull/214
Closes #4020

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

7 years agolwpoly_construct_circle: Avoid division by zero (Raúl Marín Rodríguez)
Paul Ramsey [Fri, 26 Jan 2018 14:56:52 +0000 (14:56 +0000)]
lwpoly_construct_circle: Avoid division by zero (Raúl Marín Rodríguez)
References #4003

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

7 years agoSet availability of support function for KNN index
Sandro Santilli [Mon, 22 Jan 2018 14:13:28 +0000 (14:13 +0000)]
Set availability of support function for KNN index

Fixes upgrade from 2.1 to 2.2+
References #3978 in 2.3 branch (2.3.7)

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