Commit graph

349 commits

Author SHA1 Message Date
Chris Hodgson dd2feb386f - integrated a bugfix for the rtree_picksplit algorithm from Teodor Sigaev. This fixes the bug which reports "ERROR: MemoryContextAlloc: invalid request size 0" while building a gist rtree index (first reported by Andy Turk)
- cleaned up some warnings (mostly "possibly unitialized variables")


git-svn-id: http://svn.osgeo.org/postgis/trunk@159 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-14 18:28:07 +00:00
Chris Hodgson 75beff5557 - changed add_to_geometry() and collector() so that the sql collect() aggregate returns the simplest possible geometric type, ie. a MULTIPOINT instead of a GEOMETRYCOLLECTIONwhen all of the geometries being collected are of either POINT or MULTIPOINT type
git-svn-id: http://svn.osgeo.org/postgis/trunk@158 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-06 17:35:30 +00:00
Paul Ramsey 1e1cf9a0e0 Fixed mistake in FAQ example on radius searching.
git-svn-id: http://svn.osgeo.org/postgis/trunk@155 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-04 23:08:05 +00:00
Paul Ramsey 257a2792d2 More docbook changes.
git-svn-id: http://svn.osgeo.org/postgis/trunk@154 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-04 22:52:53 +00:00
Paul Ramsey 6857ea8508 Docbook syntax error changes.
git-svn-id: http://svn.osgeo.org/postgis/trunk@153 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-04 22:51:53 +00:00
Paul Ramsey be3319fcc0 Added postgis_undef.sql to make clean target.
git-svn-id: http://svn.osgeo.org/postgis/trunk@152 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-04 22:47:38 +00:00
Paul Ramsey 137fe0b9b1 Documentation updates to go with the 0.7 release. All new functions
documented, and appropriate changes made to installation and other
directions. New build process for the PG72 indexes and PROJ4 support
added to Makefile.


git-svn-id: http://svn.osgeo.org/postgis/trunk@151 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-04 22:46:50 +00:00
Paul Ramsey ba03014a76 Add commenting to indicate the coordinate system of each insert line in
a human readable form.


git-svn-id: http://svn.osgeo.org/postgis/trunk@150 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-04 22:44:55 +00:00
Paul Ramsey 4c6d76f2e0 Update shapelib references to 1.2.9.
git-svn-id: http://svn.osgeo.org/postgis/trunk@149 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-04 22:44:04 +00:00
Paul Ramsey 5187c04c51 Added an "install" target which installs shp2pgsql and pgsql2shp in the
default pgsql bin directory.


git-svn-id: http://svn.osgeo.org/postgis/trunk@148 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-04 20:30:17 +00:00
Paul Ramsey efdff97f63 Changed WANT_PROJECTION flag to USE_PROJ to match other Makefile defines.
git-svn-id: http://svn.osgeo.org/postgis/trunk@147 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-04 20:29:31 +00:00
Paul Ramsey 124c9605bf Added GeomFromText alias to GeometryFromText since the former is in the
SFSQL spec and the latter is not.


git-svn-id: http://svn.osgeo.org/postgis/trunk@146 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-04 20:28:44 +00:00
Paul Ramsey 719236e047 Start of 0.7 documenation edits.
git-svn-id: http://svn.osgeo.org/postgis/trunk@145 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-03 03:14:19 +00:00
David Blasby aee87a02f6 transform_geom() - if it gets and error -38 from PROJ.4 (couldnt open
grid file) it will try to do the transform without a
                   a datum conversion.  This usually occurs if you ask
                   for a re-projection for a point outside where you have
                   grid data for.


git-svn-id: http://svn.osgeo.org/postgis/trunk@144 b70326c6-7e19-0410-871a-916f4a2858ee
2002-05-02 22:25:01 +00:00
David Blasby e0af537559 Better error reporting.
git-svn-id: http://svn.osgeo.org/postgis/trunk@143 b70326c6-7e19-0410-871a-916f4a2858ee
2002-04-30 23:37:47 +00:00
David Blasby faee267ca5 Added some debugging to transform.
git-svn-id: http://svn.osgeo.org/postgis/trunk@142 b70326c6-7e19-0410-871a-916f4a2858ee
2002-04-30 23:20:53 +00:00
David Blasby b89f4ad0bf Added distance_ellipsiod(point,point,ellipsoid)
(called distance_spheroid in SQL)


git-svn-id: http://svn.osgeo.org/postgis/trunk@141 b70326c6-7e19-0410-871a-916f4a2858ee
2002-04-29 17:23:23 +00:00
Chris Hodgson 11e05b0b46 - cut the gist indexing-related functions out of postgis_ops.c and put them in postgis_gist.c, then put the new gist indexing functions for postgres >= 7.2 in the file postgis_gist_72
- similarly, the sql definitions of the gist functions have been split into their own new sql.in file, with postgis_gist_72.sql.in containing the new postgres >= 7.2 definitions

- the makefile has been updated to compile EITHER postgis_gist.c OR postgis_gist_72.c, and also to process EITHER postgis_gist.sql.in OR postgis_gist_72.sql and add the output to the end of postgis.sql

