Mark Cave-Ayland [Wed, 16 Jul 2008 08:42:34 +0000 (08:42 +0000)]
Fix for segfault in ANALYZE due to incorrect use of legacy BOX type within compute_geometry_stats() (Fixes GBT#43). Thanks to Landon Fuller for the bug report and fix.
Kevin Neufeld [Tue, 15 Jul 2008 06:57:32 +0000 (06:57 +0000)]
Started migration of the functions in reference.xml using the <variablelist> concept to a new "reference_new.xml" using DocBook's <refentry> concept. Once migration is complete, reference.xml will be removed and reference_new.xml will be renamed to reference.xml. The included template.xml file is not used, except to provide example usage of DocBook's refentry tag.
Mark Cave-Ayland [Mon, 14 Jul 2008 11:40:41 +0000 (11:40 +0000)]
Modify autoconf stylesheet logic (again) to correctly distinguish between the case where a valid docbook stylesheet is found automatically and where it is explicitly specified using the --with-xsldir option.
Mark Cave-Ayland [Mon, 14 Jul 2008 10:41:05 +0000 (10:41 +0000)]
Change autoconf iconv-detection code so that ICONV_LDFLAGS is explicitly set in the AC_CHECK_LIB() action-if-found section (LIBS does not get automatically set when action-if-found is set). Thanks to Olivier Courtin for the bug report.
Mark Cave-Ayland [Mon, 14 Jul 2008 10:05:14 +0000 (10:05 +0000)]
Apply some autoconf / Makefile changes from Olivier Courtin. XSLBASE should not be checked for validity unless it has been explicitly specified using the --with-xsldir option, and we also add some friendlier messages in the documentation Makefile in case the DocBook stylesheets and/or xsltproc cannot be found. Additionally, the configure --help output has been tidied up using the AS_HELP_STRING macro.
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
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.
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
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
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
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.
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.
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.
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
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
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.
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)
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.
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
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.
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
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.
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.
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.