]> granicus.if.org Git - postgis/log
postgis
6 years agoAdd license info to tiger_geocoder code
Regina Obe [Sat, 21 Jul 2018 17:53:21 +0000 (17:53 +0000)]
Add license info to tiger_geocoder code
Closes #3287 for PostGIS 2.5.0

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

6 years agoUpdate templates
Regina Obe [Sat, 21 Jul 2018 17:38:14 +0000 (17:38 +0000)]
Update templates

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

6 years agoClarify eps units on DBSCAN. Add ST_Distance examples.
Darafei Praliaskouski [Sat, 21 Jul 2018 16:35:59 +0000 (16:35 +0000)]
Clarify eps units on DBSCAN. Add ST_Distance examples.

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

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

6 years ago32bit allocations are 4-byte aligned, not 8-byte aligned.
Darafei Praliaskouski [Sat, 21 Jul 2018 14:20:52 +0000 (14:20 +0000)]
32bit allocations are 4-byte aligned, not 8-byte aligned.

Fix 8-bit alignment assumption in padding to match assert.

Passes tests on 32bit Ubuntu Artful.

References #3994

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

6 years agoFix return type doc for ST_PixelAsPoints, ST_PixelAsPolygons, and ST_PixelAsCentroids
Darafei Praliaskouski [Sat, 21 Jul 2018 13:03:25 +0000 (13:03 +0000)]
Fix return type doc for ST_PixelAsPoints, ST_PixelAsPolygons, and ST_PixelAsCentroids

Closes #2971

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

6 years agoClarify that PG* variables are used by psql directly.
Darafei Praliaskouski [Sat, 21 Jul 2018 12:22:57 +0000 (12:22 +0000)]
Clarify that PG* variables are used by psql directly.

Closes #2628

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

6 years agoDocument precision in EncodedPolyline.
Darafei Praliaskouski [Sat, 21 Jul 2018 12:16:46 +0000 (12:16 +0000)]
Document precision in EncodedPolyline.

Closes #3631

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

6 years agoBump versions in Raster doc.
Darafei Praliaskouski [Sat, 21 Jul 2018 11:56:35 +0000 (11:56 +0000)]
Bump versions in Raster doc.

Closes 4124.

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

6 years agoCommitt same changes to concave hull tests to sfcgal as was done for regular
Regina Obe [Wed, 18 Jul 2018 22:10:33 +0000 (22:10 +0000)]
Committ same changes to concave hull tests to sfcgal as was done for regular

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

6 years agoST_AsMVTGeom: Clip using tile coordinates also for buffer 0
Raúl Marín Rodríguez [Tue, 17 Jul 2018 09:02:10 +0000 (09:02 +0000)]
ST_AsMVTGeom: Clip using tile coordinates also for buffer 0

Closes https://github.com/postgis/postgis/pull/272
References #4120

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

6 years agoMake ST_ConcaveHull always cover original geometry.
Darafei Praliaskouski [Mon, 16 Jul 2018 20:32:14 +0000 (20:32 +0000)]
Make ST_ConcaveHull always cover original geometry.

Merge whatever current implementation generates with input before returinig to user.
Add currently known problematic geometries as test cases for further rewrites.

Closes #3638
Closes #3697

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

6 years agoDisable parallel doc image generation
Darafei Praliaskouski [Sun, 15 Jul 2018 19:15:48 +0000 (19:15 +0000)]
Disable parallel doc image generation

generator.c reuses same tmp[0-9].png intermediate files and corrupts images in debian packaged documentation.

Reported on #postgresql-apt@freenode by Myon (Christoph Berg).

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

6 years agoFix raster notices.
Darafei Praliaskouski [Sat, 14 Jul 2018 22:00:33 +0000 (22:00 +0000)]
Fix raster notices.

References #3994
Closes https://github.com/postgis/postgis/pull/271

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

6 years agoFix postgis_tiger_geocoder.control generation
Darafei Praliaskouski [Fri, 13 Jul 2018 23:30:57 +0000 (23:30 +0000)]
Fix postgis_tiger_geocoder.control generation

Patch by Christoph Berg

Commit 639308e moved the postgis_tiger_geocoder.control into the
Makefile, but forgot to remove the file from configure.ac, which still
generates the file, so the Makefile rule is not effective and the
resulting .control file has the raw @EXTVERSION@ line from the .in file.

Closes #4123
Closes https://github.com/postgis/postgis/pull/270

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

