Commit graph

45 commits

Author SHA1 Message Date
Paul Ramsey af3b7fe1db Flip ST_LocateBetween to use the same LRS code as ST_LocateBetweenElevations
git-svn-id: http://svn.osgeo.org/postgis/trunk@8792 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-12 19:07:02 +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
Paul Ramsey b6f412c18c Replace min/max/abs macros with FP_* variants in liblwgeom/ and with pgsql variants in postgis/
git-svn-id: http://svn.osgeo.org/postgis/trunk@8031 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 18:01:57 +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
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 f9b94014f1 Drop REPEATED_POINTS_* and SPLICE_* defines from liblwgeom.h, move MAXFLOAT to liblwgeom_internal.h [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7716 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-09 15:12:06 +00:00
Sandro Santilli 2d143bacde Properly release memory in lwmline_clip_to_ordinate_range (see #1102)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7611 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 14:55:39 +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
Paul Ramsey 6111c39b52 Convert some BOX3D functions to GBOX
git-svn-id: http://svn.osgeo.org/postgis/trunk@7486 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-25 21:42:13 +00:00
Olivier Courtin df80a93181 Change SRID to srid in LWGEOM struct (and also in CHIP too). Rename some functions related to SRID from Camel notation to lower case: errorIfSRIDMismatch, pglwgeom_getSRID, pglwgeom_setSRID, LWGEOM_getSRID, LWGEOM_setSRID, hasSRID. Related to #658
git-svn-id: http://svn.osgeo.org/postgis/trunk@6204 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-25 17:34:21 +00:00
Paul Ramsey 262696c293 Make the ptarray_add_point behavior more explicit.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6190 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-23 00:44:24 +00:00
Paul Ramsey fa620c46e1 Update force2d to preserve repeated points.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6188 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-23 00:16:30 +00:00
Olivier Courtin 931390d022 #658 part 1. Enhance LWGEOM struct (type, flags and GBOX) and related functions call.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6180 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-21 19:02:23 +00:00
Paul Ramsey 4afb908dba An argument for git. This massive commit includes the renaming of function in the ptarray API, the removal of some pointArray_* variants in favor of ptarray_* variants, and, importantly, the adition of _append_point and _insert_point options for pointarrays. Functions have been switched over to using the API instead of managing the serialized_pointlist themselves. This has necessitated the re-writing of some functions. Simplify2d and Force2d have been re-written as lwgeom functions instead of serialized form functions, and moved into liblwgeom. There are still some major functions to move into liblwgeom, including the point_in_polygon functions that support the intersects shortcuts and the linear referencing fuctions in lwgeom_functions_analytic.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6175 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-18 05:28:19 +00:00
Paul Ramsey f544929bb3 Remove DYNPTARRAY and all users of it
git-svn-id: http://svn.osgeo.org/postgis/trunk@6161 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-01 08:11:06 +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 3942a7e8b6 Finish untested support for all types in WKT input.
git-svn-id: http://svn.osgeo.org/postgis/trunk@6105 b70326c6-7e19-0410-871a-916f4a2858ee
2010-10-23 23:48:37 +00:00
Olivier Courtin 049a0e262a make astyle session
git-svn-id: http://svn.osgeo.org/postgis/trunk@5274 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 12:36:27 +00:00
Paul Ramsey 8cabdcf81f 1.5 astyle pass
git-svn-id: http://svn.osgeo.org/postgis/trunk@5181 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-01 17:35:55 +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 6adec1b2be Simplify code and improve consistency of linecrossing results (#272)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4786 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-11 19:02:19 +00:00
Regina Obe 089c55720d fix commenting style so function descriptions are picked up by doxygen
git-svn-id: http://svn.osgeo.org/postgis/trunk@4210 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-25 03:03:42 +00:00
Paul Ramsey cfb44a749f astyle --style=ansi --indent=tab (#133)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4168 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-11 16:44:03 +00:00
Regina Obe abf5606427 change commenting style to javadoc style
git-svn-id: http://svn.osgeo.org/postgis/trunk@4057 b70326c6-7e19-0410-871a-916f4a2858ee
2009-05-03 03:16:42 +00:00
Regina Obe 5d6d32a28e Experimenting with Doxygen hyperlinking tags
git-svn-id: http://svn.osgeo.org/postgis/trunk@4052 b70326c6-7e19-0410-871a-916f4a2858ee
2009-05-02 06:27:31 +00:00
Paul Ramsey d982ee5a01 Remove some camelCase function signatures from liblwgeom
git-svn-id: http://svn.osgeo.org/postgis/trunk@3812 b70326c6-7e19-0410-871a-916f4a2858ee
2009-03-09 14:36:15 +00:00
Paul Ramsey 87ee4ab726 Bind ST_GeoHash into SQL.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3688 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-11 21:48:13 +00:00
Paul Ramsey 54be933339 GeoHash implementation first cut.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3685 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-11 02:11:24 +00:00
Paul Ramsey 95b47138a2 Fix boundary conditions with from==to hitting first/list vertex.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3637 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-03 20:51:04 +00:00
Paul Ramsey ac805bda91 astyle this file
git-svn-id: http://svn.osgeo.org/postgis/trunk@3621 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-03 01:59:05 +00:00
Paul Ramsey cb026d28fd formatting
git-svn-id: http://svn.osgeo.org/postgis/trunk@3619 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-02 22:21:27 +00:00
Mark Cave-Ayland aee626b51d Bump some LWDEBUG(F) from level 1 up to levels 3-4 (level 1 is reserved)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3496 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-07 12:11:15 +00:00
Paul Ramsey 761363721f Fix based on test case from MAC.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3482 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-01 00:31:47 +00:00
Paul Ramsey fc75e88e49 Add mline version of clipper.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3479 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-24 20:15:51 +00:00
Paul Ramsey 8d86d8a685 Add lwfree_geom to generically deep-free lwgeometries.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3478 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-24 17:37:53 +00:00
Paul Ramsey f95ff43d43 Add ST_LineClipZ(geometry, from, to) SQL and C functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3456 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-21 06:37:16 +00:00
Paul Ramsey 2d6e86fd95 Complete c-level line clipping routines, and unit tests.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3455 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-19 19:21:37 +00:00
Paul Ramsey 0cef5b2262 Partial work commit for safety
git-svn-id: http://svn.osgeo.org/postgis/trunk@3446 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-18 20:22:07 +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 bdebdb6903 Partial work into SVN where I can get at it elsewhere.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3439 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-17 20:47:36 +00:00
Paul Ramsey f1b85dc426 harmonize function names so things... compile
git-svn-id: http://svn.osgeo.org/postgis/trunk@3429 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-17 05:32:03 +00:00
Paul Ramsey fdac73d9a9 Revisison per MCA and (c) headers.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3428 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-17 05:28:54 +00:00
Paul Ramsey 500fe3af33 Basic co-linearity support. Remove touching cases from crossingdirection.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3426 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-17 00:19:27 +00:00
Paul Ramsey 04d43077be Add ST_CrossingDirection(line, line) bindings into SQL.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3425 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-16 23:43:02 +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