]> granicus.if.org Git - postgis/log
postgis
7 years agoFix angle reminder computation
Sandro Santilli [Tue, 27 Jun 2017 12:37:07 +0000 (12:37 +0000)]
Fix angle reminder computation

Closes #3772 again (see comment:6)
Add specific testcase

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

7 years agoFix debug build
Sandro Santilli [Mon, 26 Jun 2017 20:56:28 +0000 (20:56 +0000)]
Fix debug build

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

7 years agoChange ST_Clip from Error to Notice when ST_Clip can compute no band
Regina Obe [Sat, 24 Jun 2017 04:57:54 +0000 (04:57 +0000)]
Change ST_Clip from Error to Notice when ST_Clip can compute no band
References #3730 for PostGIS 2.4

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

7 years agoUpdate 3D example and put a note about function may return the same geometry.
Regina Obe [Sat, 24 Jun 2017 04:34:19 +0000 (04:34 +0000)]
Update 3D example and put a note about function may return the same geometry.
References #3702 for PostGIS 2.4 (trunk)
Last commit was for PostGIS 2.3.3 (mistakenly noted as 2.4)
Closes #3702

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

7 years agoIncrease LIMIT clause on tests so can more readily catch issues like #3704.
Regina Obe [Sat, 24 Jun 2017 04:08:20 +0000 (04:08 +0000)]
Increase LIMIT clause on tests so can more readily catch issues like #3704.

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

7 years agoFix lwgeom_cmp return code
Sandro Santilli [Fri, 23 Jun 2017 22:16:59 +0000 (22:16 +0000)]
Fix lwgeom_cmp return code

See #3777

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

7 years agoFix handling of EMPTY geometries in btree operator
Sandro Santilli [Fri, 23 Jun 2017 14:47:13 +0000 (14:47 +0000)]
Fix handling of EMPTY geometries in btree operator

Includes regress test

See #3777

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

7 years agoFix markdown of build badges
Sandro Santilli [Fri, 23 Jun 2017 11:40:21 +0000 (11:40 +0000)]
Fix markdown of build badges

For some reason GitHub doesn't like newlines :/

NOTE: Gogs and GitLab are both happy with the previous syntax...

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

7 years agoST_AsX3D handle empty geometries
Regina Obe [Fri, 23 Jun 2017 06:00:59 +0000 (06:00 +0000)]
ST_AsX3D handle empty geometries
References #3704 for PostGIS 2.4 (trunk)

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

7 years agoEscape double quotes issue in pgsql2shp
Regina Obe [Fri, 23 Jun 2017 05:13:22 +0000 (05:13 +0000)]
Escape double quotes issue in pgsql2shp
Include test for boolean and quotes
References #3701 for PostGIS 2.4 (trunk)

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

7 years agosimplification per strk's request. I undersimplified on last commit.
Regina Obe [Wed, 21 Jun 2017 11:23:11 +0000 (11:23 +0000)]
simplification per strk's request. I undersimplified on last commit.

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

7 years agoClean up of formatting of r15406.
Regina Obe [Tue, 20 Jun 2017 23:29:37 +0000 (23:29 +0000)]
Clean up of formatting of r15406.
Add some explanation of change from CASE to UNION ALL
change SELECT ST_Dump to FROM ST_Dump per strk's suggestion
References #3764
For more details refer to https://www.postgresql.org/message-id/000001d2d5de%24d8d66170%248a832450%24%40pcorp.us
and commit that I think introduced the original problem - https://www.postgresql.org/message-id/E1cTy4K-00085H-5v@gemulon.postgresql.org

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

7 years agorefix for PostgreSQL 10 changed CASE WHEN set returning behavior
Regina Obe [Tue, 20 Jun 2017 22:16:18 +0000 (22:16 +0000)]
refix for PostgreSQL 10 changed CASE WHEN set returning behavior
Don't use CASE using UNION ALL instead with a WHERE that when resolves to false skips the output call.
Closes #3764 for PostGIS 2.4 (trunk)

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

