Sandro Santilli
62308c1139
Remove memory leaks from TWKB unit tester
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@13020 b70326c6-7e19-0410-871a-916f4a2858ee
2014-10-01 13:26:53 +00:00
Sandro Santilli
f6b715cbb8
Add ST_ClipByBox2D and lwgeom_clip_by_rect ( #2939 )
...
Includes testcases and documentation
Requires GEOS-3.5.0+
git-svn-id: http://svn.osgeo.org/postgis/trunk@12999 b70326c6-7e19-0410-871a-916f4a2858ee
2014-09-26 08:51:07 +00:00
Paul Ramsey
ff35f5aaa0
Remove many references to liblwgeom_internal.h outside liblwgeom,
...
and quiet some nagging warnings.
git-svn-id: http://svn.osgeo.org/postgis/trunk@12985 b70326c6-7e19-0410-871a-916f4a2858ee
2014-09-17 21:46:37 +00:00
Sandro Santilli
7bbeee2287
Fix 'defined but not used' and other warnings in unit tests
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12948 b70326c6-7e19-0410-871a-916f4a2858ee
2014-09-05 15:01:08 +00:00
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
a53d6dba37
#2892 add back liblwgeom fix warnings
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12884 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-11 17:47:47 +00:00
Nicklas Avén
e6f794b630
New try for #2878 and #2880 , see discussion in #2880
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12878 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-10 11:29:47 +00:00
Nicklas Avén
50029f59c0
Ok, varint.h is taken away again #2878 also see #2880
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12877 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-10 11:18:04 +00:00
Nicklas Avén
1a3dec451a
Put back varint.h to get rid of compiler warnings
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12876 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-09 20:08:55 +00:00
Regina Obe
b8c3076d38
#2878 get rid of duplicate definition of hexbytes_from_bytes (already defined in lwout_wkb.c) get rid of liblwgeom.h (already included via liblwgeom_internal.h), get rid of varint.h include (already included via lwout_twkb.c)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12871 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-07 22:23:00 +00:00
Nicklas Avén
dc792df540
Fix typo
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12869 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-07 19:05:11 +00:00
Nicklas Avén
7a5919309a
Add cunit tests for twkb
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12867 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-07 18:26:28 +00:00
Sandro Santilli
db90f9670c
Add a couple more tests for varint encoding
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12846 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-31 08:42:03 +00:00
Sandro Santilli
192c2b35d0
Fix expected return codes fixed two commits above
...
Also sets touched suite names to match filename
(with "cu_" prefix stripped out)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12839 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-29 13:56:52 +00:00
Sandro Santilli
710bf4f9e4
Add tests for 32bit varints encoding
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12838 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-29 12:23:13 +00:00
Sandro Santilli
d871a5c650
Check return code from liblwgeom functions
...
Fixes some "variable set but unused" warnings
git-svn-id: http://svn.osgeo.org/postgis/trunk@12837 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-29 10:34:37 +00:00
Sandro Santilli
3e5ba9989d
Move varInt handling code into its own file module, for reuse
...
Also found a bug in encoding 4bytes numbers
git-svn-id: http://svn.osgeo.org/postgis/trunk@12836 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-29 10:25:31 +00:00
Sandro Santilli
7ac6bab51b
Fix some UTF8 encoding of Nicklas name...
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12828 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-25 15:36:57 +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
Paul Ramsey
0db98e8f29
fix build
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12710 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-30 17:55:46 +00:00
Paul Ramsey
5afe7a893b
#2797 cu_surface.c warning on polyhedralsurface_parse
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12709 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-30 16:43:31 +00:00
Paul Ramsey
f6ee57106f
#2793 , sfcgal cunit tests do not seem to run
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12707 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-30 16:15:00 +00:00
Paul Ramsey
cb074c46ec
#2775 lwline_from_lwmpoint leaks memory
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12651 b70326c6-7e19-0410-871a-916f4a2858ee
2014-06-24 22:45:39 +00:00
Paul Ramsey
98c424af92
Remove test output
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12346 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-25 11:38:38 +00:00
Paul Ramsey
0a028761a2
Quiet tests
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12345 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-25 08:35:54 +00:00
Paul Ramsey
9a655cab38
Uncomment tests
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12342 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-25 08:03:58 +00:00
Paul Ramsey
001ab8c8f4
#2634 , should fix geography-tree-distance errors in cases
...
where polygons interact with collections.
git-svn-id: http://svn.osgeo.org/postgis/trunk@12340 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-24 15:25:39 +00:00
Paul Ramsey
79e019ea31
#2638 , geography ST_Intersects bugginess with Polygon/multilinestring M
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12297 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-06 05:54:41 +00:00
Sandro Santilli
90b0d7a635
Simplify use of flags
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12251 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-22 20:44:46 +00:00
Sandro Santilli
2231d33c27
Fix build of unit tests with libtool 2.4.2
...
The error was:
undefined reference to symbol 'lround@@GLIBC_2.2.5'
For some reason -lm found in liblwgeom.la is not being taken
in consideration. See #2649
git-svn-id: http://svn.osgeo.org/postgis/trunk@12249 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-22 20:34:17 +00:00
Sandro Santilli
6569f099be
Fix reference to website
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12248 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-22 20:11:10 +00:00
Paul Ramsey
dd5479d85d
#2534 , st_distance is returning incorrect results for large geographies
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12228 b70326c6-7e19-0410-871a-916f4a2858ee
2014-02-05 23:00:07 +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
Nicklas Avén
eaf91d31db
First varint cunit test
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12201 b70326c6-7e19-0410-871a-916f4a2858ee
2014-01-29 21:47:27 +00:00
Paul Ramsey
bf2901b473
#2622 , Update links to PostGIS website in source file headers
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12198 b70326c6-7e19-0410-871a-916f4a2858ee
2014-01-29 17:49:35 +00:00
Sandro Santilli
407b2d1cc7
Fix small memory leak in lwline_split_by_line ( #2528 )
...
Thanks Alessandro Furieri for the report and test
git-svn-id: http://svn.osgeo.org/postgis/trunk@12094 b70326c6-7e19-0410-871a-916f4a2858ee
2013-11-06 09:39:29 +00:00
Sandro Santilli
c86d9084bd
Implement ST_ForceCurve ( #2430 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11803 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-14 22:40:16 +00:00
Sandro Santilli
965a234144
lw_segment_side may return any negative number, not just -1 ( #2420 )
...
Adds other unit tests for line desegmentation excercising quadrant
computation.
git-svn-id: http://svn.osgeo.org/postgis/trunk@11801 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-14 07:37:23 +00:00
Sandro Santilli
711d56fe4e
Fix computation of number of quadrants per arc ( #2420 )
...
Note: I had to change some tests that expected 3-quadrant curves
to be accepted as curvey input to rely on round-trip instead
git-svn-id: http://svn.osgeo.org/postgis/trunk@11794 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-13 23:48:04 +00:00
Sandro Santilli
2cc422bb20
Pick curve control point farther than in the middle
...
Seems to get a good point when doing manual tests...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11793 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-13 23:47:54 +00:00
Sandro Santilli
63dc80d4dc
Make sure to retain first point of curves on linearization ( #2427 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11790 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-13 22:54:21 +00:00
Sandro Santilli
6a21d5ece0
Fix short allocation of edge to curves store ( #2425 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11789 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-13 07:27:23 +00:00
Sandro Santilli
180dfda357
Add cunit-level test for #2412
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11768 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-11 09:07:11 +00:00
Regina Obe
a049919b1b
#2396 : liblwgeom CUnit tests fail on big-endian architectures.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11749 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-08 21:19:41 +00:00
Sandro Santilli
a381d036e5
Add cunit test for #2307
...
So now we have a "leak or crash" situation.
git-svn-id: http://svn.osgeo.org/postgis/trunk@11635 b70326c6-7e19-0410-871a-916f4a2858ee
2013-07-05 10:26:36 +00:00
Paul Ramsey
47ea3400cc
#2351 , st_distance between geographies wrong
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11535 b70326c6-7e19-0410-871a-916f4a2858ee
2013-06-07 17:39:43 +00:00
Olivier Courtin
629551694f
cf #2318 , add a optional additional version parameter in ST_ForceSFS, handle both 1.1 and 1.2. default is 1.1
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11409 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-10 17:17:18 +00:00
Olivier Courtin
782eaa752f
output COLLECTION of Polygon for TIN and PolyhedralSurface, for ST_ForceSFS (instead of MultiPolygon). Thanks to Sandro for these input
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11402 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-10 11:40:50 +00:00
Olivier Courtin
67fb27c034
Related to #2313
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11395 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-10 07:00:50 +00:00
Olivier Courtin
927028f23c
Add SFCGAL support cf #2254 . Include SFCGAL support, postgis backend handling (GEOS/SFCGAL). Regress tests, documentation prototypes and also additional force_sfs function.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11389 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-09 19:38:17 +00:00