]> granicus.if.org Git - postgis/log
postgis
5 years agoFix ST_RemoveRepeatedPoints output having an outdated bbox
Raúl Marín Rodríguez [Fri, 30 Aug 2019 13:33:48 +0000 (13:33 +0000)]
Fix ST_RemoveRepeatedPoints output having an outdated bbox

References #4493

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

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

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

git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@17790 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:23:11 +0000 (15:23 +0000)]
Fix ST_Simplify output having an outdated bbox

References #4494

git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@17788 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:54:22 +0000 (11:54 +0000)]
Fix ST_Simplify ignoring the value of the 3rd parameter

References #4492

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

5 years agoMove geobuf version test strictly into configure
Paul Ramsey [Thu, 22 Aug 2019 18:37:46 +0000 (18:37 +0000)]
Move geobuf version test strictly into configure

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

5 years agoAdd #4475
Paul Ramsey [Fri, 16 Aug 2019 21:00:58 +0000 (21:00 +0000)]
Add #4475

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

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

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

5 years agoImprove libprotobuf detection for old systems
Paul Ramsey [Wed, 14 Aug 2019 22:26:03 +0000 (22:26 +0000)]
Improve libprotobuf detection for old systems
References #4481

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

5 years agobranch 2.4: Geography Distance inconsistent with Intersects
Paul Ramsey [Tue, 13 Aug 2019 16:58:58 +0000 (16:58 +0000)]
branch 2.4: Geography Distance inconsistent with Intersects
References #4480

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

5 years agoflip to 2.4.9dev
Regina Obe [Sun, 11 Aug 2019 05:25:14 +0000 (05:25 +0000)]
flip to 2.4.9dev

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

5 years agofix xml errors
Regina Obe [Sun, 11 Aug 2019 04:55:27 +0000 (04:55 +0000)]
fix xml errors

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

5 years agoPrepare for release of PostGIS 2.4.8
Regina Obe [Sun, 11 Aug 2019 04:20:40 +0000 (04:20 +0000)]
Prepare for release of PostGIS 2.4.8

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

5 years agoTake out ST_GeomFromJSON - json, jsonb versions. These weren't introduced until 2.5
Regina Obe [Sun, 11 Aug 2019 03:56:02 +0000 (03:56 +0000)]
Take out ST_GeomFromJSON - json, jsonb versions.  These weren't introduced until 2.5
Closes #4476

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

5 years agoAdd Martin Davis to committer list
Regina Obe [Sun, 11 Aug 2019 02:50:35 +0000 (02:50 +0000)]
Add Martin Davis to committer list

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

5 years agoAdd upgrade install paths for address_standardizer
Regina Obe [Sun, 11 Aug 2019 01:44:24 +0000 (01:44 +0000)]
Add upgrade install paths for address_standardizer
references #4420 for PostGIS 2.4

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

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

Closes #4470

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

5 years agoFix minor version check issue in protobuf configuration
Paul Ramsey [Fri, 2 Aug 2019 16:32:44 +0000 (16:32 +0000)]
Fix minor version check issue in protobuf configuration

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

5 years agoST_AsTWKB doesn't always remove duplicate points
Paul Ramsey [Thu, 1 Aug 2019 17:48:07 +0000 (17:48 +0000)]
ST_AsTWKB doesn't always remove duplicate points
References #4461

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

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

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

5 years agoUse protobuf version to enable/disable mvt/geobuf
Paul Ramsey [Tue, 30 Jul 2019 22:27:06 +0000 (22:27 +0000)]
Use protobuf version to enable/disable mvt/geobuf
References #4419

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

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

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

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

git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@17637 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:33:04 +0000 (15:33 +0000)]
Fix undefined behaviour in _postgis_gserialized_stats

References #4466

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