6 years agoSync column names in example.
Darafei Praliaskouski [Fri, 13 Jul 2018 21:20:00 +0000 (21:20 +0000)]
Sync column names in example.

Closes #4121

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

6 years agoSP-GiST documentation.
Darafei Praliaskouski [Fri, 13 Jul 2018 21:07:19 +0000 (21:07 +0000)]
SP-GiST documentation.

Patch provided by Esteban Zimanyi.

Closes #1847

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

6 years agoSP-GiST implementation polishing
Darafei Praliaskouski [Fri, 13 Jul 2018 20:06:43 +0000 (20:06 +0000)]
SP-GiST implementation polishing

Added copyrights to headers, moved BOX3D function declarations from SP-GiST to box3d headers to suppress warnings.

References #1847
Closes https://github.com/postgis/postgis/pull/269

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

6 years agoST_AsMVTGeom: Clip using tile coordinates
Raúl Marín Rodríguez [Tue, 10 Jul 2018 14:25:07 +0000 (14:25 +0000)]
ST_AsMVTGeom: Clip using tile coordinates

Closes #4120
Closes https://github.com/postgis/postgis/pull/267

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

6 years agoImprove lwgeom_geos clarity
Daniel Baston [Tue, 10 Jul 2018 13:42:23 +0000 (13:42 +0000)]
Improve lwgeom_geos clarity

References #4027
Closes https://github.com/postgis/postgis/pull/264

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

6 years agoClean memory sanitizer warnings
Raúl Marín Rodríguez [Fri, 6 Jul 2018 14:49:32 +0000 (14:49 +0000)]
Clean memory sanitizer warnings

References #4118
Closes https://github.com/postgis/postgis/pull/265

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

6 years agoAdapt regress tests for parallel plans
Raúl Marín Rodríguez [Fri, 6 Jul 2018 13:14:06 +0000 (13:14 +0000)]
Adapt regress tests for parallel plans

Closes #4117
Closes https://github.com/postgis/postgis/pull/266

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

6 years agoMVT combine: Fix bug with invalid property values
Raúl Marín Rodríguez [Fri, 6 Jul 2018 11:21:59 +0000 (11:21 +0000)]
MVT combine: Fix bug with invalid property values

Closes #4115
Closes https://github.com/postgis/postgis/pull/263

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

6 years agoReenable debbie's SFCGAL
Regina Obe [Wed, 4 Jul 2018 20:41:42 +0000 (20:41 +0000)]
Reenable debbie's SFCGAL
References #4068

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

6 years agoFlip to 2.5.0beta2dev
Regina Obe [Tue, 3 Jul 2018 21:45:50 +0000 (21:45 +0000)]
Flip to 2.5.0beta2dev

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

6 years agoupdate doc release notes in prep for 2.5.0beta1 release
Regina Obe [Tue, 3 Jul 2018 20:04:45 +0000 (20:04 +0000)]
update doc release notes in prep for 2.5.0beta1 release

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

6 years agoPrepping for 2.5.0beta1 release
Regina Obe [Tue, 3 Jul 2018 18:04:37 +0000 (18:04 +0000)]
Prepping for 2.5.0beta1 release

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

6 years agoGet rid of the ifdefs around the functions, these have always existed but were static...
Regina Obe [Sun, 1 Jul 2018 16:30:51 +0000 (16:30 +0000)]
Get rid of the ifdefs around the functions, these have always existed but were static before.
Closes #4114

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

6 years agofix typos in last credits
Regina Obe [Sun, 1 Jul 2018 15:42:04 +0000 (15:42 +0000)]
fix typos in last credits

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

6 years agoMinor update to the credits
Regina Obe [Sun, 1 Jul 2018 15:39:03 +0000 (15:39 +0000)]
Minor update to the credits

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

6 years agospgist 2d and 3d support for PG 11+
Regina Obe [Sun, 1 Jul 2018 15:34:22 +0000 (15:34 +0000)]
spgist 2d and 3d support for PG 11+
references #1847
Credits: Arthur Lesuisse, Esteban Zimanyi from Université Libre de Bruxelles (ULB)  and Darafei Praliaskouski
also added logic to exclude PG < 11 from including this functionality
Closes https://github.com/postgis/postgis/pull/258

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

6 years agoMake test sort order deterministic by using lateral.
Regina Obe [Sat, 30 Jun 2018 21:59:42 +0000 (21:59 +0000)]
Make test sort order deterministic by using lateral.
Closes #4111
(Note they are going to fix the issue upstream that made this fail on stable 10, but I wanted to change this test anyway)

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