7 years agoAvoid ever-growing postgis extension upgrade scripts
Sandro Santilli [Mon, 19 Jun 2017 20:35:21 +0000 (20:35 +0000)]
Avoid ever-growing postgis extension upgrade scripts

Fixes #3775

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

7 years agoStyle only change: remove trailing spaces
Sandro Santilli [Mon, 19 Jun 2017 20:35:14 +0000 (20:35 +0000)]
Style only change: remove trailing spaces

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

7 years agoIt's multi-arc, not multi-arch (typo)
Sandro Santilli [Mon, 19 Jun 2017 16:10:16 +0000 (16:10 +0000)]
It's multi-arc, not multi-arch (typo)

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

7 years agoAdd NEWS items about new ST_CurveToLine signature
Sandro Santilli [Mon, 19 Jun 2017 16:08:52 +0000 (16:08 +0000)]
Add NEWS items about new ST_CurveToLine signature

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

7 years agoAdd test for multi-arch curve
Sandro Santilli [Mon, 19 Jun 2017 16:07:08 +0000 (16:07 +0000)]
Add test for multi-arch curve

It shows how MaxError configuration for ST_CurveToLine is useful
as it results in different number of segments per quadrant based
on radius of each arc...

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

7 years agoImplement extended ST_CurveToLine signature
Sandro Santilli [Mon, 19 Jun 2017 16:06:59 +0000 (16:06 +0000)]
Implement extended ST_CurveToLine signature

Adds lwcurve_linearize function at liblwgeom level.
Turns lwgeom_stroke into a wrapper, keept it for backward compatibility.
Reduces allocations in linearization procedures.

Implements SYMMETRIC and RETAIN_ANGLE flags.
Implements MAX_DEVIATION, MAX_ANGLE and SEGS_PER_QUADRANT configs.

Includes unit and SQL tests.
Includes documentation.

Closes #2464 (maxError configuration is MAX_DEVIATION)
Closes #3772 (balanced output is SYMMETRIC and RETAIN_ANGLE flags)

Document the new ST_CurveToLine signature

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

7 years agoStyle only change: remove trailing blanks
Sandro Santilli [Tue, 13 Jun 2017 13:29:29 +0000 (13:29 +0000)]
Style only change: remove trailing blanks

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

7 years agoStyle-only change: remove trailing blanks
Sandro Santilli [Tue, 13 Jun 2017 13:29:21 +0000 (13:29 +0000)]
Style-only change: remove trailing blanks

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

7 years agogeomentry -> geometry
Sandro Santilli [Mon, 12 Jun 2017 15:17:00 +0000 (15:17 +0000)]
geomentry -> geometry

Thanks Andreas Schild via
https://www.transifex.com/postgis/postgis/translate/#de/using_postgis_datamanxmlpot/19191543/

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

7 years agoRemove confusing statement
Sandro Santilli [Mon, 12 Jun 2017 13:35:47 +0000 (13:35 +0000)]
Remove confusing statement

As reported by Andreas Schild in
https://www.transifex.com/postgis/postgis/translate/#de/using_postgis_datamanxmlpot/19191379/

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

7 years agoexample for ST_CreateOverview
Regina Obe [Fri, 9 Jun 2017 15:23:37 +0000 (15:23 +0000)]
example for ST_CreateOverview
and more examples for ST_GDALFromRaster that shows how to use to output to filesystem.

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

7 years agoMark functions that are currently stable or volatile (or missing parallel) as immutab...
Regina Obe [Wed, 7 Jun 2017 07:43:14 +0000 (07:43 +0000)]
Mark functions that are currently stable or volatile (or missing parallel) as immutable parallel that should have been immutable parallel.  First pass
More cleanup of missed schema qualification.
References #3769

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

