Commit graph

28 commits

Author SHA1 Message Date
David Blasby 5c97f401ef Added support for histogram2d and better statistical analysis.
git-svn-id: http://svn.osgeo.org/postgis/trunk@196 b70326c6-7e19-0410-871a-916f4a2858ee
2002-10-11 22:52:06 +00:00
David Blasby fe51bcc1a9 added bytea(wkb)
git-svn-id: http://svn.osgeo.org/postgis/trunk@171 b70326c6-7e19-0410-871a-916f4a2858ee
2002-07-04 23:38:10 +00:00
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
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 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
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 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
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
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
David Blasby 0da16fbc3f Added CHIP info
git-svn-id: http://svn.osgeo.org/postgis/trunk@102 b70326c6-7e19-0410-871a-916f4a2858ee
2001-11-02 23:00:15 +00:00
David Blasby 81b33875e4 Added support to make WKB a full type.
git-svn-id: http://svn.osgeo.org/postgis/trunk@60 b70326c6-7e19-0410-871a-916f4a2858ee
2001-09-04 19:30:12 +00:00
David Blasby 42f7a826fb geometry(text) function safer with null text fields.
git-svn-id: http://svn.osgeo.org/postgis/trunk@58 b70326c6-7e19-0410-871a-916f4a2858ee
2001-08-24 21:11:10 +00:00
David Blasby 4e740fbca6 Added support for better restrictivity of && searches.
Defaulted to 0.005 (in backend/utils/adt/geo_selfuncs.c) - I've changed it
to be much smaller.  This should work for everything but really really
large tables.


git-svn-id: http://svn.osgeo.org/postgis/trunk@56 b70326c6-7e19-0410-871a-916f4a2858ee
2001-08-14 22:15:59 +00:00
David Blasby 912b0a8b75 Added more openGIS functions:
Length2d() is renamed length()
perimeter2d() is renamed to perimeter()

numgeometries(geometry) works on MULTI* types
geometryn(geometry) works on MULTI* types


from section 2.1.5.1
--------------------
startpoint(geometry) :- if geometry is a linestring, return the first
point.  Otherwise, return NULL.

endpoint(geometry) :- if geometry is a linestring, return the last
point.  Otherwise, return NULL.

from section 2.1.9.1/3.2.18.2
--------------------

centroid(geometry) :- if geometry is a polygon (or multipolygon), return
the mathematical centroid (no guaranteed to be on polygon), otherwise
return NULL. I define centroid as the average location of all the points
in the polygon (outer ring only).  For multipolygons, average all the
points on all the outer rings.

from section 3.2.12.2/3.2.17.2
---------------------
isclosed(geometry) :- if geometry is a linestring then returns
startpoint == endpoint.  If its not a linestring then return NULL.  If
its a multilinestring, return true only if all the sub-linestrings have
startpoint=endpoint.


git-svn-id: http://svn.osgeo.org/postgis/trunk@48 b70326c6-7e19-0410-871a-916f4a2858ee
2001-08-02 16:50:24 +00:00
David Blasby 0441f8c8f6 Added plpgsql functions AddGeometryColumn() and DeleteGeometryColumn().
git-svn-id: http://svn.osgeo.org/postgis/trunk@47 b70326c6-7e19-0410-871a-916f4a2858ee
2001-07-31 19:11:26 +00:00
David Blasby d64fd67e4a Starting to integrate all the SRIDs into functions that create geometries or
use two geometries.  Throws error if try to compare geometries with different
SRIDs.


git-svn-id: http://svn.osgeo.org/postgis/trunk@46 b70326c6-7e19-0410-871a-916f4a2858ee
2001-07-30 17:29:33 +00:00
David Blasby e21afcb263 added expand_bbox(bbox,double) for easier searching.
git-svn-id: http://svn.osgeo.org/postgis/trunk@38 b70326c6-7e19-0410-871a-916f4a2858ee
2001-07-24 20:37:29 +00:00
David Blasby 3e6560bbbe added distance(geometry,geometry) and support functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@36 b70326c6-7e19-0410-871a-916f4a2858ee
2001-07-24 20:12:10 +00:00
David Blasby 3e181e60c9 Added function:
point_inside_circle(geometry, Px, Py, d)
        - returns true if there is a point in geometry whose distance to
		(Px,Py) is < d


git-svn-id: http://svn.osgeo.org/postgis/trunk@18 b70326c6-7e19-0410-871a-916f4a2858ee
2001-07-18 22:17:34 +00:00
David Blasby f8c1de268d Added force_collection(geometry)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12 b70326c6-7e19-0410-871a-916f4a2858ee
2001-06-28 23:53:54 +00:00
David Blasby 0678bc5144 *** empty log message ***
git-svn-id: http://svn.osgeo.org/postgis/trunk@10 b70326c6-7e19-0410-871a-916f4a2858ee
2001-06-27 21:43:52 +00:00
David Blasby 571b9329be Added OGIS support functions and basic constructors.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7 b70326c6-7e19-0410-871a-916f4a2858ee
2001-06-26 18:33:40 +00:00
No Body 3cda119445 Initial revision
git-svn-id: http://svn.osgeo.org/postgis/trunk@2 b70326c6-7e19-0410-871a-916f4a2858ee
2001-06-22 17:39:29 +00:00