]> granicus.if.org Git - postgis/log
postgis
5 years ago_ST_OrderingEquals: Avoid deserialization
Raúl Marín Rodríguez [Mon, 15 Jul 2019 10:07:03 +0000 (10:07 +0000)]
_ST_OrderingEquals: Avoid deserialization

Closes #4454
Closes https://github.com/postgis/postgis/pull/444

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

5 years agoFast Hilbert btree.
Darafei Praliaskouski [Sun, 14 Jul 2019 14:24:18 +0000 (14:24 +0000)]
Fast Hilbert btree.

Requires btree indexes to be recreated.

Closes https://github.com/postgis/postgis/pull/436
Closes #3883

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

5 years agorevise to install and test extensions
Regina Obe [Sun, 14 Jul 2019 05:06:19 +0000 (05:06 +0000)]
revise to install and test extensions

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

5 years agoJust let postgis build put wherever it wants the tmp files
Regina Obe [Sun, 14 Jul 2019 04:43:36 +0000 (04:43 +0000)]
Just let postgis build put wherever it wants the tmp files

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

5 years agorevise to have tmp folder in code folder to try to get around issue can't create...
Regina Obe [Sun, 14 Jul 2019 04:15:41 +0000 (04:15 +0000)]
revise to have tmp folder in code folder to try to get around issue can't create directory

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

5 years agoFix Berrie's badge link. Add badge links for Bessie and Bessie32. revise to 3 bots...
Regina Obe [Sun, 14 Jul 2019 02:57:13 +0000 (02:57 +0000)]
Fix Berrie's badge link.  Add badge links for Bessie and Bessie32. revise to 3 bots per line

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

5 years agoAdd berrie to list of buildbots. revise berrie script to create ~tmp folder if it...
Regina Obe [Sun, 14 Jul 2019 02:41:23 +0000 (02:41 +0000)]
Add berrie to list of buildbots.  revise berrie script to create ~tmp folder if it doesn't exist
References #4456

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

5 years agoAdd berrie's ci script
Regina Obe [Sun, 14 Jul 2019 01:14:43 +0000 (01:14 +0000)]
Add berrie's ci script
berrie is a Rasberry Pi 32-bit system running Debian Buster (10), graciously offered by Bruce Rindahl

References #4456

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

5 years agoSpeed up ST_X, ST_Y, ST_Z and ST_M
Raúl Marín Rodríguez [Fri, 12 Jul 2019 16:03:58 +0000 (16:03 +0000)]
Speed up ST_X, ST_Y, ST_Z and ST_M

Closes https://github.com/postgis/postgis/pull/435
Closes https://trac.osgeo.org/postgis/ticket/4449

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

5 years agoAdd new entries to spatial_ref_sys and handle non-EPSG authnames
Paul Ramsey [Fri, 12 Jul 2019 16:00:06 +0000 (16:00 +0000)]
Add new entries to spatial_ref_sys and handle non-EPSG authnames
Closes #4417

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

5 years agogserialized: Style changes
Raúl Marín Rodríguez [Fri, 12 Jul 2019 15:57:14 +0000 (15:57 +0000)]
gserialized: Style changes

References #4449

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

5 years agoFix Makefile override warning
Sandro Santilli [Wed, 10 Jul 2019 22:49:56 +0000 (22:49 +0000)]
Fix Makefile override warning

Fixes the following:

  warning: overriding recipe for target 'check'
  .../pgxs.mk:276: warning: ignoring old recipe for target 'check'

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

5 years agoDon't leave .bak files in staged install
Sandro Santilli [Wed, 10 Jul 2019 22:49:50 +0000 (22:49 +0000)]
Don't leave .bak files in staged install

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

5 years agoAdd example using optional bounds
Paul Ramsey [Wed, 10 Jul 2019 21:34:40 +0000 (21:34 +0000)]
Add example using optional bounds

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

5 years agoAdd ST_TileEnvelope utility function
Paul Ramsey [Wed, 10 Jul 2019 20:44:52 +0000 (20:44 +0000)]
Add ST_TileEnvelope utility function
Closes #4452

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

5 years agoSpeed up ST_GeometryType
Raúl Marín Rodríguez [Tue, 9 Jul 2019 15:43:19 +0000 (15:43 +0000)]
Speed up ST_GeometryType

