Commit graph

186 commits

Author SHA1 Message Date
Paul Ramsey ef1d4148b2 Add edge-to-point distance calculation and tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@4566 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 21:21:10 +00:00
Paul Ramsey da11d36978 Remove CPU intensive test and add some lat/lon utility functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@4565 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 19:34:29 +00:00
Paul Ramsey 26074368b3 Make point-in-edge test even looser (fp tolerance factor)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4564 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 19:02:27 +00:00
Paul Ramsey 4983e1287f Move defines around a bit.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4563 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 18:57:23 +00:00
Paul Ramsey f83ade8204 Add some debugging blocks for later
git-svn-id: http://svn.osgeo.org/postgis/trunk@4562 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 18:54:02 +00:00
Paul Ramsey 90efe1aa6f Add in special case test for parallel / equal edges.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4561 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 18:28:26 +00:00
Paul Ramsey a9772fdd2e Whoops, make sure we test all our test cases.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4560 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 17:12:23 +00:00
Paul Ramsey a7561ec499 Make random brute force test a compile-time option.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4559 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 17:09:35 +00:00
Paul Ramsey 95a9d05853 Add more test cases for geocentric bbox calculation and make 'in cone' test inclusive of end points.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4558 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 17:05:44 +00:00
Paul Ramsey 8ad9bf5dd5 Re-enable all geodetic tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4554 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 00:17:10 +00:00
Paul Ramsey 69ef5e8eb1 Add some extra comments
git-svn-id: http://svn.osgeo.org/postgis/trunk@4553 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 00:11:20 +00:00
Paul Ramsey cd8e7ff4a7 astyle the work thus far
git-svn-id: http://svn.osgeo.org/postgis/trunk@4552 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 20:44:28 +00:00
Paul Ramsey a71f3b2d83 Flip the clairaut calculations to return both top and bottom in one go.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4551 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 20:41:04 +00:00
Paul Ramsey 12a7c802ae Remove old GBOX test answers (some were wrong!) in favor of actual slow calculations
git-svn-id: http://svn.osgeo.org/postgis/trunk@4550 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 19:53:39 +00:00
Paul Ramsey 2ac92a420d Add randomized box maker/checker... still some small errors?
git-svn-id: http://svn.osgeo.org/postgis/trunk@4549 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 19:50:36 +00:00
Paul Ramsey 6ead7c9f4b Make polygon pole check a little more general.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4548 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 19:02:09 +00:00
Paul Ramsey c8ec0a6408 All bbox test cases now pass. Suck on that!
git-svn-id: http://svn.osgeo.org/postgis/trunk@4547 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 18:48:47 +00:00
Paul Ramsey e9a6297769 Remove un-used function from testing.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4544 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 14:40:48 +00:00
Paul Ramsey 43f7f50628 Work on making "on edge" test more reliable.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4543 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 14:39:54 +00:00
Sandro Santilli 867210851c Ensure lwcollection_segmentize2d always return a NEW geometry. Fixes ticket #254. Add regression test for that bug.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4542 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 13:31:20 +00:00
Paul Ramsey 083f26fef4 Test re-org and first cut at edge intersection.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4537 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-28 22:45:37 +00:00
Regina Obe 851a729f6b remove regex.h include per Nicklas observation its still in there.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4533 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-25 13:32:14 +00:00
Mark Cave-Ayland 1f6d0724d4 Commit fix to LW_ABS() macro as discovered by Nicklas Aven.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4527 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 13:38:17 +00:00
Mark Cave-Ayland 991c2d233f Oops - forgot to bump the array indices on the last commit :(
git-svn-id: http://svn.osgeo.org/postgis/trunk@4524 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 11:53:47 +00:00
Mark Cave-Ayland 780565b14b Add missing geometry(m)(z) type missing from previous commit.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4521 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 11:23:30 +00:00
Mark Cave-Ayland 0b6f67024b Remove dependency on regex library by implementing the same functionality using standard C functions. Passes regression tests for me.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4520 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 11:13:33 +00:00
Paul Ramsey 497342b2da Clean up tests so they pass quietly. (#249)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4512 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-18 14:53:25 +00:00
Regina Obe e0f6d5c6ee #250: Fix to get mingw to compile using conditional -lregex
Had to change configure.ac too so -lregex is not put in if its built-in.

git-svn-id: http://svn.osgeo.org/postgis/trunk@4511 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-18 14:10:55 +00:00
Paul Ramsey 2342776218 Fix serialization problem with lwgeoms that have bboxes.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4509 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-17 05:57:12 +00:00
Paul Ramsey 51dbcb9bbf Clean up gbox serialization a little
git-svn-id: http://svn.osgeo.org/postgis/trunk@4508 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-17 05:33:35 +00:00
Paul Ramsey 5635299b47 Add lwgeom_is_empty() test
git-svn-id: http://svn.osgeo.org/postgis/trunk@4507 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-17 02:33:49 +00:00
Paul Ramsey 6699aa3199 Work on tracking down bug in casting geometry->geography
git-svn-id: http://svn.osgeo.org/postgis/trunk@4506 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-17 00:01:53 +00:00
Paul Ramsey c9c61193ca Fix some test cases crossing the date line
git-svn-id: http://svn.osgeo.org/postgis/trunk@4505 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-16 22:43:20 +00:00
Paul Ramsey 2f24c23327 Add gbox string constructor for testing purposes
git-svn-id: http://svn.osgeo.org/postgis/trunk@4504 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-16 21:09:24 +00:00
Paul Ramsey 154a0f5bcb More tests pass
git-svn-id: http://svn.osgeo.org/postgis/trunk@4503 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-16 20:19:20 +00:00
Paul Ramsey bedb088622 Change back to less intensive cartesian clairaut
git-svn-id: http://svn.osgeo.org/postgis/trunk@4502 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-16 18:54:24 +00:00
Paul Ramsey 40cd5b1e72 Fix errors in calculating geocentric bounds. Early test cases now pass!
git-svn-id: http://svn.osgeo.org/postgis/trunk@4501 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-16 18:50:54 +00:00
Paul Ramsey e153da7079 Hook geocentric calculation into gbox routines, start testing
git-svn-id: http://svn.osgeo.org/postgis/trunk@4500 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-15 21:21:27 +00:00
Paul Ramsey 03cbe95845 Geocentric bounding box roughed in and compiles.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4499 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-15 19:50:24 +00:00
Paul Ramsey 34f03aa8cd Start the geodetic machinery. Add an internal API header for eventual API rationalisation
git-svn-id: http://svn.osgeo.org/postgis/trunk@4498 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-14 20:30:35 +00:00
Paul Ramsey 06568b44d1 Crib index penalty tweak from pgsphere.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4497 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-14 18:33:54 +00:00
Paul Ramsey 82acc2b19c Add FP_EQUALS and bracket arguments for a little extra safety
git-svn-id: http://svn.osgeo.org/postgis/trunk@4496 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-14 18:15:18 +00:00
Mark Cave-Ayland b7d587678b Merge Paul's geodetic (geography) branch into trunk, as per discussions on postgis-devel. Most of the merge was automatic (albeit quite slow), with a few manual touch-ups where the merge algorithm couldn't handle this automatically. "make check" runs and passes, so I hope I haven't managed to break too much ;)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4494 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-14 10:54:33 +00:00
Mark Leslie 3eddf6078b Fix for ticket #234
git-svn-id: http://svn.osgeo.org/postgis/trunk@4366 b70326c6-7e19-0410-871a-916f4a2858ee
2009-08-07 03:38:24 +00:00
Mark Cave-Ayland 91a55bceb1 Move SERIALIZED_FORM to lwgeom_pg.h from liblwgeom.h since it references a PostgreSQL-only structure. Per report from Nicklas Aven.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4310 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-16 21:32:48 +00:00
Paul Ramsey 491022206d MinGW fix for loader (#222), Mark Cave-Ayland
git-svn-id: http://svn.osgeo.org/postgis/trunk@4293 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-13 17:27:41 +00:00
Mark Cave-Ayland ec12af9d42 Fix #112: ST_CurveToLine sometimes crashes server. While the circle segmentiser detected colinear circle points, it didn't check for the
NULL pointer returned in this case. Since we are converting to a line, the current behaviour is to simply append the circle points as s
tandard line points.


git-svn-id: http://svn.osgeo.org/postgis/trunk@4272 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-08 04:59:19 +00:00
Mark Cave-Ayland 5812cc0cbe Fix #183: ST_LineToCurve gives getPoint4d_p offset error. This was due to the lookahead in the curve segmentising code going off the end of the point array.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4270 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-08 04:48:54 +00:00
Mark Cave-Ayland 02fb778cb7 Fix compile problems on non-GNU systems by using va_copy as an alias onto the real version. Per report from Stefano Bonnin.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4264 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-07 10:33:23 +00:00
Mark Leslie 10d24712cd Making the changes from r4244 and r4245 onto trunk, addressing ticket 212.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4246 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-02 08:31:24 +00:00