]> granicus.if.org Git - postgis/log
postgis
16 years agoSame changes as in trunk
Regina Obe [Mon, 30 Jun 2008 15:34:38 +0000 (15:34 +0000)]
Same changes as in trunk

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

16 years agosame changes as made to trunk
Regina Obe [Fri, 27 Jun 2008 16:42:37 +0000 (16:42 +0000)]
same changes as made to trunk

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

17 years agoEnhanced speed _ST_DWithin(g,g,d) that returns as soon as g and g are within d of...
Paul Ramsey [Wed, 28 May 2008 22:58:35 +0000 (22:58 +0000)]
Enhanced speed _ST_DWithin(g,g,d) that returns as soon as g and g are within d of each other, rather than using distance naively. Change ST_DWithin to use enhanced op. (Issue 20)

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

17 years agoFix towgs84 for 31300 and 31370 (issue 23)
Paul Ramsey [Wed, 28 May 2008 21:58:32 +0000 (21:58 +0000)]
Fix towgs84 for 31300 and 31370 (issue 23)

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

17 years agoGeomunion name change note, issue 26.
Paul Ramsey [Wed, 28 May 2008 21:47:06 +0000 (21:47 +0000)]
Geomunion name change note, issue 26.

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

17 years agoBug reporting documentation (issue 27)
Paul Ramsey [Wed, 28 May 2008 21:45:09 +0000 (21:45 +0000)]
Bug reporting documentation (issue 27)

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

17 years agoFix for issue 30, ST_Buffer doco mistake
Paul Ramsey [Wed, 28 May 2008 21:35:53 +0000 (21:35 +0000)]
Fix for issue 30, ST_Buffer doco mistake

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

17 years agoPull trunk changes back into 1.3 branch.
Paul Ramsey [Tue, 27 May 2008 17:14:43 +0000 (17:14 +0000)]
Pull trunk changes back into 1.3 branch.

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

