Commit graph

76 commits

Author SHA1 Message Date
Sandro Santilli ed2cc838c7 Move lwgeom_summary to liblwgeom (#1446)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8838 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 12:33:16 +00:00
Mark Cave-Ayland fb5749edae Switch liblwgeom to use the POSTGIS_* defines already generated by configure, rather than passing them in directly.
Similar to my previous commit, however here the aim is that by moving the logic outside of make then we can
potentially allow other generators (such as CMake) to detect and use other compilers rather than embedding
specific -D flags into the command line.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8809 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-14 00:49:21 +00:00
Paul Ramsey c71f36af42 Move offset curve generation into liblwgeom with other geos functionality
git-svn-id: http://svn.osgeo.org/postgis/trunk@8689 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-06 21:39:50 +00:00
Sandro Santilli 2dcd5728a6 Fix clean rule to get rid of .o files
git-svn-id: http://svn.osgeo.org/postgis/trunk@8092 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-04 18:17:10 +00:00
Sandro Santilli dec5cc525b Add an lwgeom_node function in liblwgeom (see #1206)
Includes testcase

git-svn-id: http://svn.osgeo.org/postgis/trunk@8088 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-04 06:45:10 +00:00
Paul Ramsey 8b18d8006f Composite geometries end up with nested BBOX caches (#1254)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8078 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-02 04:28:05 +00:00
Sandro Santilli 1e179f2522 Fix distclean rule to drop Makefile too
git-svn-id: http://svn.osgeo.org/postgis/trunk@7922 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-29 19:43:06 +00:00
Sandro Santilli 39d7914c30 Define SHELL (used by LIBTOOL and INSTALL) hopefully helps bug #1218
git-svn-id: http://svn.osgeo.org/postgis/trunk@7921 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-29 19:43:00 +00:00
Sandro Santilli 809ae790e4 Move LWDEBUG macros in a new lwgeom_log.h header file (see #1220)
Update all implementation files accordingly.
Fix some misuses out of liblwgeom.
Add missing copyright notices in a few files.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7907 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-28 10:05:36 +00:00
Sandro Santilli ebd64f02f5 Install liblwgeom.h under a sensible location... [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7769 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-20 15:55:13 +00:00
Sandro Santilli 1e09b5c1b8 Include version in liblwgeom.h [RT-SIGTA]
Closes ticket #1164

git-svn-id: http://svn.osgeo.org/postgis/trunk@7762 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-19 10:12:00 +00:00
Sandro Santilli b6e5840726 Install liblwgeom on 'make install' [RT-SIGTA]
Uses liblwgeom.h as the API header for liblwgeom.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7759 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-19 08:16:23 +00:00
Sandro Santilli e83e96db9b Honour DISTDIR when installing liblwgeom. Drop the finish call as it may require root privileges on some systems [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@7752 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-16 09:15:49 +00:00
Sandro Santilli f3db965181 Second attempt at libtool usage. Seems better to me now.
PostGIS clients still all use the static version of the library.
Libraries are not installed by default.
[RT-SIGTA]

git-svn-id: http://svn.osgeo.org/postgis/trunk@7744 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-13 10:06:07 +00:00
Sandro Santilli a7e6fe6c36 Move lwproj_from_string from libpgcommon to liblwgeom [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7741 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 19:18:46 +00:00
Sandro Santilli 4239e692bb Make transformation and projection cache API available (ticket #1053)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7734 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 17:25:01 +00:00
Sandro Santilli 625e72615d Export lwgeom_split to liblwgeom, const-correct it [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7727 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-11 08:04:20 +00:00
Paul Ramsey 60b4daef28 Remove old WKB/WKT parsers and generators and switch all internal references remaining (mostly in cunit) over to the new implementations.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7721 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-10 22:28:05 +00:00
Sandro Santilli 9e51495630 Export lwgeom_makevalid to liblwgeom [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7720 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-09 16:56:02 +00:00
Sandro Santilli a41e0c62b7 Fix dependency referencing dropped rule [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7703 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-06 18:03:37 +00:00
Sandro Santilli 028823de3b Add static library to {,un}install-liblwgeom rules [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7702 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-06 18:01:52 +00:00
Sandro Santilli 25ae1f548b Re-drop use of libtool (more troubles than help).
Stub a rule to build and install a shared liblwgeom.
[RT-SIGTA].

git-svn-id: http://svn.osgeo.org/postgis/trunk@7701 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-06 17:48:39 +00:00
Sandro Santilli 3c643e03ec Re-introduce numerical flags in building "NM" objs [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7700 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-06 16:18:44 +00:00
Sandro Santilli e5152c02d6 Use libtool to build liblwgeom. Still only static. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7699 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-06 15:12:32 +00:00
Sandro Santilli 5a9d3c5db2 Use GEOS compiler and linker flags for liblwgeom, add lwgeom_geos_noop and cunit test for it (to confirm linking works, and it does) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7698 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-06 09:47:01 +00:00
Sandro Santilli 60cb494eaa Add GEOS spatial operations to liblwgeom (ticket #1050) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7696 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-06 09:46:03 +00:00
Paul Ramsey c5001b2000 Prototype segmentation code and move lwalgorith.h prototypes into liblwgeom.h and liblwgeom_internal.h
git-svn-id: http://svn.osgeo.org/postgis/trunk@7487 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-25 22:36:51 +00:00
Regina Obe 9ccce05bff preliminary work on x3d export. Still a lot to go. point, multipoint, tin, linestring almost working. Still need to fiddle with coordindex and spacing and get rid of junk copied from gml not needed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6897 b70326c6-7e19-0410-871a-916f4a2858ee
2011-03-11 21:12:35 +00:00
Sandro Santilli a5815310b0 Add 'distclean' to the SUBDIRS target
git-svn-id: http://svn.osgeo.org/postgis/trunk@6416 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-16 16:28:28 +00:00
Sandro Santilli b2c1cda2ca Fail on fix subdir build failure. Add missing uninstall rule in liblwgeom
git-svn-id: http://svn.osgeo.org/postgis/trunk@6408 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-15 20:06:58 +00:00
Sandro Santilli b6b629d981 Be verbose during recursion. List liblwgeom in SUBDIRS, stub install rules for liblwgeom and utils
git-svn-id: http://svn.osgeo.org/postgis/trunk@6328 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-10 17:49:20 +00:00
Paul Ramsey 1826cb4795 Remove libgeom.h
git-svn-id: http://svn.osgeo.org/postgis/trunk@6192 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-23 20:22:25 +00:00
Paul Ramsey 32e4d5caee Clean out scruft from my G_ phase and start attempting to separate _internal from external liblwgeom functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6157 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-31 02:31:34 +00:00
Paul Ramsey 685ee0d890 Remove parse/lex outputs from 'clean' target, add to 'maintainer-clean'
git-svn-id: http://svn.osgeo.org/postgis/trunk@6120 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-24 19:51:03 +00:00
Paul Ramsey e5cd631d5f More tweaks to lexer to generate header
git-svn-id: http://svn.osgeo.org/postgis/trunk@6115 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-24 19:25:12 +00:00
Paul Ramsey d2902401e2 Add quotes to bison/flex calls.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6111 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-24 16:08:35 +00:00
Paul Ramsey 4d1afa59d3 Change sytax on calls to LEX to maybe make windoze and others happier
git-svn-id: http://svn.osgeo.org/postgis/trunk@6108 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-23 23:53:54 +00:00
Paul Ramsey 3328bd13f5 Remove long form lex parameters
git-svn-id: http://svn.osgeo.org/postgis/trunk@6104 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-23 14:41:17 +00:00
Paul Ramsey 6d9751acdb Apply mcayland patch to build parse/lex. Remember: make clean before make.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6100 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-22 19:27:18 +00:00
Paul Ramsey 4dbc52cf1c Ensure the parser prereqs are built (#636)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6092 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-21 21:32:31 +00:00
Paul Ramsey 30ec5743e7 Current work on bison-based WKT-to-LWGEOM parser. Implemented for LINESTRING, almost ready to extend to all types.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6091 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-20 22:51:30 +00:00
Paul Ramsey 37111647d5 Put the WKT new parser files into repo so others can see them and I can work in synch with trunk.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6060 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-10 00:08:58 +00:00
Paul Ramsey 51d0a6d2af Add in WKB reader and associated test framework to build.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6046 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-06 19:17:05 +00:00
Paul Ramsey a18d51afb0 Remove lwin_wkb from build until it's complete
git-svn-id: http://svn.osgeo.org/postgis/trunk@6037 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-03 18:15:22 +00:00
Paul Ramsey 2d07d7eb59 Continue with new WKB parser. Change signature of RHR "right hand rule" functions to "clockwise" to avoid misinterpretations of orientation rules.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6036 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-03 18:14:35 +00:00
Nicklas Avén d5b2e25d6d 3D Distance functions, only point-point and point line. #576
git-svn-id: http://svn.osgeo.org/postgis/trunk@5889 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-01 19:55:11 +00:00
Olivier Courtin 9b7c90ca8e Add Topology structure for connected surfaces (PolyhedralSurface, Tin) and LWGEOM to TGEOM transformations routines. Add related cunit tests. Merge cu_tin and cu_polyhedralsurface into a single cu_surface unit test.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5874 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-30 06:49:51 +00:00
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