Commit graph

581 commits

Author SHA1 Message Date
David Blasby c56c47f81f Added support for 4d coordinates
git-svn-id: http://svn.osgeo.org/postgis/trunk@498 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-02 19:03:06 +00:00
Sandro Santilli a9c811c642 postgis.sql.in is now parsed by both sed and cpp
git-svn-id: http://svn.osgeo.org/postgis/trunk@497 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-29 10:46:19 +00:00
Sandro Santilli aa1f562bca Fixed a bug in WKB parsing for Multipoints.
Fixed a bug in -d handling for WKB.
Added point->multipoint fluffing capabilities.


git-svn-id: http://svn.osgeo.org/postgis/trunk@496 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-29 10:20:48 +00:00
Paul Ramsey 470069113b Removed rogue docbook tags
git-svn-id: http://svn.osgeo.org/postgis/trunk@495 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-26 01:09:43 +00:00
David Blasby f541a44e52 changed name of fluffType() to multi().
git-svn-id: http://svn.osgeo.org/postgis/trunk@494 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-26 01:07:27 +00:00
David Blasby 5512d40413 added full support for fluffType(<geom>)
postgis09=# select fluffType('POINT(0 0)');
        flufftype
		-------------------------
		 SRID=-1;MULTIPOINT(0 0)


git-svn-id: http://svn.osgeo.org/postgis/trunk@493 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-26 00:54:09 +00:00
David Blasby ec09eba92d added function fluffType() that takes POINT LINESTRING or POLYGON
type and converts it to a multi*.
Needs to be integrated into a proper Postgresql function and given an
SQL CREATE FUNCTION


git-svn-id: http://svn.osgeo.org/postgis/trunk@492 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-25 00:43:41 +00:00
Sandro Santilli 11c3ea61d6 Moved AddGeometryColumn and DropGeometryColumn from USE_VERSION
blocks to the end of file. Here, differences between versions
are handled on a minimun-diff basis, making it easier to understand
the differences and to modify the code. Also, diffs have been
splitted between pgsql < 73 and >= 73.
Added reduced-parameters wrappers to both functions.


git-svn-id: http://svn.osgeo.org/postgis/trunk@491 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-22 09:39:38 +00:00
Sandro Santilli 62f5939a84 postgis_new.sql build by default
git-svn-id: http://svn.osgeo.org/postgis/trunk@490 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-22 08:18:02 +00:00
Sandro Santilli 1e0a1a1d8f Updated AddGeometryColumn() and DropGeometryColumn() descriptions to the schema-aware versions
git-svn-id: http://svn.osgeo.org/postgis/trunk@489 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-19 16:35:49 +00:00
Sandro Santilli 06de6c418a Added calls to vacuum_delay_point() to give backend a chance of
interrupting geometry stats computation.
Set default DEBUG_GEOMETRY_STATS to 0.


git-svn-id: http://svn.osgeo.org/postgis/trunk@488 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-15 17:07:05 +00:00
David Blasby cd94686d55 minor clean and trying to figure out a memory bug. valgrind wasnt helping, but
it went away.


git-svn-id: http://svn.osgeo.org/postgis/trunk@487 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-11 01:27:43 +00:00
David Blasby 72d7890d79 Should be working (with a tonne of notices) for points lines and polygons (2d
and 3d)