6 years agoAdd spaces in documentation
Daniel Baston [Tue, 26 Jun 2018 14:55:00 +0000 (14:55 +0000)]
Add spaces in documentation

Patch from hannes
Closes https://gitlab.com/postgis/postgis/merge_requests/10

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

6 years agofix spacing
Regina Obe [Mon, 18 Jun 2018 21:47:12 +0000 (21:47 +0000)]
fix spacing

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

6 years agoFix availability note of ST_OrientedEnvelope so it shows in new functions section
Regina Obe [Mon, 18 Jun 2018 21:46:30 +0000 (21:46 +0000)]
Fix availability note of ST_OrientedEnvelope so it shows in new functions section

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

6 years agoLink to ST_OrientedEnvelope from ST_Envelope
Regina Obe [Sun, 17 Jun 2018 09:33:12 +0000 (09:33 +0000)]
Link to ST_OrientedEnvelope from ST_Envelope

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

6 years agoAdd graphical examples for ST_Envelope and ST_OrientedEnvelope
Regina Obe [Sun, 17 Jun 2018 08:41:15 +0000 (08:41 +0000)]
Add graphical examples for ST_Envelope and ST_OrientedEnvelope

git-svn-id: http://svn.osgeo.org/postgis/trunk@16620 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:16:06 +0000 (22:16 +0000)]
Fix infinite loop in linearization of a big radius small arc

Ref #4058 for trunk (2.5.0dev)
Includes unit test

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

6 years agoMVT tests: Remove ST_Normalize calls
Raúl Marín Rodríguez [Wed, 13 Jun 2018 14:19:49 +0000 (14:19 +0000)]
MVT tests: Remove ST_Normalize calls

References #4106

git-svn-id: http://svn.osgeo.org/postgis/trunk@16616 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:16:16 +0000 (14:16 +0000)]
Travis: Install all required dependencies for MVT tests

References #4106

git-svn-id: http://svn.osgeo.org/postgis/trunk@16615 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 01:38:11 +0000 (01:38 +0000)]
Fix flags in case where a boxless geom comes in with a "has box" set of flags.
References #4707

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

6 years agoRemove erroneous commutator definitions for over(left/right/above/below)
Paul Ramsey [Wed, 6 Jun 2018 18:01:15 +0000 (18:01 +0000)]
Remove erroneous commutator definitions for over(left/right/above/below)
operators. Closes #4088

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

6 years agoDebbie / Postgres 9.4 calls function twice.
Darafei Praliaskouski [Wed, 6 Jun 2018 09:29:33 +0000 (09:29 +0000)]
Debbie / Postgres 9.4 calls function twice.

References #4103

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

6 years agoST_PointOnSurface handling of invalid.
Darafei Praliaskouski [Tue, 5 Jun 2018 17:11:34 +0000 (17:11 +0000)]
ST_PointOnSurface handling of invalid.

Prints a loud notice and passes input through MakeValid.

Closes #4103
Closes https://github.com/postgis/postgis/pull/257

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

6 years agoUnify geometry centroid functions
Darafei Praliaskouski [Tue, 5 Jun 2018 14:40:45 +0000 (14:40 +0000)]
Unify geometry centroid functions

Make ST_Centroid call lwgeom_centroid.

Closes #3960
Closes https://github.com/postgis/postgis/pull/256

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

6 years agoRemove mentions of GEOS <= 3.5.0.
Darafei Praliaskouski [Tue, 5 Jun 2018 12:28:44 +0000 (12:28 +0000)]
Remove mentions of GEOS <= 3.5.0.

PostGIS requires 3.5.0 already.

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

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

6 years agoST_ClusterKMeans: handle effective K=0 when all the inputs are EMPTY
Darafei Praliaskouski [Sun, 3 Jun 2018 09:11:32 +0000 (09:11 +0000)]
ST_ClusterKMeans: handle effective K=0 when all the inputs are EMPTY

Closes #4101
Closes https://github.com/postgis/postgis/pull/254

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

6 years agoLet KMeans init even if there are only duplicates in input
Darafei Praliaskouski [Sat, 2 Jun 2018 12:09:35 +0000 (12:09 +0000)]
Let KMeans init even if there are only duplicates in input

Added reporting of duplicates noticed on init pass.

Closes #4100
Closes https://github.com/postgis/postgis/pull/253

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

