Paul Ramsey
22c50e8e1b
ST_AddPoint returns incorrect result on Linux ( #1335 ) from roualt
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8257 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-29 20:22:40 +00:00
Paul Ramsey
7dfa77b7cd
ST_AsSVG kills whole postgres server when fails ( #1028 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8246 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-26 06:07:16 +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
Sandro Santilli
80aca4236e
Add a vertex-snap-tolerance parameter to ptarray_substring
...
This is aimed at improving robustness for ST_Split, which now
uses an hard-coded tolerance of 1e-14 (see #1311 )
git-svn-id: http://svn.osgeo.org/postgis/trunk@8212 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 16:32:27 +00:00
Sandro Santilli
d9e5af37f8
Add testcase for #1311 (lwgeom_split).
...
Also fix existing testcase (wasn't really testing it).
git-svn-id: http://svn.osgeo.org/postgis/trunk@8206 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 14:59:36 +00:00
Sandro Santilli
6858a09203
Fix memory leak in lwgeom_split
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8205 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 14:59:30 +00:00
Sandro Santilli
2b175a2560
Hush warning about missing prototype.
...
This is really a commit intended to amend the previous for the sake
of pointing to the correct bug being closed by it: #1273 (not #1023
which is more complex)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8204 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 12:10:25 +00:00
Sandro Santilli
a12f1614a8
Have gserialized_get_gbox_p always return a round-to-float box
...
That is, even when computing the box from scratch.
This makes the box always float-oriented,
consistently between cached and computed boxes.
Closes (hopefully forever) bug #1023 .
Includes testcase otherwise failing.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8203 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 12:03:48 +00:00
Sandro Santilli
ad654fc47d
Rename "LibGeom Suite" to simply "libgeom", for easy of use
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8200 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 08:23:31 +00:00
Sandro Santilli
c99397c62f
Surrender to evidence of the narrow ring tested being clockwise
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8199 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 08:21:41 +00:00
Sandro Santilli
50593de781
Improve robustness of ptarray_isccw (see #1302 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8198 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-21 08:08:18 +00:00
Sandro Santilli
fb8e246a7a
Add another test for ptarray_isccw, which incredibly seems to disagree with the same check done when the same ring occurs in a polygon
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8194 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-20 21:35:18 +00:00
Sandro Santilli
70e7934d65
Do not memcpy to self in ptarray_reverse (see #1302 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8193 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-20 21:19:12 +00:00
Sandro Santilli
9e055f1d2d
Better indent for comparing obtained/expected
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8192 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-20 21:19:07 +00:00
Sandro Santilli
ae35965dfb
Add test for lwgeom_force_clockwise (see #1302 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8190 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-20 20:51:22 +00:00
Sandro Santilli
2d2e91275b
Add test for ptarray_isccw (see #1302 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8189 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-19 17:28:33 +00:00
Sandro Santilli
beb62064f5
Make sure to "round-to-float" boxes read from serialized, no matter if there was or not a cache. Fixes #1273 . Includes regress testing. Note: would be worth to also test the 2-points line case (I didn't in this specific commit, but the patch should fix that as well).
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8134 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-10 11:10:19 +00:00
Sandro Santilli
51f91a5015
Re-fix robustness issue on 32bit system (seg is 0-based, npoints is 1-based but segments is npoints-1)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8115 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-08 10:23:07 +00:00
Sandro Santilli
68a37aec98
Add test for bug #1270
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8113 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-08 08:55:09 +00:00
Sandro Santilli
5233a6baf7
Fix st_line_locate_point check for "last point" ( #1271 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8112 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-08 08:51:15 +00:00
Sandro Santilli
c26ff81c65
Enhance robustness of ptarray_locate_point, fixing bug #1269 .
...
Includes regression testcase.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8107 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-07 17:01:50 +00:00
Sandro Santilli
486f798b57
Double-check line splitting to avoid returning empty components
...
It happened on my 32bit system based on presence or absence of an lwnotice call, probably a compiler bug...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8105 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-06 20:17:43 +00:00
Sandro Santilli
2dcd5728a6
Fix clean rule to get rid of .o files
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8092 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-04 18:17:10 +00:00
Sandro Santilli
174a4e7ac5
Fix builds againts GEOS < 3.3
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8089 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-04 08:15:53 +00:00
Sandro Santilli
dec5cc525b
Add an lwgeom_node function in liblwgeom (see #1206 )
...
Includes testcase
git-svn-id: http://svn.osgeo.org/postgis/trunk@8088 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-04 06:45:10 +00:00
Sandro Santilli
1cb3777da3
Add lwcollection_reserve internal function
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8086 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-03 17:28:01 +00:00
Sandro Santilli
269d6aad6f
Pass GEOS version to unit tests, skip test for SPLIT when building against older geos.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8085 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-03 17:09:17 +00:00
Sandro Santilli
b0c8e0a039
Add an line-by-point internal split function taking an output vector.
...
Regress test the new function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8084 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-03 16:20:39 +00:00
Paul Ramsey
8b18d8006f
Composite geometries end up with nested BBOX caches ( #1254 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8078 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-02 04:28:05 +00:00
Paul Ramsey
829e2b017f
Make st_summary at least return consistent results ( #1254 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8076 b70326c6-7e19-0410-871a-916f4a2858ee
2011-11-01 17:59:00 +00:00
Paul Ramsey
c4b39b9516
Increase accuracy of area calculation ( #810 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8068 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-31 21:18:11 +00:00
Paul Ramsey
2398afc183
Move gserialized_get_gbox_p to liblwgeom and gserialized_read_gbox_p to liblwgeom_internal
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8066 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-31 20:55:05 +00:00
Paul Ramsey
2844486b6c
Rename pglwgeom_box2d_p
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8065 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-31 20:23:44 +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
Paul Ramsey
a7f66610ba
Remove SERIALIZED_FORM
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8052 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-30 20:45:58 +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
475ce68b84
Remove pglwgeom_get_zm
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8044 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-29 20:04:04 +00:00
Paul Ramsey
ed669e1e99
Remove pglwgeom_has_bbox, pglwgeom_has_z, pglwgeom_has_m
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8040 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-29 00:58:28 +00:00
Paul Ramsey
77b1fcfecb
Remove BOX2DFLOAT4->GBOX and PG_LWGEOM->GSERIALIZED #defines
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8034 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 20:46:18 +00:00
Paul Ramsey
4a21c4e067
Fix call to geometry_type_from_string to use right type.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8033 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 18:21:13 +00:00
Paul Ramsey
bb58aea581
Move clone support functions into internal
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8032 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 18:09:20 +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
Paul Ramsey
dbcd82cb6b
Remove orphaned box3d and box2dfloat4 utility functions
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8030 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 17:52:58 +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
e6f8141eb3
Remove box2df_from_gbox and gbox_from_box2df
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8028 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 17:35:18 +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
e4e64ae0ba
Remove old profiling code
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8026 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 14:51:08 +00:00
Paul Ramsey
5fb082d9b2
Remove old 8-bit type utility functions.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8025 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-27 23:02:03 +00:00
Paul Ramsey
199316c6fe
Remove LWGEOM_Min* and LWGEOM_Max*
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8024 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-27 22:48:36 +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