]> granicus.if.org Git - postgis/log
postgis
17 years agoMore work on improving the EWKT/B parser; remove all references to allocator function...
Mark Cave-Ayland [Sun, 13 Jul 2008 10:50:56 +0000 (10:50 +0000)]
More work on improving the EWKT/B parser; remove all references to allocator functions from outside of liblwgeom by generating wrapper functions with more meaningful names. As well as cleaning up the API, it also makes the code much more readable

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

17 years agoExample uses of ST_Line_SubString
Regina Obe [Fri, 11 Jul 2008 10:48:46 +0000 (10:48 +0000)]
Example uses of ST_Line_SubString

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

17 years agoExamples of using ST_ExteriorRing and ST_NumInteriorRings
Regina Obe [Thu, 10 Jul 2008 13:16:20 +0000 (13:16 +0000)]
Examples of using ST_ExteriorRing and ST_NumInteriorRings

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

17 years agoNumerous small changes. Changed some returns 1 (TRUE) to just TRUE. Automatic castin...
Regina Obe [Wed, 9 Jul 2008 11:16:08 +0000 (11:16 +0000)]
Numerous small changes.  Changed some returns 1 (TRUE) to just TRUE. Automatic casting between 0 1 and boolean no longer exists in PostgreSQL. Lets not confuse people by suggesting to them they are the same.

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

