]> granicus.if.org Git - postgis/log
postgis
6 years agoAdd single-sided buffer option
Daniel Baston [Thu, 15 Feb 2018 03:03:49 +0000 (03:03 +0000)]
Add single-sided buffer option

Patch from Stephen Knox, modified by me
Resolves #3989

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

6 years agoUse -p call in bison instead of name-prefix in .y file
Paul Ramsey [Tue, 13 Feb 2018 17:52:29 +0000 (17:52 +0000)]
Use -p call in bison instead of name-prefix in .y file
to allow ancient versions of bison to build parser

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

6 years agocheck_gdal: Don't assume failure when the datapath is invalid
Darafei Praliaskouski [Tue, 13 Feb 2018 13:30:33 +0000 (13:30 +0000)]
check_gdal: Don't assume failure when the datapath is invalid

Patch by Raúl Marín Rodríguez

Closes https://github.com/postgis/postgis/pull/206
Closes #4013

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

6 years agoAddress warnings across liblwgeom/ and postgis/
Darafei Praliaskouski [Tue, 13 Feb 2018 13:08:25 +0000 (13:08 +0000)]
Address warnings across liblwgeom/ and postgis/

Patch by Raúl Marín Rodríguez

Closes https://github.com/postgis/postgis/pull/207
Closes #4014

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

6 years agohard-code CGAL 4.11 to try to fix sfcgal 1.3.2 compileN
Regina Obe [Sat, 10 Feb 2018 21:08:18 +0000 (21:08 +0000)]
hard-code CGAL 4.11 to try to fix sfcgal 1.3.2 compileN

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

6 years agoFix build tests around geometric median (Raúl Marín Rodríguez)
Paul Ramsey [Thu, 8 Feb 2018 20:59:20 +0000 (20:59 +0000)]
Fix build tests around geometric median (Raúl Marín Rodríguez)
Closes https://github.com/postgis/postgis/pull/205
Closes #4012

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

6 years ago#4006, cast json/jsonb to text in ST_GeomFromGeoJSON
Paul Ramsey [Thu, 8 Feb 2018 19:11:45 +0000 (19:11 +0000)]
#4006, cast json/jsonb to text in ST_GeomFromGeoJSON

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

