Nicklas Avén
b06662be37
Fixed some build warnings I had missed
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5890 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-01 20:14:05 +00:00
Nicklas Avén
d5b2e25d6d
3D Distance functions, only point-point and point line. #576
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5889 b70326c6-7e19-0410-871a-916f4a2858ee
2010-09-01 19:55:11 +00:00
Olivier Courtin
35e5081fbc
Fix wrong pointer allocation size, with 64 bits errors. Tks to Mateusz for report. Improve cu_unit report. Improve and fix some messages from LWDEBUG
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5878 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-31 19:14:43 +00:00
Olivier Courtin
240a037ce9
Astyle on new files
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5875 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-30 09:06:40 +00:00
Olivier Courtin
9b7c90ca8e
Add Topology structure for connected surfaces (PolyhedralSurface, Tin) and LWGEOM to TGEOM transformations routines. Add related cunit tests. Merge cu_tin and cu_polyhedralsurface into a single cu_surface unit test.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5874 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-30 06:49:51 +00:00
Olivier Courtin
5672203c88
add Triangle support in lwgeom_getnumgeometries
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5872 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-30 06:45:30 +00:00
Paul Ramsey
f0dd881d22
Add unfinished WKB input parser for later.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5856 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-20 22:38:44 +00:00
Paul Ramsey
5d5af4af51
Slight improvement for #573
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5852 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-19 19:50:23 +00:00
Olivier Courtin
751997d5da
Fix for #573 , where has_arc check with unsupported TRIANGLE/TIN/POLYHEDRALSURFACE produce crash with POSTGIS2GEOS function. Thanks to Regina for bug report !
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5845 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-18 08:01:24 +00:00
Paul Ramsey
17d1755d9f
Return the, er, return value.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5843 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-17 20:10:53 +00:00
Olivier Courtin
5c95d679f2
Add forgotten Triangle support in lwgeom_inspect
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5829 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-15 18:51:41 +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
Mark Cave-Ayland
8c815339fb
Fix a memory leak in all of the MULTI* deserialize routines - once the relevant information had been copied from the LWGEOM_INSPECTED structure, the inspected structure itself was not being freed.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5824 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-14 10:57:41 +00:00
Olivier Courtin
284a032273
Few lwtype_name add
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5822 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-13 17:30:10 +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
Nicklas Avén
16cded9aae
pushing *uchar use out of measures.c as part of #308
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5807 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-11 09:24:58 +00:00
Paul Ramsey
6a3fb2ef57
Add in fix for #562 , forward ported from 1.5 branch (point-in-poly failure for large large geography polygons)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5805 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-10 19:43:38 +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
2e61612b4a
Improve printLWPSURFACE to also print each rings if any
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5792 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-08 20:36:42 +00:00
Olivier Courtin
15272e3b0b
lwtype_name session. cf #453
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5791 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-06 21:31:54 +00:00
Olivier Courtin
7fcafd48ac
Change label 'face' to 'patch' in POLYHEDRALSURFACE. Related to #427
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5771 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-05 15:58:28 +00:00
Olivier Courtin
c3a59d10f8
Add geography support for POLYHEDRALSURFACE. Related to #427
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5770 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-04 20:02:26 +00:00
Olivier Courtin
17f2576e3c
Add 2D and 3DM support to POLYHEDRALSURFACE. Allow interior rings for patches. Don't check anymore minimum patch number. Related to #427
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5760 b70326c6-7e19-0410-871a-916f4a2858ee
2010-08-01 21:11:38 +00:00
Nicklas Avén
be11fac1a8
ugly style fix
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5758 b70326c6-7e19-0410-871a-916f4a2858ee
2010-07-29 13:44:49 +00:00
Nicklas Avén
0bc72c7cee
param.h is needed for ENDIAN definitions in mingw
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5757 b70326c6-7e19-0410-871a-916f4a2858ee
2010-07-29 13:36:35 +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
77b245cb34
Rename vasbappend to stringbuffer_aprintf
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5623 b70326c6-7e19-0410-871a-916f4a2858ee
2010-05-17 23:38:04 +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
Olivier Courtin
d3b3479ad7
Fix wrong OGC URN in GeoJson and GML output. Cf #507
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5572 b70326c6-7e19-0410-871a-916f4a2858ee
2010-04-27 13:58:41 +00:00
Olivier Courtin
fa69a73149
Add optional namespace to ST_AsKML function. related in a way to #460
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5532 b70326c6-7e19-0410-871a-916f4a2858ee
2010-04-12 08:48:02 +00:00
Paul Ramsey
7a6b0b636c
Fix syntax error.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5469 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-29 20:03:35 +00:00
Paul Ramsey
e90cae99af
Reorganize avprintf a litle.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5468 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-29 20:02:59 +00:00
Paul Ramsey
624f8a909e
Propogate vsnprintf errors up verbatim
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5467 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-29 19:57:15 +00:00
Paul Ramsey
f6dd102bcf
Make the default size more reasonable again.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5463 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-25 05:11:20 +00:00
Paul Ramsey
701469d92b
Add comments on error return values.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5462 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-25 05:09:14 +00:00
Paul Ramsey
0e9cfef4d4
Improved stringbuffer again. Always write directly into the buffer, no more memcpy'ing. Change return values for printing calls to int, so that print errors can be detected and handled by the layers above, if desired.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5461 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-25 05:06:39 +00:00
Paul Ramsey
4eb4127299
Restore original license terms.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5460 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-24 17:54:39 +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
Sandro Santilli
4be8335c1a
Don't choke on clean when there's nothing to clean
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5446 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-17 07:40:41 +00:00
Sandro Santilli
f93889a5f0
Fix 'clean' rule to descend in cunit
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5445 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-17 07:32:59 +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
Sandro Santilli
478d2fffb0
ptarray_substring *does* already implement interpolation
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5429 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-12 15:46:09 +00:00
Sandro Santilli
fb7ab3a9a3
Since we do a full scan of pointarray from ptarray_locate_point, take the chance to also return min distance
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5395 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-10 15:29:39 +00:00
Sandro Santilli
c2eac6cc1a
Document closest_point_on_segment in header file
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5394 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-10 14:32:54 +00:00
Sandro Santilli
8ed31bd563
Document ptarray_locate_point in header file
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5393 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-10 14:20:04 +00:00
Paul Ramsey
a17c33cc33
Update the bbox when you alter the underlying geometry ( #410 ) ST_SetPoint, ST_Ad
...
dPoint, ST_RemovePoint.
git-svn-id: http://svn.osgeo.org/postgis/trunk@5384 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-08 23:28:28 +00:00
Paul Ramsey
3345c77743
A few more WKB unit tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5375 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-05 02:35:16 +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
Paul Ramsey
0c32bc13d1
Set keywords and some copyright headers.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5371 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-03 06:10:07 +00:00
Paul Ramsey
f4f4aa7dbe
Add some tests of the old versus new WKB output.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5370 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-03 06:06:23 +00:00
Paul Ramsey
e0e7243ee8
Remove doxygen flags from static functions.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5368 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-03 05:40:29 +00:00
Paul Ramsey
a81a0a2f90
Add some documentation to the public functions.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5367 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-03 05:38:38 +00:00
Paul Ramsey
7658099f7c
Add in tests and fixes for WKB emitter.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5366 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-03 01:15:16 +00:00
Paul Ramsey
de4dd5aa76
Add first cut to lwgeom_to_wkb function.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5365 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-02 23:18:39 +00:00
Paul Ramsey
ecbea23876
Add a couple functions (length, copy) to stringbuffer, and add comments.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5364 b70326c6-7e19-0410-871a-916f4a2858ee
2010-03-02 23:16:44 +00:00
Paul Ramsey
cb3fcd1b5b
Instructions on adding new tests to cunit, from Jeff Adams.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5348 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-26 02:50:58 +00:00
Olivier Courtin
aca9512afb
Add few more lwgeom_typename, and update regress test if needed. Restore initial lwnotice behaviour in remove_repeated_points on unknown types (instead of lwerror).
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5347 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-26 00:16:25 +00:00
Olivier Courtin
218f0545cc
Fix add forgotten return in flip_coordinates (cf #452 ). Add lwgeom_typename in several functions to avoid cryptic error message ( #452 again).
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5346 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-25 17:54:08 +00:00
Paul Ramsey
d8095c6034
Fix potential corner case in sphere area calculation ( #451 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5345 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-25 15:13:48 +00:00
Paul Ramsey
068abf02b5
Fix for st_area(geography) over the dateline ( #450 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5339 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-25 13:41:02 +00:00
Olivier Courtin
ab9390437e
rename ptarray_reverse_axis to ptarray_flip_coordinates. Add lwgeom_flip_coordinates and ST_FlipCoordinates ( #354 ). Add relevant cunit tests and basic documentation.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5338 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-25 13:38:57 +00:00
Paul Ramsey
854e294721
Change dimensionality indicators to have spaces between type indicators for WKT_ISO output form.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5335 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-24 14:40:17 +00:00
Paul Ramsey
e4d3fc1f9b
Add support from SRID= block on EWKT
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5334 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-24 13:50:22 +00:00
Paul Ramsey
cbe707f0f9
Remove last compile warnings.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5333 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 22:18:15 +00:00
Paul Ramsey
ee60c5f077
Making test methods static to avoid compiler warnings. For Jeff Adams.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5332 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 22:16:33 +00:00
Paul Ramsey
bd255f724f
Making test methods static to avoid compiler warnings.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5331 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 22:14:07 +00:00
Paul Ramsey
4dde0569ac
Make test functions static.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5330 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 22:11:45 +00:00
Paul Ramsey
1eba8fabf7
Made unit tests easier to add. New suites now just need to be added to two lines in cu_tester.c, no changes to header files necessary, new tests need one line in the appropriate .c file. From Jeff Adams.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5329 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 22:07:14 +00:00
Paul Ramsey
0505e74fee
Remove unused va_copy.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5327 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 21:41:52 +00:00
Paul Ramsey
ef3ccbb7fd
Woops again, got work and start size values reversed.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5326 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 21:41:09 +00:00
Paul Ramsey
170a29e721
Oops, commit stringbuffer.h with sensible values for internal sizes.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5325 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 21:30:35 +00:00
Paul Ramsey
d8b67bdd4d
Improve performance and cut back stringbuffer_t to the minimum.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5324 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 21:29:57 +00:00
Paul Ramsey
1661cf575a
Allow cu_tester to accept parameters to run individual tests or suites, from Jeff Adams.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5323 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 19:51:41 +00:00
Sandro Santilli
1975106d03
Don't let ST_RemoveRepeatedPoint collapse LINESTRINGs (not sure why, but someone doesn't want them in the db)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5322 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 19:42:15 +00:00
Olivier Courtin
b1aee9da3f
Move ptarray reverse axis function from postgis/lwgeom_in_gml to liblwgeom/ptarray
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5319 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 18:29:00 +00:00
Paul Ramsey
df95a9c43b
More WKT tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5318 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 18:18:19 +00:00
Paul Ramsey
eeb40ddd6b
More WKT unit tests
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5317 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 17:55:00 +00:00
Olivier Courtin
14f9139f54
In fact Nested GeometryCollection are never been supported in SVG and GeoJSON. Update the cunit tests cases
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5316 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-23 15:55:33 +00:00
Paul Ramsey
686ddfa2c0
Add more unit tests for WKT
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5312 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 22:43:31 +00:00
Olivier Courtin
af46ef3b88
Fix #441 . And introduce a change in behaviour: if geometryCollection and bbox, not sub geoms bbox are provided anymore
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5311 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 22:04:18 +00:00
Paul Ramsey
9d8fc40f25
ST_AsLatLonText(geometry, format) from Jeff Adams
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5305 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 20:42:05 +00:00
Paul Ramsey
51eb7b3969
First cut of new WKT output functions, need more unit tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5302 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 19:53:22 +00:00
Olivier Courtin
d13a983bf9
Fix missing math.h include in lwout_svg ( #438 ). Put back lwgeom_export.h as we need header for getSRSbySRID.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5301 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 19:52:30 +00:00
Sandro Santilli
6acfca6cac
Oops ( #434 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5299 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 19:37:21 +00:00
Sandro Santilli
72efd11d4b
Fix missing prototypes warnings
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5297 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 19:31:43 +00:00
Olivier Courtin
e1facac0bb
Id tag
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5296 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 19:31:17 +00:00
Olivier Courtin
f28948e433
Fix comment stuff in cunit
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5291 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 18:49:40 +00:00
Olivier Courtin
287fbffddd
move ST_AsSVG from postgis to lwgeom dir. write cun it tests. related to #377
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5289 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 18:43:06 +00:00
Olivier Courtin
4db9d9c395
bbox only bother about external ring. add the related cunit test
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5285 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 15:37:09 +00:00
Paul Ramsey
147a101d25
Move stringbuffer from ./loader to ./liblwgeom for use in string emitter functions.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5284 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 15:30:10 +00:00
Olivier Courtin
ab6afbcfb4
Move ST_AsGeoJson from postgis to liblwgeom dir. Use as most as cunit test as possible. Related to #377 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5283 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-22 14:03:19 +00:00
Olivier Courtin
536b630663
Add missing MultiPoint test. Fix wrong LWGEOM type on cu_gml tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5280 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 21:53:16 +00:00
Olivier Courtin
e0e94794e1
add explicit void return type
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5279 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 21:34:45 +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
Olivier Courtin
738fe292c6
Move ST_AsGML from postgis dir to liblwgeom. Rewrite most units test with cunit. cf #377
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5275 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 18:18:37 +00:00
Olivier Courtin
049a0e262a
make astyle session
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5274 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 12:36:27 +00:00
Sandro Santilli
f6ac58c764
ST_RemoveRepeatedPoints [RT-SIGTA]
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5273 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 12:22:08 +00:00
Sandro Santilli
34d920339c
Make stylish
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5271 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-21 12:21:04 +00:00
Olivier Courtin
e2bcbb862e
use the rights homogenize cunit suite handlers
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5270 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-20 19:47:49 +00:00
Olivier Courtin
3152537b81
Add lwgeom_homogenize function. Related to #375 . Add cunit related tests
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5265 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-20 18:25:42 +00:00
Olivier Courtin
5a175b5c10
Add Cunit - lwerror use case handle - #420
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5264 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-20 16:47:12 +00:00
Sandro Santilli
71f6125ba7
ptarray_remove_repeated_points [RT-SIGTA]
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5237 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-14 13:46:36 +00:00
Sandro Santilli
762c6d7c69
Get style
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5230 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-11 21:01:15 +00:00
Sandro Santilli
14bb1c251b
Enhance documentation of ptarray_addPoint [RT-SIGTA]
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5227 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-10 20:54:08 +00:00
Sandro Santilli
f801531576
Oops, it seems I broke the build (sorry)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5225 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-09 17:59:25 +00:00
Sandro Santilli
c07005556f
Fix documention
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5224 b70326c6-7e19-0410-871a-916f4a2858ee
2010-02-09 06:52:27 +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
2bfaa2112f
Keep floats out of registers for spheroid calculation. Fixes odd bug in OS/X gcc 4.1. Could probably be narrowed to only use flag on affected platform. ( #395 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5180 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-29 21:24:24 +00:00
Paul Ramsey
3c9467dda4
Extra debugging information in spheroid area calculation.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5178 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-29 18:00:16 +00:00
Paul Ramsey
d061e19bf1
Make area unit tests actually test against known good values
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5177 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-28 17:42:52 +00:00
Paul Ramsey
ea8d4c5585
Remove warning from lwline
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5170 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-26 20:20:47 +00:00
Paul Ramsey
f0894275df
Make ST_AddMeasure handle multilinestrings as well as linestrings.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5168 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-26 18:56:22 +00:00
Paul Ramsey
7b65335f33
Add ST_AddMeasure and associated documentations ( #390 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5162 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-25 21:03:42 +00:00
Paul Ramsey
721f1bafc2
Short circuit on distance tests: only do full spheroidal calculation where the distance is near or greater than the tolerance. This will make large st_dwithin() radius searches much faster since points that are well within the radius will not have their full geodetic calculation run, only those that are close to the radius boundary.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5133 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-15 18:41:41 +00:00
Olivier Courtin
3883f211de
Fix undefined vars in LWDEBUGF ( #383 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5124 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-14 14:45:06 +00:00
Paul Ramsey
e003325935
Fixed up de-serialization routines to avoid *geoms = malloc(0) cases which were causing free to fail later on down the line ( #370 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5099 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-04 17:55:14 +00:00
Paul Ramsey
473ccf0f37
Make lwcollection_extract slightly more empty-intelligent
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5092 b70326c6-7e19-0410-871a-916f4a2858ee
2010-01-04 00:31:52 +00:00
Paul Ramsey
a7f032948f
CFLAGS=-pedantic pass over the codebase and warnings reduced
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5039 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-20 17:42:44 +00:00
Paul Ramsey
f159b63673
Quiet solaris warnings
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@5012 b70326c6-7e19-0410-871a-916f4a2858ee
2009-12-16 17:00:26 +00:00
Paul Ramsey
cd73095c21
Fix up boundary condition in node interaction test.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4949 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-30 22:08:12 +00:00
Paul Ramsey
a6c08ab192
Add an internal geometry tree for use in a native prepared geometry scheme for fast intersection tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4948 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-30 20:52:16 +00:00
Paul Ramsey
b3f7f5ad5c
Add svn:keywords to everyone
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4947 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-30 20:50:57 +00:00
Paul Ramsey
1d3a5616a3
Add newlines at file ends to silence warnings
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4913 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-27 17:50:24 +00:00
Mark Cave-Ayland
d75548ebbb
Fix #316 : IsValid? called on invalid 3d object leads to crash. Because of the way the parser works, not all tuples can hold a valid parse position; hence when trying to display the error message, the parser would crash. The solution I went for here was to alter pop() so that "counting tuples" always hold a valid parse position, and then re-write the various check functions to ensure that they only display parse errors with details from the next "counting tuple" higher up in the stack.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4905 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-26 17:55:49 +00:00
Paul Ramsey
6700d1da91
Merge Nicklas Aven's distance spike into trunk. ( #63 , #231 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4894 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-25 19:15:57 +00:00
Paul Ramsey
c6042246ec
Move utility functions only used in cunit tests to the cunit code.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4880 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-22 04:56:19 +00:00
Paul Ramsey
68c55afc7e
Replace pow(,2.0) with POW2 macro.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4879 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-22 04:28:01 +00:00
Paul Ramsey
0ed71c1737
Move from pass-by-value to pass-by-const-pointer. What can I say, I have no control over myself.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4877 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-21 06:08:40 +00:00
Paul Ramsey
74dbaa2429
Fix graxing case and improve co-linear handling with help from Nicklas Aven ( #314 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4872 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-20 18:36:38 +00:00
Paul Ramsey
51be358f55
Handle the case where the stabline and a polygon edge are co-linear in point-in-polygon test.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4865 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-19 20:23:29 +00:00
Paul Ramsey
02ab6e17d5
Fix a double-free in the unit test for collection extract.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4850 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-17 22:29:40 +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
Paul Ramsey
43a8513e27
Update behavior of lwgeom_same to match "orderingequals" semantics ( #289 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4789 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-11 19:57:24 +00:00
Paul Ramsey
8d538ca180
Slightly loosen equality tolerance check for point in cone... does this fix cunit regressions?
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4788 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-11 19:35:20 +00:00
Paul Ramsey
6adec1b2be
Simplify code and improve consistency of linecrossing results ( #272 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4786 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-11 19:02:19 +00:00
Paul Ramsey
2d305b1795
Apply handling for EMPTY geometries to all geography functions per the DevWikiEmptyGeometry page.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4778 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-10 19:30:43 +00:00
Paul Ramsey
64b981e012
Fix for point-on-vertex case of st_covers ( #271 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4761 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-07 00:12:56 +00:00
Olivier Courtin
4d138982f2
revert wrong commit (r4741) on wktparse.lex file
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4742 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-04 21:19:59 +00:00
Olivier Courtin
8d09ad000f
Allow a double to not have digit after dot (related to #175 ). Update unit test case
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4741 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-04 21:10:40 +00:00
Paul Ramsey
ac336483d6
Fix for #175 , numbers with a terminal decimal won't parse.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4739 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-04 20:35:29 +00:00
Paul Ramsey
e0381459b7
Remove unit test failure cases in 32-bit architectures. Now have to test correctness
...
of algorithms on test data in 64-bit environment.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4732 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-04 00:13:04 +00:00
Paul Ramsey
9cddf4d6b9
File headers and property setting.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4729 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-03 21:24:53 +00:00
Paul Ramsey
9742ff9fbc
Re-enable other geodetic unit tests and remove Java code block.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4720 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-03 02:58:03 +00:00
Paul Ramsey
fba1c9c339
First cut of ST_Area(geography) on spheroid. Currently not default, use ST_Area(geog, true) to enable it. Beware of limitations over poles and eequator.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4719 b70326c6-7e19-0410-871a-916f4a2858ee
2009-11-03 00:36:02 +00:00
Paul Ramsey
6dd39806d5
Add ST_Length() implementation on spheroid and rationalize the sphere/spheroid implementations into
...
a smaller shared set of functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4710 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-31 00:01:45 +00:00
Paul Ramsey
260b853a58
Add in spheroid calculations for ST_Distance and ST_DWithin.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4709 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-30 20:45:50 +00:00
Paul Ramsey
33861fea7d
Minor changes for numerical stability. Remove logging.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4702 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-29 19:53:53 +00:00
Paul Ramsey
ac8f490ddb
Spheroid distance calculation between points added.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4700 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-29 19:24:06 +00:00
Olivier Courtin
0365190e5a
Add ptarray_merge function
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4679 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-24 16:35:31 +00:00
Olivier Courtin
f97acc13d3
Add ptarray_isclosed3d function
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4670 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-22 14:06:45 +00:00
Paul Ramsey
38adeece13
ST_Length(geography) per #266
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4662 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-18 04:19:04 +00:00
Mark Cave-Ayland
7dea8a5282
Update the TYPMOD_SET_* macros in the same way as for the FLAGS_SET_* macros earlier, so that they actually change the variable they reference.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4654 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-15 17:50:14 +00:00
Mark Cave-Ayland
9ffba1ed15
Alter the FLAGS_SET_* macros so that they actually update the specified flag variable, rather than just returning the new value of the flag variable.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4651 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-15 15:35:45 +00:00
Paul Ramsey
6839e6d5bc
Much better fix for NaN area problem.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4647 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-13 19:50:45 +00:00
Paul Ramsey
69f3fb98d7
HAck fix for NaN areas.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4646 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-13 19:39:19 +00:00
Paul Ramsey
c446e4711d
Don't copy bboxes from lwgeom to gserialized when working with geodetics. ( #263 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4640 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-11 02:03:13 +00:00
Paul Ramsey
40f0d6756c
Fix ST_Area(geography) calculation to be more... correct.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4636 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-10 00:08:14 +00:00
Paul Ramsey
45dab34e1c
Add implementation for ST_Covers(geography, geography) in point-in-polygon case.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4635 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-09 19:23:05 +00:00
Paul Ramsey
09d8eb42ca
Fix incorrect use of flags macros
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4634 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-09 18:07:06 +00:00
Paul Ramsey
f0b21a9582
One more fix for #260 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4633 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-09 16:51:27 +00:00
Paul Ramsey
044508e994
Fix for #261 (spurious dimension difference errors)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4632 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-09 16:07:37 +00:00
Paul Ramsey
3657335216
Add ST_PointOutside() function for testing purposes.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4630 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-09 04:16:44 +00:00
Paul Ramsey
fdaedeaf12
Make geographic point initialization slightly more efficient (avoid doing it twice for each vertex)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4629 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-08 19:40:59 +00:00
Paul Ramsey
d5e350a587
ST_Area(geography) implementation and SQL bindings.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4621 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-08 05:35:59 +00:00
Paul Ramsey
e2da8b5140
Make the calculation of gboxes a little simpler in the db level code.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4620 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-07 14:26:21 +00:00
Paul Ramsey
16379dfe1b
Put prototypes into place
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4614 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-07 03:38:41 +00:00
Paul Ramsey
c4e1620079
Change from pass by reference to pass by value
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4613 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-07 03:37:00 +00:00
Paul Ramsey
4dcc58e3b1
Short circuit the edge intersection test when the gboxes are disjoint
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4612 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-07 03:35:29 +00:00
Regina Obe
acb21f5632
Turn of Paul's accidental commit of fanboy mac enabled random test
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4606 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-06 11:15:41 +00:00
Mark Cave-Ayland
5e784b2b78
Fix compilation bug when debug is enabled.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4605 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-06 10:49:44 +00:00
Paul Ramsey
3bee62fcd9
Make db implementation consistent with liblwgeom
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4600 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-06 04:59:18 +00:00
Paul Ramsey
0ae032c13c
Change signatures for lwgeom distance sphere
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4599 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-06 04:50:35 +00:00
Paul Ramsey
fab491e7f5
New point-outside routine, and allow distances against empty geometries.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4598 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-06 04:19:26 +00:00
Paul Ramsey
d45b8c1079
More test cases in there (but turned off, because they fail :(
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4596 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-05 19:43:26 +00:00
Paul Ramsey
91a2035bdf
Add untested new p-i-p approach for more testing later.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4595 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-05 19:38:50 +00:00
Paul Ramsey
36e52b4ce1
Increase precision.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4593 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-05 14:37:57 +00:00
Paul Ramsey
c01dd43e99
Add another printing block
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4592 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-05 14:37:05 +00:00
Paul Ramsey
48e130a70b
Added new point-on-edge routine still no joy on bad test case.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4589 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-05 05:05:50 +00:00
Paul Ramsey
b6b33573ac
Add another test case that needs resolution
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4588 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-04 22:26:13 +00:00
Paul Ramsey
94e32a2c16
Some fixes to the ST_DWithin code.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4585 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-04 00:51:00 +00:00
Paul Ramsey
e84c82b667
Fix boner error
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4576 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-01 23:54:58 +00:00
Paul Ramsey
0396a0468c
ST_Distance(geography, geography) roughed in. Small detail, currently returns answers in radians. :)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4573 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-01 19:50:44 +00:00
Paul Ramsey
f3a7f0882e
Add polygon/point distance and tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4572 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-01 18:45:59 +00:00
Paul Ramsey
255cb5ea13
Wow, error that only showed up in MinGW, but totally an error. I wonder why my test passed this... clean memory I guess.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4571 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-01 14:52:03 +00:00
Paul Ramsey
68dab94cd0
lwgeom sphere distance function and tests for point/linestring
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4570 b70326c6-7e19-0410-871a-916f4a2858ee
2009-10-01 05:53:07 +00:00
Paul Ramsey
a9848bdc11
Roughing in lwgeom distance machinery now.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4569 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 23:59:01 +00:00
Paul Ramsey
a5615bafed
Add edge-edge distance tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4568 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 23:03:29 +00:00
Paul Ramsey
0c179ca6e8
Add return value for point of closest approach on arc/edge distance.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4567 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 21:45:58 +00:00
Paul Ramsey
ef1d4148b2
Add edge-to-point distance calculation and tests
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4566 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 21:21:10 +00:00
Paul Ramsey
da11d36978
Remove CPU intensive test and add some lat/lon utility functions
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4565 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 19:34:29 +00:00
Paul Ramsey
26074368b3
Make point-in-edge test even looser (fp tolerance factor)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4564 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 19:02:27 +00:00
Paul Ramsey
4983e1287f
Move defines around a bit.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4563 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 18:57:23 +00:00
Paul Ramsey
f83ade8204
Add some debugging blocks for later
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4562 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 18:54:02 +00:00
Paul Ramsey
90efe1aa6f
Add in special case test for parallel / equal edges.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4561 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 18:28:26 +00:00
Paul Ramsey
a9772fdd2e
Whoops, make sure we test all our test cases.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4560 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 17:12:23 +00:00
Paul Ramsey
a7561ec499
Make random brute force test a compile-time option.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4559 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 17:09:35 +00:00
Paul Ramsey
95a9d05853
Add more test cases for geocentric bbox calculation and make 'in cone' test inclusive of end points.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4558 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 17:05:44 +00:00
Paul Ramsey
8ad9bf5dd5
Re-enable all geodetic tests.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4554 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 00:17:10 +00:00
Paul Ramsey
69ef5e8eb1
Add some extra comments
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4553 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-30 00:11:20 +00:00
Paul Ramsey
cd8e7ff4a7
astyle the work thus far
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4552 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 20:44:28 +00:00
Paul Ramsey
a71f3b2d83
Flip the clairaut calculations to return both top and bottom in one go.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4551 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 20:41:04 +00:00
Paul Ramsey
12a7c802ae
Remove old GBOX test answers (some were wrong!) in favor of actual slow calculations
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4550 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 19:53:39 +00:00
Paul Ramsey
2ac92a420d
Add randomized box maker/checker... still some small errors?
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4549 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 19:50:36 +00:00
Paul Ramsey
6ead7c9f4b
Make polygon pole check a little more general.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4548 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 19:02:09 +00:00
Paul Ramsey
c8ec0a6408
All bbox test cases now pass. Suck on that!
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4547 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 18:48:47 +00:00
Paul Ramsey
e9a6297769
Remove un-used function from testing.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4544 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 14:40:48 +00:00
Paul Ramsey
43f7f50628
Work on making "on edge" test more reliable.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4543 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 14:39:54 +00:00
Sandro Santilli
867210851c
Ensure lwcollection_segmentize2d always return a NEW geometry. Fixes ticket #254 . Add regression test for that bug.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4542 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-29 13:31:20 +00:00
Paul Ramsey
083f26fef4
Test re-org and first cut at edge intersection.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4537 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-28 22:45:37 +00:00
Regina Obe
851a729f6b
remove regex.h include per Nicklas observation its still in there.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4533 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-25 13:32:14 +00:00
Mark Cave-Ayland
1f6d0724d4
Commit fix to LW_ABS() macro as discovered by Nicklas Aven.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4527 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 13:38:17 +00:00
Mark Cave-Ayland
991c2d233f
Oops - forgot to bump the array indices on the last commit :(
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4524 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 11:53:47 +00:00
Mark Cave-Ayland
780565b14b
Add missing geometry(m)(z) type missing from previous commit.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4521 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 11:23:30 +00:00
Mark Cave-Ayland
0b6f67024b
Remove dependency on regex library by implementing the same functionality using standard C functions. Passes regression tests for me.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4520 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-22 11:13:33 +00:00
Paul Ramsey
497342b2da
Clean up tests so they pass quietly. ( #249 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4512 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-18 14:53:25 +00:00
Regina Obe
e0f6d5c6ee
#250 : Fix to get mingw to compile using conditional -lregex
...
Had to change configure.ac too so -lregex is not put in if its built-in.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4511 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-18 14:10:55 +00:00
Paul Ramsey
2342776218
Fix serialization problem with lwgeoms that have bboxes.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4509 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-17 05:57:12 +00:00
Paul Ramsey
51dbcb9bbf
Clean up gbox serialization a little
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4508 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-17 05:33:35 +00:00
Paul Ramsey
5635299b47
Add lwgeom_is_empty() test
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4507 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-17 02:33:49 +00:00
Paul Ramsey
6699aa3199
Work on tracking down bug in casting geometry->geography
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4506 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-17 00:01:53 +00:00
Paul Ramsey
c9c61193ca
Fix some test cases crossing the date line
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4505 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-16 22:43:20 +00:00
Paul Ramsey
2f24c23327
Add gbox string constructor for testing purposes
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4504 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-16 21:09:24 +00:00
Paul Ramsey
154a0f5bcb
More tests pass
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4503 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-16 20:19:20 +00:00
Paul Ramsey
bedb088622
Change back to less intensive cartesian clairaut
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4502 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-16 18:54:24 +00:00
Paul Ramsey
40cd5b1e72
Fix errors in calculating geocentric bounds. Early test cases now pass!
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4501 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-16 18:50:54 +00:00
Paul Ramsey
e153da7079
Hook geocentric calculation into gbox routines, start testing
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4500 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-15 21:21:27 +00:00
Paul Ramsey
03cbe95845
Geocentric bounding box roughed in and compiles.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4499 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-15 19:50:24 +00:00
Paul Ramsey
34f03aa8cd
Start the geodetic machinery. Add an internal API header for eventual API rationalisation
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4498 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-14 20:30:35 +00:00
Paul Ramsey
06568b44d1
Crib index penalty tweak from pgsphere.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4497 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-14 18:33:54 +00:00
Paul Ramsey
82acc2b19c
Add FP_EQUALS and bracket arguments for a little extra safety
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4496 b70326c6-7e19-0410-871a-916f4a2858ee
2009-09-14 18:15:18 +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
Mark Leslie
3eddf6078b
Fix for ticket #234
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4366 b70326c6-7e19-0410-871a-916f4a2858ee
2009-08-07 03:38:24 +00:00
Mark Cave-Ayland
91a55bceb1
Move SERIALIZED_FORM to lwgeom_pg.h from liblwgeom.h since it references a PostgreSQL-only structure. Per report from Nicklas Aven.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4310 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-16 21:32:48 +00:00
Paul Ramsey
491022206d
MinGW fix for loader ( #222 ), Mark Cave-Ayland
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4293 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-13 17:27:41 +00:00
Mark Cave-Ayland
ec12af9d42
Fix #112 : ST_CurveToLine sometimes crashes server. While the circle segmentiser detected colinear circle points, it didn't check for the
...
NULL pointer returned in this case. Since we are converting to a line, the current behaviour is to simply append the circle points as s
tandard line points.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4272 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-08 04:59:19 +00:00
Mark Cave-Ayland
5812cc0cbe
Fix #183 : ST_LineToCurve gives getPoint4d_p offset error. This was due to the lookahead in the curve segmentising code going off the end of the point array.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4270 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-08 04:48:54 +00:00
Mark Cave-Ayland
02fb778cb7
Fix compile problems on non-GNU systems by using va_copy as an alias onto the real version. Per report from Stefano Bonnin.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4264 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-07 10:33:23 +00:00
Mark Leslie
10d24712cd
Making the changes from r4244 and r4245 onto trunk, addressing ticket 212.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4246 b70326c6-7e19-0410-871a-916f4a2858ee
2009-07-02 08:31:24 +00:00
Mark Leslie
ecdf5dbad3
Enabling the compound curve parsing for segmentisation; reported in ticket 213
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4232 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-30 07:46:40 +00:00
Mark Leslie
38518df9a3
First swing at ticket 212.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4231 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-30 07:35:37 +00:00
Regina Obe
089c55720d
fix commenting style so function descriptions are picked up by doxygen
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4210 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-25 03:03:42 +00:00
Sandro Santilli
85eee8d457
Handle empty polygon rings
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4187 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-20 21:25:15 +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
709784580a
Further fix for #156 , and also #167 it seems. Looks like I forgot to apply the fix to the WKB routines aswell.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4165 b70326c6-7e19-0410-871a-916f4a2858ee
2009-06-11 13:28:39 +00:00
Mark Cave-Ayland
2c9c365a5c
Remove a double-free bug caused if the unparser finds an invalid geometry ( fixes #168 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4078 b70326c6-7e19-0410-871a-916f4a2858ee
2009-05-09 12:34:55 +00:00
Regina Obe
75bded91e6
more doxygen comment cleanup
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4064 b70326c6-7e19-0410-871a-916f4a2858ee
2009-05-04 18:00:05 +00:00
Regina Obe
c0f793bb3d
make function doc doxygen friendly
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4060 b70326c6-7e19-0410-871a-916f4a2858ee
2009-05-03 03:58:20 +00:00
Regina Obe
dcf59b11bb
make function descriptor doxygen friendly
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@4059 b70326c6-7e19-0410-871a-916f4a2858ee
2009-05-03 03:50:27 +00:00