]> granicus.if.org Git - postgis/log
postgis
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

17 years agoRemove extra/debian, per recommendation from Stephen Frost
Paul Ramsey [Wed, 11 Jul 2007 01:17:29 +0000 (01:17 +0000)]
Remove extra/debian, per recommendation from Stephen Frost

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

17 years agoRemove templategis from make, install, clean targets.
Paul Ramsey [Tue, 10 Jul 2007 21:12:42 +0000 (21:12 +0000)]
Remove templategis from make, install, clean targets.

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

17 years ago- Remove debugging NOTICE
Stephen Frost [Mon, 9 Jul 2007 03:11:25 +0000 (03:11 +0000)]
- Remove debugging NOTICE

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

17 years ago- Added print-print function for norm_addy type (norm_addy -> varchar)
Stephen Frost [Mon, 9 Jul 2007 02:20:00 +0000 (02:20 +0000)]
- Added print-print function for norm_addy type (norm_addy -> varchar)
- Restructured geocode(), accept address in parsed norm_addy form
  as well as unparsed varchar form.  Return norm_addy type instead of
  varchar (use pprint_addy() if you want a varchar result instead)

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

17 years ago- City names are 90 characters (this matters more than you might
Stephen Frost [Sun, 8 Jul 2007 21:56:47 +0000 (21:56 +0000)]
- City names are 90 characters (this matters more than you might
  think because it affects the types returned from the various
  calls and if they don't match subsequent geocode() queries in
  the same session may complain about the planned record type not
  matching across calls)

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

17 years agoST_Dwithin reference entry
Paul Ramsey [Fri, 6 Jul 2007 16:45:59 +0000 (16:45 +0000)]
ST_Dwithin reference entry

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

17 years agoAdded ST_DWithin SQL function
Paul Ramsey [Fri, 6 Jul 2007 16:44:21 +0000 (16:44 +0000)]
Added ST_DWithin SQL function

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

17 years agoApplied the patch from Michael Fuhr to fix the definition of ST_PointN
Mark Leslie [Wed, 4 Jul 2007 17:12:05 +0000 (17:12 +0000)]
Applied the patch from Michael Fuhr to fix the definition of ST_PointN

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

17 years ago- Change to generic database name
Stephen Frost [Tue, 3 Jul 2007 21:36:28 +0000 (21:36 +0000)]
- Change to generic database name

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

17 years ago- Update install instructions
Stephen Frost [Tue, 3 Jul 2007 21:36:02 +0000 (21:36 +0000)]
- Update install instructions

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

17 years agoAdd in initial import scripts for importing the TIGER/Line
Stephen Frost [Tue, 3 Jul 2007 21:32:50 +0000 (21:32 +0000)]
Add in initial import scripts for importing the TIGER/Line
data into a PostGIS system.  Could probably be improved to
accept more arguments/etc and require less direct script
modification to make it work.  Also, not sure the polygons
are done perfectly yet. :/

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

17 years agoAdd in broken out/updated normalize/geocode functions
Stephen Frost [Tue, 3 Jul 2007 21:30:34 +0000 (21:30 +0000)]
Add in broken out/updated normalize/geocode functions
- create_geocode.sql:
  Main creation script for pulling in all the other
  .sql files to create all the functions and whatnot
- normalize/
  Normalization routines, includes mapping 'North' -> 'N',
  'Virginia' -> 'VA', etc, etc.
- geocode/
  Actual geocoding routines to find the point geometry of the
  address.  Includes interpolation across the linestring found
  for the location (perhaps not the best), and fallbacks to
  zip-code and city, state matches using the associated lookup
  tables for those.  Also currently returns a set rather than
  a cursor, that's up for some debate but the cursor makes it
  difficult to do things like fallback, imv.  Especially since
  references to it from another pl/pgsql function require it to
  be a specific record type across multiple calls.  That's
  currently a problem. :/

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

17 years agoInitial import of utility functions, seperated into individual files
Stephen Frost [Tue, 3 Jul 2007 21:22:29 +0000 (21:22 +0000)]
Initial import of utility functions, seperated into individual files
for sanity.

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

17 years agotables/- New scripts for roads_local/tiger_geocode_roads, clean up lookup_tables
Stephen Frost [Tue, 3 Jul 2007 21:19:54 +0000 (21:19 +0000)]
tables/- New scripts for roads_local/tiger_geocode_roads, clean up lookup_tables
- roads_local.sql:
  Script to create the road_local table from the completechain
  table which is created by ogr2ogr.  Mainly handles type
  conversions.  Also creates the tlid, cfcc, and geometry
  indexes.

- tiger_geocode_roads.sql:
  Script to create the tiger_geocode_roads table which breaks
  down the roads_local to just the street name, etc, much
  smaller than roads_local but has the pointers to get back
  to the full roads_local for address number matching, etc.
  Also creates the appropriate indexes using soundex().

- lookup_tables.sql:
  - Add 'drop if exists' to make script easily re-runnable
  - Add primary keys, good thing to have, and creates indexes
  - Add st_code (TIGER/Line state code) to state_lookup
  - Remove dup in street_type_lookup
  - Add in building of:
    place_lookup
    county_lookup
    countysub_lookup
    zip_lookup_all
    zip_lookup

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

17 years ago- Minor reorg, add in other parts of the initial load
Stephen Frost [Tue, 3 Jul 2007 21:05:03 +0000 (21:05 +0000)]
- Minor reorg, add in other parts of the initial load

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

17 years ago- Original tiger geocoder
Stephen Frost [Tue, 3 Jul 2007 20:51:31 +0000 (20:51 +0000)]
- Original tiger geocoder

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

17 years agoAdded a home for the tiger geocoder.
Mark Leslie [Tue, 3 Jul 2007 20:03:38 +0000 (20:03 +0000)]
Added a home for the tiger geocoder.

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

17 years agoAdded ST_Covers and ST_CoveredBy functions, as discussed at http://lin-ear-th-inking...
Mark Leslie [Thu, 28 Jun 2007 22:46:08 +0000 (22:46 +0000)]
Added ST_Covers and ST_CoveredBy functions, as discussed at http://lin-ear-th-inking.blogspot.com.  Added regression tests and documention for the new functions.

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

17 years agoAdded a 1D rtree for polygon segment indexing, and tied the index into the point...
Mark Leslie [Thu, 28 Jun 2007 20:21:32 +0000 (20:21 +0000)]
Added a 1D rtree for polygon segment indexing, and tied the index into the point in polygon short-circuit of the contains, within, intersects and disjoint methods.  Added an index cache to the comparitor methods to save index build times.

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

17 years agoAdded or updated debugging statements.
Mark Leslie [Thu, 28 Jun 2007 20:16:13 +0000 (20:16 +0000)]
Added or updated debugging statements.

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

17 years agoAltered the macro tests for pg_alloc, pg_realloc to only print debugging information...
Mark Leslie [Thu, 28 Jun 2007 20:14:13 +0000 (20:14 +0000)]
Altered the macro tests for pg_alloc, pg_realloc to only print debugging information when alloc debugging is enabled.

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

18 years agoUpdated the regression test suite to allow variable results depending on jts/geos...
Mark Leslie [Fri, 15 Jun 2007 19:06:11 +0000 (19:06 +0000)]
Updated the regression test suite to allow variable results depending on jts/geos availability.

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

18 years agoAdded curvey geometry recognition to the jts connector.
Mark Leslie [Fri, 15 Jun 2007 19:04:37 +0000 (19:04 +0000)]
Added curvey geometry recognition to the jts connector.

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

18 years agoTypo corrections from Michael Fuhr.
Paul Ramsey [Tue, 12 Jun 2007 14:46:30 +0000 (14:46 +0000)]
Typo corrections from Michael Fuhr.

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

18 years agoApplied Michael Fuhr's patch to use explicit text casts where required. Required...
Mark Cave-Ayland [Fri, 8 Jun 2007 10:28:52 +0000 (10:28 +0000)]
Applied Michael Fuhr's patch to use explicit text casts where required. Required for PostgreSQL 8.3 where many of the implicit casts to text have been removed.

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

18 years agoAdded relational function definitions that inline index operators for automagic index...
Mark Leslie [Thu, 7 Jun 2007 16:16:41 +0000 (16:16 +0000)]
Added relational function definitions that inline index operators for automagic index utilization.

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

18 years agoHibernate Spatial Criteria Queries and Dialect
Norman Barker [Wed, 6 Jun 2007 19:19:14 +0000 (19:19 +0000)]
Hibernate Spatial Criteria Queries and Dialect

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

18 years agoUpdated the docs to reflect the function name transition.
Mark Leslie [Tue, 5 Jun 2007 20:46:05 +0000 (20:46 +0000)]
Updated the docs to reflect the function name transition.

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

18 years agoReorganized the sqlmm function declarations to prevent duplication and confusion.
Mark Leslie [Tue, 5 Jun 2007 20:45:46 +0000 (20:45 +0000)]
Reorganized the sqlmm function declarations to prevent duplication and confusion.

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

18 years agoAdded versions of functions with standard ST (Spatial Type) prefixes to any functions...
Mark Leslie [Mon, 4 Jun 2007 23:06:28 +0000 (23:06 +0000)]
Added versions of functions with standard ST (Spatial Type) prefixes to any functions that were lacking them.  Updated the regression tests to include the new functions.

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

18 years agoOngoing PIP trauma. Addressed the issue of points in line with a boundary segment...
Mark Leslie [Fri, 1 Jun 2007 20:56:58 +0000 (20:56 +0000)]
Ongoing PIP trauma.  Addressed the issue of points in line with a boundary segment, but not actually on it.  Added appropriate unit tests.

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

18 years agoReduce 'LWGEOM_gist_joinsel called with arguments that are not column references...
Mark Cave-Ayland [Fri, 1 Jun 2007 12:44:53 +0000 (12:44 +0000)]
Reduce 'LWGEOM_gist_joinsel called with arguments that are not column references' warning to DEBUG1; it's not really a problem, and in cases where people a lot of these types of queries, the logs get flooded with these NOTICEs. Per email from Flavio Perri.

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

18 years agoFixed bug #145 - RemovePoint Failure in the bugtracker. It was an off-by-one error...
Mark Cave-Ayland [Fri, 1 Jun 2007 09:54:00 +0000 (09:54 +0000)]
Fixed bug #145 - RemovePoint Failure in the bugtracker. It was an off-by-one error in ptarray.c which caused the penultimate point to not be copied to the new geometry.

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

18 years agoFix broken docbook stylesheet search. AC_ARG_WITH only calls its contents when a...
Mark Cave-Ayland [Fri, 1 Jun 2007 07:01:22 +0000 (07:01 +0000)]
Fix broken docbook stylesheet search. AC_ARG_WITH only calls its contents when a --with-* option is specified, so the search would never be invoked in its current position. Moved the search into the second macro argument, so it is now invoked if no --with-xsl argument is specified, which I believe was the intended behaviour.

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

18 years agoAdd support for the upcoming release of PostgreSQL 8.3. From PostgreSQL 8.3, the...
Mark Cave-Ayland [Thu, 31 May 2007 13:18:04 +0000 (13:18 +0000)]
Add support for the upcoming release of PostgreSQL 8.3. From PostgreSQL 8.3, the internal structure of varlena datatypes has changed and so any references to the size of the varlena and its address must use the VARSIZE and SET_VARSIZE macros. Includes a #define in pgsql_compat.h so that SET_VARSIZE still works with the older PostgreSQL versions. Passes all regression tests under PostgreSQL 8.2 and PostgreSQL 8.3. Thanks to David Techer and Michael Fuhr for additional testing.

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

18 years agoAdded curve handling to getType, numGeometries, geometryN, dimension, exteriorRing...
Mark Leslie [Mon, 28 May 2007 15:34:04 +0000 (15:34 +0000)]
Added curve handling to getType, numGeometries, geometryN, dimension, exteriorRing, numInteriorRings, interiorRingN, closed (lwgeom_ogc.c) lwgeom_clone (lwgeom.c) and area.  Added function ST_CurveToLine and ST_LineToCurve.  Added regression tests for sql-mm geometries and related functions.

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

18 years agoAdded short-circuit calls for the point-in-polygon cases of disjoint and intersect...
Mark Leslie [Tue, 22 May 2007 22:10:33 +0000 (22:10 +0000)]
Added short-circuit calls for the point-in-polygon cases of disjoint and intersect calls.  Added regression tests for the new short-circuits.

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

18 years agoBump SVN code version to 1.2.2SVN
Mark Cave-Ayland [Mon, 14 May 2007 18:04:25 +0000 (18:04 +0000)]
Bump SVN code version to 1.2.2SVN

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

18 years agoFix broken regress_proj expected results by removing the extra DELETE at the end...
Mark Cave-Ayland [Mon, 14 May 2007 17:55:58 +0000 (17:55 +0000)]
Fix broken regress_proj expected results by removing the extra DELETE at the end of the file.

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

18 years agoRemove GEOS C++ API support from PostGIS HEAD; it's been broken since 1.2.0 and so...
Mark Cave-Ayland [Mon, 14 May 2007 17:51:32 +0000 (17:51 +0000)]
Remove GEOS C++ API support from PostGIS HEAD; it's been broken since 1.2.0 and so we require a minimum of GEOS 2.2.0 to compile and run PostGIS. Includes alterations to autoconf to display an error message during configure if the GEOS version is incorrect. Passes all regression tests with GEOS 2.2.3 and GEOS 3.0.0rc4 using GEOS CAPI.

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

18 years agoSpelling fix
Paul Ramsey [Tue, 8 May 2007 16:37:09 +0000 (16:37 +0000)]
Spelling fix

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

18 years agoSmall doco fix
Paul Ramsey [Mon, 2 Apr 2007 21:17:33 +0000 (21:17 +0000)]
Small doco fix

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

18 years agoaded PostGIS Dialect for Hibernate from Norman Barker
Markus Schaber [Thu, 15 Mar 2007 09:22:20 +0000 (09:22 +0000)]
aded PostGIS Dialect for Hibernate from Norman Barker

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

18 years agoBug 143 is once again dealt with, this time for good.
Mark Leslie [Fri, 9 Mar 2007 19:34:51 +0000 (19:34 +0000)]
Bug 143 is once again dealt with, this time for good.

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

18 years agoRolling back a cure that killed the patient.
Mark Leslie [Fri, 9 Mar 2007 18:30:20 +0000 (18:30 +0000)]
Rolling back a cure that killed the patient.

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

18 years agoBug 143 code fix and regression case.
Mark Leslie [Fri, 9 Mar 2007 00:33:58 +0000 (00:33 +0000)]
Bug 143 code fix and regression case.

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

18 years ago * extras/template_gis/Makefile:
Sandro Santilli [Thu, 1 Mar 2007 08:31:44 +0000 (08:31 +0000)]
    * extras/template_gis/Makefile:
          Install 'defaults' file to $(DATADIR)$(prefix)

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

18 years agoRemove minor typo
Paul Ramsey [Wed, 28 Feb 2007 17:39:31 +0000 (17:39 +0000)]
Remove minor typo

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

18 years ago * regress/run_test: discard CONTEXT and DELETE
Sandro Santilli [Mon, 26 Feb 2007 09:03:52 +0000 (09:03 +0000)]
    * regress/run_test: discard CONTEXT and DELETE
          lines from test outputs.

Patch by Eduin Carrillo, sliglty modified to take precision
into account:

        * regress/: Makefile, kml.sql, kml_expected:
          Regression test for asKML().

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