Paul Ramsey
bf2901b473
#2622 , Update links to PostGIS website in source file headers
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12198 b70326c6-7e19-0410-871a-916f4a2858ee
2014-01-29 17:49:35 +00:00
Paul Ramsey
49d9ea4505
lwgeom_release ( #699 ), reviewed all usage of lwgeom_release
...
and replaced with lwgeom_free where possible. Changed the
def'n of lwgeom_release so that it only frees the containing
objects, and not any sub-objects, for those few remaining
cases that required a gentler freeing of objects.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9072 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-07 19:42:49 +00:00
Paul Ramsey
62203821fa
Remove old deserialze and inspected functions.
...
serialized_lwgeom_size
lwgeom_size_subgeom
lwgeom_size_point
lwgeom_size_line
lwgeom_size_circstring
lwgeom_size_poly
lwgeom_size_triangle
lwgeom_deserialize
lwpoint_deserialize
lwline_deserialize
lwpoly_deserialize
lwtriangle_deserialize
lwcircstring_deserialize
lwmpoint_deserialize
lwmline_deserialize
lwmpoly_deserialize
lwcollection_deserialize
lwcompound_deserialize
lwcurvepoly_deserialize
lwmcurve_deserialize
lwmsurface_deserialize
lwpsurface_deserialize
lwtin_deserialize
printMULTI
lwgeom_inspect
lwgeom_getpoint_inspected
lwgeom_getpoint
lwgeom_getline_inspected
lwgeom_getline
lwgeom_getpoly
lwgeom_getpoly_inspected
lwgeom_gettriangle
lwgeom_gettriangle_inspected
lwgeom_getcircstring_inspected
lwgeom_getgeom_inspected
lwgeom_getsubgeometry
lwgeom_getsubgeometry_inspected
lwgeom_getsubtype
lwgeom_getsubtype_inspected
lwgeom_getnumgeometries
lwgeom_getnumgeometries_inspected
git-svn-id: http://svn.osgeo.org/postgis/trunk@8018 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-27 20:05:32 +00:00
Sandro Santilli
b131652f6c
Drop (u)int32 and uchar in favor of C99 standard int types [RT-SIGTA]
...
This commit drops PostgreSQL references in liblwgeom.h (C_H define)
and hopefully reduces the noise generated by custom symbols.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7761 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-19 09:34:58 +00:00
Paul Ramsey
fd6d759590
Re-orgs to push the geodetic/cartesian divide a little further under the covers as part of the geometry/geography group hug at the index bindings level.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6437 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 20:10:36 +00:00
Paul Ramsey
1ae5b8f68b
ptarray_free now frees the serialized_ptlist, unless FLAGS_GET_READONLY is set.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6340 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-11 00:28:57 +00:00
Paul Ramsey
5ff93efd20
Move length calculations fully to liblwgeom and remove LWGEOM_INSPECTED
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6215 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-30 22:55:54 +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
0a1c671fae
Ensure that flags are initialized cleanly in constructors
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6194 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-24 00:28:40 +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
0bb9c409dd
Flip all the internal liblwgeom files over to use liblwgeom_internal.h
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6160 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-01 01:28:12 +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
Mark Cave-Ayland
8c815339fb
Fix a memory leak in all of the MULTI* deserialize routines - once the relevant information had been copied from the LWGEOM_INSPECTED structure, the inspected structure itself was not being freed.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5824 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-14 10:57:41 +00:00
Olivier Courtin
284a032273
Few lwtype_name add
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5822 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-13 17:30:10 +00:00
Paul Ramsey
1ca9049cde
Some function renaming: lwgeom_typename => lwtype_name. The internal float/up/down functions get slightly better names. Make collection types re-sizable: added maxgeoms to all collections, and created lwcollection_add_lwgeom() function. Remove all *_add functions. Revized homogenize function to use the new _add_lwgeom and variants.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5439 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-16 03:13:33 +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
f0894275df
Make ST_AddMeasure handle multilinestrings as well as linestrings.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5168 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-26 18:56:22 +00:00
Paul Ramsey
e003325935
Fixed up de-serialization routines to avoid *geoms = malloc(0) cases which were causing free to fail later on down the line ( #370 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5099 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-04 17:55:14 +00:00
Paul Ramsey
a7f032948f
CFLAGS=-pedantic pass over the codebase and warnings reduced
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5039 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-20 17:42:44 +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
Paul Ramsey
cdfcc4e366
Propset Author Id Keyword Revision on all files.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3639 b70326c6-7e19-0410-871a-916f4a2858ee
2009-02-04 00:28:37 +00:00
Paul Ramsey
6744f68423
Rename lwfree_* to *_free.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3510 b70326c6-7e19-0410-871a-916f4a2858ee
2009-01-09 17:41:23 +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
Paul Ramsey
ef6ca1b8bb
Add in lwfree_* deep memory clean-up routines for multi-objects.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3454 b70326c6-7e19-0410-871a-916f4a2858ee
2008-12-19 19:20:34 +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