Closes https://github.com/postgis/postgis/pull/434
Closes #4450

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

5 years agoFix the calculation of gserialized_max_header_size
Raúl Marín Rodríguez [Tue, 9 Jul 2019 15:33:24 +0000 (15:33 +0000)]
Fix the calculation of gserialized_max_header_size

Closes #4451
Closes https://github.com/postgis/postgis/pull/433

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

5 years agoAddress compiler warning in 32b systems
Raúl Marín Rodríguez [Tue, 9 Jul 2019 15:30:01 +0000 (15:30 +0000)]
Address compiler warning in 32b systems

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

5 years agoIgnore TiledAutoSkipNoData.tif
Paul Ramsey [Mon, 8 Jul 2019 21:08:55 +0000 (21:08 +0000)]
Ignore TiledAutoSkipNoData.tif

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

5 years agoStrip out getMachineEndian() in favour of configure-time check
Paul Ramsey [Tue, 2 Jul 2019 19:47:06 +0000 (19:47 +0000)]
Strip out getMachineEndian() in favour of configure-time check

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

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

Closes #4445

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

5 years agoImprove hash changes NEWS
Raúl Marín Rodríguez [Tue, 2 Jul 2019 08:44:46 +0000 (08:44 +0000)]
Improve hash changes NEWS

Since the output of the function has changed, any
index using it must be reindexed

References #4433

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