6 years agoAdd ST_SetBandPath (#4007) and ST_SetBandIndex (#4008). Update signature
Bborie Park [Wed, 7 Feb 2018 07:47:55 +0000 (07:47 +0000)]
Add ST_SetBandPath (#4007) and ST_SetBandIndex (#4008). Update signature
of ST_BandMetaData to include external raster band index

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

6 years agoFix versions to be compatible with what SFCGAL was compiled with.
Regina Obe [Sat, 3 Feb 2018 04:46:42 +0000 (04:46 +0000)]
Fix versions to be compatible with what SFCGAL was compiled with.

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

6 years agoApply node sorting before descent to CIRC_NODE trees for
Paul Ramsey [Fri, 2 Feb 2018 22:23:31 +0000 (22:23 +0000)]
Apply node sorting before descent to CIRC_NODE trees for
faster calculation of geography distances.
Closes #4010

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

6 years agoQuiet compiler warnings regarding abs/fabs
Paul Ramsey [Fri, 2 Feb 2018 21:42:12 +0000 (21:42 +0000)]
Quiet compiler warnings regarding abs/fabs

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

6 years agoAdd files missed in last commit
Daniel Baston [Fri, 2 Feb 2018 17:10:42 +0000 (17:10 +0000)]
Add files missed in last commit

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

6 years agoAdd ST_OrientedEnvelope
Daniel Baston [Fri, 2 Feb 2018 17:10:07 +0000 (17:10 +0000)]
Add ST_OrientedEnvelope

Resolves #3176

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

6 years agoadditional information for systemd Ubuntu
Bborie Park [Thu, 1 Feb 2018 02:32:33 +0000 (02:32 +0000)]
additional information for systemd Ubuntu

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

7 years agolwgeom_median: Avoid division by zero
Paul Ramsey [Fri, 26 Jan 2018 15:18:40 +0000 (15:18 +0000)]
lwgeom_median: Avoid division by zero
(Raúl Marín Rodríguez)
Closes #3997
Closes https://github.com/postgis/postgis/pull/198

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

7 years agolwprint_double: Avoid undefined behaviour with infinity
Paul Ramsey [Fri, 26 Jan 2018 15:10:58 +0000 (15:10 +0000)]
lwprint_double: Avoid undefined behaviour with infinity
(Raúl Marín Rodríguez)
Closes #4005
Closes https://github.com/postgis/postgis/pull/200

git-svn-id: http://svn.osgeo.org/postgis/trunk@16365 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 15:01:15 +0000 (15:01 +0000)]
lwpoly_construct_circle: Avoid division by zero (Raúl Marín Rodríguez)
Closes #4003
Closes #199

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

7 years agoAvoid memory exhaustion when building a btree index (references #4004)
Paul Ramsey [Fri, 26 Jan 2018 12:43:51 +0000 (12:43 +0000)]
Avoid memory exhaustion when building a btree index (references #4004)
From Edmund Horner

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

7 years agoRemove unneeded casts
Daniel Baston [Wed, 24 Jan 2018 01:51:53 +0000 (01:51 +0000)]
Remove unneeded casts

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

7 years ago[drone] Use trisquel2 image, test all pgsql versions and upgrades
Sandro Santilli [Mon, 22 Jan 2018 11:14:54 +0000 (11:14 +0000)]
[drone] Use trisquel2 image, test all pgsql versions and upgrades

The new docker image also uses newer GEOS (3.6.2).
References #3813 taking a step in the GEOS upgrade direction for Dronie

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

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

Fixes upgrade from 2.1 to 2.2+
References #3978 in trunk (2.5.0+)
Should be backported up to 2.2 branch

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

7 years agoInclude minor upgrade in sfcgal unpackaged upgrade
Sandro Santilli [Sat, 20 Jan 2018 09:20:44 +0000 (09:20 +0000)]
Include minor upgrade in sfcgal unpackaged upgrade

Closes #3913 again (for sfcgal) and hopefully fixes #4000

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

7 years agoImprove check for probin consistency
Sandro Santilli [Sat, 20 Jan 2018 08:32:44 +0000 (08:32 +0000)]
Improve check for probin consistency

See #4000

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

7 years ago[run_test.pl] Do not assume OPT_UPGRADE_FROM was given
Sandro Santilli [Fri, 19 Jan 2018 22:43:55 +0000 (22:43 +0000)]
[run_test.pl] Do not assume OPT_UPGRADE_FROM was given

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

7 years agoAddress configure issues for unusual CC/CFLAGS
Darafei Praliaskouski [Fri, 19 Jan 2018 17:52:33 +0000 (17:52 +0000)]
Address configure issues for unusual CC/CFLAGS

Patch by Raúl Marín Rodríguez.

Closes #3995
Closes https://github.com/postgis/postgis/pull/195

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

7 years agoFix bug in iterate_4d.
Darafei Praliaskouski [Fri, 19 Jan 2018 17:50:51 +0000 (17:50 +0000)]
Fix bug in iterate_4d.

Patch by Raúl Marín Rodríguez.

Closes #3997
Closes https://github.com/postgis/postgis/pull/196

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

7 years agoMake OPT_UPGRADE_FROM visible from subroutines (I think)
Sandro Santilli [Fri, 19 Jan 2018 16:33:47 +0000 (16:33 +0000)]
Make OPT_UPGRADE_FROM visible from subroutines (I think)

Fixes make check RUNTESTFLAGS="--sfcgal --upgrade --extension"

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

7 years agoMore debugging outputs from run_test.pl
Sandro Santilli [Fri, 19 Jan 2018 16:33:26 +0000 (16:33 +0000)]
More debugging outputs from run_test.pl

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

7 years agoProperly handle upgrade of sfcgal and topology from unpackaged.
Sandro Santilli [Fri, 19 Jan 2018 11:13:35 +0000 (11:13 +0000)]
Properly handle upgrade of sfcgal and topology from unpackaged.

Also add some more informational output

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

7 years ago[debbie] pass -v swith to run_test.pl consistently
Sandro Santilli [Fri, 19 Jan 2018 09:27:17 +0000 (09:27 +0000)]
[debbie] pass -v swith to run_test.pl consistently

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

7 years agoForgot to add pkg.m4 macro in r16324
Sandro Santilli [Thu, 18 Jan 2018 21:46:00 +0000 (21:46 +0000)]
Forgot to add pkg.m4 macro in r16324

See #3992

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

7 years agoRe-enable upgrade testing in debbie, chances are sfcgal is now fixed
Sandro Santilli [Thu, 18 Jan 2018 21:43:17 +0000 (21:43 +0000)]
Re-enable upgrade testing in debbie, chances are sfcgal is now fixed

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

7 years agoFix sfcgal upgrade in run_test.pl
Sandro Santilli [Thu, 18 Jan 2018 21:41:32 +0000 (21:41 +0000)]
Fix sfcgal upgrade in run_test.pl

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

7 years agoDon't run upgrade tests until we've resolved the sfcgal issue
Regina Obe [Thu, 18 Jan 2018 19:31:53 +0000 (19:31 +0000)]
Don't run upgrade tests until we've resolved the sfcgal issue

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

7 years agoturn off update-po for now until can figure out what is issue with transifex errors
Regina Obe [Thu, 18 Jan 2018 15:49:38 +0000 (15:49 +0000)]
turn off update-po for now until can figure out what is issue with transifex errors

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

7 years agoTweak a couple string allocation to use the "just right" pgsql call
Paul Ramsey [Thu, 18 Jan 2018 14:21:46 +0000 (14:21 +0000)]
Tweak a couple string allocation to use the "just right" pgsql call

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

7 years agoST_AsText now has second argument to limit decimal digits.
Darafei Praliaskouski [Thu, 18 Jan 2018 12:49:41 +0000 (12:49 +0000)]
ST_AsText now has second argument to limit decimal digits.

Patch by Marc Ducobu, reworked by Darafei Praliaskouski.

Closes #3986
Closes https://github.com/postgis/postgis/pull/194

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

7 years agoFormatting: remove trailing whitespace from .sql files.
Darafei Praliaskouski [Wed, 17 Jan 2018 20:39:03 +0000 (20:39 +0000)]
Formatting: remove trailing whitespace from .sql files.

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

7 years agoUse bigint in regress_lots_of_points* to make 32bit tuple alignment consistent with...
Darafei Praliaskouski [Tue, 16 Jan 2018 22:47:58 +0000 (22:47 +0000)]
Use bigint in regress_lots_of_points* to make 32bit tuple alignment consistent with 64bit.

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

7 years agoUse PKG_PROG_PKG_CONFIG macro from pkg.m4 to detect pkg-config
Sandro Santilli [Tue, 16 Jan 2018 20:47:02 +0000 (20:47 +0000)]
Use PKG_PROG_PKG_CONFIG macro from pkg.m4 to detect pkg-config

Patch by Bas Couwenberg
Closes #3992

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

7 years agointerpolate_point4d: PARANOIA check should be on raw value instead of absolute
Darafei Praliaskouski [Tue, 16 Jan 2018 17:24:00 +0000 (17:24 +0000)]
interpolate_point4d: PARANOIA check should be on raw value instead of absolute

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

7 years ago[travis] Enable -Wall
Darafei Praliaskouski [Tue, 16 Jan 2018 17:03:43 +0000 (17:03 +0000)]
[travis] Enable -Wall

Closes https://github.com/postgis/postgis/pull/193

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

7 years agoFix warnings.
Darafei Praliaskouski [Tue, 16 Jan 2018 14:21:44 +0000 (14:21 +0000)]
Fix warnings.

Remove unreachable code.
Fix pointer dereference and null check order.
Fix HAS_Z/M and g1/g2 mixup in conditions.
Fix typmod variables to be signed.
Fix & and && in conditions.
Cover ST_AsGML with tests. Check option bitmask for unsupported bits.
Cover typmod_in/typmod_out with tests.
Reorder *free* to happen before *return*.

Closes https://github.com/postgis/postgis/pull/192

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

7 years agoRemove warning: unsigned is always positive
Paul Ramsey [Tue, 16 Jan 2018 13:48:47 +0000 (13:48 +0000)]
Remove warning: unsigned is always positive

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

7 years agofix typo in condition
Regina Obe [Tue, 16 Jan 2018 08:57:12 +0000 (08:57 +0000)]
fix typo in condition

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

7 years agostrip the microversion in the doc generation of doc-html tar, pdf, epub
Regina Obe [Tue, 16 Jan 2018 08:38:16 +0000 (08:38 +0000)]
strip the microversion in the doc generation of doc-html tar, pdf, epub
if this is a development release

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

7 years agochange to call with bash instead of sh, get rid of re-autogen would have been already...
Regina Obe [Mon, 15 Jan 2018 23:23:17 +0000 (23:23 +0000)]
change to call with bash instead of sh, get rid of re-autogen would have been already done.

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

7 years agogit-svn-id: http://svn.osgeo.org/postgis/trunk@16310 b70326c6-7e19-0410-871a-916f4a2858ee
Regina Obe [Mon, 15 Jan 2018 22:53:35 +0000 (22:53 +0000)]
git-svn-id: http://svn.osgeo.org/postgis/trunk@16310 b70326c6-7e19-0410-871a-916f4a2858ee

7 years agoone more try to get this bash logic right
Regina Obe [Mon, 15 Jan 2018 22:28:08 +0000 (22:28 +0000)]
one more try to get this bash logic right

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

7 years agotry again
Regina Obe [Mon, 15 Jan 2018 22:17:44 +0000 (22:17 +0000)]
try again

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

7 years agofix typo
Regina Obe [Mon, 15 Jan 2018 22:13:42 +0000 (22:13 +0000)]
fix typo

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

7 years agoinject a dev timestamp into the docs only when in development
Regina Obe [Mon, 15 Jan 2018 22:08:09 +0000 (22:08 +0000)]
inject a dev timestamp into the docs only when in development

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

7 years agoadd missing 2.3.5, 2.3.6, 2.4.3 to extensions upgrade,
Regina Obe [Mon, 15 Jan 2018 21:24:32 +0000 (21:24 +0000)]
add missing 2.3.5, 2.3.6, 2.4.3 to extensions upgrade,
revise doc build to not have SVN placeholder (may bring back later)

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

7 years agowith_interrupt_tests using non-standard extension
Regina Obe [Mon, 15 Jan 2018 00:16:46 +0000 (00:16 +0000)]
with_interrupt_tests using non-standard extension
Patch from Greg Troxel
References #3988 for PostGIS 2.5 (trunk)

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

7 years agoSynchronize coordinate output functins.
Darafei Praliaskouski [Sun, 14 Jan 2018 16:56:14 +0000 (16:56 +0000)]
Synchronize coordinate output functins.

Closes #3987
Closes https://github.com/postgis/postgis/pull/190

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

7 years agoremove no longer valid steps from HOWTO_RELEASE
Regina Obe [Sun, 14 Jan 2018 15:37:28 +0000 (15:37 +0000)]
remove no longer valid steps from HOWTO_RELEASE
closes #3985 for PostGIS 2.5 (trunk)

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

7 years agorevise doc build to build html tar ball. Revise how to release to skip make dist...
Regina Obe [Sat, 13 Jan 2018 18:54:39 +0000 (18:54 +0000)]
revise doc build to build html tar ball.  Revise how to release to skip make dist and doc build, and to just have these downloaded from site
References #3985 for PostGIS 2.5 (trunk)

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

7 years agoAdd missing pgpath variable to doc build, get rid of invalid clause in make_dist...
Regina Obe [Sat, 13 Jan 2018 18:22:38 +0000 (18:22 +0000)]
Add missing pgpath variable to doc build, get rid of invalid clause in make_dist (-v)

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

7 years agoAdd step to make the PDF, html and other docs.
Regina Obe [Sat, 13 Jan 2018 18:16:26 +0000 (18:16 +0000)]
Add step to make the PDF, html and other docs.
References #3985 for PostGIS 2.5 (trunk)

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

7 years agorevise make_dist.sh to allow overriding the package name
Regina Obe [Sat, 13 Jan 2018 17:48:28 +0000 (17:48 +0000)]
revise make_dist.sh to allow overriding the package name
References #3985

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

7 years agono need to cd down, already in root
Regina Obe [Sat, 13 Jan 2018 07:05:29 +0000 (07:05 +0000)]
no need to cd down, already in root

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

7 years agoFirst draft
Regina Obe [Sat, 13 Jan 2018 06:59:34 +0000 (06:59 +0000)]
First draft
References #3985

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

7 years agoFix install and clean rules
Sandro Santilli [Fri, 12 Jan 2018 19:17:20 +0000 (19:17 +0000)]
Fix install and clean rules

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

7 years agoUse fixed width integers.
Darafei Praliaskouski [Fri, 12 Jan 2018 13:34:32 +0000 (13:34 +0000)]
Use fixed width integers.

Patch by Raúl Marín Rodríguez.

Closes #3970
Closes https://github.com/postgis/postgis/pull/183

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

7 years agoGenerate control file from Makefile rather than ./configure
Sandro Santilli [Fri, 12 Jan 2018 12:39:37 +0000 (12:39 +0000)]
Generate control file from Makefile rather than ./configure

Simplifies code to be more localized, fixed distclean and clean
to drop those generated files

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

7 years ago[travis] fix RUNTESTFLAGS to hold --verbose even when there is --dumprestore specified
Darafei Praliaskouski [Fri, 12 Jan 2018 10:29:34 +0000 (10:29 +0000)]
[travis] fix RUNTESTFLAGS to hold --verbose even when there is --dumprestore specified

Closes https://github.com/postgis/postgis/pull/187

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

7 years agoEncoded Polyline of EMPTY
Darafei Praliaskouski [Fri, 12 Jan 2018 08:18:39 +0000 (08:18 +0000)]
Encoded Polyline of EMPTY

Closes #3982
Closes https://github.com/postgis/postgis/pull/189

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

7 years agoWhen looking up SRID numbers, assume that spatial_ref_sys will
Paul Ramsey [Thu, 11 Jan 2018 22:09:35 +0000 (22:09 +0000)]
When looking up SRID numbers, assume that spatial_ref_sys will
share a schema will the calling function (st_transform, usually)
and look for spatial_ref_sys there. (References #3975)

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

7 years agoDo not try to install sfcgal extension when not available
Sandro Santilli [Thu, 11 Jan 2018 21:36:35 +0000 (21:36 +0000)]
Do not try to install sfcgal extension when not available

When testing upgrade from a version < 2.2.0 and requesting sfcgal
avoid to create it initially and create it directly at upgrade
time.

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

7 years agoFix editorconfig specification for perl scripts
Sandro Santilli [Thu, 11 Jan 2018 21:36:27 +0000 (21:36 +0000)]
Fix editorconfig specification for perl scripts

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

7 years agoAdd lost mention of Shoaib Burq.
Darafei Praliaskouski [Thu, 11 Jan 2018 17:41:42 +0000 (17:41 +0000)]
Add lost mention of Shoaib Burq.

Reformat Encoded Polyline out function to fit 80 columns per strk's request.

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

7 years agoDo not try to test upgrade from-to the same version
Sandro Santilli [Thu, 11 Jan 2018 16:43:53 +0000 (16:43 +0000)]
Do not try to test upgrade from-to the same version

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

7 years agoChange to have MAKE_GARDEN, MAKE_EXTENSION, DUMP_RESTORE be set in script instead...
Regina Obe [Thu, 11 Jan 2018 16:35:51 +0000 (16:35 +0000)]
Change to have MAKE_GARDEN, MAKE_EXTENSION, DUMP_RESTORE be set in script instead of the job.  Already took these out of the job.
That way people don't need to touch jenkins to fiddle with these and these aren't part of matrix (or needed to be known by postgres pre-launch)

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

7 years ago[github] enable probot/stale to take care of old pull requests
Darafei Praliaskouski [Thu, 11 Jan 2018 14:48:50 +0000 (14:48 +0000)]
[github] enable probot/stale to take care of old pull requests

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

7 years agotopology and sfcgal extension control files are created by make now
Sandro Santilli [Thu, 11 Jan 2018 14:13:45 +0000 (14:13 +0000)]
topology and sfcgal extension control files are created by make now

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

7 years agoFormatting only before toucing Encoded Polyline logic.
Darafei Praliaskouski [Thu, 11 Jan 2018 12:46:27 +0000 (12:46 +0000)]
Formatting only before toucing Encoded Polyline logic.

References #3982

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

7 years agoRefactor sfcgal extension script to use generic include
Sandro Santilli [Thu, 11 Jan 2018 05:57:47 +0000 (05:57 +0000)]
Refactor sfcgal extension script to use generic include

This is an attempt to fix upgrade test on Debbie, saying:
ERROR:  extension "postgis_sfcgal" does not exist

ref: https://debbie.postgis.net/job/PostGIS_Regress/8259/console

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

7 years agoFix generation of postgis_topology.control
Sandro Santilli [Thu, 11 Jan 2018 05:57:38 +0000 (05:57 +0000)]
Fix generation of postgis_topology.control

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

7 years agoSimplify KMeans code.
Darafei Praliaskouski [Wed, 10 Jan 2018 19:27:48 +0000 (19:27 +0000)]
Simplify KMeans code.

Remove threaded implementation.
Rewrite generic implementation to be POINT2D specific.

Closes #3977
Closes https://github.com/postgis/postgis/pull/186

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

7 years agoFix topology extension install
Sandro Santilli [Wed, 10 Jan 2018 14:56:22 +0000 (14:56 +0000)]
Fix topology extension install

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

7 years agoBack out SPI_execute change, it causes a crash in my parallel test case
Paul Ramsey [Wed, 10 Jan 2018 14:47:57 +0000 (14:47 +0000)]
Back out SPI_execute change, it causes a crash in my parallel test case

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

7 years agoChange to SPI_execute so we can run SRS query in 'read_only' mode and avoid transacti...
Paul Ramsey [Wed, 10 Jan 2018 14:01:25 +0000 (14:01 +0000)]
Change to SPI_execute so we can run SRS query in 'read_only' mode and avoid transaction issues that break parallel mode

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

7 years agoGeneralize upgrade paths extension installs
Sandro Santilli [Wed, 10 Jan 2018 11:35:22 +0000 (11:35 +0000)]
Generalize upgrade paths extension installs

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

7 years agoRemove duplicated diff output
Sandro Santilli [Tue, 9 Jan 2018 18:15:20 +0000 (18:15 +0000)]
Remove duplicated diff output

This was accidentally included with r16153 by Komzpa

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

7 years agoUpgrade SFCGAL too when requested
Sandro Santilli [Tue, 9 Jan 2018 18:06:42 +0000 (18:06 +0000)]
Upgrade SFCGAL too when requested

Might help with https://debbie.postgis.net/job/PostGIS_Regress/8247/console

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

7 years agoAlso test unexpected probin in sfcgal
Sandro Santilli [Tue, 9 Jan 2018 17:51:22 +0000 (17:51 +0000)]
Also test unexpected probin in sfcgal

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

7 years agoReally fix syntax this time (I hope)
Sandro Santilli [Tue, 9 Jan 2018 17:17:28 +0000 (17:17 +0000)]
Really fix syntax this time (I hope)

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

7 years agoFix OPERATOR CLASS syntax
Sandro Santilli [Tue, 9 Jan 2018 17:03:16 +0000 (17:03 +0000)]
Fix OPERATOR CLASS syntax

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

7 years agoDrop FAMILY specifier from operator class of brin
Sandro Santilli [Tue, 9 Jan 2018 15:56:33 +0000 (15:56 +0000)]
Drop FAMILY specifier from operator class of brin

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

7 years agoSimplify syntax for brin opclasses so upgrade script recognizes it
Sandro Santilli [Tue, 9 Jan 2018 15:04:21 +0000 (15:04 +0000)]
Simplify syntax for brin opclasses so upgrade script recognizes it

Fixes #3956 for me

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

7 years agoDo not assume CREATE OPERATOR CLASS needs to end with ');'
Sandro Santilli [Tue, 9 Jan 2018 15:04:03 +0000 (15:04 +0000)]
Do not assume CREATE OPERATOR CLASS needs to end with ');'

A single ending semicolon is enough to terminate the statement

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

7 years agoNEWS entry for KMeans init change.
Darafei Praliaskouski [Tue, 9 Jan 2018 14:06:31 +0000 (14:06 +0000)]
NEWS entry for KMeans init change.

Closes #3971

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

7 years agoHandle error from make garden too
Sandro Santilli [Tue, 9 Jan 2018 14:04:50 +0000 (14:04 +0000)]
Handle error from make garden too

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

7 years agoChange KMeans init algorithm to one with less skew.
Darafei Praliaskouski [Tue, 9 Jan 2018 14:01:58 +0000 (14:01 +0000)]
Change KMeans init algorithm to one with less skew.

Closes #3971
Closes https://github.com/postgis/postgis/pull/181

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

7 years agoFix check_all_upgrades call for Debbie
Sandro Santilli [Tue, 9 Jan 2018 13:49:40 +0000 (13:49 +0000)]
Fix check_all_upgrades call for Debbie

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

7 years agoHave Debbie test available upgrades
Sandro Santilli [Tue, 9 Jan 2018 11:03:01 +0000 (11:03 +0000)]
Have Debbie test available upgrades

See https://trac.osgeo.org/postgis/ticket/3956#comment:11

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

7 years agoAdd a test for probin correctness
Sandro Santilli [Tue, 9 Jan 2018 10:32:22 +0000 (10:32 +0000)]
Add a test for probin correctness

Hopefully helps catching the bug reported as #3956
(geog_brin_inclusion_add_value not upgraded)

NOTE: only an upgrade test would catch this

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

7 years agoRewrite to use stringbuffer instead of the mess of sprintfs
Regina Obe [Mon, 8 Jan 2018 17:09:09 +0000 (17:09 +0000)]
Rewrite to use stringbuffer instead of the mess of sprintfs
Closes #3974

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

7 years agoDisable asserts in non-debug builds
Darafei Praliaskouski [Fri, 5 Jan 2018 23:43:58 +0000 (23:43 +0000)]
Disable asserts in non-debug builds

Enable both debug and non-debug builds on travis.

Closes #3972
Closes https://github.com/postgis/postgis/pull/185

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

7 years agoDisable negative values in weighted geometric median.
Darafei Praliaskouski [Fri, 5 Jan 2018 15:22:57 +0000 (15:22 +0000)]
Disable negative values in weighted geometric median.

Reviewed by Dan Baston

Closes https://github.com/postgis/postgis/pull/176

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