7 years agohave formatting conform to editorconfig. Fix clean logic, wasn't deleting all files...
Regina Obe [Wed, 7 Jun 2017 03:33:07 +0000 (03:33 +0000)]
have formatting conform to editorconfig.  Fix clean logic, wasn't deleting all files in sql folder before.

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

7 years agoSpeep up -> Speed up
Sandro Santilli [Tue, 6 Jun 2017 12:27:11 +0000 (12:27 +0000)]
Speep up -> Speed up

Thanks Andreas Schild via
https://www.transifex.com/postgis/postgis/translate/#de/release_notesxmlpot/74993598/

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

7 years agoshp2pgsql locale fixes are #3084, not #3048
Sandro Santilli [Tue, 6 Jun 2017 12:18:31 +0000 (12:18 +0000)]
shp2pgsql locale fixes are #3084, not #3048

Thanks Andreas Schild via
https://www.transifex.com/postgis/postgis/translate/#de/release_notesxmlpot/74993584/

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

7 years agoUse SVG format for Travis badge
Sandro Santilli [Wed, 31 May 2017 15:35:55 +0000 (15:35 +0000)]
Use SVG format for Travis badge

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

7 years agoIt looks like .h.in files use spaces indent
Sandro Santilli [Mon, 29 May 2017 18:29:27 +0000 (18:29 +0000)]
It looks like .h.in files use spaces indent

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

7 years agoRequest tab indentation by default for SQL files
Sandro Santilli [Mon, 29 May 2017 18:16:59 +0000 (18:16 +0000)]
Request tab indentation by default for SQL files

Still keep sfcgal.sql and topology SQL files with spaces, to
reflect the current state.

See #3767

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

7 years agoMark all raster aggregate functions as parallel safe.
Regina Obe [Mon, 29 May 2017 18:07:55 +0000 (18:07 +0000)]
Mark all raster aggregate functions as parallel safe.
Also more schema qualification, still a lot not schema qualified
flip ST_Intersection to be immutable parallel safe
references #3752 for PostGIS 2.4 (trunk)

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

7 years agoIgnore generated geobuffer sources
Sandro Santilli [Sun, 28 May 2017 20:48:31 +0000 (20:48 +0000)]
Ignore generated geobuffer sources

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

7 years agoTopology SQL files want space indent
Sandro Santilli [Sun, 28 May 2017 20:35:56 +0000 (20:35 +0000)]
Topology SQL files want space indent

See #3767

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

7 years agoList parent partition tables and have geography_view only list things like tables...
Regina Obe [Sat, 27 May 2017 17:07:42 +0000 (17:07 +0000)]
List parent partition tables and have geography_view only list things like tables (exclude helper types)
Closes #3766

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

7 years agoreplace tabs with spaces from last commit
Regina Obe [Sat, 27 May 2017 16:40:48 +0000 (16:40 +0000)]
replace tabs with spaces from last commit

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

7 years agoChange log table name
Regina Obe [Sat, 27 May 2017 13:34:23 +0000 (13:34 +0000)]
Change log table name

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

7 years agoFix topology PostgreSQL 10 regress errors
Regina Obe [Fri, 26 May 2017 19:35:19 +0000 (19:35 +0000)]
Fix topology PostgreSQL 10 regress errors
Change CASE WHEN SRF to use constant
Evidentally they also removed a bunch of columns from sequence table struct
I'm guessing has to do with intro of IDENTITY column type, so had to revise copytopology regress
Closes #3764

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

7 years agoRevise rt_union test so passes equally on PostgreSQL 10 and lower. Lower calls SRF...
Regina Obe [Fri, 26 May 2017 06:25:16 +0000 (06:25 +0000)]
Revise rt_union test so passes equally on PostgreSQL 10 and lower.  Lower calls SRF for each column, triggering the same error notice multiple times, PostgreSQL 10 called SRF only once. Revised syntax so old versions call SRF only once.

Closes #3763 for trunk PostGIS 2.4.0

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