5 years agoget rid of -e in packaging (causing error to be thrown if tries to remove zip not...
Regina Obe [Mon, 1 Jul 2019 19:01:42 +0000 (19:01 +0000)]
get rid of -e in packaging (causing error to be thrown if tries to remove zip not present), minor adjustments to packaging.

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

5 years agofix for 32-bit hash
Regina Obe [Mon, 1 Jul 2019 18:15:25 +0000 (18:15 +0000)]
fix for 32-bit hash
Closes #4433
Closes https://github.com/postgis/postgis/pull/429

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

5 years agoFlip to 3.0.0alpha4dev
Regina Obe [Mon, 1 Jul 2019 14:03:24 +0000 (14:03 +0000)]
Flip to 3.0.0alpha4dev

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

5 years agoPrep for 3.0.0alpha3 release
Regina Obe [Mon, 1 Jul 2019 07:31:51 +0000 (07:31 +0000)]
Prep for 3.0.0alpha3 release

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

5 years agooptional cgal version
Regina Obe [Mon, 1 Jul 2019 03:37:02 +0000 (03:37 +0000)]
optional cgal version

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

5 years agomore changes to allow custom building of version items
Regina Obe [Mon, 1 Jul 2019 01:27:27 +0000 (01:27 +0000)]
more changes to allow custom building of version items

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

5 years agoType lookups in FDW fail due to sparse search_path.
Paul Ramsey [Fri, 28 Jun 2019 16:49:59 +0000 (16:49 +0000)]
Type lookups in FDW fail due to sparse search_path.
References #4440

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

5 years agoFix wagyu configure dropping CPPFLAGS
Raúl Marín Rodríguez [Fri, 28 Jun 2019 15:39:05 +0000 (15:39 +0000)]
Fix wagyu configure dropping CPPFLAGS

Closes #4443

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

5 years agoRewrite GiST penalty.
Darafei Praliaskouski [Fri, 28 Jun 2019 10:00:18 +0000 (10:00 +0000)]
Rewrite GiST penalty.

Use value of 0 as often as possible, as it's special code path in Postgres.
Fix picksplit to use correct penalty function.
Drop dead code.

Closes #4441
Closes https://github.com/postgis/postgis/pull/425

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

5 years ago[raster] Skip NODATA tiles in raster2pgsql.
Darafei Praliaskouski [Fri, 28 Jun 2019 09:42:49 +0000 (09:42 +0000)]
[raster] Skip NODATA tiles in raster2pgsql.

Closes #4442
Closes https://github.com/postgis/postgis/pull/427

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

5 years agoadd more pkgconfig and make zlib swappable
Regina Obe [Thu, 27 Jun 2019 20:15:29 +0000 (20:15 +0000)]
add more pkgconfig and make zlib swappable

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

5 years agofix typo in news
Regina Obe [Thu, 27 Jun 2019 14:15:38 +0000 (14:15 +0000)]
fix typo in news

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

5 years agoCommit missing file into SVN
Paul Ramsey [Thu, 27 Jun 2019 01:52:33 +0000 (01:52 +0000)]
Commit missing file into SVN

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

5 years agoAdd extended flags area in serialization
Paul Ramsey [Wed, 26 Jun 2019 22:34:24 +0000 (22:34 +0000)]
Add extended flags area in serialization
Closes #4438

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

5 years agoImprove output of lwgeom_summary
Sandro Santilli [Wed, 26 Jun 2019 08:04:14 +0000 (08:04 +0000)]
Improve output of lwgeom_summary

- Do not print a useless newline
- Use plural/singular correctly
- Prepend a colon to elements listing

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

5 years agoAllow FULL OUTER JOIN on geometry.
Darafei Praliaskouski [Sat, 22 Jun 2019 20:08:40 +0000 (20:08 +0000)]
Allow FULL OUTER JOIN on geometry.

Closes #4394
Closes https://github.com/postgis/postgis/pull/409

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

5 years ago[travis] Lint Python code for syntax errors
Darafei Praliaskouski [Sat, 22 Jun 2019 20:05:00 +0000 (20:05 +0000)]
[travis] Lint Python code for syntax errors

Patch by Christian Clauss

Closes #411

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

5 years agoAddress GCC 9 warning
Raúl Marín Rodríguez [Fri, 21 Jun 2019 13:45:04 +0000 (13:45 +0000)]
Address GCC 9 warning

shpopen.c:1757:22: error: ‘. Probably broken SHP file’ directive
output may be truncated writing 26 bytes into a region of size
between 25 and 48 [-Werror=format-truncation=]

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

5 years agoUse GEOSPrepare also for Points and Multipoints
Raúl Marín Rodríguez [Fri, 21 Jun 2019 10:49:32 +0000 (10:49 +0000)]
Use GEOSPrepare also for Points and Multipoints

This was removed waiting for a fix that was introduced
in GEOS 3.6, which is now the minimum required version.

Basic tests show this makes ST_Intersects with cached
points 30x faster.

Closes #3437

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

5 years agoTravis: Avoid failing both if codecov download or upload fail
Raúl Marín Rodríguez [Thu, 20 Jun 2019 16:28:41 +0000 (16:28 +0000)]
Travis: Avoid failing both if codecov download or upload fail

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

5 years ago[drone] Fix yml syntax (pull image)
Sandro Santilli [Thu, 20 Jun 2019 07:38:57 +0000 (07:38 +0000)]
[drone] Fix yml syntax (pull image)

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

5 years agoRevert r17538
Raúl Marín Rodríguez [Wed, 19 Jun 2019 16:57:22 +0000 (16:57 +0000)]
Revert r17538

Some of the bots didn't like it

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

5 years agoPROJ cache: Improve the eviction process
Raúl Marín Rodríguez [Wed, 19 Jun 2019 15:26:37 +0000 (15:26 +0000)]
PROJ cache: Improve the eviction process

Instead of selecting a projection that doesn't match
the input source srid and silently drop all cache elements
after it (potentially dropping the whole cache), we keep
a count to know how many item each element has been used
and only drop the element with less uses.

Closes #4372

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

5 years agoPROJ: Remove the extra MemoryContext for PG9.6+
Raúl Marín Rodríguez [Wed, 19 Jun 2019 15:23:33 +0000 (15:23 +0000)]
PROJ: Remove the extra MemoryContext for PG9.6+

In PG9.6+ we can allocate callbacks in the parent node
and associate them directly without creating new contextes

References #4372

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

5 years agoPROJ: Remove manual call to proj_context_set_search_paths
Raúl Marín Rodríguez [Wed, 19 Jun 2019 15:21:29 +0000 (15:21 +0000)]
PROJ: Remove manual call to proj_context_set_search_paths

AFAIK, we don't provide PROJ files inside our postgis installation
anymore and this is conflicting with PROJ6, as changing the
search path makes it unable to find the proj.db in the
default PATH.

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

5 years agoPROJ6: Use proj_trans for single points
Raúl Marín Rodríguez [Wed, 19 Jun 2019 15:19:31 +0000 (15:19 +0000)]
PROJ6: Use proj_trans for single points

It's slighly faster to use it for single points,
and improves it to match PROJ5 performance

References #4372

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

5 years agoPROJ: Use the cache memory context
Raúl Marín Rodríguez [Wed, 19 Jun 2019 15:17:19 +0000 (15:17 +0000)]
PROJ: Use the cache memory context

Before it was using malloc/free manually, so with
this change we depend fully on Postgres allocator

References #4372

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

5 years agoPROJ: Avoid double lookups
Raúl Marín Rodríguez [Wed, 19 Jun 2019 15:16:15 +0000 (15:16 +0000)]
PROJ: Avoid double lookups

References #4372

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

5 years agoIncrease size of internal PROJ cache
Raúl Marín Rodríguez [Wed, 19 Jun 2019 15:15:34 +0000 (15:15 +0000)]
Increase size of internal PROJ cache

Creating PROJ projections is specially slow for PROJ6, so
we want to avoid recalculating them as much as possible

This is specially important for ST_Buffer(geography) since
it decides the SRID, and thus the projection, dinamically
based on the geometry position around the globe.

References #4372

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

5 years agoPROJ6: Speed improvements
Raúl Marín Rodríguez [Wed, 19 Jun 2019 15:12:21 +0000 (15:12 +0000)]
PROJ6: Speed improvements

Caches more elements to avoid recalculation per row

References #4372

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

5 years agoFix NEWS related to 3.0alpha3
Raúl Marín Rodríguez [Wed, 19 Jun 2019 15:09:25 +0000 (15:09 +0000)]
Fix NEWS related to 3.0alpha3

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

5 years agolwgeom_transform_from_str: Avoid leaking resources under PROJ6+
Raúl Marín Rodríguez [Wed, 19 Jun 2019 15:07:49 +0000 (15:07 +0000)]
lwgeom_transform_from_str: Avoid leaking resources under PROJ6+

Closes #4429

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

5 years agoConfigure: Avoid unnecessary errors with PROJ6
Raúl Marín Rodríguez [Wed, 19 Jun 2019 15:02:57 +0000 (15:02 +0000)]
Configure: Avoid unnecessary errors with PROJ6

No point on checking proj_api.h for PROJ6, just check
for proj.h directly

Related to #4372

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

5 years agoBytebuffer: Ifdef unused code
Raúl Marín Rodríguez [Wed, 19 Jun 2019 11:57:19 +0000 (11:57 +0000)]
Bytebuffer: Ifdef unused code

Raises the coverage of the file
I was going to delete it, but convinced otherwise

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

5 years agoTravis: Do not fail if the coverage upload fails
Raúl Marín Rodríguez [Tue, 18 Jun 2019 15:33:32 +0000 (15:33 +0000)]
Travis: Do not fail if the coverage upload fails

In a previous commit I'd only fixed run_coverage

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

5 years agoFix error in bash preventing building
Regina Obe [Fri, 14 Jun 2019 22:52:39 +0000 (22:52 +0000)]
Fix error in bash preventing building

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

5 years agoRespect geodetics when expanding a gbox
Paul Ramsey [Fri, 14 Jun 2019 17:47:07 +0000 (17:47 +0000)]
Respect geodetics when expanding a gbox

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

5 years agoChange handling of index search tolerance, it's already in a prior function
Paul Ramsey [Fri, 14 Jun 2019 16:49:54 +0000 (16:49 +0000)]
Change handling of index search tolerance, it's already in a prior function

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

5 years agoRefactor decode_geohash_bbox
Raúl Marín Rodríguez [Fri, 14 Jun 2019 08:55:37 +0000 (08:55 +0000)]
Refactor decode_geohash_bbox

Applied suggestion by Michael Entin and some extra cleanup

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

5 years agoset defaults back to old and put projdir back in configure for some reason not pickin...
Regina Obe [Thu, 13 Jun 2019 23:54:32 +0000 (23:54 +0000)]
set defaults back to old and put projdir back in configure for some reason not picking up proj

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

5 years agolookup3: Address GCC warnings
Raúl Marín Rodríguez [Thu, 13 Jun 2019 14:54:46 +0000 (14:54 +0000)]
lookup3: Address GCC warnings

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

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

Closes #4406
Closes https://github.com/postgis/postgis/pull/420

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

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

References #4327
Closes https://github.com/postgis/postgis/pull/419/

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

5 years agoAdd tolerance from #4081 back in
Paul Ramsey [Wed, 12 Jun 2019 22:57:51 +0000 (22:57 +0000)]
Add tolerance from #4081 back in

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

5 years agoBack out another change in geography trees
Paul Ramsey [Wed, 12 Jun 2019 22:37:01 +0000 (22:37 +0000)]
Back out another change in geography trees

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

5 years agoBack out to liblwgeom_internal... so some parts of geodetic want a tight tolerance...
Paul Ramsey [Wed, 12 Jun 2019 22:29:51 +0000 (22:29 +0000)]
Back out to liblwgeom_internal... so some parts of geodetic want a tight tolerance and others wand a loose one... ug

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

5 years agoTry and back out geodetic tolerance change... this is scarily tied together with...
Paul Ramsey [Wed, 12 Jun 2019 22:24:17 +0000 (22:24 +0000)]
Try and back out geodetic tolerance change... this is scarily tied together with the cartesian tolerance

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

5 years agoFurther re-organization of gserialized, attempting to hide all knowledge
Paul Ramsey [Wed, 12 Jun 2019 22:04:58 +0000 (22:04 +0000)]
Further re-organization of gserialized, attempting to hide all knowledge
of the underlying structure behind the API

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

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

Closes https://github.com/postgis/postgis/pull/418
References #4388

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

5 years agoRaster cunit: Address scanf warning on Windows
Raúl Marín Rodríguez [Wed, 12 Jun 2019 11:38:52 +0000 (11:38 +0000)]
Raster cunit: Address scanf warning on Windows

Closes #3252

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

5 years agoTravis: Do not fail if the coverage upload fails
Raúl Marín Rodríguez [Wed, 12 Jun 2019 11:01:21 +0000 (11:01 +0000)]
Travis: Do not fail if the coverage upload fails

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

5 years agoRename update sql files
Raúl Marín Rodríguez [Wed, 12 Jun 2019 10:30:22 +0000 (10:30 +0000)]
Rename update sql files

postgis/postgis_drop_after.sql -> postgis/postgis_after_upgrade.sql
postgis/postgis_drop_before.sql -> postgis/postgis_before_upgrade.sql

Closes #4334

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

5 years agoFix upgrade issues related to renamed function parameters
Raúl Marín Rodríguez [Wed, 12 Jun 2019 09:49:20 +0000 (09:49 +0000)]
Fix upgrade issues related to renamed function parameters

References #4334
Closes https://github.com/postgis/postgis/pull/415

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

5 years agoAdd header for fabs()
Paul Ramsey [Tue, 11 Jun 2019 22:02:11 +0000 (22:02 +0000)]
Add header for fabs()

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

5 years agoCast to lwgeom for dimensionality test
Paul Ramsey [Tue, 11 Jun 2019 21:41:03 +0000 (21:41 +0000)]
Cast to lwgeom for dimensionality test

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

5 years agoUse flags values instead of raw numbers
Paul Ramsey [Tue, 11 Jun 2019 21:26:14 +0000 (21:26 +0000)]
Use flags values instead of raw numbers

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

5 years agoFix build
Paul Ramsey [Tue, 11 Jun 2019 21:24:03 +0000 (21:24 +0000)]
Fix build

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

5 years agoStrip out direct calls to FLAGS macros where easy
Paul Ramsey [Tue, 11 Jun 2019 20:49:13 +0000 (20:49 +0000)]
Strip out direct calls to FLAGS macros where easy

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

5 years agoReorg and rename gserialized files
Paul Ramsey [Tue, 11 Jun 2019 20:13:13 +0000 (20:13 +0000)]
Reorg and rename gserialized files

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

5 years agoRename cu_tests for gserialized to version 1
Paul Ramsey [Tue, 11 Jun 2019 18:39:07 +0000 (18:39 +0000)]
Rename cu_tests for gserialized to version 1

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

5 years agoPull gserialized_from_lwgeom_size() back to internal API
Paul Ramsey [Tue, 11 Jun 2019 18:31:23 +0000 (18:31 +0000)]
Pull gserialized_from_lwgeom_size() back to internal API

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

5 years agoPull gserialized_read_gbox_p and gserialized_peek_gbox_p back in favour of a public...
Paul Ramsey [Tue, 11 Jun 2019 18:24:40 +0000 (18:24 +0000)]
Pull gserialized_read_gbox_p and gserialized_peek_gbox_p back in favour of a public gserialized_fast_gbox_p. Pull liblwgeom_internal out of mvt.c

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

5 years agoPragma the pragma
Raúl Marín Rodríguez [Tue, 11 Jun 2019 18:09:50 +0000 (18:09 +0000)]
Pragma the pragma

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

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

5 years agoThou shalt not attempt to quiet warnings
Paul Ramsey [Tue, 11 Jun 2019 17:39:16 +0000 (17:39 +0000)]
Thou shalt not attempt to quiet warnings

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

5 years agoBack out usage of liblwgeom_internal.h a little more
Paul Ramsey [Tue, 11 Jun 2019 17:31:21 +0000 (17:31 +0000)]
Back out usage of liblwgeom_internal.h a little more
(MVT usage is problematical...)

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

5 years agoBack out removal of "peek" mode for gbox reading...
Paul Ramsey [Tue, 11 Jun 2019 17:27:46 +0000 (17:27 +0000)]
Back out removal of "peek" mode for gbox reading...
Seems like it is more widely used and sufficiently different
from "read" mode that it needs to stay for now

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

5 years agoLWGEOM_zmflag: Silence warning in old PG releases
Raúl Marín Rodríguez [Tue, 11 Jun 2019 16:30:53 +0000 (16:30 +0000)]
LWGEOM_zmflag: Silence warning in old PG releases

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

5 years agoHide gserialized_peek_gbox_p() inside gserialized_read_gbox_p()
Paul Ramsey [Tue, 11 Jun 2019 16:30:46 +0000 (16:30 +0000)]
Hide gserialized_peek_gbox_p() inside gserialized_read_gbox_p()

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

5 years agoRemove gserialized_get_zm() since it's barely used
Paul Ramsey [Tue, 11 Jun 2019 15:42:03 +0000 (15:42 +0000)]
Remove gserialized_get_zm() since it's barely used

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

5 years agoMove gserialized_header_size() out of the public API
Paul Ramsey [Tue, 11 Jun 2019 15:06:12 +0000 (15:06 +0000)]
Move gserialized_header_size() out of the public API

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

5 years agoPerl tidy over postgis_proc_upgrade.pl
Raúl Marín Rodríguez [Tue, 11 Jun 2019 10:20:39 +0000 (10:20 +0000)]
Perl tidy over postgis_proc_upgrade.pl

To match PostgreSQL convenctions I've used
perltidy -b -bl -nsfs -naws -l=100 -ole=unix  postgis_proc_upgrade.pl

Closes #4352

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

5 years agoUse CREATE OR REPLACE AGGREGATE for PG12+
Raúl Marín Rodríguez [Tue, 11 Jun 2019 10:18:21 +0000 (10:18 +0000)]
Use CREATE OR REPLACE AGGREGATE for PG12+

References #4352

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

5 years agoCreate a gserialized_hash function to hide serialized internals
Paul Ramsey [Mon, 10 Jun 2019 22:12:00 +0000 (22:12 +0000)]
Create a gserialized_hash function to hide serialized internals
within the gserialized module, closes #4424

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

5 years agoRemove unused prototype errorIfGeometryCollection
Paul Ramsey [Mon, 10 Jun 2019 20:32:44 +0000 (20:32 +0000)]
Remove unused prototype errorIfGeometryCollection

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

5 years agoRemove unused function gserialized_to_string
Paul Ramsey [Mon, 10 Jun 2019 20:29:39 +0000 (20:29 +0000)]
Remove unused function gserialized_to_string

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

5 years agoRemove unused function gserialized_copy
Paul Ramsey [Mon, 10 Jun 2019 20:25:59 +0000 (20:25 +0000)]
Remove unused function gserialized_copy

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

5 years agoRemove un-used prototypes for gserialized_calculate_gbox_geocentric and gserialized_c...
Paul Ramsey [Mon, 10 Jun 2019 20:23:20 +0000 (20:23 +0000)]
Remove un-used prototypes for gserialized_calculate_gbox_geocentric and gserialized_calculate_gbox_geocentric_p

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

5 years agoInclude version number in address_standardizer lib
Raúl Marín Rodríguez [Mon, 10 Jun 2019 15:12:25 +0000 (15:12 +0000)]
Include version number in address_standardizer lib

Reverts r15933
Closes https://trac.osgeo.org/postgis/ticket/4414
Closes https://github.com/postgis/postgis/pull/413

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