Sandro Santilli
8c6afecd88
Fix bug in gbox_same -> lwgeom_same -> ST_OrderingEquals ( #1454 )
...
Adds regression test for lwgeom_same and ST_OrderingEquals
git-svn-id: http://svn.osgeo.org/postgis/trunk@8779 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 18:45:00 +00:00
Sandro Santilli
887793cead
Fix EMPTY ~= EMPTY to return TRUE ( #1453 )
...
This also fixes ST_OrderingEquals for empty geometries and
adds the concept of NULL boxes to represent EMPTY boxes.
ST_Equals is still broken as it uses the overlap operator instead.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8778 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 17:18:27 +00:00
Sandro Santilli
d5c60e3097
Unleash SQL/MM WKT returned by ST_AsText ( #287 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8766 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 10:34:41 +00:00
Sandro Santilli
25c22d217e
Check type of elements added to multi geometries. Fixes #1445 .
...
Includes regress testing both at the liblwgeom and postgis levels.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8742 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-10 11:36:14 +00:00
Sandro Santilli
b89eb41a1d
Alwas return NULL on type miss from ST_CollectionExtract ( #835 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8718 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-09 16:20:21 +00:00
Paul Ramsey
8c45923794
Move geojson test into geojson.sql file
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8692 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-07 00:47:36 +00:00
Paul Ramsey
b47da47ea1
ST_GeomFromGeoJSON - Malformed GeoJSON causes SIGSEGV in postgres process ( #1434 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8690 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-07 00:29:34 +00:00
Paul Ramsey
cbd71f7374
Change to GNU macro NAN. Still not feeling The Confidence.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8667 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 23:52:42 +00:00
Paul Ramsey
f1ca2a8e8e
Change units to radians and add some tests ( #657 and #1305 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8655 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 19:21:32 +00:00
Regina Obe
613f4966ef
#722 : regress replace GeomFromText with ST_GeomFromText
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8645 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-02 00:25:46 +00:00
Sandro Santilli
3ccea13bcc
Don't depend on bytea representation for unrelated tests.
...
Fix testing against PostgreSQL 9.0+.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8500 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-22 08:23:32 +00:00
Sandro Santilli
ac0d3e3935
Different types _can_ be equal, see #756
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8480 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-20 18:51:54 +00:00
Sandro Santilli
da36dfce37
Fix st_extent on empty relation ( #1385 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8451 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-18 14:22:43 +00:00
Sandro Santilli
9ecf9421a3
Add test for #1344 (can't dump invalid geometries)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8444 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-16 14:59:34 +00:00
Sandro Santilli
5695c7f69c
Check typmod on geometry input. Fixes before triggers ( #1320 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8431 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-15 23:26:28 +00:00
Sandro Santilli
ace7034eda
Enable a test for an old bugfix ( #683 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8410 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 14:46:45 +00:00
Sandro Santilli
bd52e9708d
Move the EMPTY buffer test from tickets.sql to empty.sql
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8409 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 14:46:39 +00:00
Sandro Santilli
a83ff63d4d
Maintain the buffer-returns-areal invariant on empty input ( #322 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8382 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-13 12:00:56 +00:00
Sandro Santilli
aa89332e6e
Have ST_Estimated_Extent return NULL when no stats are found for a table.
...
No stats means empty table or no run of analyze. Warn about that.
These Fixes bug #877 . Includes regress test.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8319 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-08 11:29:00 +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
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
2e970a0f99
Do not input an explicit value to mean unknown SRID
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7961 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 07:20:59 +00:00
Sandro Santilli
0bc62ec262
A couple more tests for btree against points: different points, differently cached boxes
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7584 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 15:40:22 +00:00
Sandro Santilli
06d5c47379
Add test for btree equality of points ( #1023 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7580 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 14:14:59 +00:00
Paul Ramsey
9a84f1b1a3
GEOS no like POINT EMPTY ( #1060 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7523 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-29 22:40:40 +00:00
Paul Ramsey
c8d72b79fd
Bounding box calculation for straight CircString fails ( #668 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7416 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-17 22:18:59 +00:00
Sandro Santilli
5c758a4fa9
The box2d of an empty geometry is NULL, not a point. Closes ticket #938 and regress-tests it.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7307 b70326c6-7e19-0410-871a-916f4a2858ee
2011-06-01 12:31:58 +00:00
Chris Hodgson
76e7146ef7
added regess test for #884
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7139 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-12 22:05:03 +00:00
Chris Hodgson
bf60906378
merged changes r7092 to fix null handling in st_collect for #912 , #630 in 1.5 branch into trunk
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7093 b70326c6-7e19-0410-871a-916f4a2858ee
2011-05-04 23:56:34 +00:00
Sandro Santilli
c7ec501ef9
Implement SnapToGrid for CIRCULARSTRING and COMPOUNDCURVE. Just enough to fix #183 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7029 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-14 11:07:33 +00:00
Sandro Santilli
84f1a5af38
Add test for ticket #834
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7024 b70326c6-7e19-0410-871a-916f4a2858ee
2011-04-13 11:21:31 +00:00
Sandro Santilli
02ca0487d2
Improve precision of point_in_ring. Fixes and regress-tests bug #845 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6857 b70326c6-7e19-0410-871a-916f4a2858ee
2011-02-24 15:17:37 +00:00
Sandro Santilli
60931579e5
Add test for ST_AsGML with long srsName. Expects what at first sight looked like a bug ( #804 ).
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6697 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-22 18:46:13 +00:00
Regina Obe
d697ad8ad3
#722 : remove more deprecated functions - ST_MakeLineGArray, Polygonize_GArray,PointFromWKB (proto), max_distance
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6669 b70326c6-7e19-0410-871a-916f4a2858ee
2011-01-18 14:53:25 +00:00
Paul Ramsey
72cecc3d76
Fix regression failure in standard serialization mode. ( #735 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6523 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-28 18:00:34 +00:00
Paul Ramsey
396d028672
T_Distance_Spheroid is kinda broken ( #677 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6517 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-28 00:27:37 +00:00
Paul Ramsey
1e2f558d94
ST_MakeLine aggregate function crashes with empty geometries ( #729 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6515 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-27 22:41:57 +00:00
Paul Ramsey
eb97c07737
Add more tickets tests up to #700
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6495 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-23 22:49:03 +00:00
Paul Ramsey
82dea69283
Add some tickets from the trac into regression
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6493 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-23 19:06:25 +00:00
Paul Ramsey
581a67df60
Add regression test for #723
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6457 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-20 23:34:23 +00:00
Paul Ramsey
d7e2ffc703
Add in test for #720
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6445 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-18 15:31:25 +00:00
Paul Ramsey
bb5a15fc54
Review to prepare generic index bindings for geography, then geometry
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6439 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 22:03:36 +00:00
Paul Ramsey
ebc5208d24
Harmonize some index support functions to be more generic gserialized functions and less specific geography functions.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6438 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-17 21:32:11 +00:00
Paul Ramsey
5b3fb97af4
ST_CollectionExtract returns non-requested type ( #457 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6363 b70326c6-7e19-0410-871a-916f4a2858ee
2010-12-13 21:31:29 +00:00
Paul Ramsey
d2e7bc9908
Forward port regression fixes for pgSQL 9.0 support
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@6017 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-24 18:41:16 +00:00
Sandro Santilli
af239f0e5e
Fix crash on invalid polygon rings conversion to geos
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5563 b70326c6-7e19-0410-871a-916f4a2858ee
2010-04-17 08:26:39 +00:00
Sandro Santilli
d2acb20860
Add another validity test [RT-SIGTA]
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5236 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-13 15:29:01 +00:00
Sandro Santilli
5f67d6b4a9
Don't refuse to unparse malformed geometries. Fixes #411 . Didn't seem to expose the crash in #168 , the testcase for it was expanded to extract invalidity reason.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5214 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-08 18:54:47 +00:00
Sandro Santilli
42283ab8a1
Add another test for #407
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5212 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-06 13:48:44 +00:00
Sandro Santilli
f82e241795
Register a buffer-logger as error-reporter from ST_isValidReason and ST_isValidDetail so to catch exceptions thrown by GEOS at postgis->geos conversion for the sake of reporting actual error. Fixes ticket #408 . Completed with testcase.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5207 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-05 20:55:54 +00:00