git-svn-id: http://svn.osgeo.org/postgis/trunk@486 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-11 00:54:37 +00:00
Sandro Santilli 5ac57bbae2 Fixed a bug reducing the output shapes from Multipolygon tables.
git-svn-id: http://svn.osgeo.org/postgis/trunk@485 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-10 18:46:07 +00:00
Sandro Santilli aca432a6f7 removed just-introduced bug
git-svn-id: http://svn.osgeo.org/postgis/trunk@484 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-10 17:35:16 +00:00
Sandro Santilli 37e2d3b3fa code cleanup, fixed a bug missing to transform 'gid' to 'gid__2' in shapefile attribute name
git-svn-id: http://svn.osgeo.org/postgis/trunk@483 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-10 17:23:56 +00:00
David Blasby a43dace9d6 WKB reader and WKB writer (totally untested)
git-svn-id: http://svn.osgeo.org/postgis/trunk@482 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-10 01:15:06 +00:00
David Blasby 042f7cd031 Initial implementation - should compile; not at all tested.
git-svn-id: http://svn.osgeo.org/postgis/trunk@481 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-09 17:29:52 +00:00
Sandro Santilli 8fe67f4636 Removed useless code blocks in histogram builder
git-svn-id: http://svn.osgeo.org/postgis/trunk@480 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-09 00:21:02 +00:00
Sandro Santilli 4c6b5a4ad6 estimator applies a gain of AOI/cell_area on each cell it intersects (reverted to previous behaviour)
git-svn-id: http://svn.osgeo.org/postgis/trunk@479 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-09 00:09:56 +00:00
Sandro Santilli 00598982f8 changed error computation code to delta/totrows
git-svn-id: http://svn.osgeo.org/postgis/trunk@478 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-08 17:21:57 +00:00
Sandro Santilli 768a8d838e Added the RECHECK clause for gist_geometry_ops operator class operators
git-svn-id: http://svn.osgeo.org/postgis/trunk@477 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-08 12:16:30 +00:00
Sandro Santilli 238da5ad12 Comma-separated bps values accepted
git-svn-id: http://svn.osgeo.org/postgis/trunk@476 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-06 18:02:48 +00:00
Sandro Santilli 7301829942 Added RCSID string in usage output
git-svn-id: http://svn.osgeo.org/postgis/trunk@475 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-06 17:43:06 +00:00
Sandro Santilli ea0951f977 Added rcsid string to usage output
git-svn-id: http://svn.osgeo.org/postgis/trunk@474 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-06 17:35:59 +00:00
Sandro Santilli 18bb277721 Added -vacuum switch
git-svn-id: http://svn.osgeo.org/postgis/trunk@473 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-05 21:06:04 +00:00
Sandro Santilli a3b2c10373 Made the -bps switch specify the exact level(s) at which to run the test
git-svn-id: http://svn.osgeo.org/postgis/trunk@472 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-05 21:03:18 +00:00
David Blasby 04fcd499c5 Empty files - preparing for writting actual code.
git-svn-id: http://svn.osgeo.org/postgis/trunk@471 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-05 18:25:34 +00:00
David Blasby aed7a5d2d3 Same as the one in the above directory
git-svn-id: http://svn.osgeo.org/postgis/trunk@470 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-05 18:23:47 +00:00
David Blasby 3bb308010d moved to lwgeom/ directory
git-svn-id: http://svn.osgeo.org/postgis/trunk@469 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-05 18:23:22 +00:00
Sandro Santilli 0f1588cc44 Applied Mark Cave-Ayland patch
git-svn-id: http://svn.osgeo.org/postgis/trunk@468 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-05 18:16:47 +00:00
Sandro Santilli 4b06becf40 rewritten split_extent to be more datatype-conservative
git-svn-id: http://svn.osgeo.org/postgis/trunk@467 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-05 16:40:30 +00:00
Sandro Santilli 75f94ff787 added -bps switch to set maximun query level. reworked command line parsing
git-svn-id: http://svn.osgeo.org/postgis/trunk@466 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-05 16:01:02 +00:00
Sandro Santilli 0b5148b910 more verbose output
git-svn-id: http://svn.osgeo.org/postgis/trunk@465 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-05 15:29:35 +00:00
Sandro Santilli 85633d9461 initial import
git-svn-id: http://svn.osgeo.org/postgis/trunk@464 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-05 11:52:24 +00:00
David Blasby 18f0162141 Initial version - still under discussion.
git-svn-id: http://svn.osgeo.org/postgis/trunk@463 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-05 00:38:11 +00:00
Sandro Santilli d1b5a5262b postgis_gist_sel(): added warnings if search_box goes outside of histogram grid
git-svn-id: http://svn.osgeo.org/postgis/trunk@462 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-04 13:50:45 +00:00
Sandro Santilli 497f1a8e81 The selectivity estimator does add the full value of each cell it overlaps,
regardless of the actual overlapping area. Final gain is not applied
(formerly 1 / minimun between average feature cells occupation and
 search_box cells occupation)


