Commit graph

6296 commits

Author SHA1 Message Date
Bborie Park 88394d5d21 Final refactor of ST_Transform and underlying RASTER_resample before overhaul for ST_Resample
git-svn-id: http://svn.osgeo.org/postgis/trunk@7619 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-07 22:23:00 +00:00
Bborie Park 6dd8c093b5 Refactored ST_Transform in preparation for additional refactoring to accomodate ST_Resample
git-svn-id: http://svn.osgeo.org/postgis/trunk@7618 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-07 21:58:21 +00:00
Bborie Park 652f506bb8 Cleaned up the large number of floating point equality tests with a function-like macro
git-svn-id: http://svn.osgeo.org/postgis/trunk@7617 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-07 18:28:58 +00:00
Regina Obe 17cc24f7ee #1074, #1109 - Fix for compound named streets that have a portion that is a street type
git-svn-id: http://svn.osgeo.org/postgis/trunk@7616 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-07 12:41:13 +00:00
Regina Obe da3eee11e5 more regress tests for #1109
git-svn-id: http://svn.osgeo.org/postgis/trunk@7615 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 23:44:27 +00:00
Bborie Park 31ffec859f Refactored how user-specified upperleft corner coordinates are handled
git-svn-id: http://svn.osgeo.org/postgis/trunk@7614 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 23:15:13 +00:00
Regina Obe 88fecac44a fix for #1109 when a street name is same as a defined street type
git-svn-id: http://svn.osgeo.org/postgis/trunk@7613 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 23:00:02 +00:00
Sandro Santilli ed3f886e2f Properly destroy lwgeom in lwgeom_to_x3d3 now that it's safe (see #1102)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7612 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 15:02:46 +00:00
Sandro Santilli 2d143bacde Properly release memory in lwmline_clip_to_ordinate_range (see #1102)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7611 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 14:55:39 +00:00
Sandro Santilli 9d0852e0b0 Have lwcollection_extract clone (shallow) the extracted components. Safely lwgeom_free the return from lwcollection_extract in testcase.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7610 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 14:45:22 +00:00
Sandro Santilli b4dcb5e678 Properly lwgeom_free cloned objects in lwgeom_homogenize now that it is safe
git-svn-id: http://svn.osgeo.org/postgis/trunk@7609 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 14:29:32 +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
Mark Cave-Ayland d12aac293d Fix compile warning in geography_measurement.c caused by missing function prototype.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7607 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 10:48:15 +00:00
Mark Cave-Ayland 67e3f3298b Fix compile warning for lwgeom_init_allocators() in loader/dumper by adding missing liblwgeom.h #include.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7606 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 10:48:05 +00:00
Sandro Santilli d33f3e4c46 Rename ptarray_clone to ptarray_clone_deep, to be conformant with lwgeom_clone_deep in that it copies the serialized pointlist too
git-svn-id: http://svn.osgeo.org/postgis/trunk@7605 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 09:40:38 +00:00
Sandro Santilli e097b55b11 Compiler warning fix
git-svn-id: http://svn.osgeo.org/postgis/trunk@7604 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 08:04:27 +00:00
Sandro Santilli 1c7f76cb8f Fix compiler warnings (#999)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7603 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 07:42:24 +00:00
Sandro Santilli ac9b819b9c Don't let temporary collection leak in lwgeom_to_x3d3 (actually do, but sligthly less, till we fix lwgeom_clone). See #1102.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7602 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 07:42:18 +00:00
Sandro Santilli 7df2a4d4e0 const-correct lw*_is_closed
git-svn-id: http://svn.osgeo.org/postgis/trunk@7601 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 07:42:13 +00:00
Sandro Santilli 77d678890e properly release reported error message string
git-svn-id: http://svn.osgeo.org/postgis/trunk@7600 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 06:46:50 +00:00
Sandro Santilli 9a4ab32939 properly release lwgeom objec in test_lwprint_assert_error
git-svn-id: http://svn.osgeo.org/postgis/trunk@7599 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 06:46:44 +00:00
Sandro Santilli 45eb72154c properly release lwgeom objec in test_misc_area
git-svn-id: http://svn.osgeo.org/postgis/trunk@7598 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 06:46:38 +00:00
Bborie Park 36c00735b1 Changed expressions for pixel byte boundaries in assert tests of rt_raster_serialize and rt_raster_deserialize in rt_api.c. The changed expressions are based upon relative values rather than the original absolute values. This should resolve the problem defined in ticket #1061. It may also help with the crashing in ticket #1066.
Associated tickets are #1061 and possibly #1066.


git-svn-id: http://svn.osgeo.org/postgis/trunk@7597 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 05:18:50 +00:00
Regina Obe 3ed5ac35e7 fix typo
git-svn-id: http://svn.osgeo.org/postgis/trunk@7596 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 02:17:18 +00:00
Regina Obe d4b7ca7e8e drop_state_tables_generate_script function and document it. Also add blank paramdef to missing indexes so doesn't look goofy in docs
git-svn-id: http://svn.osgeo.org/postgis/trunk@7595 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 01:02:17 +00:00
Regina Obe d569b122c0 Get rid of use of array_accum and replace with array_agg (which exists in PostgreSQL 9\8.4+). Now that we only support 8.4+, we can just use array_agg.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7594 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-06 00:40:46 +00:00
Paul Ramsey c2f26121cb Remove leak in mixed time ptarray case (#1102)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7593 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-05 22:02:40 +00:00
Sandro Santilli 16548d95d2 Plug some more easy leaks in testers
git-svn-id: http://svn.osgeo.org/postgis/trunk@7592 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-05 21:01:18 +00:00
Paul Ramsey 82a6e8ce26 Stop up small but universal leak. (#1102)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7591 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-05 20:21:32 +00:00
Sandro Santilli 44e792e1b7 Fix memory leak while computing box3d for nested geometrycollection (revealed by test in cu_geodetic.c)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7590 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-05 18:55:11 +00:00
Sandro Santilli 00c941704d Properly release memory allocated by tester
git-svn-id: http://svn.osgeo.org/postgis/trunk@7589 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-05 18:41:18 +00:00
Regina Obe fd13fe2d26 #1076 hanlde of post direction with highways -- 1940 County Road C W, Roseville, MN 55113 , also trim excess space left in street names
git-svn-id: http://svn.osgeo.org/postgis/trunk@7588 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-05 17:49:14 +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
Regina Obe f455ac4143 #1076 more work toward Highway geocoding -- significant rework of original patch. Still need to parse out the direction information
git-svn-id: http://svn.osgeo.org/postgis/trunk@7586 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 17:32:35 +00:00
Sandro Santilli 3a2aa14e36 Drop dangling reference to Probe_Geometry_Columns (see #1083)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7585 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 15:50:40 +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 20036d2151 Have pglwgeom_getbox2d_p compute a bounding box when not cached. Fixes #1023.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7583 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 15:34:50 +00:00
Sandro Santilli 4f7e6280c5 Document pglwgeom_getbox2d_p. See http://trac.osgeo.org/postgis/ticket/1023
git-svn-id: http://svn.osgeo.org/postgis/trunk@7582 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 15:12:44 +00:00
Sandro Santilli 7ac6e494ad More unit test memory leaks and compiler warnings fixed
git-svn-id: http://svn.osgeo.org/postgis/trunk@7581 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 14:50:00 +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
Sandro Santilli 71b1b8c465 Do not deep-free return from lwcollection_homogenize as it doesn't copy POINTARRAY memory. See #1104.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7579 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 13:56:04 +00:00
Sandro Santilli 4b7b728608 Plug some memory leaks in the unit tests, to help finding lower-level ones...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7578 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 12:29:40 +00:00
Sandro Santilli d4c4cf4d06 Document memory management of lwdoubles_to_latlon and lwpoint_to_latlon
git-svn-id: http://svn.osgeo.org/postgis/trunk@7577 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 12:29:31 +00:00
Sandro Santilli 429d9910b8 Fix support for MULTICURVEZM and make TIN spelling conformant to other (MixedCase). Add cohomprensive regress test for postgis_type_name(). Closes bug #1096 once again.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7576 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 11:24:46 +00:00
Sandro Santilli 1fc2d96a2b Add missing circular types to geomtype_struct_array, fixing bug #1094
git-svn-id: http://svn.osgeo.org/postgis/trunk@7575 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 11:24:37 +00:00
Sandro Santilli a1b0bd03a2 Do not hard-code lenght of geomtype struct array (See #1094)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7574 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 11:24:32 +00:00
Sandro Santilli 8aba958ceb AddGeometryColumn: when complaining about unknown geometry type also report the used name and dimensions (see related bug #1096)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7573 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 10:10:14 +00:00
Sandro Santilli c17fd13a22 Fix unused variable warning when building against GEOS >= 3.3
git-svn-id: http://svn.osgeo.org/postgis/trunk@7572 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 10:02:49 +00:00
Mark Cave-Ayland f759f6e9f1 Make all PostGIS object files depend upon liblwgeom, so that if liblwgeom is
changed then it also triggers a (complete) rebuild of PostGIS.

Note as documented in #447 this is an over-cautious approach since it rebuilds
all of PostGIS if liblwgeom changes, but at least its a starting point and
does actually solve the case whereby a user updates liblwgeom but doesn't
force a rebuild of PostGIS.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7571 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 09:26:10 +00:00
Sandro Santilli 003788285a typo
git-svn-id: http://svn.osgeo.org/postgis/trunk@7570 b70326c6-7e19-0410-871a-916f4a2858ee
2011-07-04 09:09:57 +00:00