- in order to compile the gist functions for posgres 7.2 or newer, make sure to point your PGSQL_SRC at the new source directory, and uncomment the line in the makefile which says PG72 = 1 (near the top)

- some functions that were previously in postgis_ops.c were moved to postgis_fn.c, as part of a general cleanup I did when splitting off the gist functions into their own file

- some definitions that were previously in postgis.h (unnecessarily) where removed, as they varied depending on which version of postgis_gist was being used

- also edited the loader/Makefile to clean up properly


git-svn-id: http://svn.osgeo.org/postgis/trunk@140 b70326c6-7e19-0410-871a-916f4a2858ee
2002-04-26 22:50:06 +00:00
Paul Ramsey e65163c6fc Column name length limitation removed. Patch submitted by Bernhard
Reiter <bernhard@intevation.de>


git-svn-id: http://svn.osgeo.org/postgis/trunk@139 b70326c6-7e19-0410-871a-916f4a2858ee
2002-04-26 16:13:33 +00:00
Paul Ramsey c0659de4ea XML syntax error.
git-svn-id: http://svn.osgeo.org/postgis/trunk@138 b70326c6-7e19-0410-871a-916f4a2858ee
2002-04-23 17:02:00 +00:00
Paul Ramsey 5d554db56a Removed the CREATE INDEX statement since there is already a primary
key index.


git-svn-id: http://svn.osgeo.org/postgis/trunk@137 b70326c6-7e19-0410-871a-916f4a2858ee
2002-04-19 18:20:42 +00:00
Paul Ramsey 415bf1078a Added PROJ4 entries to all relevant rows, altered the auth_name to
be EPSG for those IDs which originated from the EPSG.


git-svn-id: http://svn.osgeo.org/postgis/trunk@136 b70326c6-7e19-0410-871a-916f4a2858ee
2002-04-19 18:15:30 +00:00
Paul Ramsey 436990dc07 Patches to bring example up to current version in terms of SQL access
and to stop silly bug in missing table case. Submitted by
Steffen Macke <sdteffen@web.de>


git-svn-id: http://svn.osgeo.org/postgis/trunk@135 b70326c6-7e19-0410-871a-916f4a2858ee
2002-04-19 15:14:17 +00:00
Jeff Lounsbury c3bb7caeb0 fixed bug that allowed two field names to be the same in shp2psql, we are now checking for that.
git-svn-id: http://svn.osgeo.org/postgis/trunk@134 b70326c6-7e19-0410-871a-916f4a2858ee
2002-04-15 22:38:37 +00:00
David Blasby d8dd3c6536 changed postgis_Version() to return type text, not type char.
git-svn-id: http://svn.osgeo.org/postgis/trunk@133 b70326c6-7e19-0410-871a-916f4a2858ee
2002-03-26 23:46:29 +00:00
Paul Ramsey eefd6a3fc0 Minor syntax changes in commenting.
git-svn-id: http://svn.osgeo.org/postgis/trunk@132 b70326c6-7e19-0410-871a-916f4a2858ee
2002-03-25 22:20:50 +00:00
Paul Ramsey c0dadfad09 Minor syntactical changes to try and allow compilation on IRIX.
git-svn-id: http://svn.osgeo.org/postgis/trunk@131 b70326c6-7e19-0410-871a-916f4a2858ee
2002-03-25 02:04:38 +00:00
Chris Hodgson e479c89d52 Added the collect(geometry) function which is an aggregate function that
takes a group of geometries and turns them into a geometry collection. For
example, "select collect(roadsgeom) from roadstable group by roadname"
would return one geometrycollection for each unique road name.


git-svn-id: http://svn.osgeo.org/postgis/trunk@130 b70326c6-7e19-0410-871a-916f4a2858ee
2002-03-22 18:42:56 +00:00
David Blasby dca40f3c7e ADD xmin(box3d) etc... for box3d's.
git-svn-id: http://svn.osgeo.org/postgis/trunk@129 b70326c6-7e19-0410-871a-916f4a2858ee
2002-03-15 17:10:49 +00:00
Jeff Lounsbury 39c601c414 added a warning to the shape dumper when there are no fields in the database.
git-svn-id: http://svn.osgeo.org/postgis/trunk@128 b70326c6-7e19-0410-871a-916f4a2858ee
2002-03-14 19:35:19 +00:00
Paul Ramsey 12e3d18993 Alter shp2pgsql in the -d case so that 'DELETE FROM' is used to clear the
'GEOMETRY_COLUMNS' table during table drop instead of DropGeometryColumns.
Patch submitted by Steffen Macke <sdteffen@yahoo.com>.


