Paul Ramsey
73e139698b
Revert previous commit, problem tricked into raster...
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@13343 b70326c6-7e19-0410-871a-916f4a2858ee
2015-03-16 20:41:54 +00:00
Paul Ramsey
be9d28adad
Add a regression test for ST_Subdivide
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@13342 b70326c6-7e19-0410-871a-916f4a2858ee
2015-03-16 19:59:20 +00:00
Paul Ramsey
fd8a0a853f
Comments and notes
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@13326 b70326c6-7e19-0410-871a-916f4a2858ee
2015-03-08 23:42:54 +00:00
Paul Ramsey
2c31d1fc61
#3074 , subdivide any geometry into a simple set of
...
smaller parts, great for subdividing tables of
Really Big Things into things that are smaller than
the page size
git-svn-id: http://svn.osgeo.org/postgis/trunk@13324 b70326c6-7e19-0410-871a-916f4a2858ee
2015-03-07 01:35:12 +00:00
Paul Ramsey
7293d5e2b5
#3074 , add in lwgeom backend for subdivision
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@13323 b70326c6-7e19-0410-871a-916f4a2858ee
2015-03-06 22:03:33 +00:00
Paul Ramsey
fc8064f204
#3074 , first piece of infrastructure, count points in a piece
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@13322 b70326c6-7e19-0410-871a-916f4a2858ee
2015-03-06 14:45:37 +00:00
Paul Ramsey
53f487070d
Make serialization code more agressive about not adding boxes to small things
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@13315 b70326c6-7e19-0410-871a-916f4a2858ee
2015-03-05 19:30:40 +00:00
Paul Ramsey
cb73df91ec
Change more getpoint2d_p to const point calls
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@13312 b70326c6-7e19-0410-871a-916f4a2858ee
2015-03-05 18:38:59 +00:00
Sandro Santilli
f89961fc6e
Add ST_SwapOrdinates function
...
This is a generalization of ST_FlipCoordinates
git-svn-id: http://svn.osgeo.org/postgis/trunk@13289 b70326c6-7e19-0410-871a-916f4a2858ee
2015-02-25 15:03:31 +00:00
Paul Ramsey
aab816f87d
Move snap-to-grid functions into lwgeom where they belong.
...
Modernize geometry construction to use accessors more
git-svn-id: http://svn.osgeo.org/postgis/trunk@13255 b70326c6-7e19-0410-871a-916f4a2858ee
2015-02-20 20:31:25 +00:00
Sandro Santilli
7a02d69978
Fix yet another memory leak in lwgeom_make_valid ( #2947 )
...
The leak occurs on invalid single-component collection input.
git-svn-id: http://svn.osgeo.org/postgis/trunk@13025 b70326c6-7e19-0410-871a-916f4a2858ee
2014-10-01 14:36:41 +00:00
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
95f32e10b9
#2433 , ST_ConcaveHull 2.1 regress failure compared to 2.0
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@12049 b70326c6-7e19-0410-871a-916f4a2858ee
2013-10-19 04:24:54 +00:00
Sandro Santilli
c86d9084bd
Implement ST_ForceCurve ( #2430 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11803 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-14 22:40:16 +00:00
Sandro Santilli
805fb4e986
Fix ST_Multi with COMPOUNDCURVE and CURVEPOLYGON types ( #2415 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11754 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-09 06:59:55 +00:00
Olivier Courtin
629551694f
cf #2318 , add a optional additional version parameter in ST_ForceSFS, handle both 1.1 and 1.2. default is 1.1
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11409 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-10 17:17:18 +00:00
Olivier Courtin
782eaa752f
output COLLECTION of Polygon for TIN and PolyhedralSurface, for ST_ForceSFS (instead of MultiPolygon). Thanks to Sandro for these input
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11402 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-10 11:40:50 +00:00
Olivier Courtin
927028f23c
Add SFCGAL support cf #2254 . Include SFCGAL support, postgis backend handling (GEOS/SFCGAL). Regress tests, documentation prototypes and also additional force_sfs function.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11389 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-09 19:38:17 +00:00
Olivier Courtin
f7c7517971
Related to #1553 . Add missing free in cu_surface cunit to be valgrind clean. As TGEOM was not used as storage serialization, i purely remove TGEOM for now, and kept only the TIN/POLYHEDRALSURFACE lwgeom expression (will see in future if we really need to have a 3D topological storage PostGIS side)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@11205 b70326c6-7e19-0410-871a-916f4a2858ee
2013-03-25 18:41:48 +00:00
Paul Ramsey
0b735b027b
#2028 , ST_Multi(<triangle>) does not make a TIN
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10675 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-14 22:29:23 +00:00
Paul Ramsey
f6580e93a1
#799 , make geographic coordinates in range
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10670 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-14 20:45:16 +00:00
Paul Ramsey
11e1a8c0e1
#2019 , ST_FlipCoordinates does not update bbox
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10621 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-02 17:52:45 +00:00
Paul Ramsey
42ce299b7c
( #2026 ) fix performance regression in geography distance calculation
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10531 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-23 22:17:12 +00:00
Paul Ramsey
2002bd670a
Move some ptarray functions out of postgis and back into liblwgeom from silly old function that shouldn't even exist anymore (LWGEOM_inside_circle_point)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@10338 b70326c6-7e19-0410-871a-916f4a2858ee
2012-09-28 20:30:26 +00:00
Paul Ramsey
a6f362e30e
Add in SQL binding for circ-tree cached searching. Currently in *Cached variants to allow comparisons.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9949 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-19 03:42:30 +00:00
Paul Ramsey
7fba2e0c26
st_isclosed() doesn't return false for unclosed POLYGONS only LINESTRINGS ( #1756 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9650 b70326c6-7e19-0410-871a-916f4a2858ee
2012-04-20 03:23:47 +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
Sandro Santilli
6ef84a957a
Don't let ST_Multi create collections of a single EMPTY ( #1489 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8892 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-20 14:47:24 +00:00
Sandro Santilli
10732e13a9
Implement lwgeom_same for MULTICURVE and MULTISURFACE ( #1475 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8831 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:24:54 +00:00
Sandro Santilli
615bdce18a
Implement lwgeom_same for CURVEPOLYGON types ( #1475 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8830 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:21:09 +00:00
Sandro Santilli
fa2077921b
Implement lwgeom_same for COMPOUNDCURVE ( #1475 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8829 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:18:07 +00:00
Sandro Santilli
6e285b15a1
Implement lwgeom_same for circularstring ( #1475 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8828 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 10:11:44 +00:00
Sandro Santilli
6b4c747328
A CURVEPOLY is also a collection. Fixes #1473 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8827 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-16 09:11:45 +00:00
Sandro Santilli
bfa3222be1
Reflect type of empty from ST_Dimension ( #1441 )
...
No existing testcase fail, no new testcase is added.
This change doesn't invalidate any part of the reference manual.
Reference manual isn't updated.
Signed-off-by: Charlie Brown
git-svn-id: http://svn.osgeo.org/postgis/trunk@8748 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-10 14:58:16 +00:00
Sandro Santilli
c532c9b846
Add lwgeom_construct_empty API call
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8720 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-09 17:01:48 +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
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
Paul Ramsey
183dde1c71
Remove pglwgeom_ndims
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8046 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-29 20:35:41 +00:00
Paul Ramsey
4bd609aeff
Remove orphaned _compute_box3d functions
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8029 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 17:44:00 +00:00
Paul Ramsey
07f2341e38
Ensure calls to lwgeom->type use type of uint8_t
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8027 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 17:01:02 +00:00
Paul Ramsey
912a2ca7db
Remove serialized_form functions:
...
lwpoint_serialize_size
lwpoint_serialize
lwpoint_serialize_buf
lwline_serialize_size
lwline_serialize
lwline_serialize_buf
lwpoly_serialize_size
lwpoly_serialize
lwpoly_serialize_buf
lwtriangle_serialize_size
lwtriangle_serialize
lwtriangle_serialize_buf
lwcircstring_serialize_size
lwcircstring_serialize
lwcircstring_serialize_buf
lwcollection_serialize_size
lwcollection_serialize_buf
lwgeom_constructempty
lwgeom_constructempty_buf
lwgeom_empty_length
lwgeom_serialize_size
lwgeom_serialize
lwgeom_serialized_construct
lwgeom_getsrid
git-svn-id: http://svn.osgeo.org/postgis/trunk@8023 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-27 21:03:00 +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
Paul Ramsey
b38b09da0e
Remove *_compute_box2d* functions that are now orphans.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8006 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-26 22:36:22 +00:00
Paul Ramsey
afa9374199
Change "no SRID" SRID to 0 ( #286 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7912 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-28 23:38:56 +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
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
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
092bfedef2
Implement ptarray_clone (shallow) and update clone documentation (doxygen), have lw*_clone clone the POINTARRAY but not the serialized point list (using ptarray_clone), add unit testing for lwgeom_clone. See ticket #1102 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7608 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 14:29:26 +00:00
Paul Ramsey
45db0c6bf6
Remove memory leaks when a parse error kicks out in WKT ( #1102 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7587 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 22:51:37 +00:00