git-svn-id: http://svn.osgeo.org/postgis/trunk@461 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-04 09:44:57 +00:00
Sandro Santilli d40c6739cf added check to keep selectivity value in the range of validity (suggested by m.cave)
git-svn-id: http://svn.osgeo.org/postgis/trunk@460 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-03 21:59:48 +00:00
Sandro Santilli 3f37606537 cpp call for postgis_new.sql creation uses shell redirection for the output file
git-svn-id: http://svn.osgeo.org/postgis/trunk@459 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-02 11:39:50 +00:00
Sandro Santilli f9c821dd12 modified to reflect new statistics building process for PG75
git-svn-id: http://svn.osgeo.org/postgis/trunk@458 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-02 11:37:04 +00:00
Sandro Santilli 8031bec86a histogram's boxesPerSide computed as a function of the column's statistic target
git-svn-id: http://svn.osgeo.org/postgis/trunk@457 b70326c6-7e19-0410-871a-916f4a2858ee
2004-03-01 16:02:41 +00:00
Sandro Santilli 894f7054c0 bug fix in postgis_gist_sel (for PG75): SysCache is not released if not acquired
git-svn-id: http://svn.osgeo.org/postgis/trunk@456 b70326c6-7e19-0410-871a-916f4a2858ee
2004-02-29 21:53:42 +00:00
Sandro Santilli 822e465de7 Added rule to generate postgis_new.sql from postgis.sql.in using cpp
git-svn-id: http://svn.osgeo.org/postgis/trunk@455 b70326c6-7e19-0410-871a-916f4a2858ee
2004-02-28 14:44:06 +00:00
Sandro Santilli 0b18670619 initial import
git-svn-id: http://svn.osgeo.org/postgis/trunk@454 b70326c6-7e19-0410-871a-916f4a2858ee
2004-02-28 14:43:39 +00:00
Sandro Santilli 5517c8cab0 Fixed bugs reported by Mark Cave-Ayland <m.cave-ayland@webbased.co.uk>.
Re-introduced previously removed estimate value incrementation by
the fractional part of each of the cells' value computed as the fraction
of overlapping area.


git-svn-id: http://svn.osgeo.org/postgis/trunk@453 b70326c6-7e19-0410-871a-916f4a2858ee
2004-02-26 16:42:59 +00:00
Sandro Santilli 88af537da4 RTContainedBy and RTOverlap strategries implemented locally with a pgbox_overlap function
git-svn-id: http://svn.osgeo.org/postgis/trunk@452 b70326c6-7e19-0410-871a-916f4a2858ee
2004-02-25 13:17:31 +00:00
Sandro Santilli 937737f7ac Added handling for point features in histogram creation (add 1 instead of AOI/cell_area when AOI is 0).
Fixed a wrong cast of BOX3D to BOX (called the convertion func).
Added some comments and an implementation on how to change evaluation
based on the average feature and search box cells occupation.


git-svn-id: http://svn.osgeo.org/postgis/trunk@451 b70326c6-7e19-0410-871a-916f4a2858ee
2004-02-25 12:00:32 +00:00
Sandro Santilli 90512cef28 initial version of && selectivity estimation for PG75
git-svn-id: http://svn.osgeo.org/postgis/trunk@450 b70326c6-7e19-0410-871a-916f4a2858ee
2004-02-25 00:46:26 +00:00
Sandro Santilli 8985aab216 geometry analyzer builds the histogram
git-svn-id: http://svn.osgeo.org/postgis/trunk@449 b70326c6-7e19-0410-871a-916f4a2858ee
2004-02-23 21:59:16 +00:00