5 years agoAdd CPPFLAGS where missing
Raúl Marín Rodríguez [Tue, 16 Jul 2019 08:58:20 +0000 (08:58 +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.4@17607 b70326c6-7e19-0410-871a-916f4a2858ee

5 years agoFix bug in lwgeom_le
Raúl Marín Rodríguez [Tue, 2 Jul 2019 08:59:24 +0000 (08:59 +0000)]
Fix bug in lwgeom_le

References #4445
Closes https://github.com/postgis/postgis/pull/428

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

5 years agoInternal type lookups fail over FDW
Paul Ramsey [Fri, 28 Jun 2019 18:03:24 +0000 (18:03 +0000)]
Internal type lookups fail over FDW
Closes #4440

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

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

References #4406

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

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

References #4327

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

5 years agoTravis: Use xenial as distribution and bionic repos
Raúl Marín Rodríguez [Wed, 12 Jun 2019 14:04:41 +0000 (14:04 +0000)]
Travis: Use xenial as distribution and bionic repos

References #4426

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

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

References #4388

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

5 years ago[drone] 2.4 branch is not ready for -Werror, drop that
Sandro Santilli [Thu, 6 Jun 2019 10:20:32 +0000 (10:20 +0000)]
[drone] 2.4 branch is not ready for -Werror, drop that

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

5 years agoFix a couple of warning about C99
Sandro Santilli [Thu, 6 Jun 2019 10:01:24 +0000 (10:01 +0000)]
Fix a couple of warning about C99

Note: these are turned to error for some possibly postgresql-injected
C flag, see https://dronie.osgeo.org/postgis/postgis/307/2/2

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

5 years ago[dronie] fix yml syntax
Sandro Santilli [Thu, 6 Jun 2019 09:47:26 +0000 (09:47 +0000)]
[dronie] fix yml syntax

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

5 years ago[dronie] Add drone-1.0 configuration, enabling 9.3 testing
Sandro Santilli [Thu, 6 Jun 2019 08:04:53 +0000 (08:04 +0000)]
[dronie] Add drone-1.0 configuration, enabling 9.3 testing

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

5 years agoCircular string distances have some failure modes, and test
Paul Ramsey [Fri, 12 Apr 2019 22:16:43 +0000 (22:16 +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.4@17387 b70326c6-7e19-0410-871a-916f4a2858ee

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

Patch by Matt Bretl

References #4361

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

5 years agoBump to 2.4.8dev
Regina Obe [Mon, 11 Mar 2019 17:51:00 +0000 (17:51 +0000)]
Bump to 2.4.8dev

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

5 years agoforgot to commit bump version
Regina Obe [Mon, 11 Mar 2019 14:24:05 +0000 (14:24 +0000)]
forgot to commit bump version

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

5 years agoPrep for PostGIS 2.4.7 release
Regina Obe [Mon, 11 Mar 2019 14:22:26 +0000 (14:22 +0000)]
Prep for PostGIS 2.4.7 release
Remove zcta5 geometry constraint
References #4086

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

5 years agoMake _drop_raster_constraint_spatially_unique and _raster_constraint_info_spatially_u...
Regina Obe [Sun, 10 Mar 2019 19:04:28 +0000 (19:04 +0000)]
Make _drop_raster_constraint_spatially_unique and _raster_constraint_info_spatially_unique allow for presence or absense of schema qual on geometry cast.
Was failing before when installed as extension (but not by script)
Reference #4291 for PostGIS 2.4.7

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

5 years agoSchema qualify all geometry casts in raster code, otherwise materialized views do...
Regina Obe [Sat, 9 Mar 2019 18:43:26 +0000 (18:43 +0000)]
Schema qualify all geometry casts in raster code, otherwise materialized views do not resture
Closes #4291 for PostGIS 2.4.7

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

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

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

5 years agoUpdate OGC certification scripts to match new SFSQL 1.2 signatures
Paul Ramsey [Fri, 15 Feb 2019 18:53:36 +0000 (18:53 +0000)]
Update OGC certification scripts to match new SFSQL 1.2 signatures

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

5 years agoAdd generated file
Paul Ramsey [Mon, 11 Feb 2019 17:20:16 +0000 (17:20 +0000)]
Add generated file

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

5 years agoAdd lexer initialization
Paul Ramsey [Mon, 11 Feb 2019 17:20:06 +0000 (17:20 +0000)]
Add lexer initialization
References #4017

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

5 years agoPostgreSQL 12 compatibility
Raúl Marín Rodríguez [Thu, 31 Jan 2019 15:51:02 +0000 (15:51 +0000)]
PostgreSQL 12 compatibility

Initial patch by Laurenz Albe
Closes #4313
Closes https://github.com/postgis/postgis/pull/368/

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

6 years agoPartially revert r17179
Raúl Marín Rodríguez [Tue, 22 Jan 2019 09:07:16 +0000 (09:07 +0000)]
Partially revert r17179

It changed the behaviour of _postgis_pgsql_version
Now uses the appropiate 5-6 digit version from server_version_num

References #4296
References #4303

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

6 years agoSync generated files to parser file
Paul Ramsey [Mon, 21 Jan 2019 19:50:56 +0000 (19:50 +0000)]
Sync generated files to parser file

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

6 years agoPut fix for parser into y file
Paul Ramsey [Mon, 21 Jan 2019 19:47:14 +0000 (19:47 +0000)]
Put fix for parser into y file
References #4273

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

6 years agoAvoid final point duplicates for circle stroking
Paul Ramsey [Fri, 18 Jan 2019 20:45:18 +0000 (20:45 +0000)]
Avoid final point duplicates for circle stroking
References #4283

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

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

git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@17183 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:32 +0000 (17:24 +0000)]
Use `server_version_num` instead of parsing `version()`

References #4296

git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@17179 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:06:56 +0000 (16:06 +0000)]
Avoid passing a NULL pointer to GEOSisEmpty

References #4275

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

6 years agoCorrect issue reference from previous commit
Raúl Marín Rodríguez [Fri, 18 Jan 2019 11:56:05 +0000 (11:56 +0000)]
Correct issue reference from previous commit

References #4289

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

6 years agoST_AsMVTGeom: Transform coordinates space before clipping
Raúl Marín Rodríguez [Fri, 18 Jan 2019 11:52:27 +0000 (11:52 +0000)]
ST_AsMVTGeom: Transform coordinates space before clipping

References #4300

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

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

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

6 years agoST_AsMVT: parse JSON numeric values with decimals as doubles
Raúl Marín Rodríguez [Fri, 11 Jan 2019 13:50:49 +0000 (13:50 +0000)]
ST_AsMVT: parse JSON numeric values with decimals as doubles

Closes #4292

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

6 years agoFix memory leak in case where valid WKT is
Paul Ramsey [Thu, 10 Jan 2019 18:21:41 +0000 (18:21 +0000)]
Fix memory leak in case where valid WKT is
followed by garbage content
Closes #4273

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

6 years agoTighter parsing of WKT
Paul Ramsey [Wed, 9 Jan 2019 20:34:17 +0000 (20:34 +0000)]
Tighter parsing of WKT
References #4273

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

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

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

6 years agoSupport Proj 6. Support is via legacy API.
Darafei Praliaskouski [Mon, 17 Dec 2018 10:38:07 +0000 (10:38 +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.4@17110 b70326c6-7e19-0410-871a-916f4a2858ee

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

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

6 years agoStabilize GiST ND indexes for mixed dimensions
Darafei Praliaskouski [Sun, 25 Nov 2018 19:32:58 +0000 (19:32 +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.4@17075 b70326c6-7e19-0410-871a-916f4a2858ee

6 years agoFlip to 2.4.7dev
Regina Obe [Sat, 24 Nov 2018 05:35:03 +0000 (05:35 +0000)]
Flip to 2.4.7dev

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

6 years agoPrepping for 2.4.6 release and update docs to reflect 2.4 only supported up to Postgr...
Regina Obe [Sat, 24 Nov 2018 05:31:57 +0000 (05:31 +0000)]
Prepping for 2.4.6 release and update docs to reflect 2.4 only supported up to PostgreSQL 10

git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@17067 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:15:35 +0000 (16:15 +0000)]
Avoid unaligned memory access in BOX2D_out

References #4244

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

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

References #4246

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

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

References #4249

git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@17041 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:57 +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.4@17036 b70326c6-7e19-0410-871a-916f4a2858ee

6 years agoAvoid undefined behaviour in gserialized_estimate
Raúl Marín Rodríguez [Thu, 15 Nov 2018 16:07:47 +0000 (16:07 +0000)]
Avoid undefined behaviour in gserialized_estimate

References #4190

git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@17020 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:06:12 +0000 (09:06 +0000)]
Allocate enough memory in gidx_to_string

References #4236

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

6 years agoHonestly, spaces?
Paul Ramsey [Wed, 7 Nov 2018 15:41:34 +0000 (15:41 +0000)]
Honestly, spaces?

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

6 years agoAdd name to NEWS
Paul Ramsey [Tue, 6 Nov 2018 22:27:25 +0000 (22:27 +0000)]
Add name to NEWS

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

6 years agoPatch over bad behaviour for near-parallel boxes and distancetree.
Paul Ramsey [Mon, 5 Nov 2018 22:34:36 +0000 (22:34 +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.
Reworking this example with even closer together inputs would be useful for exposing this problem for eventual complete fix.
Closes #4223

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

6 years agoRemove clang warnings
Paul Ramsey [Mon, 5 Nov 2018 18:27:46 +0000 (18:27 +0000)]
Remove clang warnings

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

6 years agoProper repeated point removal for small polygons
Paul Ramsey [Mon, 5 Nov 2018 17:57:16 +0000 (17:57 +0000)]
Proper repeated point removal for small polygons
Closes #4136

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

6 years agoUpdate NEWS for #2416
Paul Ramsey [Thu, 1 Nov 2018 19:41:49 +0000 (19:41 +0000)]
Update NEWS for #2416

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

6 years agoRemove use of variable length arrays
Paul Ramsey [Thu, 1 Nov 2018 19:40:15 +0000 (19:40 +0000)]
Remove use of variable length arrays
References #4177

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

6 years agoRemove use of VLA from geography centroid
Paul Ramsey [Thu, 1 Nov 2018 19:31:24 +0000 (19:31 +0000)]
Remove use of VLA from geography centroid
References #4059

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

6 years agoRevert change to avoid slicing on box access.
Paul Ramsey [Wed, 31 Oct 2018 22:02:55 +0000 (22:02 +0000)]
Revert change to avoid slicing on box access.
References #4216

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

6 years ago[raster] Use GDALFPolygonize unconditionally
Darafei Praliaskouski [Wed, 24 Oct 2018 14:04:14 +0000 (14:04 +0000)]
[raster] Use GDALFPolygonize unconditionally

GDAL 1.10 is already required and 1.9 contains it, so no check needed.

Closes #4215

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

6 years ago[raster] Fix envelope Contains shortcut in ST_Clip
Darafei Praliaskouski [Tue, 23 Oct 2018 13:05:58 +0000 (13:05 +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.4@16942 b70326c6-7e19-0410-871a-916f4a2858ee

6 years agoFix support for PostgreSQL-12 ("getrelid" macro removed)
Sandro Santilli [Wed, 17 Oct 2018 14:27:23 +0000 (14:27 +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.4 branch

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

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

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

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

References #4202 in 2.4 branch

git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@16906 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:51 +0000 (11:40 +0000)]
Fix undefined behaviour in ptarray_clone_deep

References #4191

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

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

References #4189

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

6 years agoSt_AsMVTGeom: Drop invalid geometries after simplification
Raúl Marín Rodríguez [Mon, 1 Oct 2018 13:44:58 +0000 (13:44 +0000)]
St_AsMVTGeom: Drop invalid geometries after simplification

Closes #4183

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

6 years agoSt_AsMVTGeom: Avoid type changes due to validation
Raúl Marín Rodríguez [Mon, 24 Sep 2018 10:06:13 +0000 (10:06 +0000)]
St_AsMVTGeom: Avoid type changes due to validation

Closes #4181

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

6 years agoChange windows to build and regress against geos 3.7.0
Regina Obe [Sun, 16 Sep 2018 03:51:54 +0000 (03:51 +0000)]
Change windows to build and regress against geos 3.7.0

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

6 years agort_pg: Fix build issue with LVM jit
Paul Ramsey [Fri, 14 Sep 2018 18:38:10 +0000 (18:38 +0000)]
rt_pg: Fix build issue with LVM jit
References #4094

git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@16803 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:38:30 +0000 (15:38 +0000)]
Use qualified names in topology extension install

References #4160

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

6 years agoHandle almost-infinite features when building table statistics in ANALYZE
Paul Ramsey [Thu, 13 Sep 2018 20:38:01 +0000 (20:38 +0000)]
Handle almost-infinite features when building table statistics in ANALYZE
References #4144

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

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

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

6 years agoTypo fix
Sandro Santilli [Thu, 13 Sep 2018 13:34:33 +0000 (13:34 +0000)]
Typo fix

[ci skip]

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

6 years agoPush version number forward one
Paul Ramsey [Wed, 12 Sep 2018 16:50:10 +0000 (16:50 +0000)]
Push version number forward one

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

6 years agoChange warning message
Paul Ramsey [Wed, 12 Sep 2018 16:39:24 +0000 (16:39 +0000)]
Change warning message

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

6 years agoPreparation for 2.4.5 release
Paul Ramsey [Wed, 12 Sep 2018 16:22:58 +0000 (16:22 +0000)]
Preparation for 2.4.5 release

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

6 years agoPreparation for 2.4.5 release
Paul Ramsey [Wed, 12 Sep 2018 16:22:11 +0000 (16:22 +0000)]
Preparation for 2.4.5 release

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

6 years agoMVT: Fix resource leak when the first geometry is NULL
Raúl Marín Rodríguez [Wed, 29 Aug 2018 09:17:33 +0000 (09:17 +0000)]
MVT: Fix resource leak when the first geometry is NULL

References #4163

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