]> granicus.if.org Git - postgis/log
postgis
13 years agoupdate ST_MapAlgebra to agree with implementation (got rid of bosolete proto and...
Regina Obe [Sun, 24 Jul 2011 08:15:59 +0000 (08:15 +0000)]
update ST_MapAlgebra to agree with implementation (got rid of bosolete proto and example and replaced with new example

git-svn-id: http://svn.osgeo.org/postgis/trunk@7667 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoBe terse, we don't care about context. Closes ticket #1142.
Sandro Santilli [Sat, 23 Jul 2011 21:42:54 +0000 (21:42 +0000)]
Be terse, we don't care about context. Closes ticket #1142.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7666 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoSet 'C' collation when creating regress database. See #1140.
Sandro Santilli [Sat, 23 Jul 2011 21:34:10 +0000 (21:34 +0000)]
Set 'C' collation when creating regress database. See #1140.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7665 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdded a note saying that those function now have a C implementation. Many TABs conver...
Pierre Racine [Fri, 22 Jul 2011 20:20:55 +0000 (20:20 +0000)]
Added a note saying that those function now have a C implementation. Many TABs converted to spaces.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7664 b70326c6-7e19-0410-871a-916f4a2858ee

13 years ago-Fix for #645.
Pierre Racine [Fri, 22 Jul 2011 20:05:47 +0000 (20:05 +0000)]
-Fix for #645.
-Replaced min and max with LEAST and GREATEST
-Adaptation to ST_SetBandNodataValue()

git-svn-id: http://svn.osgeo.org/postgis/trunk@7663 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix for ticket #969. Removed conflicting function variant.
Pierre Racine [Fri, 22 Jul 2011 19:38:50 +0000 (19:38 +0000)]
Fix for ticket #969. Removed conflicting function variant.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7662 b70326c6-7e19-0410-871a-916f4a2858ee

13 years ago-Addaptation to new two rasters ST_MapAlgebra in which nodatavalue expressions are...
Pierre Racine [Fri, 22 Jul 2011 19:31:47 +0000 (19:31 +0000)]
-Addaptation to new two rasters ST_MapAlgebra in which nodatavalue expressions are text and now accept a nodatanodatavalueexpr.
-Added RANGE as a predefined expression.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7661 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoModified comment on further enhancements.
Pierre Racine [Fri, 22 Jul 2011 19:29:07 +0000 (19:29 +0000)]
Modified comment on further enhancements.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7660 b70326c6-7e19-0410-871a-916f4a2858ee

13 years ago-Fix for ticket #644. Removed all variants.
Pierre Racine [Fri, 22 Jul 2011 19:28:21 +0000 (19:28 +0000)]
-Fix for ticket #644. Removed all variants.
-Fixed the two rasters version.
-Added some tests.
-Added ST_MinPossibleVal().
-Determine new nodata value AFTER determining the new pixeltype.
-Replaced ST_SetBandHasNodataValue with ST_SetBandNodataValue(rast, NULL).
-Added implementation of two rasters overlay operations using the two raster MapAlgebra.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7659 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoCleaned the grid alignment code to remove unnecessary cruft in rt_raster_gdal_warp
Bborie Park [Thu, 21 Jul 2011 17:31:07 +0000 (17:31 +0000)]
Cleaned the grid alignment code to remove unnecessary cruft in rt_raster_gdal_warp

git-svn-id: http://svn.osgeo.org/postgis/trunk@7658 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFixed floating point issue with the remainder returned from the function modf in...
Bborie Park [Thu, 21 Jul 2011 16:20:36 +0000 (16:20 +0000)]
Fixed floating point issue with the remainder returned from the function modf in rt_api.c.  Updated messages in rt_pg.c.  Corrected expected regression results in rt_resample_expected.

Associated ticket is #1114

git-svn-id: http://svn.osgeo.org/postgis/trunk@7657 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoImprove testsuite predictability (#1135)
Sandro Santilli [Wed, 20 Jul 2011 19:53:57 +0000 (19:53 +0000)]
Improve testsuite predictability (#1135)

git-svn-id: http://svn.osgeo.org/postgis/trunk@7656 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoBug fix of deallocating array using wrong index variable
Bborie Park [Tue, 19 Jul 2011 22:20:40 +0000 (22:20 +0000)]
Bug fix of deallocating array using wrong index variable

git-svn-id: http://svn.osgeo.org/postgis/trunk@7654 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFixed width and height values expected.
Bborie Park [Mon, 18 Jul 2011 23:39:05 +0000 (23:39 +0000)]
Fixed width and height values expected.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7653 b70326c6-7e19-0410-871a-916f4a2858ee

13 years ago- tweaked the rt_resample regression test to use SRIDs under 1000000
Bborie Park [Mon, 18 Jul 2011 23:29:54 +0000 (23:29 +0000)]
- tweaked the rt_resample regression test to use SRIDs under 1000000
- changed the computation of width and height when aligning to a grid

git-svn-id: http://svn.osgeo.org/postgis/trunk@7652 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix datatype of tlid on edges table. Other tables with tlid are set to bigint. ...
Regina Obe [Mon, 18 Jul 2011 04:44:11 +0000 (04:44 +0000)]
Fix datatype of tlid on edges table.  Other tables with tlid are set to bigint.  This one set to numeric(10).  Still revising my tables to determine what impact this has in utilizing the existing indexes

git-svn-id: http://svn.osgeo.org/postgis/trunk@7651 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoLimit edge and featnames search to just road / street types
Regina Obe [Sun, 17 Jul 2011 17:39:00 +0000 (17:39 +0000)]
Limit edge and featnames search to just road / street types

git-svn-id: http://svn.osgeo.org/postgis/trunk@7650 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agomore regress tests for reverse_geocode
Regina Obe [Sun, 17 Jul 2011 17:02:02 +0000 (17:02 +0000)]
more regress tests for reverse_geocode

git-svn-id: http://svn.osgeo.org/postgis/trunk@7649 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agosimplify logic by getting rid of addr join. Speed improved slightly
Regina Obe [Sun, 17 Jul 2011 16:46:06 +0000 (16:46 +0000)]
simplify logic by getting rid of addr join.  Speed improved slightly

git-svn-id: http://svn.osgeo.org/postgis/trunk@7648 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoenhancements to support reverse geocoding of highway locations. Also add reverse...
Regina Obe [Sun, 17 Jul 2011 16:11:08 +0000 (16:11 +0000)]
enhancements to support reverse geocoding of highway locations.  Also add reverse geocode regress tests

git-svn-id: http://svn.osgeo.org/postgis/trunk@7647 b70326c6-7e19-0410-871a-916f4a2858ee

13 years ago#1125 have highway designations print in front of streetname instead of after
Regina Obe [Sat, 16 Jul 2011 04:19:45 +0000 (04:19 +0000)]
#1125 have highway designations print in front of streetname instead of after

git-svn-id: http://svn.osgeo.org/postgis/trunk@7646 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoMinor comment updates to correct details
Bborie Park [Fri, 15 Jul 2011 21:07:32 +0000 (21:07 +0000)]
Minor comment updates to correct details

git-svn-id: http://svn.osgeo.org/postgis/trunk@7644 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agorevise ratings to minimize numberes steetss from matching highly with interstate...
Regina Obe [Fri, 15 Jul 2011 06:40:19 +0000 (06:40 +0000)]
revise ratings to minimize numberes steetss from matching highly with interstate routes.  Also glue on pretype abrv (which are technically street types) to front of street name in normalize output so that highways print correctly as e.g. State Hwy 10 etc.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7641 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdd in common abbreviation RT to map to Rte and test case to regress to test
Regina Obe [Fri, 15 Jul 2011 05:31:42 +0000 (05:31 +0000)]
Add in common abbreviation RT to map to Rte and test case to regress to test

git-svn-id: http://svn.osgeo.org/postgis/trunk@7640 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoCode refactored for RASTER_dumpWKTPolygons to use same mechanisms for resultset gener...
Bborie Park [Thu, 14 Jul 2011 20:11:39 +0000 (20:11 +0000)]
Code refactored for RASTER_dumpWKTPolygons to use same mechanisms for resultset generation (Datums instead of CStrings) as RASTER_metadata and other functions.

SQL functions refactored to use one call to ST_Metadata for attributes rather than separate/multiple calls to ST_Skew*, ST_Scale*, ST_UpperLeft*.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7639 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRefactored functions returning sets to use Datums instead of C strings, which were...
Bborie Park [Thu, 14 Jul 2011 14:54:49 +0000 (14:54 +0000)]
Refactored functions returning sets to use Datums instead of C strings, which were causing rounding issues particularly for ST_Metadata.  This refactoring affected RASTER_metadata, RASTER_bandmetadata, RASTER_summarystats, RASTER_histogram, RASTER_quantile, RASTER_valuecount and RASTER_gdaldrivers.

Also refactored the ST_Raster2World* and ST_World2Raster* functions to get the raster's metadata in one call using ST_Metadata rather than individual calls for the georeference components

git-svn-id: http://svn.osgeo.org/postgis/trunk@7638 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoadd make tiger_geocoder_comments.sql to build script
Regina Obe [Thu, 14 Jul 2011 11:47:05 +0000 (11:47 +0000)]
add make tiger_geocoder_comments.sql to build script

git-svn-id: http://svn.osgeo.org/postgis/trunk@7637 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoStart work on PostgreSQL in db help for geocoder
Regina Obe [Thu, 14 Jul 2011 11:32:45 +0000 (11:32 +0000)]
Start work on PostgreSQL in db help for geocoder

git-svn-id: http://svn.osgeo.org/postgis/trunk@7636 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agodocument the install_missing_indexes function that is used as part of the upgrade...
Regina Obe [Thu, 14 Jul 2011 11:13:10 +0000 (11:13 +0000)]
document the install_missing_indexes function that is used as part of the upgrade process

git-svn-id: http://svn.osgeo.org/postgis/trunk@7635 b70326c6-7e19-0410-871a-916f4a2858ee

13 years ago#1113 take into consideration street prequals like Old in rating and filtering, also...
Regina Obe [Thu, 14 Jul 2011 07:45:31 +0000 (07:45 +0000)]
#1113 take into consideration street prequals like Old in rating and filtering, also added btree varops on fullname (trigrams and fulltext proved too slow will need to reinvestigate those), also added helper function install_missing_indezes() which gets run as part of upgrade script.  will need to add to documentation.  Also added regress tests from snippets in #1113

git-svn-id: http://svn.osgeo.org/postgis/trunk@7634 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoComplete refactoring of code from ST_Transform to ST_Resample. There are four new...
Bborie Park [Wed, 13 Jul 2011 19:33:12 +0000 (19:33 +0000)]
Complete refactoring of code from ST_Transform to ST_Resample.  There are four new functions as of this revision: ST_Resample, ST_Rescale, ST_Reskew and ST_SnapToGrid.  ST_Transform is still present but points to ST_Resample.

Associated ticket #1114

git-svn-id: http://svn.osgeo.org/postgis/trunk@7633 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix for #1112 service roads
Regina Obe [Tue, 12 Jul 2011 19:45:53 +0000 (19:45 +0000)]
Fix for #1112 service roads

git-svn-id: http://svn.osgeo.org/postgis/trunk@7632 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoPartial fix for #1108
Regina Obe [Tue, 12 Jul 2011 13:03:16 +0000 (13:03 +0000)]
Partial fix for #1108

git-svn-id: http://svn.osgeo.org/postgis/trunk@7631 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix regress failure with #1074 (wasn't correctly handling all cases where street...
Regina Obe [Tue, 12 Jul 2011 04:14:07 +0000 (04:14 +0000)]
Fix regress failure with #1074 (wasn't correctly handling all cases where street name is composed of a street type

git-svn-id: http://svn.osgeo.org/postgis/trunk@7630 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoChange ST_OffsetCurve parameters type from cstrin to text. See ticket #1117.
Sandro Santilli [Mon, 11 Jul 2011 17:03:15 +0000 (17:03 +0000)]
Change ST_OffsetCurve parameters type from cstrin to text. See ticket #1117.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7629 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoStricter ISO output from ST_GetEdgeFaces: start enumerating ring edges from the edge...
Sandro Santilli [Mon, 11 Jul 2011 12:17:33 +0000 (12:17 +0000)]
Stricter ISO output from ST_GetEdgeFaces: start enumerating ring edges from the edge with smaller id [RT-SIGTA]

git-svn-id: http://svn.osgeo.org/postgis/trunk@7628 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agooops typo
Regina Obe [Sat, 9 Jul 2011 20:32:51 +0000 (20:32 +0000)]
oops typo

git-svn-id: http://svn.osgeo.org/postgis/trunk@7627 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agorevert change
Regina Obe [Sat, 9 Jul 2011 20:25:07 +0000 (20:25 +0000)]
revert change

git-svn-id: http://svn.osgeo.org/postgis/trunk@7626 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agofix type in county load
Regina Obe [Sat, 9 Jul 2011 20:12:42 +0000 (20:12 +0000)]
fix type in county load

git-svn-id: http://svn.osgeo.org/postgis/trunk@7625 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoClarify return code from topology.ST_ModEdgeHeal. Clean up description of ST_NewEdgeH...
Sandro Santilli [Sat, 9 Jul 2011 15:55:25 +0000 (15:55 +0000)]
Clarify return code from topology.ST_ModEdgeHeal. Clean up description of ST_NewEdgeHeal too.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7624 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoexample of using geocode geometry filter
Regina Obe [Sat, 9 Jul 2011 01:23:10 +0000 (01:23 +0000)]
example of using geocode geometry filter

git-svn-id: http://svn.osgeo.org/postgis/trunk@7623 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix ST_Transform signature to match revised function declarations
Regina Obe [Sat, 9 Jul 2011 01:06:25 +0000 (01:06 +0000)]
Fix ST_Transform signature to match revised function declarations

git-svn-id: http://svn.osgeo.org/postgis/trunk@7622 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoupper case and replace (ZM and Z) in geometry_columns so its more backwards compatibl...
Regina Obe [Fri, 8 Jul 2011 08:23:18 +0000 (08:23 +0000)]
upper case and replace (ZM and Z) in geometry_columns so its more backwards compatible with old geometry_columns table

git-svn-id: http://svn.osgeo.org/postgis/trunk@7621 b70326c6-7e19-0410-871a-916f4a2858ee

13 years ago#1070 optional geometry filter arg, documentation (well start need example), and...
Regina Obe [Thu, 7 Jul 2011 22:45:27 +0000 (22:45 +0000)]
#1070 optional geometry filter arg, documentation (well start need example), and regress tests

git-svn-id: http://svn.osgeo.org/postgis/trunk@7620 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFinal refactor of ST_Transform and underlying RASTER_resample before overhaul for...
Bborie Park [Thu, 7 Jul 2011 22:23:00 +0000 (22:23 +0000)]
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

13 years agoRefactored ST_Transform in preparation for additional refactoring to accomodate ST_Re...
Bborie Park [Thu, 7 Jul 2011 21:58:21 +0000 (21:58 +0000)]
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

13 years agoCleaned up the large number of floating point equality tests with a function-like...
Bborie Park [Thu, 7 Jul 2011 18:28:58 +0000 (18:28 +0000)]
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

13 years ago#1074, #1109 - Fix for compound named streets that have a portion that is a street...
Regina Obe [Thu, 7 Jul 2011 12:41:13 +0000 (12:41 +0000)]
#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

13 years agomore regress tests for #1109
Regina Obe [Wed, 6 Jul 2011 23:44:27 +0000 (23:44 +0000)]
more regress tests for #1109

git-svn-id: http://svn.osgeo.org/postgis/trunk@7615 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoRefactored how user-specified upperleft corner coordinates are handled
Bborie Park [Wed, 6 Jul 2011 23:15:13 +0000 (23:15 +0000)]
Refactored how user-specified upperleft corner coordinates are handled

git-svn-id: http://svn.osgeo.org/postgis/trunk@7614 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agofix for #1109 when a street name is same as a defined street type
Regina Obe [Wed, 6 Jul 2011 23:00:02 +0000 (23:00 +0000)]
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

13 years agoProperly destroy lwgeom in lwgeom_to_x3d3 now that it's safe (see #1102)
Sandro Santilli [Wed, 6 Jul 2011 15:02:46 +0000 (15:02 +0000)]
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

13 years agoProperly release memory in lwmline_clip_to_ordinate_range (see #1102)
Sandro Santilli [Wed, 6 Jul 2011 14:55:39 +0000 (14:55 +0000)]
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

13 years agoHave lwcollection_extract clone (shallow) the extracted components. Safely lwgeom_fre...
Sandro Santilli [Wed, 6 Jul 2011 14:45:22 +0000 (14:45 +0000)]
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

13 years agoProperly lwgeom_free cloned objects in lwgeom_homogenize now that it is safe
Sandro Santilli [Wed, 6 Jul 2011 14:29:32 +0000 (14:29 +0000)]
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

13 years agoImplement ptarray_clone (shallow) and update clone documentation (doxygen), have...
Sandro Santilli [Wed, 6 Jul 2011 14:29:26 +0000 (14:29 +0000)]
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

13 years agoFix compile warning in geography_measurement.c caused by missing function prototype.
Mark Cave-Ayland [Wed, 6 Jul 2011 10:48:15 +0000 (10:48 +0000)]
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

13 years agoFix compile warning for lwgeom_init_allocators() in loader/dumper by adding missing...
Mark Cave-Ayland [Wed, 6 Jul 2011 10:48:05 +0000 (10:48 +0000)]
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

13 years agoRename ptarray_clone to ptarray_clone_deep, to be conformant with lwgeom_clone_deep...
Sandro Santilli [Wed, 6 Jul 2011 09:40:38 +0000 (09:40 +0000)]
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

13 years agoCompiler warning fix
Sandro Santilli [Wed, 6 Jul 2011 08:04:27 +0000 (08:04 +0000)]
Compiler warning fix

git-svn-id: http://svn.osgeo.org/postgis/trunk@7604 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix compiler warnings (#999)
Sandro Santilli [Wed, 6 Jul 2011 07:42:24 +0000 (07:42 +0000)]
Fix compiler warnings (#999)

git-svn-id: http://svn.osgeo.org/postgis/trunk@7603 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoDon't let temporary collection leak in lwgeom_to_x3d3 (actually do, but sligthly...
Sandro Santilli [Wed, 6 Jul 2011 07:42:18 +0000 (07:42 +0000)]
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

13 years agoconst-correct lw*_is_closed
Sandro Santilli [Wed, 6 Jul 2011 07:42:13 +0000 (07:42 +0000)]
const-correct lw*_is_closed

git-svn-id: http://svn.osgeo.org/postgis/trunk@7601 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoproperly release reported error message string
Sandro Santilli [Wed, 6 Jul 2011 06:46:50 +0000 (06:46 +0000)]
properly release reported error message string

git-svn-id: http://svn.osgeo.org/postgis/trunk@7600 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoproperly release lwgeom objec in test_lwprint_assert_error
Sandro Santilli [Wed, 6 Jul 2011 06:46:44 +0000 (06:46 +0000)]
properly release lwgeom objec in test_lwprint_assert_error

git-svn-id: http://svn.osgeo.org/postgis/trunk@7599 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoproperly release lwgeom objec in test_misc_area
Sandro Santilli [Wed, 6 Jul 2011 06:46:38 +0000 (06:46 +0000)]
properly release lwgeom objec in test_misc_area

git-svn-id: http://svn.osgeo.org/postgis/trunk@7598 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoChanged expressions for pixel byte boundaries in assert tests of rt_raster_serialize...
Bborie Park [Wed, 6 Jul 2011 05:18:50 +0000 (05:18 +0000)]
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

13 years agofix typo
Regina Obe [Wed, 6 Jul 2011 02:17:18 +0000 (02:17 +0000)]
fix typo

git-svn-id: http://svn.osgeo.org/postgis/trunk@7596 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agodrop_state_tables_generate_script function and document it. Also add blank paramdef...
Regina Obe [Wed, 6 Jul 2011 01:02:17 +0000 (01:02 +0000)]
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

13 years agoGet rid of use of array_accum and replace with array_agg (which exists in PostgreSQL...
Regina Obe [Wed, 6 Jul 2011 00:40:46 +0000 (00:40 +0000)]
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

13 years agoRemove leak in mixed time ptarray case (#1102)
Paul Ramsey [Tue, 5 Jul 2011 22:02:40 +0000 (22:02 +0000)]
Remove leak in mixed time ptarray case (#1102)

git-svn-id: http://svn.osgeo.org/postgis/trunk@7593 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoPlug some more easy leaks in testers
Sandro Santilli [Tue, 5 Jul 2011 21:01:18 +0000 (21:01 +0000)]
Plug some more easy leaks in testers

git-svn-id: http://svn.osgeo.org/postgis/trunk@7592 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoStop up small but universal leak. (#1102)
Paul Ramsey [Tue, 5 Jul 2011 20:21:32 +0000 (20:21 +0000)]
Stop up small but universal leak. (#1102)

git-svn-id: http://svn.osgeo.org/postgis/trunk@7591 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix memory leak while computing box3d for nested geometrycollection (revealed by...
Sandro Santilli [Tue, 5 Jul 2011 18:55:11 +0000 (18:55 +0000)]
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

13 years agoProperly release memory allocated by tester
Sandro Santilli [Tue, 5 Jul 2011 18:41:18 +0000 (18:41 +0000)]
Properly release memory allocated by tester

git-svn-id: http://svn.osgeo.org/postgis/trunk@7589 b70326c6-7e19-0410-871a-916f4a2858ee

13 years ago#1076 hanlde of post direction with highways -- 1940 County Road C W, Roseville,...
Regina Obe [Tue, 5 Jul 2011 17:49:14 +0000 (17:49 +0000)]
#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

13 years agoRemove memory leaks when a parse error kicks out in WKT (#1102)
Paul Ramsey [Mon, 4 Jul 2011 22:51:37 +0000 (22:51 +0000)]
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

13 years ago#1076 more work toward Highway geocoding -- significant rework of original patch...
Regina Obe [Mon, 4 Jul 2011 17:32:35 +0000 (17:32 +0000)]
#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

13 years agoDrop dangling reference to Probe_Geometry_Columns (see #1083)
Sandro Santilli [Mon, 4 Jul 2011 15:50:40 +0000 (15:50 +0000)]
Drop dangling reference to Probe_Geometry_Columns (see #1083)

git-svn-id: http://svn.osgeo.org/postgis/trunk@7585 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoA couple more tests for btree against points: different points, differently cached...
Sandro Santilli [Mon, 4 Jul 2011 15:40:22 +0000 (15:40 +0000)]
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

13 years agoHave pglwgeom_getbox2d_p compute a bounding box when not cached. Fixes #1023.
Sandro Santilli [Mon, 4 Jul 2011 15:34:50 +0000 (15:34 +0000)]
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

13 years agoDocument pglwgeom_getbox2d_p. See http://trac.osgeo.org/postgis/ticket/1023
Sandro Santilli [Mon, 4 Jul 2011 15:12:44 +0000 (15:12 +0000)]
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

13 years agoMore unit test memory leaks and compiler warnings fixed
Sandro Santilli [Mon, 4 Jul 2011 14:50:00 +0000 (14:50 +0000)]
More unit test memory leaks and compiler warnings  fixed

git-svn-id: http://svn.osgeo.org/postgis/trunk@7581 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdd test for btree equality of points (#1023)
Sandro Santilli [Mon, 4 Jul 2011 14:14:59 +0000 (14:14 +0000)]
Add test for btree equality of points (#1023)

git-svn-id: http://svn.osgeo.org/postgis/trunk@7580 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoDo not deep-free return from lwcollection_homogenize as it doesn't copy POINTARRAY...
Sandro Santilli [Mon, 4 Jul 2011 13:56:04 +0000 (13:56 +0000)]
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

13 years agoPlug some memory leaks in the unit tests, to help finding lower-level ones...
Sandro Santilli [Mon, 4 Jul 2011 12:29:40 +0000 (12:29 +0000)]
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

13 years agoDocument memory management of lwdoubles_to_latlon and lwpoint_to_latlon
Sandro Santilli [Mon, 4 Jul 2011 12:29:31 +0000 (12:29 +0000)]
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

13 years agoFix support for MULTICURVEZM and make TIN spelling conformant to other (MixedCase...
Sandro Santilli [Mon, 4 Jul 2011 11:24:46 +0000 (11:24 +0000)]
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

13 years agoAdd missing circular types to geomtype_struct_array, fixing bug #1094
Sandro Santilli [Mon, 4 Jul 2011 11:24:37 +0000 (11:24 +0000)]
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

13 years agoDo not hard-code lenght of geomtype struct array (See #1094)
Sandro Santilli [Mon, 4 Jul 2011 11:24:32 +0000 (11:24 +0000)]
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

13 years agoAddGeometryColumn: when complaining about unknown geometry type also report the used...
Sandro Santilli [Mon, 4 Jul 2011 10:10:14 +0000 (10:10 +0000)]
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

13 years agoFix unused variable warning when building against GEOS >= 3.3
Sandro Santilli [Mon, 4 Jul 2011 10:02:49 +0000 (10:02 +0000)]
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

13 years agoMake all PostGIS object files depend upon liblwgeom, so that if liblwgeom is
Mark Cave-Ayland [Mon, 4 Jul 2011 09:26:10 +0000 (09:26 +0000)]
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

13 years agotypo
Sandro Santilli [Mon, 4 Jul 2011 09:09:57 +0000 (09:09 +0000)]
typo

git-svn-id: http://svn.osgeo.org/postgis/trunk@7570 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoUpdate expected error messages since typmod introduction. Closes ticket #1101.
Sandro Santilli [Mon, 4 Jul 2011 09:07:07 +0000 (09:07 +0000)]
Update expected error messages since typmod introduction. Closes ticket #1101.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7569 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoDo not manually delete rows from geometry_columns (which is now a view). Closes ticke...
Sandro Santilli [Mon, 4 Jul 2011 09:00:48 +0000 (09:00 +0000)]
Do not manually delete rows from geometry_columns (which is now a view). Closes ticket #1099.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7568 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoPartial fix for #1076, county roads and highways, but think I might have broken the...
Regina Obe [Mon, 4 Jul 2011 07:35:08 +0000 (07:35 +0000)]
Partial fix for #1076, county roads and highways, but think I might have broken the SELECT (addy).*,* from geocode('16725 Rockford Road, Plymouth, MN 55447') or my data is bad

git-svn-id: http://svn.osgeo.org/postgis/trunk@7567 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoFix for #1088: Too many columns in select crashes pgsql2shp.
Mark Cave-Ayland [Sun, 3 Jul 2011 21:47:09 +0000 (21:47 +0000)]
Fix for #1088: Too many columns in select crashes pgsql2shp.

Instead of a fixed length query string, dynamically allocate the memory based
upon the sum of the lengths of all of the column names.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7566 b70326c6-7e19-0410-871a-916f4a2858ee

13 years ago#1087 improve rating algorithm. also start to use prepared statements where appropri...
Regina Obe [Sun, 3 Jul 2011 16:51:09 +0000 (16:51 +0000)]
#1087 improve rating algorithm.  also start to use prepared statements where appropriate (don't put state in prepared part since that would prevent constraint exclusion from kicking in)

git-svn-id: http://svn.osgeo.org/postgis/trunk@7565 b70326c6-7e19-0410-871a-916f4a2858ee

13 years agoAdd more tests, minor cleanup
Regina Obe [Sun, 3 Jul 2011 10:45:46 +0000 (10:45 +0000)]
Add more tests, minor cleanup

git-svn-id: http://svn.osgeo.org/postgis/trunk@7564 b70326c6-7e19-0410-871a-916f4a2858ee