Regina Obe [Fri, 22 Aug 2008 12:14:47 +0000 (12:14 +0000)]
Updated the installations docs. I took some of Olivier Courtin instructions for install (http://postgis.refractions.net/pipermail/postgis-users/2008-August/020746.html) which seemed much easier to follow than the ones we currently have. Also corrected path settings we had to the install files. They are all in downloads not root of postgis as we suggested.
Mark Cave-Ayland [Thu, 21 Aug 2008 10:56:10 +0000 (10:56 +0000)]
Update PostGIS SVN trunk to use the new 8.4 GiST API (where RECHECK is now specified within the consistent function, rather than being supplied as part of the operator class definition). This allows PostGIS to compile and pass regression tests on the latest PostgreSQL 8.4 CVS HEAD.
Mark Cave-Ayland [Thu, 21 Aug 2008 08:45:07 +0000 (08:45 +0000)]
Alter the lwgeom Makefile so that liblwgeom.a is linked directly, rather than using the -L...-l options on the command line. This is to prevent problems on OSX where PGXSadds the PostgreSQL $libdir to the PostGIS link line, causing it to link to liblwgeom.so produced by older versions of PostGIS rather than the static liblwgeom.a.
Also change the PGXS CPP/LIB equivalent variables to use += so that extra compile/link options can be supplied. Per report from Robert Rainthorpe, with thanks to William Kyngesburye.
Kevin Neufeld [Fri, 1 Aug 2008 15:12:20 +0000 (15:12 +0000)]
Reverted html markup for mathematical expressions in ST_Touches and ST_Crosses to a gif image. It seems unicode markup does not work well for both IE and Firefox. The next best thing to do is to get MathML markup working.
Regina Obe [Wed, 30 Jul 2008 11:41:23 +0000 (11:41 +0000)]
Got rid pf superfluous redirection to deprecated functions of ST_GeomFromWkb and ST_GeomFromText - now they just point directly to the c functions. Changed all FromWKB, FromText variants to point to the non-deprecated ST_GeomFrom, ST_BuildArea etc. (before they were pointing at deprecated functions)
Regina Obe [Tue, 29 Jul 2008 15:42:35 +0000 (15:42 +0000)]
Move over ST_Collect and ST_Union, provide examples for ST_Union. Get rid of comment about don't use ST_Union with geometry collections - seems to work fine with those.
Kevin Neufeld [Tue, 29 Jul 2008 05:11:11 +0000 (05:11 +0000)]
moved over st_centroid and provided examples in both svg and png format. Eventually, ImageMagick will be used to generate the png files, but for now they are committed into svn.
Mark Cave-Ayland [Mon, 28 Jul 2008 10:03:31 +0000 (10:03 +0000)]
Allow Makefile substitutions for PGCONFIG which are required if pg_config is not located in the path. Note that as part of this fix, we now need to generate topology/Makefile using autoconf. Thanks to Jorgen Austvik for the report and partial patch.
Mark Cave-Ayland [Thu, 24 Jul 2008 10:22:16 +0000 (10:22 +0000)]
Add PROJ.4 version check to ensure that a minimum version of 4.5.0 is installed. This is to ensure that the pj_set_searchpath() function is present (note: it was actually added in 4.4.9, however we version detect on major.minor rather than major.minor.release)
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.