17 years agonumerous changes(remove additional parent, argument list changes, multi function...
Regina Obe [Tue, 8 Jul 2008 13:30:31 +0000 (13:30 +0000)]
numerous changes(remove additional parent, argument list changes, multi function breakout)

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

17 years agoProvide examples of using ST_MakePolygon in conjunction with ST_Accum and PostgreSQL...
Regina Obe [Tue, 8 Jul 2008 12:01:27 +0000 (12:01 +0000)]
Provide examples of using ST_MakePolygon in conjunction with ST_Accum and PostgreSQL ARRAY() function

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

17 years agoAdded brief descriptions to the SQL-MM curve types.
Mark Leslie [Tue, 8 Jul 2008 06:05:42 +0000 (06:05 +0000)]
Added brief descriptions to the SQL-MM curve types.

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

17 years agomodified toc top generation level param
Kevin Neufeld [Tue, 8 Jul 2008 05:15:57 +0000 (05:15 +0000)]
modified toc top generation level param

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

17 years agosplit postgis.xml into manageable chunks, broken at chapter divisions.
Kevin Neufeld [Tue, 8 Jul 2008 05:09:36 +0000 (05:09 +0000)]
split postgis.xml into manageable chunks, broken at chapter divisions.

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

17 years agoupdated tips section to reference ST_* function names
Kevin Neufeld [Tue, 8 Jul 2008 03:12:08 +0000 (03:12 +0000)]
updated tips section to reference ST_* function names

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

17 years agoExample of ST_AddPoint, some fixes of non-ST references, miscellaneous indenting...
Regina Obe [Mon, 7 Jul 2008 12:20:43 +0000 (12:20 +0000)]
Example of ST_AddPoint, some fixes of non-ST references, miscellaneous indenting changes.

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

17 years agoAdd examples for ST_MakePolygon, correct non-st to ST references in ST_MakePolygon...
Regina Obe [Mon, 7 Jul 2008 11:57:11 +0000 (11:57 +0000)]
Add examples for ST_MakePolygon, correct non-st to ST references in ST_MakePolygon section

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

17 years agofixed ST_Dimension example, flipped order of conditions in WHERE on some examples...
Regina Obe [Sun, 6 Jul 2008 07:22:51 +0000 (07:22 +0000)]
fixed ST_Dimension example, flipped order of conditions in WHERE on some examples (in later versions of PostgreSQL since we don't have our costs right - the planner may choose to process in order of conditions

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

17 years agofixed typo in a WKT example.
Kevin Neufeld [Sun, 6 Jul 2008 01:47:38 +0000 (01:47 +0000)]
fixed typo in a WKT example.

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

17 years agoExamples of use of ST_MakeLine, correction to my ST_Collect example.
Regina Obe [Thu, 3 Jul 2008 19:07:35 +0000 (19:07 +0000)]
Examples of use of ST_MakeLine, correction to my ST_Collect example.

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

17 years agoAdd version information to <title>
Paul Ramsey [Thu, 3 Jul 2008 17:36:46 +0000 (17:36 +0000)]
Add version information to <title>

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

17 years agoMatch version numbers to new naming conventions.
Paul Ramsey [Thu, 3 Jul 2008 17:08:49 +0000 (17:08 +0000)]
Match version numbers to new naming conventions.

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

17 years agoAdd the parser build rules back into the liblwgeom Makefile, so now any changes to...
Mark Cave-Ayland [Thu, 3 Jul 2008 09:28:38 +0000 (09:28 +0000)]
Add the parser build rules back into the liblwgeom Makefile, so now any changes to either the lexer or parser source files will automatically invoke a rebuild of the relevant output files during make

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

17 years agoFix liblwgeom requiring gcc to compile. By using macros and variables supplied by...
Mark Cave-Ayland [Tue, 1 Jul 2008 14:15:33 +0000 (14:15 +0000)]
Fix liblwgeom requiring gcc to compile. By using macros and variables supplied by libtool, we can now detect the PIC flags and whether the compiler will accept additional gcc warning flags for developers

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

17 years agoFixed typo
Regina Obe [Mon, 30 Jun 2008 15:30:17 +0000 (15:30 +0000)]
Fixed typo

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

17 years agoMove some PostgreSQL compatibility macros from lwgeom_pg.h into pgsql_compat.h which...
Mark Cave-Ayland [Sun, 29 Jun 2008 19:19:06 +0000 (19:19 +0000)]
Move some PostgreSQL compatibility macros from lwgeom_pg.h into pgsql_compat.h which is their proper home

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

17 years agoSplit the basic geometry accessors into a separate static library liblwgeom.a; this...
Mark Cave-Ayland [Sun, 29 Jun 2008 19:11:48 +0000 (19:11 +0000)]
Split the basic geometry accessors into a separate static library liblwgeom.a; this potentially allows re-use of the liblwgeom functions from within PostGIS, or could be extended at a later date to include databases other than MySQL. This patch includes a change to the liblwgeom handler functions; instead of sprinkling init_pg_func()s around the source, I have changed the default liblwgeom handlers to make use of a callback to allow linked libraries to set their own handlers the first time any of them are called. I have also tidied up the parser API a little in liblwgeom.h, which means wktparse.h can be removed from all of the headers in the lwgeom/ directory, plus renamed wktunparse.c to lwgunparse.c to keep things similar to lwgparse.c. Finally, I renamed liblwgeom.c to lwutil.c to avoid confusion within the new interface. TODO: the liblwgeom Makefile has some gcc-specific options, but these can be fixed later - it seemed more important to make the warnings visible to developers.

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

17 years agoFlesh out definition of ST_Collect and how to use it.
Regina Obe [Sat, 28 Jun 2008 05:34:59 +0000 (05:34 +0000)]
Flesh out definition of ST_Collect and how to use it.

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

17 years agoST_SnapToGrid SQL functions were referencing the deprecated SnapToGrid instead of...
Kevin Neufeld [Thu, 26 Jun 2008 02:40:09 +0000 (02:40 +0000)]
ST_SnapToGrid SQL functions were referencing the deprecated SnapToGrid instead of their ST_.. equivalents.

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

17 years agoFix mismatched para in intersection documentation and remove dangling command tag...
Regina Obe [Tue, 24 Jun 2008 16:12:56 +0000 (16:12 +0000)]
Fix mismatched para in intersection documentation and remove dangling command tag in Reporting Documentation Issues section.

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

17 years agoDefinitions for st_convexhull and st_shift_longitude
Regina Obe [Tue, 24 Jun 2008 15:57:20 +0000 (15:57 +0000)]
Definitions for st_convexhull and st_shift_longitude

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

17 years agoRearrange lwgeom/Makefile.in in terms of the liblwgeom/PostgreSQL distinction, plus...
Mark Cave-Ayland [Fri, 6 Jun 2008 08:53:39 +0000 (08:53 +0000)]
Rearrange lwgeom/Makefile.in in terms of the liblwgeom/PostgreSQL distinction, plus remove remaining JTS reference.

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

17 years agoRemove JTS support from liblwpostgis; native GCJ-compiled JTS code is reported not...
Mark Cave-Ayland [Fri, 6 Jun 2008 08:48:10 +0000 (08:48 +0000)]
Remove JTS support from liblwpostgis; native GCJ-compiled JTS code is reported not to be reliable enough within a production environment, so well stick with GEOS.

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

17 years agoSome more updates to lwpostgis.sql.in.c; correct a couple of missing conversions...
Mark Cave-Ayland [Thu, 5 Jun 2008 16:08:23 +0000 (16:08 +0000)]
Some more updates to lwpostgis.sql.in.c; correct a couple of missing conversions from OPAQUE_TYPE to internal (how on earth did regression tests pass with this still in place??), plus remove the UPDATE on pg_opclass to change the OID of the index storage type since we can do this by specifying a STORAGE clause instead.

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

17 years agoRemove Makefile from lwgeom/ directory; it is no longer needed as it is automatically...
Mark Cave-Ayland [Thu, 5 Jun 2008 14:49:29 +0000 (14:49 +0000)]
Remove Makefile from lwgeom/ directory; it is no longer needed as it is automatically generated from lwgeom/Makefile.in

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

17 years agoUpdate new Makefile copyrights, also remove compat.h from the loader/ directory since...
Mark Cave-Ayland [Thu, 5 Jun 2008 14:47:31 +0000 (14:47 +0000)]
Update new Makefile copyrights, also remove compat.h from the loader/ directory since it is now no longer needed.

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

17 years agoUpdate copyrights for configure.ac (rewritten from scratch, and now renamed from...
Mark Cave-Ayland [Thu, 5 Jun 2008 14:30:54 +0000 (14:30 +0000)]
Update copyrights for configure.ac (rewritten from scratch, and now renamed from the deprecated form configure.in) and also the PROJ.4 version detection macro

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

17 years agoSwitch all SQL and PL/PGSQL stored procedures over to use dollar quoting instead...
Mark Cave-Ayland [Thu, 5 Jun 2008 12:09:48 +0000 (12:09 +0000)]
Switch all SQL and PL/PGSQL stored procedures over to use dollar quoting instead of apostrophes for function bodies. At last, most of the stored procedures actually become readable

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

17 years agoRemove the HAS_SCHEMA #define and all related #else code since we now guarantee to...
Mark Cave-Ayland [Thu, 5 Jun 2008 11:19:29 +0000 (11:19 +0000)]
Remove the HAS_SCHEMA #define and all related #else code since we now guarantee to be using PostgreSQL > 7.2

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

17 years agoRemove PQunescapeBytea hack from pgsql2shp which is no longer needed, as it was only...
Mark Cave-Ayland [Thu, 5 Jun 2008 11:07:40 +0000 (11:07 +0000)]
Remove PQunescapeBytea hack from pgsql2shp which is no longer needed, as it was only required for versions of PostgreSQL < 7.3

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

17 years agoRemove all of the pre-PostgreSQL 7.3 schema #ifdefs from lwpostgis.sql.in to make...
Mark Cave-Ayland [Thu, 5 Jun 2008 10:51:11 +0000 (10:51 +0000)]
Remove all of the pre-PostgreSQL 7.3 schema #ifdefs from lwpostgis.sql.in to make things readable once again.

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

17 years agoBlast away the huge amounts of legacy C code related to PostgreSQL versions < 8.1...
Mark Cave-Ayland [Thu, 5 Jun 2008 10:19:01 +0000 (10:19 +0000)]
Blast away the huge amounts of legacy C code related to PostgreSQL versions < 8.1. Next step will be to work on the SQL script files too.

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

17 years agoProvide a new text file called DEBUG explaining how to use the new debug system.
Mark Cave-Ayland [Sat, 31 May 2008 10:35:04 +0000 (10:35 +0000)]
Provide a new text file called DEBUG explaining how to use the new debug system.

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

17 years agoCommit new PostGIS debugging infrastructure. These changes unify all the debug loggin...
Mark Cave-Ayland [Sat, 31 May 2008 09:56:44 +0000 (09:56 +0000)]
Commit new PostGIS debugging infrastructure. These changes unify all the debug logging to use a new set of macros: LWDEBUG()/LWDEBUGF() for LWGEOM functions, and POSTGIS_DEBUG()/POSTGIS_DEBUGF() for PostgreSQL functions. To enable debugging, run configure with --enable-debug and then remake the entire project. If --enable-debug is omitted during configure, the above macros evaluate to (void)0, and hence should be removed by the compiler during optimisation. Also: contains minor warning cleanups and a fix for the ST_Dwithin SQL definition.

git-svn-id: http://svn.osgeo.org/postgis/trunk@2797 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 23:03:11 +0000 (23:03 +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/trunk@2796 b70326c6-7e19-0410-871a-916f4a2858ee

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

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

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

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

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

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

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

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

17 years agoRemove extra warnings related to the shp2pgsql deleted records patch
Mark Cave-Ayland [Tue, 27 May 2008 15:08:20 +0000 (15:08 +0000)]
Remove extra warnings related to the shp2pgsql deleted records patch

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

17 years agoUpdate new build system to include iconv detection for shp2pgsql
Mark Cave-Ayland [Tue, 27 May 2008 14:47:06 +0000 (14:47 +0000)]
Update new build system to include iconv detection for shp2pgsql

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

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

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

17 years agoSince PGXS compiles libraries with -Wall, attempt to remove as many warnings as possi...
Mark Cave-Ayland [Thu, 22 May 2008 20:43:00 +0000 (20:43 +0000)]
Since PGXS compiles libraries with -Wall, attempt to remove as many warnings as possible. Most of these are missing function prototypes at the top of each file.

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

17 years agoUpdate documentation build so that "make install" now works. Maybe this will fix...
Mark Cave-Ayland [Thu, 22 May 2008 14:34:32 +0000 (14:34 +0000)]
Update documentation build so that "make install" now works. Maybe this will fix the on-line website build?

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

17 years agoUpdate topology/ directory to use the new PGXS build system.
Mark Cave-Ayland [Thu, 22 May 2008 14:31:02 +0000 (14:31 +0000)]
Update topology/ directory to use the new PGXS build system.

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

17 years agoUpdate previous commit: add Makefile.in and remove Makefile, since Makefile is now...
Mark Cave-Ayland [Tue, 20 May 2008 22:24:09 +0000 (22:24 +0000)]
Update previous commit: add Makefile.in and remove Makefile, since Makefile is now generated from Makefile.in automatically.

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

17 years agoRework the documentation Makefile so that it works with the autoconf build system.
Mark Cave-Ayland [Tue, 20 May 2008 22:10:54 +0000 (22:10 +0000)]
Rework the documentation Makefile so that it works with the autoconf build system.

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

17 years agoFixes for previous commit: missed Makefile.config target for "make clean"
Mark Cave-Ayland [Wed, 14 May 2008 17:24:25 +0000 (17:24 +0000)]
Fixes for previous commit: missed Makefile.config target for "make clean"

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

17 years agoFixes for previous commit: Alter GNUmakefile to understand that Makefile.config no...
Mark Cave-Ayland [Wed, 14 May 2008 17:19:50 +0000 (17:19 +0000)]
Fixes for previous commit: Alter GNUmakefile to understand that Makefile.config no longer exists, plus remove lwgeom/sqldefines.h as it is generated by autoconf

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

17 years agoCommit new build system based upon PGXS. Due to the large number of changes, please...
Mark Cave-Ayland [Wed, 14 May 2008 17:10:19 +0000 (17:10 +0000)]
Commit new build system based upon PGXS. Due to the large number of changes, please refer to http://postgis.refractions.net/pipermail/postgis-devel/2008-May/003010.html.

git-svn-id: http://svn.osgeo.org/postgis/trunk@2774 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