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 |
|
Olivier Courtin
|
02e9731e2a
|
Remove Integer deprecaded types (POINTTYPEI, LINETYPEI, POLYGONTYPEI) and lwgi related stuff. As a consequence EWKB of CURVEPOLYTYPE, MULTICURVETYPE and MULTISURFACETYPE is changed/impacted (geometry type bits). Now we have 3 new free geometry type available. Preliminary work to #427
git-svn-id: http://svn.osgeo.org/postgis/trunk@5752 b70326c6-7e19-0410-871a-916f4a2858ee
|
2010-07-24 10:55:34 +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
|
b3d2b3c9f9
|
Implement ST_CollectionExtract() to pull specific homogeneous collections out of heterogeneous collections. Regressions and documentation included. (#218)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4847 b70326c6-7e19-0410-871a-916f4a2858ee
|
2009-11-17 20:03:50 +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 |
|
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 |
|
Mark Cave-Ayland
|
580a6b862d
|
Update lwgeom_gettypename() by renaming Curve to CircularString. Now lots of error messages scattered throughout liblwgeom should start to make sense...
git-svn-id: http://svn.osgeo.org/postgis/trunk@3522 b70326c6-7e19-0410-871a-916f4a2858ee
|
2009-01-13 13:00:48 +00:00 |
|
Mark Cave-Ayland
|
531187a0be
|
Remove the few C++-style comments that have crept into the codebase, and add a note to the STYLE document stating that C-style comments should be used.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3462 b70326c6-7e19-0410-871a-916f4a2858ee
|
2008-12-22 12:15:12 +00:00 |
|
Mark Cave-Ayland
|
29ec5b20ad
|
Increase the amount of allocated memory by 3 bytes, so that if maxlength < 3 and we return just "..." then we still have enough space to store the string without clobbering memory.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3376 b70326c6-7e19-0410-871a-916f4a2858ee
|
2008-12-11 14:55:21 +00:00 |
|
Mark Cave-Ayland
|
ddbd8474f5
|
Fix up a couple of errors in the new lwmessage_truncate() function found by Kevin - correct an off-by-one error in the code, and include a missing startpos offset in the end truncation code. Also ensure that if maxlength gets too small then we return "..." rather than crashing.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3375 b70326c6-7e19-0410-871a-916f4a2858ee
|
2008-12-11 13:46:29 +00:00 |
|
Mark Cave-Ayland
|
f86114f64c
|
Add new lwmessage_truncate() function to liblwgeom that will truncate a string to a maximum number of characters, adding a "..." to indicate where the string has been trimmed. Truncation can be specified to occur from either the start or end of the string as required. Also update the parser error handler to use the new function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3373 b70326c6-7e19-0410-871a-916f4a2858ee
|
2008-12-10 12:32:40 +00:00 |
|
Mark Cave-Ayland
|
7b54f79534
|
Fix lwgeom_typename() not returning a valid string for any of the newer geometry types.
git-svn-id: http://svn.osgeo.org/postgis/trunk@3243 b70326c6-7e19-0410-871a-916f4a2858ee
|
2008-11-04 14:09:53 +00:00 |
|
Mark Cave-Ayland
|
b53c6b8ebb
|
Refactor the memory management routines to account for the fact that variadic functions can't be called directly from the initial allocators. Also solve issues related to differences between the system vasprintf() (if supplied) and the liblwgeom vasprintf() by renaming to lw_vasprintf() and using it throughout PostGIS. With all this in place, GBT#54 is fixed which is very useful when debugging ;)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2995 b70326c6-7e19-0410-871a-916f4a2858ee
|
2008-09-23 19:44:57 +00:00 |
|
Mark Cave-Ayland
|
552023181f
|
Silence a few more compiler warnings that had appeared during my last few parser commits.
git-svn-id: http://svn.osgeo.org/postgis/trunk@2972 b70326c6-7e19-0410-871a-916f4a2858ee
|
2008-09-16 22:43:31 +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 |
|