Olivier Courtin
8fea23dce8
Add Triangle and TIN new geometry type. Add Cunit tests on parse stage, related to #561 . Add ST_AsGML support TIN and Triangle for GML 3. Slightly cast change in PolyhedralSurface LWGEOM struct Remove PolyhedralSurface support from forceRHR function as orientation is meaningfull in PS. Move is_closed functions from PostGIS to LWGEOM dir and related cunit test case on line and curves.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5821 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-13 17:29:29 +00:00
Olivier Courtin
88f836eed2
Add really basic POLYHEDRALSURFACE support. Parse, Unparse, Serialization and cunit unit tests. related to #427
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5753 b70326c6-7e19-0410-871a-916f4a2858ee
2010-07-25 21:20:09 +00:00
Sandro Santilli
f93889a5f0
Fix 'clean' rule to descend in cunit
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5445 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-17 07:32:59 +00:00
Paul Ramsey
de4dd5aa76
Add first cut to lwgeom_to_wkb function.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5365 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-02 23:18:39 +00:00
Paul Ramsey
9d8fc40f25
ST_AsLatLonText(geometry, format) from Jeff Adams
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5305 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 20:42:05 +00:00
Paul Ramsey
51eb7b3969
First cut of new WKT output functions, need more unit tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5302 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 19:53:22 +00:00
Olivier Courtin
287fbffddd
move ST_AsSVG from postgis to lwgeom dir. write cun it tests. related to #377
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5289 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 18:43:06 +00:00
Paul Ramsey
147a101d25
Move stringbuffer from ./loader to ./liblwgeom for use in string emitter functions.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5284 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 15:30:10 +00:00
Olivier Courtin
ab6afbcfb4
Move ST_AsGeoJson from postgis to liblwgeom dir. Use as most as cunit test as possible. Related to #377 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5283 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 14:03:19 +00:00
Olivier Courtin
b534ff8a2f
Move ST_AsKML from postgis to liblwgeom dir. Use as most cunit test as possible. Few related corrections on GML similar implementation. cf #377
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5277 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 20:32:11 +00:00
Olivier Courtin
738fe292c6
Move ST_AsGML from postgis dir to liblwgeom. Rewrite most units test with cunit. cf #377
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5275 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 18:18:37 +00:00
Olivier Courtin
3152537b81
Add lwgeom_homogenize function. Related to #375 . Add cunit related tests
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5265 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-20 18:25:42 +00:00
Paul Ramsey
2bfaa2112f
Keep floats out of registers for spheroid calculation. Fixes odd bug in OS/X gcc 4.1. Could probably be narrowed to only use flag on affected platform. ( #395 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5180 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-29 21:24:24 +00:00
Paul Ramsey
a6c08ab192
Add an internal geometry tree for use in a native prepared geometry scheme for fast intersection tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4948 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-30 20:52:16 +00:00
Paul Ramsey
ac8f490ddb
Spheroid distance calculation between points added.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4700 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-29 19:24:06 +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 Cave-Ayland
ce6b5889c8
Commit for GBT#97: Rename LWCURVE to LWCIRCSTRING (also know as restoring balance to the universe).
...
Having gone through and re-read sections of the CIRCULARSTRING code, it is amazing how much easier the code is to read without the confusion of a curve being either a CIRCULARSTRING or LINESTRING as per the SQL-MM spec. The resulting commit compiles & installs cleanly for me, passes "make check" and also Regina's torture script. Please let me know if I accidentally broke anything :)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3520 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-13 12:27:39 +00:00
Mark Cave-Ayland
203e6d1709
Remove erroneus merge from r3502 (HAVE_CUNIT_H just isn't defined anymore...)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3515 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-12 12:23:11 +00:00
Paul Ramsey
825548243f
Alter lwfree_* to deep-free memory. Add variants of *_release to support shallow-free. Go through lwgeom/ and replace any lwfree_* instances with *_release where appropriate. (Surprisingly few.)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3502 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-08 17:04:00 +00:00
Mark Cave-Ayland
7aff0181c9
Rework the CUnit detection infrastructure as you can't locate include files based on an absolute path. This is because autoconf and the compiler have differing ideas of the current paths (this totally breaks the Win32 build since you have the extra mapping between UNIX-type MingW paths and Windows-type paths). Hopefully this should not affect existing users at all - if so, please post a report on -devel. I'll try running this on MingW at a later date.
...
I've also enforced "make check" to run the unit tests, rather than "make test". This is a fallout from the early days when strk committed the regression test suite to run using "make test" by accident which appears to have stuck :(
.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3492 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-05 00:08:26 +00:00
Paul Ramsey
7f7be31b65
Add CUnit to main 'make test' build and check for existance of CUnit.h as part of ./configure
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3472 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-22 23:37:58 +00:00
Paul Ramsey
724161d19c
Partial work saved back for later.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3440 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-18 00:54:04 +00:00
Paul Ramsey
768cd3ac72
First cut of line crossing function, and associated cunit tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3424 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-16 22:29:42 +00:00
Mark Cave-Ayland
0835b2fb6d
Apply patch from strk to prevent unneccesary invocation of 'ar' when building liblwgeom.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3340 b70326c6-7e19-0410-871a-916f4a2858ee
2008-11-26 13:40:07 +00:00
Mark Cave-Ayland
29f98cefc4
Move the LWGEOM-specific functions from lwgeom_sqlmm.c into liblwgeom/lwsegmentize.c to ensure that liblwgeom can exist as a standalone library.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2970 b70326c6-7e19-0410-871a-916f4a2858ee
2008-09-16 18:44:49 +00:00
Mark Cave-Ayland
9a8647cfe6
Fix -o option for flex; the output filename must be specified immediately after -o without any preceding white space. Per report from Jorgen Austvik.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2884 b70326c6-7e19-0410-871a-916f4a2858ee
2008-07-28 09:13:45 +00:00
Mark Cave-Ayland
94babd74af
Add the parser build rules back into the liblwgeom Makefile, so now any changes to either the lexer or parser source files will automatically invoke a rebuild of the relevant output files during make
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2820 b70326c6-7e19-0410-871a-916f4a2858ee
2008-07-03 09:28:38 +00:00
Mark Cave-Ayland
0e7e3e01d9
Fix liblwgeom requiring gcc to compile. By using macros and variables supplied by libtool, we can now detect the PIC flags and whether the compiler will accept additional gcc warning flags for developers
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2819 b70326c6-7e19-0410-871a-916f4a2858ee
2008-07-01 14:15:33 +00:00
Mark Cave-Ayland
ffde636dc0
Split the basic geometry accessors into a separate static library liblwgeom.a; this potentially allows re-use of the liblwgeom functions from within PostGIS, or could be extended at a later date to include databases other than MySQL. This patch includes a change to the liblwgeom handler functions; instead of sprinkling init_pg_func()s around the source, I have changed the default liblwgeom handlers to make use of a callback to allow linked libraries to set their own handlers the first time any of them are called. I have also tidied up the parser API a little in liblwgeom.h, which means wktparse.h can be removed from all of the headers in the lwgeom/ directory, plus renamed wktunparse.c to lwgunparse.c to keep things similar to lwgparse.c. Finally, I renamed liblwgeom.c to lwutil.c to avoid confusion within the new interface. TODO: the liblwgeom Makefile has some gcc-specific options, but these can be fixed later - it seemed more important to make the warnings visible to developers.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@2815 b70326c6-7e19-0410-871a-916f4a2858ee
2008-06-29 19:11:48 +00:00