6 years agochange to version 2.5.0 and have table generated be 25
Regina Obe [Sat, 2 Jun 2018 05:39:23 +0000 (05:39 +0000)]
change to version 2.5.0 and have table generated be 25

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

6 years ago[doc] fix invalid xml
Darafei Praliaskouski [Fri, 1 Jun 2018 13:38:40 +0000 (13:38 +0000)]
[doc] fix invalid xml

make check skips it for me locally for some reason.

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

6 years ago[doc] Update index usage troubleshooting section
Darafei Praliaskouski [Fri, 1 Jun 2018 13:29:57 +0000 (13:29 +0000)]
[doc] Update index usage troubleshooting section

Contains typo fixes reported by Yaroslav Schekin in https://t.me/pgsql

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

6 years ago[doc] fix xml structure
Darafei Praliaskouski [Fri, 1 Jun 2018 11:20:23 +0000 (11:20 +0000)]
[doc] fix xml structure

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

6 years ago[doc] dbmanagement manual pass
Darafei Praliaskouski [Fri, 1 Jun 2018 11:00:24 +0000 (11:00 +0000)]
[doc] dbmanagement manual pass

Removed some dust, references to PostGIS 1 and Postgres 7.

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

6 years agoAdd entry about upgrade script symlinks
Sandro Santilli [Thu, 31 May 2018 10:20:24 +0000 (10:20 +0000)]
Add entry about upgrade script symlinks

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

6 years agoFix typo in drawPoint() in doc images generator.
Darafei Praliaskouski [Wed, 30 May 2018 18:32:08 +0000 (18:32 +0000)]
Fix typo in drawPoint() in doc images generator.

Issue introduced in r16296

Closes #4098
Closes https://github.com/postgis/postgis/pull/252

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

6 years agoFix function comment for lw_arc_center
Sandro Santilli [Tue, 29 May 2018 08:06:15 +0000 (08:06 +0000)]
Fix function comment for lw_arc_center

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

6 years agoFlip to 2.5.0beta1dev
Regina Obe [Mon, 28 May 2018 23:45:38 +0000 (23:45 +0000)]
Flip to 2.5.0beta1dev

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

6 years agoAdd in Enhancements and Fixes section for PostGIS 2.5.0alpha
Regina Obe [Mon, 28 May 2018 23:21:38 +0000 (23:21 +0000)]
Add in Enhancements and Fixes section for PostGIS 2.5.0alpha

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

6 years agoIn prep for PostGIS 2.5.0alpha release
Regina Obe [Mon, 28 May 2018 23:02:46 +0000 (23:02 +0000)]
In prep for PostGIS 2.5.0alpha release

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

6 years agoput back pgis_abs_in and pgis_abs_out as stubs to maintain lib compatibility with...
Regina Obe [Mon, 28 May 2018 22:49:35 +0000 (22:49 +0000)]
put back pgis_abs_in and pgis_abs_out as stubs to maintain lib compatibility with PostGIS 2.4 and below
References #4097

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

6 years agoRemove trailing blank
Raúl Marín Rodríguez [Wed, 23 May 2018 09:33:47 +0000 (09:33 +0000)]
Remove trailing blank

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