7 years agoRevise to use substring function instead of regexp_matches.
Regina Obe [Fri, 26 May 2017 04:41:19 +0000 (04:41 +0000)]
Revise to use substring function instead of regexp_matches.
This fixes most of the raster regress issues noted in #3759 and
Closes #3760 for PostGIS 2.4.0 (trunk)

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

7 years agorevert previous change to this file accidentally committed for #3761
Regina Obe [Fri, 26 May 2017 04:05:43 +0000 (04:05 +0000)]
revert previous change to this file accidentally committed for #3761
But this is a work in progress for different item, not ready for commit.

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

7 years agoGet rid of all if def needed for versions of PostgreSQL lower than 9.3 and GEOS 3.3
Regina Obe [Fri, 26 May 2017 04:03:17 +0000 (04:03 +0000)]
Get rid of all if def needed for versions of PostgreSQL lower than 9.3 and GEOS 3.3
Document dropping support for PostgreSQL 9.2
Note didn't change postgis/gserialized_estimate.c which also has an ifdef (leaving that for pramsey)
References #3761 for PostGIS 2.4

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

7 years ago#3758, regression failure on stats. Add test data as static COPY,
Paul Ramsey [Wed, 24 May 2017 18:55:17 +0000 (18:55 +0000)]
#3758, regression failure on stats. Add test data as static COPY,
not dynamic generation, since change in generate_series caused probs

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

7 years agoNew function ST_FrechetDistance (patch from Shinichi Sugiyama)
Regina Obe [Tue, 23 May 2017 04:39:55 +0000 (04:39 +0000)]
New function ST_FrechetDistance (patch from Shinichi Sugiyama)
Closes #3677
Closes https://github.com/postgis/postgis/pull/120

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

7 years agoAdd comment to topology schema
Sandro Santilli [Mon, 22 May 2017 16:36:11 +0000 (16:36 +0000)]
Add comment to topology schema

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

7 years agoPostgreSQL 10 beta1 fails compile in gserialized_estimate
Regina Obe [Sun, 21 May 2017 03:15:45 +0000 (03:15 +0000)]
PostgreSQL 10 beta1 fails compile in gserialized_estimate
Revise to use new api for get_attstatsslot function for PostgreSQL >= 10
References #3758

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

7 years agoRevise the PGVERSION numbering scheme so also works for PostgreSQL 10beta1 and for...
Regina Obe [Sat, 20 May 2017 17:49:52 +0000 (17:49 +0000)]
Revise the PGVERSION numbering scheme so also works for PostgreSQL 10beta1 and for all future PostgreSQL after 10
Note previous patch put in did not consider the case of when 10.11 comes, that would end up ranking higher than 11.0 (110 vs. 1011).
So we need to totally disregard the minor version for PostgreSQL  >= 10
Closes #3614

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

7 years agoFix mismatch between actual and documented output
Regina Obe [Fri, 19 May 2017 01:59:22 +0000 (01:59 +0000)]
Fix mismatch between actual and documented output
Closes https://github.com/postgis/postgis/pull/118

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

7 years agoNote about ST_Equals does not support geometry collection
Regina Obe [Fri, 19 May 2017 01:54:46 +0000 (01:54 +0000)]
Note about ST_Equals does not support geometry collection
Closes pull reguest - https://github.com/postgis/postgis/pull/131 from lb1c

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

7 years agoST_AsMVT Forgot to initialize to NULL
Björn Harrtell [Wed, 17 May 2017 18:18:17 +0000 (18:18 +0000)]
ST_AsMVT Forgot to initialize to NULL

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

7 years agoST_AsMVT avoid mutating the input LWGEOM
Björn Harrtell [Wed, 17 May 2017 17:52:38 +0000 (17:52 +0000)]
ST_AsMVT avoid mutating the input LWGEOM

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

7 years agoGist penalty speed improvement for 2d and nd points
Regina Obe [Thu, 11 May 2017 23:44:39 +0000 (23:44 +0000)]
Gist penalty speed improvement for 2d and nd points
References #3753 for PostGIS 2.4.0

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