17 years agoFix for DBF files with deleted records. (#29)
Paul Ramsey [Tue, 27 May 2008 02:59:06 +0000 (02:59 +0000)]
Fix for DBF files with deleted records. (#29)

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

17 years agoBranch 1.3.x release series.
Mark Cave-Ayland [Wed, 14 May 2008 16:43:12 +0000 (16:43 +0000)]
Branch 1.3.x release series.

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

17 years agoST_AsGeoJSon patch from Olivier Courtin <olivier.courtin@camptocamp.com>.
Paul Ramsey [Thu, 24 Apr 2008 01:04:52 +0000 (01:04 +0000)]
ST_AsGeoJSon patch from Olivier Courtin <olivier.courtin@camptocamp.com>.

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

17 years agoenvelope doco fix
Paul Ramsey [Tue, 22 Apr 2008 14:54:07 +0000 (14:54 +0000)]
envelope doco fix

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

17 years agoBump trunk up to 1.3.4SVN
Paul Ramsey [Sat, 12 Apr 2008 18:39:39 +0000 (18:39 +0000)]
Bump trunk up to 1.3.4SVN

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

17 years agoVersions and news for the 1.3.3 release.
Paul Ramsey [Sat, 12 Apr 2008 18:32:14 +0000 (18:32 +0000)]
Versions and news for the 1.3.3 release.

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

17 years agoUpdate re dbf patch
Paul Ramsey [Sat, 12 Apr 2008 16:46:13 +0000 (16:46 +0000)]
Update re dbf patch

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

17 years agoNew -n switch to support DBF-only loading of attributes without shapes.
Paul Ramsey [Sat, 12 Apr 2008 16:44:55 +0000 (16:44 +0000)]
New -n switch to support DBF-only loading of attributes without shapes.
Submitted by Regina Obe.

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

17 years agoRemove svn:eol-style from regress_ogc_expected; MingW requires unix line endings...
Mark Cave-Ayland [Sat, 12 Apr 2008 10:16:21 +0000 (10:16 +0000)]
Remove svn:eol-style from regress_ogc_expected; MingW requires unix line endings in order for the diff to work as expected.

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

17 years agoReduce FTDate field size to 8 bytes from 10. Matches other calls in the file
Paul Ramsey [Thu, 10 Apr 2008 14:44:26 +0000 (14:44 +0000)]
Reduce FTDate field size to 8 bytes from 10. Matches other calls in the file
now, no good explanation in code why it was 10 to start with.
http://postgis.refractions.net/pipermail/postgis-users/2008-April/019169.html

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

17 years agoAnother round of PostgreSQL 8.3 fixes, this time related to arrays. Make sure that...
Mark Cave-Ayland [Thu, 10 Apr 2008 06:40:33 +0000 (06:40 +0000)]
Another round of PostgreSQL 8.3 fixes, this time related to arrays. Make sure that we use the supplied ArrayType pointer macros, instead of attempting to access to cast directly to ArrayType. This resolved GBT#13 where a "corrupted histogram" error is thrown when using using ST_EstimatedExtent() under 8.3.

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

17 years agoChange sr_id into an integer, per mca's suggestion.
Paul Ramsey [Wed, 9 Apr 2008 19:52:19 +0000 (19:52 +0000)]
Change sr_id into an integer, per mca's suggestion.

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

17 years agoFix string literal comparison warnings: "comparison with string literal results in
Paul Ramsey [Tue, 8 Apr 2008 21:36:50 +0000 (21:36 +0000)]
Fix string literal comparison warnings: "comparison with string literal results in
unspecified behaviour"

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

17 years agoRename all occurances of getopt to pgis_getopt to work around
Paul Ramsey [Mon, 7 Apr 2008 20:09:48 +0000 (20:09 +0000)]
Rename all occurances of getopt to pgis_getopt to work around
OS/X 10.5 system function name collision.

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

17 years agoFix the ST_AsKML regression tests.
Paul Ramsey [Mon, 7 Apr 2008 19:47:21 +0000 (19:47 +0000)]
Fix the ST_AsKML regression tests.

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

17 years agoAllow conditional regression tests based on GEOS_VERNUM and move the
Paul Ramsey [Mon, 7 Apr 2008 19:47:05 +0000 (19:47 +0000)]
Allow conditional regression tests based on GEOS_VERNUM and move the
cover/prepared tests into the appropriate buckets. Fix the AT_AsKML
regression tests.

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

17 years agoremove unloved header file
Paul Ramsey [Sat, 5 Apr 2008 14:49:11 +0000 (14:49 +0000)]
remove unloved header file

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

17 years agoRemove the code that adds share/contrib/nad to the PROJ.4 search path for PostgreSQL...
Mark Cave-Ayland [Mon, 31 Mar 2008 11:16:54 +0000 (11:16 +0000)]
Remove the code that adds share/contrib/nad to the PROJ.4 search path for PostgreSQL < 8.0 since the mechanism for determining the path has changed from earlier versions, and this was mainly for Win32 users. Also rename nad/ directory to proj/ to keep it inline with an existing PROJ.4 installation.

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

17 years agosmall syntax errors in ST_YMAX, etc functions
Paul Ramsey [Sun, 30 Mar 2008 19:38:42 +0000 (19:38 +0000)]
small syntax errors in ST_YMAX, etc functions

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

17 years agoconfirm st_*min st_*max
Paul Ramsey [Sun, 30 Mar 2008 19:37:09 +0000 (19:37 +0000)]
confirm st_*min st_*max

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

17 years agoSyntax error in sql.in
Paul Ramsey [Fri, 28 Mar 2008 23:24:42 +0000 (23:24 +0000)]
Syntax error in sql.in

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

17 years agoFixed up KML patch from Eduin Carillo.
Paul Ramsey [Fri, 28 Mar 2008 21:31:57 +0000 (21:31 +0000)]
Fixed up KML patch from Eduin Carillo.

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

17 years agoEnable the USE_PROJ and GEOS_VERNUM macros to propogate into lwpostgis.sql.in
Paul Ramsey [Fri, 28 Mar 2008 21:28:21 +0000 (21:28 +0000)]
Enable the USE_PROJ and GEOS_VERNUM macros to propogate into lwpostgis.sql.in

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

17 years agoRevert KML patch, bad puppy!
Paul Ramsey [Fri, 28 Mar 2008 21:10:28 +0000 (21:10 +0000)]
Revert KML patch, bad puppy!

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

17 years agoAdded KML patch from Eduin Carillo.
Paul Ramsey [Fri, 28 Mar 2008 21:04:46 +0000 (21:04 +0000)]
Added KML patch from Eduin Carillo.
http://code.google.com/p/postgis/issues/detail?id=17

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

17 years agoChanged ifeq to ifndef for CXX macro test.
Paul Ramsey [Fri, 28 Mar 2008 20:18:49 +0000 (20:18 +0000)]
Changed ifeq to ifndef for CXX macro test.

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

17 years agoRemoved unloved and un-used geos_version.sh file.
Paul Ramsey [Fri, 28 Mar 2008 20:17:21 +0000 (20:17 +0000)]
Removed unloved and un-used geos_version.sh file.

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

17 years agoAdded SVN support patch from Dr. Marco Hugentobler, as described in http://postgis...
Paul Ramsey [Fri, 28 Mar 2008 20:03:42 +0000 (20:03 +0000)]
Added SVN support patch from Dr. Marco Hugentobler, as described in http://postgis.refractions.net/pipermail/postgis-devel/2008-February/002883.html

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

17 years agoAdded GEOS_VERNUM macro and protected GEOS 3.0/3.1 functionality behind it.
Paul Ramsey [Fri, 28 Mar 2008 19:25:16 +0000 (19:25 +0000)]
Added GEOS_VERNUM macro and protected GEOS 3.0/3.1 functionality behind it.

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

17 years agoFix crash caused by double-free in LWGEOM_same - we were accidentally freeing the...
Mark Cave-Ayland [Fri, 28 Mar 2008 18:55:17 +0000 (18:55 +0000)]
Fix crash caused by double-free in LWGEOM_same - we were accidentally freeing the 1st parameter twice instead of freeing the second parameter. Thanks to Cliff Wright for the bug report.

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

17 years agoRemoved regress_ogc_prep from tests temporarily until a new GEOS is released with...
Paul Ramsey [Fri, 28 Mar 2008 17:05:04 +0000 (17:05 +0000)]
Removed regress_ogc_prep from tests temporarily until a new GEOS is released with support
for new predicates.

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

17 years agoFix bug with |>> and <<| operators - the BOX2D overabove and overbelow functions...
Mark Cave-Ayland [Thu, 27 Mar 2008 21:18:16 +0000 (21:18 +0000)]
Fix bug with |>> and <<| operators - the BOX2D overabove and overbelow functions were actually wrong, causing index scans to return the wrong results. Per bug report from Tomas Karlsson.

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

17 years agoChange link to postgis bug tracker
Paul Ramsey [Wed, 26 Mar 2008 03:40:47 +0000 (03:40 +0000)]
Change link to postgis bug tracker

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

17 years agoResolve GBT bugs #2,#3 and #9 related to crashes when calling aggregate functions...
Mark Cave-Ayland [Fri, 21 Mar 2008 08:17:49 +0000 (08:17 +0000)]
Resolve GBT bugs #2,#3 and #9 related to crashes when calling aggregate functions under PostgreSQL 8.3 (all earlier versions would not see the error). This was due to missing more VARSIZE macros in the PostgreSQL 8.3 conversion. The complete list of affected functions under PostgreSQL 8.3 is: ST_force_2d(), ST_force_3dz(), ST_force_3dm(), ST_force_4d(), ST_Collect(), ST_MakeLine(), ST_Polygonize(), ST_Union()/ST_GeomUnion(), ST_MakePolygon()/ST_Polygon().

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

17 years agoDocument ST_SimplifyPreserveTopology(geometry,float)
Paul Ramsey [Tue, 12 Feb 2008 15:05:23 +0000 (15:05 +0000)]
Document ST_SimplifyPreserveTopology(geometry,float)

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

17 years agoAdded hook to GEOSTopologyPreserveSimplify
Paul Ramsey [Tue, 12 Feb 2008 15:03:25 +0000 (15:03 +0000)]
Added hook to GEOSTopologyPreserveSimplify

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

17 years agoChanged the interface for the GEOS prepared predicates.
Ben Jubb [Tue, 29 Jan 2008 01:24:34 +0000 (01:24 +0000)]
Changed the interface for the GEOS prepared predicates.
ST_contains, ST_containsProperly, ST_covers, and ST_intersects are now overloaded.
The new arguments style is ( geometry, geometry, integer).  The third argument is used to determine when the first argument changes.  The assumption is that when the third argument changes, the first argument is assumed to have changed too.  This side-steps the issue of determining when the identity of the first geometry changes.

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

17 years agoAmmended to include prepared geometry cache code in scope of PREPARED_GEOM symbol.
Ben Jubb [Tue, 22 Jan 2008 19:44:25 +0000 (19:44 +0000)]
Ammended to include prepared geometry cache code in scope of PREPARED_GEOM symbol.

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

17 years agoModified to check version of GEOS and stub out prepared predicates if GEOS is prior...
Ben Jubb [Tue, 22 Jan 2008 00:24:42 +0000 (00:24 +0000)]
Modified to check version of GEOS and stub out prepared predicates if GEOS is prior to 3.1.0

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

17 years agoMade some minor changes suggested by Mark Cave-Ayland.
Ben Jubb [Fri, 18 Jan 2008 18:57:25 +0000 (18:57 +0000)]
Made some minor changes suggested by Mark Cave-Ayland.

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

17 years agoAdded new function wrappers to expose prepared geometry predicates:
Ben Jubb [Fri, 18 Jan 2008 01:05:30 +0000 (01:05 +0000)]
Added new function wrappers to expose prepared geometry predicates:
ST_ContainsPrepared( geometry, geometry )
ST_ContainsProperlyPrepared( geometry, geometry )
ST_CoversPrepared( geometry, geometry )
ST_IntersectsPrepared( geometry, geometry )

as well, this function was added, for orthogonality:
ST_ContainsProperly( geometry, geometry )

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

17 years agoAdded new functions to lwgeom_geos_c.c to support prepared geometry predicates.
Ben Jubb [Fri, 18 Jan 2008 01:04:18 +0000 (01:04 +0000)]
Added new functions to lwgeom_geos_c.c to support prepared geometry predicates.
bool containsPrepared( geom, geom)
bool containsProperlyPrepared( geom, geom)
bool coversPrepared( geom, geom)
bool intersectsPrepared( geom, geom)

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

17 years agoTests for the prepared geometry predicates.
Ben Jubb [Fri, 18 Jan 2008 00:59:13 +0000 (00:59 +0000)]
Tests for the prepared geometry predicates.
The tests were copied from regress_ogc, and modified.
Most of the tests use a pattern where the same function is invoked three times with the same argument.
This tests the prepared geometry caching mechanism.
This testfile haven't been added to regress/Makefile yet, as it fails for one case.  This
probably due to a bug in GEOS.

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

17 years agoBump version number to 1.3.3SVN for next development cycle.
Mark Cave-Ayland [Fri, 11 Jan 2008 15:05:26 +0000 (15:05 +0000)]
Bump version number to 1.3.3SVN for next development cycle.

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

17 years agoRewrite the pgsql2shp connection string code so that it uses a connection string...
Mark Cave-Ayland [Fri, 11 Jan 2008 15:04:05 +0000 (15:04 +0000)]
Rewrite the pgsql2shp connection string code so that it uses a connection string, rather than setting environment variables. MingW-compiled and MSVC-compiled apps seem to have great problems passing the variables to each other, causing regression to fail. With this fix (and a Makefile tweak), it is now possible to run a MingW-compiled PostGIS against an MSVC compiled PostgreSQL and pass all regression tests.

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

17 years agoFix up bad entities and screwed up programlistings from some previous pretty-printing
Paul Ramsey [Mon, 3 Dec 2007 23:10:50 +0000 (23:10 +0000)]
Fix up bad entities and screwed up programlistings from some previous pretty-printing
run on the XML.

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

17 years agoCommit updated versions of the ChangeLog and README.postgis (also change some referen...
Mark Cave-Ayland [Sun, 2 Dec 2007 20:37:13 +0000 (20:37 +0000)]
Commit updated versions of the ChangeLog and README.postgis (also change some references in README.postgis from "run as root" to "run as postgres", and correct the --with-pgsql and --with-geos documentation)

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

17 years agoAdded release notes.
Paul Ramsey [Fri, 30 Nov 2007 18:19:38 +0000 (18:19 +0000)]
Added release notes.

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

17 years agoFix the (E)WKB parser so that it performs validation checks in the same way as the...
Mark Cave-Ayland [Fri, 30 Nov 2007 13:04:39 +0000 (13:04 +0000)]
Fix the (E)WKB parser so that it performs validation checks in the same way as the WKT parser, e.g. ensure POLYGON rings are closed, LINESTRINGs consist of at least 2 points and that curves have at least 3 points. As discovered when looking simplify() bug submitted by Ivan Mincik.

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

17 years agoRename the existing get_int32() and get_uint32() functions to lw_get_int32() and...
Mark Cave-Ayland [Tue, 27 Nov 2007 22:39:06 +0000 (22:39 +0000)]
Rename the existing get_int32() and get_uint32() functions to lw_get_int32() and lw_get_uint32() respectively in order to avoid a collision with functions of the same name in newer versions of OS X. This should resolve the problem with PostGIS crashing on some OS X installations. Many thanks to William Kyngesburye and others for resolving this issue.

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

17 years agoExtend the PROJ.4 search path to include $sharedir/contrib/postgis/nad when looking...
Mark Cave-Ayland [Tue, 27 Nov 2007 22:19:30 +0000 (22:19 +0000)]
Extend the PROJ.4 search path to include $sharedir/contrib/postgis/nad when looking for grid files. This is mainly to allow Win32 builds to find grid files without having to use a PROJ.4 DLL compiled containing a fixed path.

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

17 years agoApply Tom Glancy's patch to shp2pgsql which corrects an off-by-one error in the field...
Mark Cave-Ayland [Fri, 23 Nov 2007 10:42:09 +0000 (10:42 +0000)]
Apply Tom Glancy's patch to shp2pgsql which corrects an off-by-one error in the field_width calculation when determining which SQL numeric type is required depending upon the length of the corresponding shapefile field. This should eliminate various out of range error messages that may have appeared when attempting to load a converted shapefile into PostgreSQL.

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

17 years agoCommit a first attempt at an Ant build.xml file for the PostGIS JDBC driver so finall...
Mark Cave-Ayland [Fri, 23 Nov 2007 10:24:00 +0000 (10:24 +0000)]
Commit a first attempt at an Ant build.xml file for the PostGIS JDBC driver so finally all the Java drivers build with Ant for consistency, plus we eliminate numerous cross platform problems. As it stands, the build.xml file supports only the standard JDBC driver - if you wish to use a JTS-enabled JDBC driver or run the online regression tests then you must still use the Makefile. Any help porting the remaining parts of the Makefile would be appreciated.

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

17 years agoApply parts of Charlie Savage's MSVC patch - mainly tidying up variable allocations...
Mark Cave-Ayland [Mon, 29 Oct 2007 16:29:58 +0000 (16:29 +0000)]
Apply parts of Charlie Savage's MSVC patch - mainly tidying up variable allocations so they appear at the start of functions, but also making better use of the pj_get_errno_ref() which gets rid of the auto-import warnings on MingW.

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

17 years agoRemove version numbers from liblwgeom references in lwpostgis.sql as per http://postg...
Mark Cave-Ayland [Mon, 29 Oct 2007 14:22:26 +0000 (14:22 +0000)]
Remove version numbers from liblwgeom references in lwpostgis.sql as per http://postgis.refractions.net/pipermail/postgis-devel/2007-September/002764.html. This should help make upgrades a lot easier for people since it removes the need to change the SQL function definitions when upgrading version. Note that this is a quick and dirty fix as I didn't want to change Makefile.shlib too much - as soon as we remove support for PostgreSQL < 8.0, we can use PGXS instead and thus remove the redundant shared library code from PostGIS.

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

17 years agoCommit Charlie Savage's patches (with additional comments) to the bounding box/envelo...
Mark Cave-Ayland [Mon, 29 Oct 2007 13:44:29 +0000 (13:44 +0000)]
Commit Charlie Savage's patches (with additional comments) to the bounding box/envelope functions to ensure that valid geometries are always returned; in more specific terms, if a bounding box is a point then a POINT is returned, and if a bounding box is 1-dimensional a LINESTRING is returned. Otherwise a POLYGON is returned as per the old behaviour. For details see the thread in the postgis-users archives Sept 2007 'How to get the centroid of an bounding box using st_extent'.

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

17 years agoFix broken error message when attempting to deserialise a type other than a point...
Mark Cave-Ayland [Mon, 29 Oct 2007 12:34:17 +0000 (12:34 +0000)]
Fix broken error message when attempting to deserialise a type other than a point; the message should now correctly show the name of the offending type. Patch supplied by Charlie Savage.

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

17 years agoKML credits patch <yecarrillo>
Paul Ramsey [Tue, 23 Oct 2007 00:19:54 +0000 (00:19 +0000)]
KML credits patch <yecarrillo>

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

17 years agoApply extra fixes for the reworked AsGML() function to ensure that enough memory...
Mark Cave-Ayland [Wed, 10 Oct 2007 21:27:51 +0000 (21:27 +0000)]
Apply extra fixes for the reworked AsGML() function to ensure that enough memory is allocated for the GML output. Patch supplied by Barbara Phillipot.

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

17 years agoFix a mistake in my refactoring of the AsGML() patch for GML3 support - the detoasted...
Mark Cave-Ayland [Fri, 28 Sep 2007 10:18:23 +0000 (10:18 +0000)]
Fix a mistake in my refactoring of the AsGML() patch for GML3 support - the detoasted geometry is now the second argument rather than the first. Per report from Olivier Courtin.

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

17 years agoApplied patch from Charlie Savage to make ST_Envelope return a POINT
Paul Ramsey [Wed, 19 Sep 2007 05:01:18 +0000 (05:01 +0000)]
Applied patch from Charlie Savage to make ST_Envelope return a POINT
when the input geometry is a POINT or a one-part MULTIPOINT.

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

17 years agoCommit modified version of Barbara Phillipot's GML patch to fix existing output to...
Mark Cave-Ayland [Thu, 6 Sep 2007 16:03:56 +0000 (16:03 +0000)]
Commit modified version of Barbara Phillipot's GML patch to fix existing output to make it GML2 compliant, plus add GML3 output capability

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

17 years agoRename ST_GeomUnion to ST_Union in docs and ST_MemGeomUnion to ST_MemUnion in
Paul Ramsey [Wed, 22 Aug 2007 15:09:43 +0000 (15:09 +0000)]
Rename ST_GeomUnion to ST_Union in docs and ST_MemGeomUnion to ST_MemUnion in
.sql.

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

17 years agoFix crash when calling ST_EndPoint caused by a double-free in LWGEOM_endpoint_linestr...
Mark Cave-Ayland [Tue, 21 Aug 2007 23:02:41 +0000 (23:02 +0000)]
Fix crash when calling ST_EndPoint caused by a double-free in LWGEOM_endpoint_linestring. This bug has been there for a while - thanks to Eric Francois for the bug report.

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

17 years ago- Include levenshtein difference in rating when doing city/state match.
Stephen Frost [Wed, 15 Aug 2007 14:39:04 +0000 (14:39 +0000)]
- Include levenshtein difference in rating when doing city/state match.

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

17 years agoIncrement version number to 1.3.2 for next development cycle
Paul Ramsey [Mon, 13 Aug 2007 16:30:26 +0000 (16:30 +0000)]
Increment version number to 1.3.2 for next development cycle

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

17 years agoVersion flip up to 1.3.1
Paul Ramsey [Mon, 13 Aug 2007 16:12:57 +0000 (16:12 +0000)]
Version flip up to 1.3.1

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

17 years agoFixed spelling error for the word "geometry" thanks to Regina Obe, plus added comment...
Mark Cave-Ayland [Mon, 13 Aug 2007 15:51:04 +0000 (15:51 +0000)]
Fixed spelling error for the word "geometry" thanks to Regina Obe, plus added comment about initial PostgreSQL 8.3 support.

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

17 years agoThis time really fix the documentation missing tag problem...
Mark Cave-Ayland [Mon, 13 Aug 2007 07:27:54 +0000 (07:27 +0000)]
This time really fix the documentation missing tag problem...

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

17 years agoFix documentation since an error in the 1.3.0 release notes xml caused the build...
Mark Cave-Ayland [Mon, 13 Aug 2007 07:14:59 +0000 (07:14 +0000)]
Fix documentation since an error in the 1.3.0 release notes xml caused the build to fail (this may need author review)

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

17 years agoRemove warning about unused variable in lwgeom.c (it was a leftover from the PostgreS...
Mark Cave-Ayland [Mon, 13 Aug 2007 07:06:58 +0000 (07:06 +0000)]
Remove warning about unused variable in lwgeom.c (it was a leftover from the PostgreSQL 8.3 compatibility patch)

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

17 years agoAdded release notes and updated version numbers and release dates.
Mark Leslie [Thu, 9 Aug 2007 22:50:16 +0000 (22:50 +0000)]
Added release notes and updated version numbers and release dates.

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

17 years agoMoved the intersects method back to the original definition and disabled the new...
Mark Leslie [Thu, 9 Aug 2007 22:19:35 +0000 (22:19 +0000)]
Moved the intersects method back to the original definition and disabled the new apparently broken implementation.

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

17 years agoBumped the version number to RC5.
Mark Leslie [Thu, 9 Aug 2007 16:57:13 +0000 (16:57 +0000)]
Bumped the version number to RC5.

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

17 years agoUpdated the regression tests for curved geoms to avoid the byte ordering problems.
Mark Leslie [Thu, 9 Aug 2007 16:56:37 +0000 (16:56 +0000)]
Updated the regression tests for curved geoms to avoid the byte ordering problems.

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

17 years agoRemoved an unused function that was erroneously committed.
Mark Leslie [Fri, 3 Aug 2007 20:58:27 +0000 (20:58 +0000)]
Removed an unused function that was erroneously committed.

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

17 years agoAdded PreparedGeometry and caching support to the intersects function in the jts...
Mark Leslie [Thu, 2 Aug 2007 19:58:46 +0000 (19:58 +0000)]
Added PreparedGeometry and caching support to the intersects function in the jts connector.  Created wrapper functions for the PreparedGeometry functionality.

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

17 years agoRemoved a call to the deprecated point_in_ring function.
Mark Leslie [Thu, 2 Aug 2007 19:57:38 +0000 (19:57 +0000)]
Removed a call to the deprecated point_in_ring function.

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

17 years agoUpdated the version numbers.
Mark Leslie [Tue, 31 Jul 2007 20:40:04 +0000 (20:40 +0000)]
Updated the version numbers.

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

17 years agoApplyed Michael Fuhrs patch to fix the reserved word issue against PostgreSQL 8.3.
Mark Leslie [Thu, 26 Jul 2007 18:55:37 +0000 (18:55 +0000)]
Applyed Michael Fuhrs patch to fix the reserved word issue against PostgreSQL 8.3.

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

17 years agoFixed the FP_LTEQ macro to accomodate values significantly larger that zero.
Mark Leslie [Mon, 23 Jul 2007 21:43:44 +0000 (21:43 +0000)]
Fixed the FP_LTEQ macro to accomodate values significantly larger that zero.

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

17 years agoAdded the covers and coveredby functions to the jts connector.
Mark Leslie [Mon, 23 Jul 2007 18:52:22 +0000 (18:52 +0000)]
Added the covers and coveredby functions to the jts connector.

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

17 years agoUpdated the loader to create the index after the data has been loaded.
Mark Leslie [Mon, 23 Jul 2007 16:29:40 +0000 (16:29 +0000)]
Updated the loader to create the index after the data has been loaded.

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

17 years agoFix some ST_ declarations that were missing.
Paul Ramsey [Fri, 20 Jul 2007 04:29:35 +0000 (04:29 +0000)]
Fix some ST_ declarations that were missing.

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

17 years agoApplying Michael Fuhrs patch to correct my attrocious selling.
Mark Leslie [Wed, 18 Jul 2007 15:57:27 +0000 (15:57 +0000)]
Applying Michael Fuhrs patch to correct my attrocious selling.

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

17 years agoAdded notes about the implicit index operators on the relational functions.
Mark Leslie [Mon, 16 Jul 2007 18:53:52 +0000 (18:53 +0000)]
Added notes about the implicit index operators on the relational functions.

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

17 years agoResurrected the ST_LineToCurve regression tests, but commented them out until ST_Snap...
Mark Leslie [Mon, 16 Jul 2007 18:26:58 +0000 (18:26 +0000)]
Resurrected the ST_LineToCurve regression tests, but commented them out until ST_SnapToGrid excepts curves.

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

17 years agoUpgraded the escaping of quotes from the deprecated backslashing to the doubling...
Mark Leslie [Mon, 16 Jul 2007 18:06:32 +0000 (18:06 +0000)]
Upgraded the escaping of quotes from the deprecated backslashing to the doubling of quotes.

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

17 years agoRollback experimental shp2pgsql escaping change that accidently got included in the...
Mark Cave-Ayland [Fri, 13 Jul 2007 05:48:32 +0000 (05:48 +0000)]
Rollback experimental shp2pgsql escaping change that accidently got included in the last commit :(

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

17 years agoCorrect previous commit for older PostgreSQL versions - the order of the methods...
Mark Cave-Ayland [Fri, 13 Jul 2007 05:42:46 +0000 (05:42 +0000)]
Correct previous commit for older PostgreSQL versions - the order of the methods in PROJ4SRSCacheContextMethods is not consistent between versions.

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

17 years agoAdd missing methods to the PROJ.4 cache memory context to prevent a backend crash...
Mark Cave-Ayland [Thu, 12 Jul 2007 20:33:23 +0000 (20:33 +0000)]
Add missing methods to the PROJ.4 cache memory context to prevent a backend crash caused by a NULL pointer dereference when PostgreSQL is trying to clean up memory contexts. Per report from Tom Lane.

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

17 years agoRemoving the unsnappable test calls to LineToCurve.
Mark Leslie [Thu, 12 Jul 2007 17:20:24 +0000 (17:20 +0000)]
Removing the unsnappable test calls to LineToCurve.

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