Commit graph

28 commits

Author SHA1 Message Date
Olivier Courtin b49ecf607c First implementation of gml:id support for ST_AsGML. Related to #1823. Not yet really tested. Cunit still missing
git-svn-id: http://svn.osgeo.org/postgis/trunk@9772 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-21 21:17:59 +00:00
Paul Ramsey d7136cab32 Make error message on GML2 calls for TIN more instructive (#1591)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9331 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-28 18:09:49 +00:00
Paul Ramsey f9976f0977 GML for empty geometries should be NULL (#1377)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8966 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-30 00:37:45 +00:00
Paul Ramsey cd548c37a1 Fix one remaining crasher for ST_AsGML('SRID=4326;POLYGON EMPTY');
git-svn-id: http://svn.osgeo.org/postgis/trunk@8951 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-27 23:31:18 +00:00
Sandro Santilli 8b9b187c8e Fix crash on ST_AsGML('POLYGON EMPTY') (#681)
Also tweak GML of empty types to be smaller and include
regression testing both at the liblwgeom and sql level

git-svn-id: http://svn.osgeo.org/postgis/trunk@8412 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 16:02:44 +00:00
Sandro Santilli 26fbbe9457 Add a public lwgeom_get_bbox function (#1324)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8335 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-09 14:37:16 +00:00
Sandro Santilli 4a1645eaab Don't let lwgeom_add_bbox syntetize a fake box for empty geometries
Empty geometries have no box. Period.
Update GML extent output for empty geometries to handle the special
case by using empty tags. Regress test it.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8334 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-09 14:37:11 +00:00
Sandro Santilli 9df7101d93 Fix segfault in GML3 extent output (#1323)
Add support for srsDimension in GML3 extent output.
Add unit level comprensive regression testing.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8333 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-09 13:50:50 +00:00
Sandro Santilli 9b6698d0bf Const-correct GML signatures
git-svn-id: http://svn.osgeo.org/postgis/trunk@8229 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-23 17:28:48 +00:00
Paul Ramsey 93087d39dc Remove some duplicate headers (much of this to be done...)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8053 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-30 20:57:56 +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
Olivier Courtin 3a2e168d32 First implementation of #459. Still need unit tests and docs
git-svn-id: http://svn.osgeo.org/postgis/trunk@7077 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-30 22:26:18 +00:00
Sandro Santilli a60b0c7d2e Add LW_GML_SHORTLINE flag to prefer <LineString> over <Curve> tag for lines GML3 output [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6850 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-22 14:25:15 +00:00
Sandro Santilli 160b531256 Use a single bitfield for GML output options [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@6849 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-22 13:01:07 +00:00
Paul Ramsey 59b90ac7c5 Fix crash in GML output of POLYGON EMPTY (#681)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6300 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-08 18:06:39 +00:00
Paul Ramsey 4689c034a6 Remove LWGEOM_INSPECTED from AsGML and AsKML
git-svn-id: http://svn.osgeo.org/postgis/trunk@6213 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-30 21:35:19 +00:00
Olivier Courtin 586c389dc8 Change POINTARRAY.dims to POINTARRAY.flags. Related to #658
git-svn-id: http://svn.osgeo.org/postgis/trunk@6205 b70326c6-7e19-0410-871a-916f4a2858ee
2010-11-25 18:38:20 +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
Olivier Courtin c09ea80cd2 Astyle session on whole trunk
git-svn-id: http://svn.osgeo.org/postgis/trunk@5825 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-15 08:30:08 +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 a283b58ab9 Add POLYHEDRALSURFACE support to ST_AsGML for GML 3 output
git-svn-id: http://svn.osgeo.org/postgis/trunk@5803 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-10 16:19:24 +00:00
Olivier Courtin 23d4eb80c3 Add new option to ST_AsGML: ability to remove srsDimension attribute in GML 3. cf #508
git-svn-id: http://svn.osgeo.org/postgis/trunk@5575 b70326c6-7e19-0410-871a-916f4a2858ee
2010-04-27 15:26:08 +00:00
Sandro Santilli 6dbdfe81f3 Add support in liblwgeom for specifying a custom (or no) namespace/prefix for GML output
git-svn-id: http://svn.osgeo.org/postgis/trunk@5452 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-22 21:13:43 +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 b9b682cd5f Set keywords.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5372 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-03 06:10:41 +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 b1f67e7c43 Add forgotten lwout_gml.c file (#377)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5276 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 18:23:49 +00:00