]> granicus.if.org Git - postgis/log
postgis
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

6 years agoEnsure index filters on expanded boxes are large enough to encompass
Paul Ramsey [Tue, 24 Jul 2018 20:55:20 +0000 (20:55 +0000)]
Ensure index filters on expanded boxes are large enough to encompass
the radii they are searching, references #4081

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

6 years agoRevert mistaken commit of lexer generated file
Paul Ramsey [Tue, 24 Jul 2018 13:34:49 +0000 (13:34 +0000)]
Revert mistaken commit of lexer generated file

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

6 years agoBetter parallel build, closes #4105
Paul Ramsey [Tue, 24 Jul 2018 13:33:53 +0000 (13:33 +0000)]
Better parallel build, closes #4105

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

6 years agoHarmonize doco with existing behaviour
Paul Ramsey [Tue, 24 Jul 2018 13:11:16 +0000 (13:11 +0000)]
Harmonize doco with existing behaviour

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

6 years agoreenable sfcgal tests for debbie.
Regina Obe [Wed, 4 Jul 2018 21:20:52 +0000 (21:20 +0000)]
reenable sfcgal tests for debbie.
Closes #4068 for PostGIS 2.4

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

6 years agoFix infinite loop in linearization of a big radius small arc
Sandro Santilli [Fri, 15 Jun 2018 22:23:30 +0000 (22:23 +0000)]
Fix infinite loop in linearization of a big radius small arc

Closes #4058 in 2.4 branch (2.4.5dev)
Includes unit test

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

6 years agoTravis: Install all required dependencies for MVT tests
Raúl Marín Rodríguez [Wed, 13 Jun 2018 14:53:37 +0000 (14:53 +0000)]
Travis: Install all required dependencies for MVT tests

Closes #4106

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

6 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:45:45 +0000 (12:45 +0000)]
Fix flags in case where a boxless geom comes in with a "has box" set of flags.
References #4077

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

6 years agoTrailing blank
Raúl Marín Rodríguez [Wed, 23 May 2018 09:40:23 +0000 (09:40 +0000)]
Trailing blank

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

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

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

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

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

6 years agoFix bug in lwgeom_median and avoid division by zero
Raúl Marín Rodríguez [Mon, 21 May 2018 10:59:22 +0000 (10:59 +0000)]
Fix bug in lwgeom_median and avoid division by zero

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

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

6 years agoFix PG 9.5 build in 2.4
Raúl Marín Rodríguez [Mon, 21 May 2018 10:41:32 +0000 (10:41 +0000)]
Fix PG 9.5 build in 2.4

References #4090
Applies the same fix as #3950
Closes https://github.com/postgis/postgis/pull/243

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

6 years agoSurvive to big max deviation values passed to ST_CurveToLine
Sandro Santilli [Sun, 20 May 2018 14:46:48 +0000 (14:46 +0000)]
Survive to big max deviation values passed to ST_CurveToLine

When using "max-deviation" tolerance type, passing a tolerance
bigger than twice the radius of any arc resulted in entering
an infinite loop, only limited by availability of RAM.

This commit fixes the bug by being careful in what's fed to
acos()...

Includes a unit test.
Closes #4031 in 2.4 branch (2.4.5dev)

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

6 years agoBackport PG 11 compatibility
Raúl Marín Rodríguez [Fri, 18 May 2018 09:10:03 +0000 (09:10 +0000)]
Backport PG 11 compatibility

Closes #4090
Closes https://github.com/postgis/postgis/pull/242

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

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

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

6 years agoDelay freeing input until processing is complete. From lucasvr.
Paul Ramsey [Mon, 7 May 2018 18:59:40 +0000 (18:59 +0000)]
Delay freeing input until processing is complete. From lucasvr.
Closes #3980

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

6 years agoEmit a cancellation error code on GEOS interruptedExceptions, for consistency
Paul Ramsey [Mon, 7 May 2018 18:47:53 +0000 (18:47 +0000)]
Emit a cancellation error code on GEOS interruptedExceptions, for consistency
with internal interruptions.
Closes #4070

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

6 years agoUpdate NEWS re #4079
Paul Ramsey [Mon, 7 May 2018 18:05:37 +0000 (18:05 +0000)]
Update NEWS re #4079

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

6 years agoensure that polygons are CW coming out of the ASMVTGEOM process
Paul Ramsey [Mon, 7 May 2018 18:04:57 +0000 (18:04 +0000)]
ensure that polygons are CW coming out of the ASMVTGEOM process
Closes #4079

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

6 years agoST_ClusterKMeans crash on NULL and EMPTY
Darafei Praliaskouski [Sat, 21 Apr 2018 13:20:22 +0000 (13:20 +0000)]
ST_ClusterKMeans crash on NULL and EMPTY

Closes #4071

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

6 years agoGuard against lookup failure, to avoid segfault in internally called case (closes...
Paul Ramsey [Mon, 16 Apr 2018 17:28:27 +0000 (17:28 +0000)]
Guard against lookup failure, to avoid segfault in internally called case (closes #4067)

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

6 years agoDisable sfcgal in make dist
Regina Obe [Tue, 10 Apr 2018 02:34:23 +0000 (02:34 +0000)]
Disable sfcgal in make dist
References #4068 for PostGIS 2.4

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

6 years agoDisable sfcgal testing until sfcgal 1.3.3 / CGAL 4.11 issue is resolved.
Regina Obe [Tue, 10 Apr 2018 02:31:42 +0000 (02:31 +0000)]
Disable sfcgal testing until sfcgal 1.3.3 / CGAL 4.11 issue is resolved.
References #4068 for PostGIS 2.4

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

6 years agorevise debbie to build against master sfcgal
Regina Obe [Mon, 9 Apr 2018 17:26:53 +0000 (17:26 +0000)]
revise debbie to build against master sfcgal
References #4068 for PostGIS 2.4

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

6 years agomissed some spots where source_folder variable is used
Regina Obe [Mon, 9 Apr 2018 15:11:17 +0000 (15:11 +0000)]
missed some spots where source_folder variable is used

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

6 years agoswitch to test against GEOS 3.6.2
Regina Obe [Mon, 9 Apr 2018 01:41:39 +0000 (01:41 +0000)]
switch to test against GEOS 3.6.2

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

6 years agofix path setting
Regina Obe [Fri, 6 Apr 2018 09:06:58 +0000 (09:06 +0000)]
fix path setting

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