Commit graph

10288 commits

Author SHA1 Message Date
Sandro Santilli 0025727f1e lwgeom_scale: recompute bounding box if needed
git-svn-id: http://svn.osgeo.org/postgis/trunk@13653 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-11 19:09:04 +00:00
Sandro Santilli f2cb3ac519 Move liblwgeom logging functions outside of public header (#1220)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13652 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-11 11:03:03 +00:00
Sandro Santilli 9a8fe23919 Drop unused lw_vasprintf / lw_asprintf functions from liblwgeom
git-svn-id: http://svn.osgeo.org/postgis/trunk@13651 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-11 10:13:23 +00:00
Sandro Santilli 58289f8e9a Build liblwgeom with -no-undefined flag
Doing so should report unresolved symbol references from regular
object files.

git-svn-id: http://svn.osgeo.org/postgis/trunk@13650 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-11 09:06:47 +00:00
Sandro Santilli e3e8e5fb08 Move temporal function wrappers in their own file
git-svn-id: http://svn.osgeo.org/postgis/trunk@13648 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-11 00:33:57 +00:00
Sandro Santilli fe78194124 Fix unused vars and funx warnings building against pgsql < 9.5
git-svn-id: http://svn.osgeo.org/postgis/trunk@13647 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-10 23:45:55 +00:00
Sandro Santilli ec7535cc68 Restore liblwgeom API compatibility (#3156)
Adds an lwgeom_set_debuglogger function, restore lwgeom_set_handler
to the same arguments set as with 2.1.x.
Updates all callers (2/3 of which are back to their original version).

git-svn-id: http://svn.osgeo.org/postgis/trunk@13646 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-10 23:28:01 +00:00
Sandro Santilli 850df0ddbd Convert varint test to use the new ASSERT_STRING_EQUAL macro
Also drops manual "strcmp" calls from it.

git-svn-id: http://svn.osgeo.org/postgis/trunk@13645 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-10 23:27:52 +00:00
Sandro Santilli 758ac1f412 Convert ptarray test to use the new ASSERT_STRING_EQUAL macro
Also change its suite name to "ptarray"

git-svn-id: http://svn.osgeo.org/postgis/trunk@13644 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-10 17:29:21 +00:00
Sandro Santilli f3d14ec8b3 Add lwgeom_scale and ptarray_scale with support of all dimensions (#3062)
Includes unit test.

git-svn-id: http://svn.osgeo.org/postgis/trunk@13643 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-10 17:19:57 +00:00
Sandro Santilli 793686af12 Trim refpurpose section for <-> operator, move details down
git-svn-id: http://svn.osgeo.org/postgis/trunk@13642 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-10 16:42:49 +00:00
Sandro Santilli 85687453ca Add |=| operator with CPA semantic and KNN support with PgSQL 9.5+
Includes regress test and documentation

git-svn-id: http://svn.osgeo.org/postgis/trunk@13641 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-10 16:18:37 +00:00
Sandro Santilli 57f98c9aed Ensure ST_DistanceCPA returns NULL if inputs do not meet
git-svn-id: http://svn.osgeo.org/postgis/trunk@13640 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-10 11:34:06 +00:00
Sandro Santilli 0c13b86355 Remove liblwgeom.h on make uninstall (#3155)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13639 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-10 09:26:32 +00:00
Sandro Santilli f5393ab792 Add note about minimum PROJ4 version requirement raise
git-svn-id: http://svn.osgeo.org/postgis/trunk@13636 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-10 07:31:06 +00:00
Regina Obe b2b63c0770 #3154: revise make dist to build pom and not delete.
git-svn-id: http://svn.osgeo.org/postgis/trunk@13634 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-09 22:29:34 +00:00
Sandro Santilli 5109c0d375 Fix definition of ST_DistanceCPA
git-svn-id: http://svn.osgeo.org/postgis/trunk@13632 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-09 20:01:14 +00:00
Sandro Santilli 4c2b8a4a5e ST_DistanceCPA: return distance at closest point of approach
Includes regression test and docs.

git-svn-id: http://svn.osgeo.org/postgis/trunk@13631 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-09 19:38:39 +00:00
Sandro Santilli a0d7213046 Have ST_ClosestPointOfApproach return NULL if inputs do not meet
Makes lwgeom_tcpa return -2 if inputs do not share any point in time.
Includes documentation and testcases tweaks.

git-svn-id: http://svn.osgeo.org/postgis/trunk@13630 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-09 19:21:28 +00:00
Sandro Santilli 3a13c63e04 Be less noisy on meeting trajectories, add temporal test
git-svn-id: http://svn.osgeo.org/postgis/trunk@13629 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-09 18:19:39 +00:00
Sandro Santilli 5d3bd930e0 Fix lwgeom_tcpa distance computation for degenerate cases
git-svn-id: http://svn.osgeo.org/postgis/trunk@13628 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-09 11:18:41 +00:00
Sandro Santilli dac6c62c6d Implement missing distance3d_pt_pt function
git-svn-id: http://svn.osgeo.org/postgis/trunk@13627 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-09 11:18:35 +00:00
Sandro Santilli 20b7927b7f Update in-header documentation for lwgeom_split
git-svn-id: http://svn.osgeo.org/postgis/trunk@13626 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-09 09:59:17 +00:00
Regina Obe 5ac5630195 #2906: move census functions into tiger_loader_2014.sql (needed since we took out of extension but still in docs) and will be needed for upgrades
git-svn-id: http://svn.osgeo.org/postgis/trunk@13625 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-06 04:55:14 +00:00
Regina Obe abd32f6001 #2906: Fix webiste link postgis.net (instead of postgis.org), consolidate censustract/bg/tabblock for 2014 into 2014 loader file, fix tabblock loading issue (they renamed it so its ends in 10 now)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13624 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-05 21:02:10 +00:00
Sandro Santilli f4f19b8fe6 Get "Closest Point of Approach" name straight ...
git-svn-id: http://svn.osgeo.org/postgis/trunk@13623 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 21:13:12 +00:00
Sandro Santilli bc678db2c0 Move ST_ClosestPointOfApproach tests under temporal.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@13622 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 21:03:53 +00:00
Regina Obe 6ab190c011 change extension install to go from root of tiger
git-svn-id: http://svn.osgeo.org/postgis/trunk@13621 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 20:36:57 +00:00
Regina Obe d8f191ce09 a lot of this stuff is not tiger_2011, we should just go back to single folder
git-svn-id: http://svn.osgeo.org/postgis/trunk@13620 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 20:32:56 +00:00
Paul Ramsey 74e84aeae1 #2287, fix regressions with new debug in raster
git-svn-id: http://svn.osgeo.org/postgis/trunk@13619 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 19:45:36 +00:00
Nicklas Avén 054ac575c9 Harmonize ST_SimplifyVW with ST_Simplify behavior when feeded with 0 tolerance
git-svn-id: http://svn.osgeo.org/postgis/trunk@13618 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 18:53:10 +00:00
Paul Ramsey 75e4f978a6 #2287, move debug messages in --enable-debug builds to the DEBUG PgSQL logging channel
git-svn-id: http://svn.osgeo.org/postgis/trunk@13617 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 18:43:34 +00:00
Regina Obe be80083d47 #3133 add nd index recheck tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@13616 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 08:30:13 +00:00
Regina Obe f476059c75 rework the knn recheck tests for goemetry, geography, add some nd tests for 3d. still more tests to add.
git-svn-id: http://svn.osgeo.org/postgis/trunk@13615 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 08:14:59 +00:00
Sandro Santilli b8cc4b99c1 Embed full version (and revision) in package name for dev snapshots.
git-svn-id: http://svn.osgeo.org/postgis/trunk@13614 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 08:09:52 +00:00
Paul Ramsey 5803f12184 spellign
git-svn-id: http://svn.osgeo.org/postgis/trunk@13611 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-03 23:08:51 +00:00
Paul Ramsey 9d2a64bfa4 #3133, support for recheck on M-measured geometries
git-svn-id: http://svn.osgeo.org/postgis/trunk@13610 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-03 20:53:33 +00:00
Paul Ramsey 132dbc921d Isolate <<->> in version-checked regression file
git-svn-id: http://svn.osgeo.org/postgis/trunk@13609 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-03 19:36:49 +00:00
Paul Ramsey 648a813cb0 whitespace
git-svn-id: http://svn.osgeo.org/postgis/trunk@13608 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-03 19:34:31 +00:00
Paul Ramsey 6b44574d23 #3133, add <<->> recheck supporrt and rip out <<#>>
git-svn-id: http://svn.osgeo.org/postgis/trunk@13607 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-03 19:08:23 +00:00
Nicklas Avén f5747bdbef Guard from 1 point linestrings in st_simplifyvw and st_seteffectivearea
git-svn-id: http://svn.osgeo.org/postgis/trunk@13606 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-03 18:34:38 +00:00
Paul Ramsey ea2439195b #3132, KNN box-only operator <-> for geography to support PgSQL < 9.5
git-svn-id: http://svn.osgeo.org/postgis/trunk@13605 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-03 17:05:12 +00:00
Paul Ramsey 318d910cba #3140, fix comparison function
git-svn-id: http://svn.osgeo.org/postgis/trunk@13604 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-03 13:50:28 +00:00
Paul Ramsey 0ecaf428fb quite tests a bit
git-svn-id: http://svn.osgeo.org/postgis/trunk@13603 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-03 12:52:37 +00:00
Sandro Santilli d9493cf354 Update the GEOS version warning to recommend 3.4.2
git-svn-id: http://svn.osgeo.org/postgis/trunk@13602 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-03 08:07:39 +00:00
Paul Ramsey 434fb12fd2 #3143, use right type size / simpler pointer math?
git-svn-id: http://svn.osgeo.org/postgis/trunk@13601 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-02 16:03:05 +00:00
Paul Ramsey 79cebf829c Guard against crazy selectivity numbers
git-svn-id: http://svn.osgeo.org/postgis/trunk@13600 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-01 16:15:29 +00:00
Sandro Santilli a3e647241f ST_BoundingDiagonal (#3139)
Includes tests and documentation

git-svn-id: http://svn.osgeo.org/postgis/trunk@13599 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-01 16:09:22 +00:00
Paul Ramsey ccdbd65f9e Harmonize regression test
git-svn-id: http://svn.osgeo.org/postgis/trunk@13598 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-01 13:36:24 +00:00
Paul Ramsey fe1c9f1a8b Stylistic OCD
git-svn-id: http://svn.osgeo.org/postgis/trunk@13597 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-01 13:23:47 +00:00