Commit graph

788 commits

Author SHA1 Message Date
Nicklas Avén d273edb148 Added optional geometry size in TWKB. Also reworked the code so passing around **buf instead of *buf. Also affects the varInt code
git-svn-id: http://svn.osgeo.org/postgis/trunk@12907 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-22 20:39:50 +00:00
Regina Obe 4a057813c3 #2870 put in change notice in sql geograpy(bytea) has changed, put in regression test
git-svn-id: http://svn.osgeo.org/postgis/trunk@12889 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-16 05:15:02 +00:00
Sandro Santilli 12c9a35d79 Honour verbosity flag on sql file load failure (see #2854)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12840 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-29 14:50:30 +00:00
Regina Obe 81fb25ac44 change to force linux linebreaks
git-svn-id: http://svn.osgeo.org/postgis/trunk@12823 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-24 21:58:14 +00:00
Regina Obe 9ee18edce3 set to platform dependent to see if this fixes issue on Linux
git-svn-id: http://svn.osgeo.org/postgis/trunk@12822 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-24 21:44:03 +00:00
Regina Obe 2ee85feaa4 #899 shp2pgsql attribute names mapping (including test
git-svn-id: http://svn.osgeo.org/postgis/trunk@12821 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-24 17:37:10 +00:00
Sandro Santilli 53f6784848 Drop dependency of estimation test on XML type (#2151)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12816 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-22 08:52:01 +00:00
Sandro Santilli 5274a041e6 Raise statistic target during estimation test
Possibly fixes #2851 (probability is statitics based)

git-svn-id: http://svn.osgeo.org/postgis/trunk@12815 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-22 08:41:46 +00:00
Sandro Santilli 7f24e6b2d0 Generalize estimator code to also work with expressional indexes
Improves raster selectivity estimator (#2839)
Includes regression tests

git-svn-id: http://svn.osgeo.org/postgis/trunk@12814 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-21 16:39:56 +00:00
Sandro Santilli b5a28c4874 Add test for selectivity estimator
git-svn-id: http://svn.osgeo.org/postgis/trunk@12813 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-21 16:12:40 +00:00
Sandro Santilli f945e599ad Add support for sfgal in run_test --extension
git-svn-id: http://svn.osgeo.org/postgis/trunk@12766 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-08 09:49:45 +00:00
Sandro Santilli 236881f97e Added support for encoded_polyline input/output (#2349)
Allow to convert from Encoded Polyline to LineString.
Useful for storing routes from Osrm or Google into PostGIS.

See http://developers.google.com/maps/documentation/utilities/polylinealgorithm

Contributed by Kashif Rasul <kashif.rasul@gmail.com>

Includes unit and regress tests.
Includes documentation.

Signed-off-by: Sandro Santilli <strk@keybit.net>

git-svn-id: http://svn.osgeo.org/postgis/trunk@12750 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-07 10:21:22 +00:00
Regina Obe 33fe338de2 #2794 sfcgal regress sfcgal doesn't install if RUNTESTFLAGS is set by user because trying to reuse that flag. Define new flag SFCGALTESTFLAGS and pass that along.
git-svn-id: http://svn.osgeo.org/postgis/trunk@12703 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-29 21:21:57 +00:00
Regina Obe 0a2e763887 #2488: patch from Vincent Mora to make sfcgal_tickets endian agnostic
git-svn-id: http://svn.osgeo.org/postgis/trunk@12702 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-29 18:38:55 +00:00
Paul Ramsey d60b54a657 #2704, ST_GeomFromGML() does not work properly with array of gml:pos
git-svn-id: http://svn.osgeo.org/postgis/trunk@12685 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-27 18:34:37 +00:00
Paul Ramsey 7d8fcb2db7 #2788 Warning on PG_RETURN_HEAPTUPLEHEADER building against PgSQL 9.
git-svn-id: http://svn.osgeo.org/postgis/trunk@12681 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-27 18:12:55 +00:00
Paul Ramsey 3e9260e8a5 #2712 ST_Segmentize exception on Empty input: getPoint4d_p: point offset out of range
git-svn-id: http://svn.osgeo.org/postgis/trunk@12670 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-26 22:43:22 +00:00
Sandro Santilli d3205cf402 Fix SFCGAL tests to work with all versions (#2755)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12654 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-25 08:37:28 +00:00
Sandro Santilli 77a5d18a7b Deprecate ST_Mem_Size, welcome ST_MemSize
Closes #2769

git-svn-id: http://svn.osgeo.org/postgis/trunk@12629 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-20 10:12:35 +00:00
Sandro Santilli 0c78f7cb7d Remove debugging print from run_test.pl
git-svn-id: http://svn.osgeo.org/postgis/trunk@12503 b70326c6-7e19-0410-871a-916f4a2858ee
2014-05-05 08:24:49 +00:00
Regina Obe 0069452517 #2685: get rid of COPY lines (we are now stripping them since 9.4 adds it also when enable notice only)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12483 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-21 08:28:56 +00:00
Regina Obe 7d117c48f6 #2685: ignore COPY notice (new feature in 9.4 tripping up regress checking)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12482 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-21 08:12:06 +00:00
Sandro Santilli 7fabc19295 Fix testsuite with custom POSTGIS_REGRESS_DB set
git-svn-id: http://svn.osgeo.org/postgis/trunk@12468 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-11 09:26:39 +00:00
Sandro Santilli ab723c50d7 Allow specifying name of regress database on make check
Honours a POSTGIS_REGRESS_DB environment variable

git-svn-id: http://svn.osgeo.org/postgis/trunk@12452 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-10 09:54:02 +00:00
Sandro Santilli 8d9c47709f Clean files generated on 'make gaden'
And tell git to ignore them

git-svn-id: http://svn.osgeo.org/postgis/trunk@12439 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-08 08:49:53 +00:00
Nicklas Avén aef5b6883a #2672 regresstest
git-svn-id: http://svn.osgeo.org/postgis/trunk@12436 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-07 19:15:19 +00:00
Paul Ramsey 25784e8158 #2704, ST_DumpPoints of EMPTY geometries crashes server
git-svn-id: http://svn.osgeo.org/postgis/trunk@12430 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-07 14:44:44 +00:00
Sandro Santilli 8e1c04cc62 Echo input during garden testing
git-svn-id: http://svn.osgeo.org/postgis/trunk@12428 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-07 14:39:46 +00:00
Sandro Santilli 3ce14b0f6a Fix "make garden" rule (#2701)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12424 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-05 12:30:21 +00:00
Sandro Santilli 957e183503 Fix type detection in tables with null geometries (#2700)
Includes testcase

git-svn-id: http://svn.osgeo.org/postgis/trunk@12421 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-04 11:47:12 +00:00
Paul Ramsey 8070d71422 #2697, ST_GeomFromGeoJSON() of invalid GeoJSON Polygons crashes server process
git-svn-id: http://svn.osgeo.org/postgis/trunk@12411 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-03 21:53:47 +00:00
Sandro Santilli 6f49219756 Also find uninstall_legacy.sql in :scriptdir, use \cd for 9.1 support
git-svn-id: http://svn.osgeo.org/postgis/trunk@12382 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-28 20:11:10 +00:00
Sandro Santilli b7c50bc1f7 Have regress/legacy.sql truncate spatial_ref_sys
git-svn-id: http://svn.osgeo.org/postgis/trunk@12376 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-28 19:00:26 +00:00
Sandro Santilli a70833060c Allow using :scriptdir variable in regress tests
Have legacy.sql use it to find legacy.sql.
The run_test.pl script sets it using pg_config when --extensions
switch is given.

git-svn-id: http://svn.osgeo.org/postgis/trunk@12375 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-28 18:57:46 +00:00
Paul Ramsey 7b78b848f0 #2687, pass tests when both raster and vector installed
git-svn-id: http://svn.osgeo.org/postgis/trunk@12374 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-28 13:07:29 +00:00
Olivier Courtin 5499011b8c #2681 fix.
git-svn-id: http://svn.osgeo.org/postgis/trunk@12361 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-26 10:11:51 +00:00
Paul Ramsey c660d60962 #2619, SIGSEGV in ST_GeomFromGeoJSON with empty list of coordinates
git-svn-id: http://svn.osgeo.org/postgis/trunk@12355 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-26 09:25:28 +00:00
Sandro Santilli 34096a53f6 Update $libver after upgrade
git-svn-id: http://svn.osgeo.org/postgis/trunk@12339 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-24 15:14:28 +00:00
Nicklas Avén a29e107648 Add a twkb regression test more
git-svn-id: http://svn.osgeo.org/postgis/trunk@12322 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-10 20:34:18 +00:00
Nicklas Avén 6088424924 Add regression tests for twkb
git-svn-id: http://svn.osgeo.org/postgis/trunk@12309 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-09 14:24:03 +00:00
Sandro Santilli f47e316a14 Add --upgrade-path switch, honour -v on install/upgrade error
Also print scripts versions
Closes #2652

git-svn-id: http://svn.osgeo.org/postgis/trunk@12286 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-01 12:47:28 +00:00
Sandro Santilli 34dd8cd18d Output single upgrade script for topology: topology_upgrade.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@12277 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-24 20:46:17 +00:00
Sandro Santilli f310abd07a Output single upgrade script for rtpostgis: rtpostgis_upgrade.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@12276 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-24 19:24:35 +00:00
Sandro Santilli 95c185ad72 Output single upgrade script for postgis: postgis_upgrade.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@12274 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-24 18:31:00 +00:00
Sandro Santilli 1a3acbde35 Fix --extension --upgrade handling
git-svn-id: http://svn.osgeo.org/postgis/trunk@12261 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-23 16:22:39 +00:00
Sandro Santilli 55528551aa Fix ambiguous query in tickets.sql when raster support is loaded
See #2651

git-svn-id: http://svn.osgeo.org/postgis/trunk@12260 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-23 16:13:41 +00:00
Sandro Santilli 9f37afb87e Add support for --extension --upgrade in run_test.pl
git-svn-id: http://svn.osgeo.org/postgis/trunk@12257 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-23 15:42:43 +00:00
Paul Ramsey 58014e647f #2632, ST_AsGML for curve types
git-svn-id: http://svn.osgeo.org/postgis/trunk@12227 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-05 17:43:48 +00:00
Paul Ramsey d3f1449ed2 #2396, wrap wkb outputting tests in explicit endianness
git-svn-id: http://svn.osgeo.org/postgis/trunk@12225 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-05 05:25:24 +00:00
Paul Ramsey ab66d2ddf1 #2556, geography ST_Intersects results depending on insert order
git-svn-id: http://svn.osgeo.org/postgis/trunk@12219 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-04 19:44:00 +00:00