Commit graph

515 commits

Author SHA1 Message Date
David Blasby cb29fa3935 minor changes
git-svn-id: http://svn.osgeo.org/postgis/trunk@532 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-28 22:59:56 +00:00
David Blasby 313a838840 Inital Version. Hasnt been proofread.
git-svn-id: http://svn.osgeo.org/postgis/trunk@531 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-28 22:50:17 +00:00
Paul Ramsey f5a7510d32 Added flex/bison lines for parser.
git-svn-id: http://svn.osgeo.org/postgis/trunk@530 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-28 22:40:32 +00:00
Paul Ramsey 758c70c790 Fixed spelling mistake in header text.
git-svn-id: http://svn.osgeo.org/postgis/trunk@529 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-28 22:26:02 +00:00
David Blasby 859fd753bb minor changes to ensure its using the index
git-svn-id: http://svn.osgeo.org/postgis/trunk@528 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-28 21:20:40 +00:00
David Blasby aa678c58b3 updated results
git-svn-id: http://svn.osgeo.org/postgis/trunk@527 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-28 21:08:17 +00:00
David Blasby 0a966f9f28 minor change for endianess
git-svn-id: http://svn.osgeo.org/postgis/trunk@526 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-28 21:02:58 +00:00
David Blasby e53be2835f removed an elog(NOTICE)
git-svn-id: http://svn.osgeo.org/postgis/trunk@525 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-28 21:00:43 +00:00
David Blasby a222451360 inital version of regression tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@524 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-28 19:17:25 +00:00
David Blasby e1b9a2560c moved to regress/ directory
git-svn-id: http://svn.osgeo.org/postgis/trunk@523 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-28 18:27:07 +00:00
David Blasby 6aaf7e7450 Added automatic endian detection for the WKB parser/unparser.
git-svn-id: http://svn.osgeo.org/postgis/trunk@522 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-28 18:10:41 +00:00
Paul Ramsey 0b7d2eb4f5 Genericize the Makefile per Dave's request.
git-svn-id: http://svn.osgeo.org/postgis/trunk@521 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-28 04:55:42 +00:00
David Blasby e9e9558ea6 minor 3d geometrycollection bug fix
git-svn-id: http://svn.osgeo.org/postgis/trunk@520 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-27 23:47:39 +00:00
David Blasby 4882b94ceb initial version
git-svn-id: http://svn.osgeo.org/postgis/trunk@519 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-27 23:33:25 +00:00
David Blasby c5169c0a58 minor changes for solaris
git-svn-id: http://svn.osgeo.org/postgis/trunk@518 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-27 23:12:11 +00:00
David Blasby cecb248d45 fixed some typos for flip_bytes in read_int and read_double
git-svn-id: http://svn.osgeo.org/postgis/trunk@517 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-27 22:13:33 +00:00
David Blasby 53c4887708 minor ordering change
git-svn-id: http://svn.osgeo.org/postgis/trunk@516 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-27 20:53:36 +00:00
David Blasby becea980f0 added float nextafterf_custom(float x, float y) for OSs that do not have
a nextafterf implementation.


git-svn-id: http://svn.osgeo.org/postgis/trunk@515 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-27 20:49:25 +00:00
David Blasby e6e7341ade bison -vd -p lwg_parse_yy wktparse.y
flex -Plwg_parse_yy -if -o'lex.yy.c' wktparse.lex

Initial versions (from Ralph Mason)


git-svn-id: http://svn.osgeo.org/postgis/trunk@514 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-27 17:46:46 +00:00
Sandro Santilli 234d95e406 Fixed bug in simplify() that was using the square of the given tolerance.
git-svn-id: http://svn.osgeo.org/postgis/trunk@513 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-27 13:50:59 +00:00
Sandro Santilli 354684cb48 Removed use of geometryFactory->toGeometry(), indicated by Martin Davis
as being intended for internal use only. Created a linear ring instead
(the function converts a box3d to a geos geometry).


git-svn-id: http://svn.osgeo.org/postgis/trunk@512 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-27 07:44:26 +00:00
David Blasby 9ad029c5ca made slightly more generic
git-svn-id: http://svn.osgeo.org/postgis/trunk@511 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-26 23:16:29 +00:00
David Blasby 0d807e7b36 Minor cleanup
git-svn-id: http://svn.osgeo.org/postgis/trunk@510 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-26 23:15:19 +00:00
David Blasby 158039c217 inital version
git-svn-id: http://svn.osgeo.org/postgis/trunk@509 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-26 23:12:08 +00:00
David Blasby 7f00d8b36d Initial working version - based on Ralph Masons WKT and WKB parser/writer.
git-svn-id: http://svn.osgeo.org/postgis/trunk@508 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-26 23:05:20 +00:00
David Blasby a65cf20a80 fixed minor typos GeomFromWKB not GeometryFromWKB
git-svn-id: http://svn.osgeo.org/postgis/trunk@507 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-22 16:05:44 +00:00
Sandro Santilli 7a49fd0f91 Attribute names escaping mechanism added. You should now
be able to dump a shapefile equal to the one loaded.


git-svn-id: http://svn.osgeo.org/postgis/trunk@506 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-21 09:13:15 +00:00
Sandro Santilli b5d1f0b251 Memory allocated for main_scan_query was not enough when using binary cursor. Fixed
git-svn-id: http://svn.osgeo.org/postgis/trunk@505 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-21 07:38:34 +00:00
David Blasby 75fc9113d2 GeometryN(...) now correctly says "1" is the 1st geometry (used to be 0).
git-svn-id: http://svn.osgeo.org/postgis/trunk@504 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-13 16:49:18 +00:00
David Blasby 431bfadf53 Somehow the memory leak changes I made got removed - I've re-added them.
git-svn-id: http://svn.osgeo.org/postgis/trunk@503 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-08 17:05:20 +00:00
David Blasby e56eaf020d Changed ggeometry_consistent to be aware of NULL queries. Ie.
select * from <table> where the_geom &&  null::geometry;

This tends to happen when you're joining two tables using && and the table
has NULLs in it.


git-svn-id: http://svn.osgeo.org/postgis/trunk@502 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-08 17:00:27 +00:00
David Blasby 16328b7229 Added a cstring(lwgeom) function that returns WKT!
git-svn-id: http://svn.osgeo.org/postgis/trunk@501 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-07 23:12:31 +00:00
Sandro Santilli b6af684225 Made new postgis.sql generation procedure the default
git-svn-id: http://svn.osgeo.org/postgis/trunk@500 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-07 16:23:24 +00:00
David Blasby 9e400d7b67 Changes to make it work with all the PostGIS type.
git-svn-id: http://svn.osgeo.org/postgis/trunk@499 b70326c6-7e19-0410-871a-916f4a2858ee
2004-04-06 22:58:11 +00:00
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