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
Regina Obe
0d612d199d
Update installation to include geography.sql (yikes we still had install lwpostgis.sql -- no wonder people are so confused). Also upped required to 8.3
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4523 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 11:27:54 +00:00
Regina Obe
1584597bb0
cut in Paul's geography.txt into the official docs. Didn't notice it before :(. We might need a whole new chapter for this to do it justice but will deal with formatting later.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4522 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 11:23:57 +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
31d2cb7314
Change signatures to use fewer pointers.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4519 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 00:06:09 +00:00
Mark Cave-Ayland
7b7f17e405
Update LWDEBUG(F)/POSTGIS_DEBUG(F) macro debug levels to follow the standard in postgis/DEBUG.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4518 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-21 10:57:59 +00:00
Mark Cave-Ayland
3e5b57ed72
Change macros to use capitalised names, as per standard C convention. This means it is possible at a glance to determine what is a macro and what is a function.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4517 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-21 10:50:00 +00:00
Regina Obe
d081062b48
fix typos and redundant things
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4516 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-20 08:15:36 +00:00
Regina Obe
ce2e580385
flag some operators that support geography, put in logic to test for geography marked functions
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4515 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-20 08:10:31 +00:00
Regina Obe
218d88265a
git-svn-id: http://svn.osgeo.org/postgis/trunk@4514 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-20 07:50:07 +00:00
Regina Obe
99c9f3c7a2
Make slot for geography data type and start filling in details
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4513 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-20 07:45:11 +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
Regina Obe
06f0462bc3
Revise garden test to include testing for creating geography types. Still needs a bit more work. Also discovered more crashers to put in bug list (not all related to geography)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4510 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-17 15:44:47 +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