git-svn-id: http://svn.osgeo.org/postgis/trunk@127 b70326c6-7e19-0410-871a-916f4a2858ee
2002-03-01 19:32:24 +00:00
David Blasby c062e145fe minor bug in geometry_to_text() for BOX3D only types fixed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@126 b70326c6-7e19-0410-871a-916f4a2858ee
2002-02-27 00:38:12 +00:00
David Blasby d0e3f06eae BOX3D only geometries now dump as "SRID=x;BOX3D(...)". They are now okay to dump/restore.
git-svn-id: http://svn.osgeo.org/postgis/trunk@125 b70326c6-7e19-0410-871a-916f4a2858ee
2002-02-27 00:06:08 +00:00
David Blasby 4be594d6de for bbox only geometries, it will dump as "SRID=x;NULL", and on load, it will be NULL.
git-svn-id: http://svn.osgeo.org/postgis/trunk@124 b70326c6-7e19-0410-871a-916f4a2858ee
2002-02-26 23:46:03 +00:00
Paul Ramsey 7362e68ba4 Patch to pgsql2shp to allow dumping of tables with more than one geometry
column, and addition of -g option to specific which geometry column to dump.
Submitted by Steffen Macke <sdteffen@yahoo.com>.


git-svn-id: http://svn.osgeo.org/postgis/trunk@123 b70326c6-7e19-0410-871a-916f4a2858ee
2002-02-23 19:04:46 +00:00
Paul Ramsey 31a19d9502 Patch to shp2pgsql.c to properly handle 3D shape files. Submitted
by Steffen Macke <sdteffen@yahoo.com>.


git-svn-id: http://svn.osgeo.org/postgis/trunk@122 b70326c6-7e19-0410-871a-916f4a2858ee
2002-02-19 16:57:49 +00:00
David Blasby 656e5b8fa5 minor bug fix
git-svn-id: http://svn.osgeo.org/postgis/trunk@121 b70326c6-7e19-0410-871a-916f4a2858ee
2002-02-18 18:02:37 +00:00
David Blasby 49acc04c32 Added TS support function (chip and some non-SFSQL functions)
git-svn-id: http://svn.osgeo.org/postgis/trunk@120 b70326c6-7e19-0410-871a-916f4a2858ee
2002-02-18 17:02:31 +00:00
Paul Ramsey d6a8cae9a2 Fixed syntax error in UPDATE statement.
git-svn-id: http://svn.osgeo.org/postgis/trunk@119 b70326c6-7e19-0410-871a-916f4a2858ee
2002-02-13 16:50:19 +00:00
David Blasby 1b3edecd18 better "no proj4" support addded
git-svn-id: http://svn.osgeo.org/postgis/trunk@118 b70326c6-7e19-0410-871a-916f4a2858ee
2002-01-11 16:58:34 +00:00
Paul Ramsey f899c4236b Fixed dumb error in POINT syntax example.
git-svn-id: http://svn.osgeo.org/postgis/trunk@117 b70326c6-7e19-0410-871a-916f4a2858ee
2002-01-08 16:55:42 +00:00
David Blasby 69917775ec Order changes to avoid conflicts.
git-svn-id: http://svn.osgeo.org/postgis/trunk@116 b70326c6-7e19-0410-871a-916f4a2858ee
2002-01-07 21:07:24 +00:00
David Blasby 8c88b1f95c Added max_distance(l1,l2) function
git-svn-id: http://svn.osgeo.org/postgis/trunk@115 b70326c6-7e19-0410-871a-916f4a2858ee
2002-01-03 23:31:44 +00:00
David Blasby 462d63071a Coordinate transformation function, transform() added in this file.
Adds requirement for linking the proj4 library if non-null version of
function is requested.


git-svn-id: http://svn.osgeo.org/postgis/trunk@114 b70326c6-7e19-0410-871a-916f4a2858ee
2001-12-21 23:01:35 +00:00
Paul Ramsey 66a6688ca1 Doco changes to reflect use of 'createlang' as default language creator.
git-svn-id: http://svn.osgeo.org/postgis/trunk@113 b70326c6-7e19-0410-871a-916f4a2858ee
2001-12-21 19:44:57 +00:00
David Blasby 70092c2357 Added to achive (no code)
git-svn-id: http://svn.osgeo.org/postgis/trunk@112 b70326c6-7e19-0410-871a-916f4a2858ee
2001-12-18 22:28:15 +00:00
David Blasby a4c70f5222 changed setSRID(chip and geometry, int) so its cachable
git-svn-id: http://svn.osgeo.org/postgis/trunk@111 b70326c6-7e19-0410-871a-916f4a2858ee
2001-12-12 22:21:59 +00:00
David Blasby 554ba05d60 Made setSRID cachable
git-svn-id: http://svn.osgeo.org/postgis/trunk@110 b70326c6-7e19-0410-871a-916f4a2858ee
2001-12-12 22:19:29 +00:00
David Blasby 37489dc315 Chip now handles data with different datasizes (datum_size)
git-svn-id: http://svn.osgeo.org/postgis/trunk@109 b70326c6-7e19-0410-871a-916f4a2858ee
2001-11-21 19:39:09 +00:00
Paul Ramsey b48cf71712 Fix error in sentence about OGC support.
git-svn-id: http://svn.osgeo.org/postgis/trunk@108 b70326c6-7e19-0410-871a-916f4a2858ee
2001-11-19 17:25:57 +00:00