Commit graph

3541 commits

Author SHA1 Message Date
Regina Obe 3c3a3c2b8f typos
git-svn-id: http://svn.osgeo.org/postgis/trunk@4575 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-01 21:18:42 +00:00
Regina Obe 898a8fbaf2 put in ST_Distance proto for geography so can test it.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4574 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-01 20:37:33 +00:00
Paul Ramsey 0396a0468c ST_Distance(geography, geography) roughed in. Small detail, currently returns answers in radians. :)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4573 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-01 19:50:44 +00:00
Paul Ramsey f3a7f0882e Add polygon/point distance and tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4572 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-01 18:45:59 +00:00
Paul Ramsey 255cb5ea13 Wow, error that only showed up in MinGW, but totally an error. I wonder why my test passed this... clean memory I guess.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4571 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-01 14:52:03 +00:00
Paul Ramsey 68dab94cd0 lwgeom sphere distance function and tests for point/linestring
git-svn-id: http://svn.osgeo.org/postgis/trunk@4570 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-01 05:53:07 +00:00
Paul Ramsey a9848bdc11 Roughing in lwgeom distance machinery now.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4569 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 23:59:01 +00:00
Paul Ramsey a5615bafed Add edge-edge distance tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4568 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 23:03:29 +00:00
Paul Ramsey 0c179ca6e8 Add return value for point of closest approach on arc/edge distance.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4567 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 21:45:58 +00:00
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
Regina Obe 05fde3ce5d more fixes to make geography friendly
git-svn-id: http://svn.osgeo.org/postgis/trunk@4557 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 15:50:21 +00:00
Sandro Santilli 232f517ceb Can't put backslash-commands in 'echo' parameter in a standard way
(would take -e in some cases) so replace \t with some spaces


git-svn-id: http://svn.osgeo.org/postgis/trunk@4556 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 14:10:25 +00:00
Sandro Santilli 820ab0ee06 add missing newline at end of error message (utf8/iconv)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4555 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 08:39:34 +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
Regina Obe 2e47462788 remove null geometry from testing until we fix aggregate null crashing bug. Also fix multipolygonz and m not returning those geometry types.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4546 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 15:55:23 +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
Regina Obe aeeb0a27b6 Add missing protos for geography for ST_AsKML, ST_AsGeoJSON, ST_AsSVG, ST_AsGML. Revise xml parser special index generator to not dupe when multiple protos with geography
git-svn-id: http://svn.osgeo.org/postgis/trunk@4541 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 12:42:03 +00:00
Regina Obe 999c5a138b Put in overload text for ST_AsText and ST_AsBinary to prevent the function .. is not unique when passing in text (unknown) rep of a geometry. Still need to do this for ST_AsKML etc. that Olivier just put in.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4540 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 12:23:44 +00:00
Olivier Courtin 08a6521cb1 Update documentation related to geography typmod export functions (r4535, r4536)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4539 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 07:45:30 +00:00
Regina Obe 6234fd0124 Add a new special index section to collect functions that take as input or output geography data type. Also give pretty anchor to PostGIS Geography section
git-svn-id: http://svn.osgeo.org/postgis/trunk@4538 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 06:34:48 +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
Olivier Courtin 986c9dccb9 A forgot prototype in ST_AsGeoJson export function
git-svn-id: http://svn.osgeo.org/postgis/trunk@4536 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-28 18:31:34 +00:00
Olivier Courtin b9bc501e2b Add geography typmod support for export functions (ST_AsGML, ST_AsGeoJson, ST_KML, St_AsSVG). Create lwgeom_export.c and lwgeom_export.h to factorize common export functions routines.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4535 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-28 18:16:21 +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
Paul Ramsey ba9d9788d2 Add SQL def'n for geography_analyze function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4532 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-23 18:15:43 +00:00
Regina Obe 0448cff32f another typo
git-svn-id: http://svn.osgeo.org/postgis/trunk@4531 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-23 16:11:52 +00:00
Regina Obe 36e670f608 missing spots for geography.sql and postgis_comments.sql
git-svn-id: http://svn.osgeo.org/postgis/trunk@4530 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 21:56:48 +00:00
Regina Obe 9429fdac39 correct typo
git-svn-id: http://svn.osgeo.org/postgis/trunk@4529 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 21:53:23 +00:00
Regina Obe 065a716fde start putting in geography functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@4528 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 21:14:26 +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 352799160d Add the basic machinery to call a function when running VACUUM ANALYZE on a geography column - the more interesting parts are yet to come ;)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4526 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 13:09:00 +00:00
Regina Obe f28c14b110 get rid of things like invalid coords for 4326 space tripping up geography testing.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4525 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 12:27:40 +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