6 years agoInconsistent results from qsort callback (references #4093)
Paul Ramsey [Tue, 22 May 2018 19:35:21 +0000 (19:35 +0000)]
Inconsistent results from qsort callback (references #4093)

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

6 years agort_pg: Fix build issue with LVM jit
Raúl Marín Rodríguez [Tue, 22 May 2018 16:21:51 +0000 (16:21 +0000)]
rt_pg: Fix build issue with LVM jit

Patch by Laurenz Albe (modified to include CFLAGS too)

Closes #4094
Related to #4060

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

6 years agoAddress compiler warnings and add -Wextra to travis
Raúl Marín Rodríguez [Mon, 21 May 2018 15:22:38 +0000 (15:22 +0000)]
Address compiler warnings and add -Wextra to travis

Closes #4091
Closes https://github.com/postgis/postgis/pull/246

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

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

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

6 years agoWrong code-comment regarding front/back of BOX3D
Darafei Praliaskouski [Thu, 10 May 2018 08:07:13 +0000 (08:07 +0000)]
Wrong code-comment regarding front/back of BOX3D

Patch by Matthias Bay

Closes #4084
Closes https://github.com/postgis/postgis/pull/241

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

6 years agoSupport for PostgreSQL 9.5 use Int64GetDatum instead of UInt64GetDatum for < 9.6
Regina Obe [Wed, 9 May 2018 10:21:03 +0000 (10:21 +0000)]
Support for PostgreSQL 9.5 use Int64GetDatum instead of UInt64GetDatum for < 9.6
Revise tests to disable outdb first so that error test consitently fails even if default state is to have out db allowed
Closes #4083 for PostGIS 2.5.0
Closes https://github.com/postgis/postgis/pull/240

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

6 years agoUpdated docs and NEWS for various changes
Bborie Park [Wed, 9 May 2018 00:15:57 +0000 (00:15 +0000)]
Updated docs and NEWS for various changes

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

6 years agoAdd ST_BandFileSize and ST_BandFileTimestamp,
Regina Obe [Tue, 8 May 2018 22:37:41 +0000 (22:37 +0000)]
Add ST_BandFileSize and ST_BandFileTimestamp,
           extend ST_BandMetadata (Even Rouault)
Closes #4083 for PostGIS 2.5.0
Closes https://github.com/postgis/postgis/pull/240

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

6 years agoPatch from Even Rouault - remove useless cd, that prevent Travis-CI to work from...
Regina Obe [Tue, 8 May 2018 21:09:54 +0000 (21:09 +0000)]
Patch from Even Rouault - remove useless cd, that prevent Travis-CI to work from developer accounts
Was part of https://github.com/postgis/postgis/pull/240

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

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

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

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

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

6 years agoAdd enhancement line to reference
Paul Ramsey [Mon, 7 May 2018 18:19:21 +0000 (18:19 +0000)]
Add enhancement line to reference

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

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

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

6 years agoFollow up to fix review comment
Björn Harrtell [Sun, 6 May 2018 17:22:27 +0000 (17:22 +0000)]
Follow up to fix review comment
References #4076

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

6 years agoReplace GEOSPreparedContains with internal winding number algorithm
Björn Harrtell [Sun, 6 May 2018 16:34:55 +0000 (16:34 +0000)]
Replace GEOSPreparedContains with internal winding number algorithm

References #4076

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

6 years ago[doc] reword ST_QuantizeCoordinates doc
Darafei Praliaskouski [Tue, 24 Apr 2018 14:39:39 +0000 (14:39 +0000)]
[doc] reword ST_QuantizeCoordinates doc

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

6 years agoSurvive to big max deviation values passed to ST_CurveToLine
Sandro Santilli [Tue, 24 Apr 2018 13:26:49 +0000 (13:26 +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.
References #4031 for trunk (2.5.0dev) - to be backported

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

6 years agoGEOS ClipByBox2D stub notice now includes ticket link
Darafei Praliaskouski [Tue, 24 Apr 2018 11:52:20 +0000 (11:52 +0000)]
GEOS ClipByBox2D stub notice now includes ticket link

Closes #4039
Closes https://github.com/postgis/postgis/pull/239

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

6 years agoST_ClusterKMeans k=2 is now faster and converges better.
Darafei Praliaskouski [Sat, 21 Apr 2018 12:36:51 +0000 (12:36 +0000)]
ST_ClusterKMeans k=2 is now faster and converges better.

This discovered and fixes issue in NULL handling.

Closes #4071
Closes https://github.com/postgis/postgis/pull/238

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

6 years agoRemove PG 9.3 from Drone matrix
Raúl Marín Rodríguez [Tue, 17 Apr 2018 10:20:22 +0000 (10:20 +0000)]
Remove PG 9.3 from Drone matrix

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

6 years agoFix dronie build
Raúl Marín Rodríguez [Tue, 17 Apr 2018 10:05:54 +0000 (10:05 +0000)]
Fix dronie build

References #4060

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

6 years agoFix travis build (C90 compatibility)
Raúl Marín Rodríguez [Tue, 17 Apr 2018 09:07:21 +0000 (09:07 +0000)]
Fix travis build (C90 compatibility)

References #4060
Closes https://github.com/postgis/postgis/pull/236

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

6 years agoPostgis module: Pass CFLAGS to PGXS
Raúl Marín Rodríguez [Tue, 17 Apr 2018 09:02:22 +0000 (09:02 +0000)]
Postgis module: Pass CFLAGS to PGXS

References #4060

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

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

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

6 years agoput back brin check. Brin doesn't work for < 9.5
Regina Obe [Mon, 16 Apr 2018 10:35:25 +0000 (10:35 +0000)]
put back brin check.  Brin doesn't work for < 9.5

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

6 years agoAdd doc notes, NEWS, and regress tests for json/jsonb (also add missing credits to...
Regina Obe [Mon, 16 Apr 2018 08:20:29 +0000 (08:20 +0000)]
Add doc notes, NEWS, and regress tests for json/jsonb (also add missing credits to NEWS)
Closes #4006 for 2.5.0

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

6 years agoDrop support in configure for PostgreSQL < 9.4 and GEOS < 3.5
Regina Obe [Mon, 16 Apr 2018 07:54:21 +0000 (07:54 +0000)]
Drop support in configure for PostgreSQL < 9.4 and GEOS < 3.5
References #4096

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

6 years agorevise to handle use of SOURCE_FOLDER if passed in as an arg
Regina Obe [Wed, 11 Apr 2018 21:02:41 +0000 (21:02 +0000)]
revise to handle use of SOURCE_FOLDER if passed in as an arg

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

6 years agoDisable sfcgal in make dist and regress testing until sfcgal compile issue
Regina Obe [Tue, 10 Apr 2018 04:06:01 +0000 (04:06 +0000)]
Disable sfcgal in make dist and regress testing until sfcgal compile issue
 for CGAL 4.11 / SFCGAL 1.3.3 against PostGIS is fixed
References #4068 for PostGIS 2.5

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

6 years ago#4063, optional false origin point for use in ST_Scale
Paul Ramsey [Fri, 6 Apr 2018 18:52:17 +0000 (18:52 +0000)]
#4063, optional false origin point for use in ST_Scale

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

6 years agoDo not try testing downgrades
Sandro Santilli [Fri, 6 Apr 2018 10:28:00 +0000 (10:28 +0000)]
Do not try testing downgrades

Closes #4064

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

6 years agoAdd upgrade paths for newly released stable versions
Regina Obe [Fri, 6 Apr 2018 07:13:13 +0000 (07:13 +0000)]
Add upgrade paths for newly released stable versions

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

6 years agoGEOSNode is not robust, avoid it in MakeValid.
Darafei Praliaskouski [Fri, 30 Mar 2018 19:05:56 +0000 (19:05 +0000)]
GEOSNode is not robust, avoid it in MakeValid.

Thread: https://lists.osgeo.org/pipermail/postgis-devel/2018-March/027078.html

Closes #4601
Closes https://github.com/postgis/postgis/pull/235

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

6 years agoAvoid incompatible automatic variable length array
Sandro Santilli [Wed, 28 Mar 2018 15:01:18 +0000 (15:01 +0000)]
Avoid incompatible automatic variable length array

Patch by vmo
Closes #4059

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

6 years agoAllow running topology perf test with run_test.pl
Sandro Santilli [Wed, 28 Mar 2018 15:01:12 +0000 (15:01 +0000)]
Allow running topology perf test with run_test.pl

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

6 years agoFix crasher in raster when fed an empty raster (note was tempted to change the def...
Regina Obe [Wed, 28 Mar 2018 08:37:30 +0000 (08:37 +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.5 (trunk),
also minor doc fix references #2925 for PostGIS 2.5 (trunk)

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

6 years agoST_CPAWithin precision fix
Darafei Praliaskouski [Tue, 27 Mar 2018 17:31:51 +0000 (17:31 +0000)]
ST_CPAWithin precision fix

Closes #4032
Closes https://github.com/postgis/postgis/pull/234
References #4025

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

6 years agoRevise postgis extension helper functions to support PostgreSQL 11+ (proisagg replac...
Regina Obe [Sat, 24 Mar 2018 04:58:08 +0000 (04:58 +0000)]
Revise postgis extension helper functions to support PostgreSQL 11+ (proisagg  replaced with prokind)
References #4044 for PostGIS 2.5 (trunk)

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

6 years agonote in docs about soft upgrade that legacy.sql must be rerun for each minor.
Regina Obe [Sat, 24 Mar 2018 02:12:46 +0000 (02:12 +0000)]
note in docs about soft upgrade that legacy.sql must be rerun for each minor.
References #2960 for PostGIS 2.5.0 (trunk)

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

6 years agoAvoid dropping SRID in ST_ClusterIntersecting
Daniel Baston [Fri, 23 Mar 2018 20:40:20 +0000 (20:40 +0000)]
Avoid dropping SRID in ST_ClusterIntersecting

There was not actually a problem with ST_ClusterWithin, and the previous
commit did not resolve the problem with ST_ClusterIntersecting.

References #4055

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