7 years agotry to add libgdal1h dependency in attempt to fix libgdal-dev install issue on travis
Regina Obe [Thu, 11 May 2017 18:17:10 +0000 (18:17 +0000)]
try to add libgdal1h dependency in attempt to fix libgdal-dev install issue on travis

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

7 years agoST_AsMVT Document JSONB support
Björn Harrtell [Thu, 4 May 2017 20:22:16 +0000 (20:22 +0000)]
ST_AsMVT Document JSONB support
References #3749

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

7 years agoST_AsMVT Normalize output to make sure it will be identical regardless of GEOS version
Björn Harrtell [Thu, 4 May 2017 18:40:26 +0000 (18:40 +0000)]
ST_AsMVT Normalize output to make sure it will be identical regardless of GEOS version
References #3749

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

7 years agoST_AsMVT JSONB support and regression tests conditional on PG >= 94
Björn Harrtell [Thu, 4 May 2017 17:15:16 +0000 (17:15 +0000)]
ST_AsMVT JSONB support and regression tests conditional on PG >= 94
Fixes #3749

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

7 years agoUse local RUNTESTFLAGS env variable (global doesn't seem to work)
Sandro Santilli [Thu, 4 May 2017 05:07:46 +0000 (05:07 +0000)]
Use local RUNTESTFLAGS env variable (global doesn't seem to work)

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

7 years agoST_AsMVT parse JSONB into keys/values
Björn Harrtell [Wed, 3 May 2017 22:32:09 +0000 (22:32 +0000)]
ST_AsMVT parse JSONB into keys/values
References #3749

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

7 years agoST_AsMVT make sure valid/clockwise even after collection extraction
Björn Harrtell [Wed, 3 May 2017 13:38:11 +0000 (13:38 +0000)]
ST_AsMVT make sure valid/clockwise even after collection extraction

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

7 years ago@ operator not schema qualified and ~ not schema qualified in some places
Regina Obe [Wed, 3 May 2017 03:12:37 +0000 (03:12 +0000)]
@ operator not schema qualified and ~ not schema qualified in some places
apply patch with adjustments. Patch provided by Shane StClair (Axiom Data Science)
References #3750 for trunk PostGIS 2.4.0

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

8 years agoBoolean (FTLogical) should be 1 byte not 2 bytes
Regina Obe [Mon, 1 May 2017 02:39:06 +0000 (02:39 +0000)]
Boolean (FTLogical) should be 1 byte not 2 bytes
closes #3682 for PostGIS 2.4.0 (trunk)

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

8 years agoReadd homogenize and expect empty output on collapsed polygon
Björn Harrtell [Sun, 30 Apr 2017 21:36:48 +0000 (21:36 +0000)]
Readd homogenize and expect empty output on collapsed polygon

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

8 years agoFix check for empty or null geometry and more strict precision reducing
Björn Harrtell [Sun, 30 Apr 2017 21:36:42 +0000 (21:36 +0000)]
Fix check for empty or null geometry and more strict precision reducing

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

8 years agoRework ST_AsMVTGeom clipping logic
Björn Harrtell [Fri, 28 Apr 2017 21:07:50 +0000 (21:07 +0000)]
Rework ST_AsMVTGeom clipping logic
Closes #3740

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

8 years agoFix wrong char * allocation size
Björn Harrtell [Fri, 28 Apr 2017 17:27:48 +0000 (17:27 +0000)]
Fix wrong char * allocation size

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

8 years agoMake copy of string that will be deallocated and remove unused code
Björn Harrtell [Fri, 28 Apr 2017 16:16:04 +0000 (16:16 +0000)]
Make copy of string that will be deallocated and remove unused code

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

8 years agoMake copy of string that will be deallocated and make bool type clear
Björn Harrtell [Fri, 28 Apr 2017 16:10:21 +0000 (16:10 +0000)]
Make copy of string that will be deallocated and make bool type clear

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

8 years agoRevert MemoryContext refactor
Björn Harrtell [Wed, 26 Apr 2017 20:43:28 +0000 (20:43 +0000)]
Revert MemoryContext refactor

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

8 years agoRevert committ of astyle and commit the intended textstyle.sty
Regina Obe [Wed, 26 Apr 2017 03:39:41 +0000 (03:39 +0000)]
Revert committ of astyle and commit the intended textstyle.sty
References #3726 for PostGIS 2.4 trunk

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

8 years agoCast smaller integer types to the destination type
Björn Harrtell [Tue, 25 Apr 2017 21:39:58 +0000 (21:39 +0000)]
Cast smaller integer types to the destination type
Fixes #3741 and #3742

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

8 years agoComment out failing test for out of tree investigation
Björn Harrtell [Tue, 25 Apr 2017 21:14:25 +0000 (21:14 +0000)]
Comment out failing test for out of tree investigation

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

8 years agoRestore debug log and improve memory context/allocations
Björn Harrtell [Tue, 25 Apr 2017 21:10:58 +0000 (21:10 +0000)]
Restore debug log and improve memory context/allocations

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

8 years agoComment out a debug logging causing suspicious test fail
Björn Harrtell [Tue, 25 Apr 2017 20:53:32 +0000 (20:53 +0000)]
Comment out a debug logging causing suspicious test fail

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

8 years agorevise ST_Subdivide regress to use ticket instead of github pull request
Regina Obe [Tue, 25 Apr 2017 07:08:59 +0000 (07:08 +0000)]
revise ST_Subdivide regress to use ticket instead of github pull request
References #3744

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

8 years agoPDF manual from dblatex renders fancy quotes for programlisting
Regina Obe [Tue, 25 Apr 2017 07:02:38 +0000 (07:02 +0000)]
PDF manual from dblatex renders fancy quotes for programlisting
Change to use regular quotes
patch from Mike Toews
Closes #3726 for PostGIS 2.4 (trunk)

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

8 years agoST_Subdivide loses subparts of inverted geometries patch from Darafei Praliaskouski...
Regina Obe [Mon, 24 Apr 2017 18:01:43 +0000 (18:01 +0000)]
ST_Subdivide loses subparts of inverted geometries patch from Darafei Praliaskouski (Komzpa)
References #3744
changed area regress to cast to numeric so doesn't return scientific notation on windows

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

8 years agoGet rid of logic that set out_srid to same as input srid and change to not try to...
Regina Obe [Sun, 23 Apr 2017 20:21:53 +0000 (20:21 +0000)]
Get rid of logic that set out_srid to same as input srid and change to not try to transform when out_srid is unknown.
References #3738 for PostGIS 2.4 trunk

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

8 years agoFix mistakes and some rewording
Björn Harrtell [Fri, 21 Apr 2017 19:40:18 +0000 (19:40 +0000)]
Fix mistakes and some rewording

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

8 years agoExpand tests to verify redundant value encoding fix
Björn Harrtell [Fri, 21 Apr 2017 17:21:10 +0000 (17:21 +0000)]
Expand tests to verify redundant value encoding fix
Closes #3741

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

8 years agoFix ST_AsMVT string value encoding redundancy
Björn Harrtell [Fri, 21 Apr 2017 16:58:56 +0000 (16:58 +0000)]
Fix ST_AsMVT string value encoding redundancy
References #3741

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

8 years agoAdd docs about running regression tests individually
Björn Harrtell [Fri, 21 Apr 2017 16:38:33 +0000 (16:38 +0000)]
Add docs about running regression tests individually

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

8 years agoUpgrade uthash 2.0.1 -> 2.0.2
Björn Harrtell [Fri, 21 Apr 2017 16:32:26 +0000 (16:32 +0000)]
Upgrade uthash 2.0.1 -> 2.0.2

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

8 years agoAdd logging statements
Björn Harrtell [Wed, 19 Apr 2017 19:39:58 +0000 (19:39 +0000)]
Add logging statements

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

8 years agoClear hash tables after usage
Björn Harrtell [Wed, 19 Apr 2017 17:43:18 +0000 (17:43 +0000)]
Clear hash tables after usage

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

8 years agoUpdate drone url
Sandro Santilli [Wed, 12 Apr 2017 13:34:00 +0000 (13:34 +0000)]
Update drone url

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

8 years agofix variable length arrays
Sandro Santilli [Wed, 12 Apr 2017 13:33:53 +0000 (13:33 +0000)]
fix variable length arrays

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

8 years agoGet rid of knn tests where multiple records have the same distances
Regina Obe [Sat, 8 Apr 2017 12:25:39 +0000 (12:25 +0000)]
Get rid of knn tests where multiple records have the same distances
closes #3649 for 2.4

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

8 years agoAdd <float.h> include so PostGIS can compile against PostgreSQL 10
Regina Obe [Fri, 7 Apr 2017 08:28:07 +0000 (08:28 +0000)]
Add <float.h> include so PostGIS can compile against PostgreSQL 10
Closes #3721

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

8 years agoFix error in docs for ST_ClusterDBSCAN
Daniel Baston [Tue, 4 Apr 2017 17:38:47 +0000 (17:38 +0000)]
Fix error in docs for ST_ClusterDBSCAN

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

8 years agoRun "make update-pot"
Sandro Santilli [Wed, 29 Mar 2017 06:32:34 +0000 (06:32 +0000)]
Run "make update-pot"

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

8 years agoFix documentation of centroid examples.
Sandro Santilli [Wed, 29 Mar 2017 06:32:16 +0000 (06:32 +0000)]
Fix documentation of centroid examples.

Patch by Jackie Leng <jccleng@gmail.com> via
https://github.com/postgis/postgis/pull/126

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

8 years agoAvoid a few bashisms resulting in invalid SQL files
Sandro Santilli [Fri, 24 Mar 2017 20:51:33 +0000 (20:51 +0000)]
Avoid a few bashisms resulting in invalid SQL files

An echo that's supposed to output a backslash works with bash, but not
in dash. Use printf, instead.

Patch by: Markus Wanner <markus@bluegap.ch>

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

8 years agoClarify behavior of ST_IsPolygon{CW,CCW} with closed linestrings
Sandro Santilli [Mon, 20 Mar 2017 15:59:16 +0000 (15:59 +0000)]
Clarify behavior of ST_IsPolygon{CW,CCW} with closed linestrings

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

8 years agoST_IsPolygonCW doc clarifications
Daniel Baston [Mon, 20 Mar 2017 13:24:07 +0000 (13:24 +0000)]
ST_IsPolygonCW doc clarifications

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

8 years agoClean up C style
Björn Harrtell [Sat, 18 Mar 2017 11:59:23 +0000 (11:59 +0000)]
Clean up C style

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

8 years agoAdd missing static modifier
Björn Harrtell [Sat, 18 Mar 2017 11:59:04 +0000 (11:59 +0000)]
Add missing static modifier

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

8 years agoAlso consider multi variants when extracting from collections
Björn Harrtell [Fri, 17 Mar 2017 20:52:35 +0000 (20:52 +0000)]
Also consider multi variants when extracting from collections

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

8 years ago#3589, Orientation checking and forcing fuctions
Daniel Baston [Fri, 17 Mar 2017 00:28:07 +0000 (00:28 +0000)]
#3589, Orientation checking and forcing fuctions

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

8 years agoOnly keep the highest dimension geometry for collections
Björn Harrtell [Thu, 16 Mar 2017 13:08:38 +0000 (13:08 +0000)]
Only keep the highest dimension geometry for collections

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

8 years agoAvoid making session-level changes to client_min_messages on install
Daniel Baston [Wed, 15 Mar 2017 15:10:01 +0000 (15:10 +0000)]
Avoid making session-level changes to client_min_messages on install

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