Commit graph

557 commits

Author SHA1 Message Date
Sandro Santilli fd175ffbaa Removed obsoleted function and fixed some warnings.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1135 b70326c6-7e19-0410-871a-916f4a2858ee
2004-12-13 12:25:27 +00:00
Sandro Santilli 471c06c057 implemented estimated_extent() function
git-svn-id: http://svn.osgeo.org/postgis/trunk@1129 b70326c6-7e19-0410-871a-916f4a2858ee
2004-12-10 12:35:11 +00:00
Sandro Santilli 80dcfbb41b Fixed a bug in pt_in_ring_2d.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1123 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-29 16:37:12 +00:00
Sandro Santilli f8110e33f6 Commented out useless CFLAGS override.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1122 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-29 11:16:08 +00:00
Sandro Santilli 10698108c5 Some initializzations to make compiler happy.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1121 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-29 11:15:48 +00:00
Sandro Santilli 43df315dee Removed duplicated tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@1120 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-26 17:08:22 +00:00
Sandro Santilli a9d2269d6a Moved basic LWGEOM parsing tests in mainstream regress dir.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1119 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-26 17:06:36 +00:00
Sandro Santilli fdcfa3c356 First regress test cleaned up.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1118 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-26 16:54:43 +00:00
Sandro Santilli 4c8edd69cf lwcollection_same allows different components ordering to
reflect older behaviour.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1114 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-26 15:06:08 +00:00
Sandro Santilli e92a34519a Cleanup
git-svn-id: http://svn.osgeo.org/postgis/trunk@1113 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-26 14:56:13 +00:00
Sandro Santilli 82cbb8c5ec Fixed a bug in lwcollection_same
git-svn-id: http://svn.osgeo.org/postgis/trunk@1112 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-26 14:55:05 +00:00
Sandro Santilli 33a6ea80c2 POSTGIS2GEOS conversion failures handled cleanier
git-svn-id: http://svn.osgeo.org/postgis/trunk@1109 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-23 16:16:26 +00:00
Sandro Santilli 8284de2f1b precision made of type signed int (for %.*d correct use).
git-svn-id: http://svn.osgeo.org/postgis/trunk@1106 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-19 17:29:09 +00:00
Sandro Santilli f94b02dd4b Added support for PG<73 in gist support functions
and modified preprocessor flags to be compatible with older versions.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1105 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-19 13:48:10 +00:00
Sandro Santilli 3898adb8cc Fixed IN/OUT representation of types to support < 73 PG versions
git-svn-id: http://svn.osgeo.org/postgis/trunk@1104 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-19 13:32:50 +00:00
Sandro Santilli 42f712c3ae Substituted isfinite() with finite().
git-svn-id: http://svn.osgeo.org/postgis/trunk@1101 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-18 13:47:57 +00:00
Sandro Santilli 9bc4fd48bf Yet another GEOSHasZ bug fix
git-svn-id: http://svn.osgeo.org/postgis/trunk@1100 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-17 15:28:44 +00:00
Sandro Santilli 1a343cd92c GEOSHasZ now checks both DoubleNotANumber and isFinite
git-svn-id: http://svn.osgeo.org/postgis/trunk@1099 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-17 15:18:09 +00:00
Sandro Santilli 3e215083cc Changes GEOSHasZ to use isfinite()
git-svn-id: http://svn.osgeo.org/postgis/trunk@1098 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-17 09:07:38 +00:00
Sandro Santilli 67869cd7cc SRID checks and enforce for all GEOS operations.
Z value handled so to show it only when available.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1096 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-16 13:54:39 +00:00
Sandro Santilli a7cae3c0a4 Added GEOSHasZ() and GEOSSetSRID()
git-svn-id: http://svn.osgeo.org/postgis/trunk@1095 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-16 13:52:42 +00:00
Sandro Santilli f59a0529c8 Made PointN, InteriorRingN and GeometryN 1-based as required by
OGC conformance suite.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1091 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-12 17:50:46 +00:00
Paul Ramsey c1aa826b33 Added grep -v ^# to cpp pipeline for .sql generation. Under OS/X cpp adds a
header with a # comment field to the start of the output file.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1090 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-11 21:29:51 +00:00
Sandro Santilli 54e8e9a02e updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1089 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-11 09:42:26 +00:00
Sandro Santilli 5594f9fece Added -fPIC to CFLAGS as suggested by Vincent Schut.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1086 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-08 11:08:01 +00:00
Sandro Santilli 61182f144a updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1085 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-05 11:44:55 +00:00
Sandro Santilli d4c75cedc1 Had isvalid raise a NOTICE with invalidity message.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1084 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-05 11:44:40 +00:00
Sandro Santilli 2056962396 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1083 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-05 10:04:31 +00:00
Sandro Santilli f08541a6cf Added ndims(geometry) function, used in a 3rd constraint set
by AddGeometryColumn, documented.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1082 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-05 08:16:46 +00:00
Sandro Santilli 349acb6d7c Renamed max/min/avg macros to LW_MAX, LW_MIN, LW_AVG.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1081 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-04 11:40:08 +00:00
Sandro Santilli 03ead7f958 Oops.. my attemt at moving lwpostgis.sql.in one dir up was bogus.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1080 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-04 09:18:06 +00:00
Sandro Santilli dc26fdb4fc Moved lwpostgis.sql.in and it's build logic up to root directory.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1079 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-04 08:56:48 +00:00
Sandro Santilli 221f5327fe Fixed "compat.h" include to be local.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1078 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-02 17:53:06 +00:00
Sandro Santilli e72eae5a31 Added a copy of GNU vsprintf.c file and compiled in.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1077 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-02 16:48:54 +00:00
Sandro Santilli 4b167be8f6 min/max macro made available regardless of MINGW32 define.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1076 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-02 15:59:10 +00:00
Sandro Santilli 25987eea70 Fixed a typo in probe_geometry_columns() reported by Vinko Vrsalovic.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1073 b70326c6-7e19-0410-871a-916f4a2858ee
2004-11-02 07:25:38 +00:00
Sandro Santilli b662e5d784 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1072 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-29 05:28:05 +00:00
Sandro Santilli dfb8cf71c4 Fixed bug in AddGeometryColumn refusing to add 4D geoms.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1071 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-29 05:27:09 +00:00
Sandro Santilli 7b12c9cde9 header inclusion cleanup
git-svn-id: http://svn.osgeo.org/postgis/trunk@1069 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 16:28:07 +00:00
Sandro Santilli d67518a254 Fixed bug in debugguing output
git-svn-id: http://svn.osgeo.org/postgis/trunk@1068 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 16:25:06 +00:00
Sandro Santilli db88832953 More cleanups.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1066 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 16:23:17 +00:00
Sandro Santilli bb54094cd9 cleanups.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1065 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 16:13:30 +00:00
Sandro Santilli 60f183b6b7 Made data structurs old-compilers-friendly.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1064 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 16:10:45 +00:00
Sandro Santilli 17c6e083d9 Fixed a bug in LWGEOM_asGML.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1063 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 16:10:25 +00:00
Sandro Santilli e8ce13461a Fixed geos-based opPolygonize include.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1062 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 15:40:58 +00:00
Sandro Santilli 8416b910c4 Cleanups.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1061 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 09:38:44 +00:00
Sandro Santilli 7d48970b37 Added makeline(point, point). Changed LineFromMultiPoint definition.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1060 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 09:29:38 +00:00
Sandro Santilli 4c2a5c676a Added AddPoint(line, point, [position]) and support API functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1059 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 09:00:11 +00:00
Sandro Santilli f7b666a227 fixed name of line constructor as documentation reports it.
LineFromMultiPoint().


git-svn-id: http://svn.osgeo.org/postgis/trunk@1058 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 07:56:12 +00:00
Sandro Santilli e7789471cf collect(geometry, geometry) re-introduced. collector() is an alias for collect().
git-svn-id: http://svn.osgeo.org/postgis/trunk@1057 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-28 07:45:41 +00:00
Sandro Santilli 0f04d0ff60 Added MakeBox2D, MakeBox3D implementation and documentation.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1056 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-27 15:40:48 +00:00
Sandro Santilli 307177e6d9 MakePoly renamed to Polygonize
git-svn-id: http://svn.osgeo.org/postgis/trunk@1055 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-27 15:19:45 +00:00
Sandro Santilli be14a1c188 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1054 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-27 15:09:51 +00:00
Sandro Santilli 345f15ac24 Unset debug define.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1051 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-27 13:35:28 +00:00
Sandro Santilli de7e66229c AsSVG returns NULL on GEOMETRY COLLECTION input.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1049 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-27 12:30:53 +00:00
Sandro Santilli 17ed1955ae updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1048 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-27 11:06:44 +00:00
Sandro Santilli 4645a82a64 Added polygonize interface (makepoly aggregate)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1047 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-27 11:05:08 +00:00
Sandro Santilli 9e3874ff5f Removed another getbox2d() call.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1046 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-27 11:02:24 +00:00
Sandro Santilli fdf1925661 Fixed fix_geometry_columns() to leave correctly linked records untouched.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1045 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-27 10:55:13 +00:00
Sandro Santilli 2f9b40db22 Obsoleted getbox2d(). Use getbox2d_p() or getbox2d_internal() instead.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1041 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-25 17:07:09 +00:00
Sandro Santilli 428f265238 Y axis reverse and relative path fixes from Olivier Courtin.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1039 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-25 14:20:57 +00:00
Sandro Santilli 97fc49b05d Removed useless network type includes,
Added param.h include for BYTE_ORDER defines under win32.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1038 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-25 12:27:33 +00:00
Sandro Santilli 7d978124fa Stricter syntax fixes. Reported by S�bastien NICAISE <snicaise@iciatechnologies.com>
git-svn-id: http://svn.osgeo.org/postgis/trunk@1037 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-21 19:48:34 +00:00
Sandro Santilli b1284510dd updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1036 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-21 19:47:48 +00:00
Sandro Santilli d48ea169fa ZMflags check on costituent geometries only performed when there is
at least one.


git-svn-id: http://svn.osgeo.org/postgis/trunk@1035 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-21 19:46:36 +00:00
Sandro Santilli a2fd0b9343 Added detect_geos_version in all: rule
git-svn-id: http://svn.osgeo.org/postgis/trunk@1034 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-21 19:45:43 +00:00
Sandro Santilli 0e72ca5f06 makeline_from_multipoint renamed to line_from_multipoint
git-svn-id: http://svn.osgeo.org/postgis/trunk@1032 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-18 11:29:00 +00:00
Sandro Santilli b18ccae554 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1031 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-18 09:37:11 +00:00
Sandro Santilli 95af916e89 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1028 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-17 13:01:10 +00:00
Sandro Santilli 276c15bfbf Fixed a bug in lwline_serialize_buf preventing dimension override
git-svn-id: http://svn.osgeo.org/postgis/trunk@1026 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-17 12:51:23 +00:00
Sandro Santilli 234da47f4f Fixed a debugging function output bug
git-svn-id: http://svn.osgeo.org/postgis/trunk@1025 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-17 12:43:32 +00:00
Sandro Santilli df9fcfc358 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1019 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 22:02:06 +00:00
Sandro Santilli c69644c1c6 makeline_from_multipoint() implemented and exposed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1017 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 16:21:33 +00:00
Sandro Santilli aacbcfb78c updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1016 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 15:25:50 +00:00
Sandro Santilli f9253fd982 Fixed a bug in outputput dimension detection for makeline()
git-svn-id: http://svn.osgeo.org/postgis/trunk@1015 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 15:21:55 +00:00
Sandro Santilli 7fc7961c7a updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1014 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 15:01:24 +00:00
Sandro Santilli 6f010e5c9b Added debugging lines
git-svn-id: http://svn.osgeo.org/postgis/trunk@1013 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 15:00:56 +00:00
Sandro Santilli c3f362a9f0 Fixed a bug in make_lwline
git-svn-id: http://svn.osgeo.org/postgis/trunk@1012 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 15:00:26 +00:00
Sandro Santilli 79d2eb2381 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@1011 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 11:52:32 +00:00
Sandro Santilli d222e1c4a5 Fixed a bug making asSVG return a spurious char at the end.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1009 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 11:48:48 +00:00
Sandro Santilli e604af53ea Added makeline() aggregate and make_lwline() API method.
git-svn-id: http://svn.osgeo.org/postgis/trunk@1008 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 11:42:36 +00:00
Sandro Santilli ba1e02fdb7 changed precision semantic back to number of decimal digits
git-svn-id: http://svn.osgeo.org/postgis/trunk@1006 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 09:41:22 +00:00
Sandro Santilli 57bf5a303f Added a trailing zeros trimmer
git-svn-id: http://svn.osgeo.org/postgis/trunk@1005 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 09:41:01 +00:00
Sandro Santilli 0389e4a412 Fixed a bug introduced by me (byteorder skipped for inner geoms in WKB)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1003 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-15 07:35:41 +00:00
Sandro Santilli c342f77f24 fixed arg number in buffer third arg
git-svn-id: http://svn.osgeo.org/postgis/trunk@994 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-13 18:49:56 +00:00
Sandro Santilli 207dc30f13 Added a third argument to the buffer() function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@993 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-13 18:39:39 +00:00
Sandro Santilli 3e5ad1e944 Dropped SRID argument from point constructor.
Unified procedure name to 'makepoint' for 2d,3dz,4d and 'makepointm' for 3dm.


git-svn-id: http://svn.osgeo.org/postgis/trunk@992 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-13 17:21:49 +00:00
Sandro Santilli 6e701ea8bd updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@991 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-13 15:20:26 +00:00
Sandro Santilli c6284886d0 Added point constructors PG funx.
git-svn-id: http://svn.osgeo.org/postgis/trunk@990 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-13 15:19:10 +00:00
Sandro Santilli 53559edffe Added simpler lwpoint constructors.
git-svn-id: http://svn.osgeo.org/postgis/trunk@989 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-13 14:26:36 +00:00
Sandro Santilli 01a17bd7cb updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@986 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 14:36:21 +00:00
Sandro Santilli 98df5600a6 Added endiannes specification to unparse_WKB, AsBinary, lwgeom_to_wkb.
git-svn-id: http://svn.osgeo.org/postgis/trunk@984 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 14:03:33 +00:00
Sandro Santilli 8a2c547af6 Added test.o to cleanup list
git-svn-id: http://svn.osgeo.org/postgis/trunk@983 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 12:23:34 +00:00
Sandro Santilli 1d1e1f5d11 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@982 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 12:23:26 +00:00
Sandro Santilli 2d269e4597 Moved misuring functions to misures.c (from lwgeom_functions_basic.c).
Added -lm to build line for the API test application.


git-svn-id: http://svn.osgeo.org/postgis/trunk@981 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 11:53:26 +00:00
Sandro Santilli 13b10e6d9b Changed collect() to return MULTI* if applicabe (all input is corresponding
SINGLE type).


git-svn-id: http://svn.osgeo.org/postgis/trunk@979 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 10:31:29 +00:00
Sandro Santilli 69526b4ff8 Added debug strings
git-svn-id: http://svn.osgeo.org/postgis/trunk@978 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 10:30:44 +00:00
Sandro Santilli ccb8960119 collect() always return a collection, with a component for each input
geometry.
memcollect() obsoleted.


git-svn-id: http://svn.osgeo.org/postgis/trunk@977 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 09:55:27 +00:00
Sandro Santilli f2c483436f Fixed bug making it unbuildable.
git-svn-id: http://svn.osgeo.org/postgis/trunk@976 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 09:46:42 +00:00
Sandro Santilli f8afcfa025 Added lwgeom_addBBOX() and lwcollection_construct_empty()
git-svn-id: http://svn.osgeo.org/postgis/trunk@975 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 09:32:44 +00:00
Sandro Santilli 163159d776 lwgeom_same new implementation
git-svn-id: http://svn.osgeo.org/postgis/trunk@974 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-11 07:15:20 +00:00
Sandro Santilli 0a753c3513 segmentize2d() port and use of new LWGEOM structure.
git-svn-id: http://svn.osgeo.org/postgis/trunk@972 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-10 20:31:23 +00:00
Sandro Santilli d1362c5370 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@971 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-09 15:17:20 +00:00
Sandro Santilli 7c98297a80 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@969 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-08 13:26:05 +00:00
Sandro Santilli 3f1700cd45 Debugging output cleanup.
git-svn-id: http://svn.osgeo.org/postgis/trunk@968 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-08 13:21:44 +00:00
Sandro Santilli b6bd129246 Changed LWGEOM structure to point to an actual BOX2DFLOAT4.
Renamed most function to reflect a TYPE_method naming convention.
(you'll need a dump/reload for it to work)
Added more manipulation functions.


git-svn-id: http://svn.osgeo.org/postgis/trunk@967 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-08 13:20:55 +00:00
Sandro Santilli 26e083d39f added memory allocation debugging
git-svn-id: http://svn.osgeo.org/postgis/trunk@966 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-08 13:16:58 +00:00
Sandro Santilli 2fd216dcac Added box2d.o module, reverted SCRIPTS_VERSION to 0.1.0.
git-svn-id: http://svn.osgeo.org/postgis/trunk@965 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-08 13:15:51 +00:00
Sandro Santilli 7980bc7127 Initial revision
git-svn-id: http://svn.osgeo.org/postgis/trunk@964 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-08 13:15:26 +00:00
Sandro Santilli 906328dc35 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@959 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-07 22:02:48 +00:00
Sandro Santilli 11b18fe20c Fixed bugs in TYPE_ macro usage
git-svn-id: http://svn.osgeo.org/postgis/trunk@956 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-07 20:39:30 +00:00
Sandro Santilli b2ea45f8d6 Changed ptarray2d_construct interface.
git-svn-id: http://svn.osgeo.org/postgis/trunk@955 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-07 17:18:50 +00:00
Sandro Santilli 92aac5356a Changed geometrytype() to support TYPEM.
git-svn-id: http://svn.osgeo.org/postgis/trunk@954 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-07 17:18:08 +00:00
Sandro Santilli 33ab82d97f Changed AddGeometryColumn to handle TYPEM.
Updated SCRIPTS_VERSION to 1.1.0


git-svn-id: http://svn.osgeo.org/postgis/trunk@953 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-07 17:17:37 +00:00
Sandro Santilli 1449cae461 API cleanup, more steps toward standalone library.
git-svn-id: http://svn.osgeo.org/postgis/trunk@951 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-07 10:03:23 +00:00
Sandro Santilli e00abe63fb Added zmflag(geom) function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@943 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-06 08:53:24 +00:00
Sandro Santilli ad4b88fd49 Flex invocation patch by Kris Jurka.
git-svn-id: http://svn.osgeo.org/postgis/trunk@938 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 21:59:52 +00:00
Sandro Santilli 9b80019ffc Yes another change in SPI_cursor_open
git-svn-id: http://svn.osgeo.org/postgis/trunk@936 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 21:54:48 +00:00
Sandro Santilli faa6893947 Fixed bugs in Centroid (not GEOS)
git-svn-id: http://svn.osgeo.org/postgis/trunk@935 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 21:53:11 +00:00
Sandro Santilli cf5f06a1d0 Cleanups for older compilers and PG verisons.
git-svn-id: http://svn.osgeo.org/postgis/trunk@934 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 21:42:22 +00:00
Sandro Santilli f50ff4bd84 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@933 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 21:20:48 +00:00
Sandro Santilli bafc0eea3c Added debugging lines, fixed a bug in TYPE_HASSRID and TYPE_HASBBOX macros.
git-svn-id: http://svn.osgeo.org/postgis/trunk@932 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 21:08:38 +00:00
Sandro Santilli 80f1a0cb67 Made clean rule verbose
git-svn-id: http://svn.osgeo.org/postgis/trunk@931 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 21:08:04 +00:00
Sandro Santilli 956920e4bc Bug fix in size computation.
git-svn-id: http://svn.osgeo.org/postgis/trunk@930 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 17:15:42 +00:00
Sandro Santilli be428ac347 Added ZM dimensions flags knowledge.
git-svn-id: http://svn.osgeo.org/postgis/trunk@929 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 16:28:34 +00:00
Sandro Santilli 22fcbae352 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@928 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 16:07:00 +00:00
Sandro Santilli 60c754e691 Added newlines in standalone reporters
git-svn-id: http://svn.osgeo.org/postgis/trunk@927 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 15:12:18 +00:00
Sandro Santilli c434604554 ZM aware WKT/WKB input/output.
git-svn-id: http://svn.osgeo.org/postgis/trunk@924 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-05 07:53:02 +00:00
Sandro Santilli d745e459b8 Serialized form and WKB prepared to accept ZM flags replacing DD (dimensions)
git-svn-id: http://svn.osgeo.org/postgis/trunk@923 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-04 13:53:42 +00:00
Sandro Santilli e26c5de4ba Added missing prototype
git-svn-id: http://svn.osgeo.org/postgis/trunk@922 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-04 09:25:23 +00:00
Sandro Santilli 51f64d6cb5 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@921 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-03 15:57:41 +00:00
Sandro Santilli c304b64232 Made GEOS<->LWGEOM converters keep geometry structures.
Fixed bug in serializers.
Added noop(geometry) for deserialize/serialize debugging.


git-svn-id: http://svn.osgeo.org/postgis/trunk@920 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-03 15:52:23 +00:00
Sandro Santilli 6550aaeed2 Added lwgeom_add(LWGEOM *to, int where, LWGEOM *what).
Added LWGEOM2GEOS keeping input geometry structure.


git-svn-id: http://svn.osgeo.org/postgis/trunk@919 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-01 14:49:34 +00:00
Sandro Santilli cf70856fc1 initial revision
git-svn-id: http://svn.osgeo.org/postgis/trunk@918 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-01 07:51:09 +00:00
Sandro Santilli cf7dc0a2a6 Added runtime cast functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@917 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-01 07:51:00 +00:00
Sandro Santilli e2a586c10d bug fixes
git-svn-id: http://svn.osgeo.org/postgis/trunk@916 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-30 16:06:05 +00:00
Sandro Santilli f3e6e82ff3 Added BBOX finders and its support in serializer.
git-svn-id: http://svn.osgeo.org/postgis/trunk@915 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-30 15:42:28 +00:00
Sandro Santilli a92f57a588 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@914 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-30 11:49:39 +00:00
Sandro Santilli 2a346e2d9a More common flags between LW<type>s.
LWGEOM_summary output made cleaner and moved to lwgeom_debug.c


git-svn-id: http://svn.osgeo.org/postgis/trunk@913 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-30 11:45:40 +00:00
Sandro Santilli 406c2623b7 Added missing liblwgeom.c file.
Made LWMPOINT, LWMLINE, LWMPOLY compatible with LWCOLLECTION.
Fixed reverse() and forcerhr() to maintain geometry structure.


git-svn-id: http://svn.osgeo.org/postgis/trunk@912 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-30 08:18:06 +00:00
Sandro Santilli fea9afb1f7 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@911 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-30 06:54:46 +00:00
Sandro Santilli 271ff4b266 Added serialize function for LWGEOM
git-svn-id: http://svn.osgeo.org/postgis/trunk@910 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-29 15:25:21 +00:00
Sandro Santilli 904c0d5652 Big layout change.
lwgeom.h is public API
liblwgeom.h is private header
lwgeom_pg.h is for PG-links
lw<type>.c contains type-specific functions


git-svn-id: http://svn.osgeo.org/postgis/trunk@909 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-29 10:50:30 +00:00
Sandro Santilli e1ce40dcd9 Changed LWGEOM to PG_LWGEOM.
Changed LWGEOM_construct to PG_LWGEOM_construct.


git-svn-id: http://svn.osgeo.org/postgis/trunk@908 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-29 06:31:42 +00:00
Sandro Santilli 5b6a7163d6 Removed ^Ms, added note about flatting nature of LWGEOM_EXPLODED.
git-svn-id: http://svn.osgeo.org/postgis/trunk@907 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-28 17:13:36 +00:00
Sandro Santilli f3ce15d6f8 Fixed a bug in PostGIS2GEOS_point
git-svn-id: http://svn.osgeo.org/postgis/trunk@905 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-28 09:31:12 +00:00
Sandro Santilli 4817887f8f updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@904 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-28 09:05:24 +00:00
Sandro Santilli 346bde8960 Added forceRHR() and support functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@903 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-28 09:01:17 +00:00
Sandro Santilli 6c0c071607 Added ptarray_isccw(). Added extern modifiers to public prototypes.
git-svn-id: http://svn.osgeo.org/postgis/trunk@902 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-28 09:00:33 +00:00
Sandro Santilli 0f779b5016 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@901 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-28 08:28:40 +00:00
Sandro Santilli e82d7e29ac Added reverse(geometry) and support functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@900 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-28 08:22:20 +00:00
Sandro Santilli 911c2db42f Added some const modifiers
git-svn-id: http://svn.osgeo.org/postgis/trunk@899 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-28 08:21:42 +00:00
Sandro Santilli 6a2e841019 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@898 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-27 17:27:35 +00:00
Sandro Santilli 1b7d38ae04 Debugging defines set to NODEBUG.
git-svn-id: http://svn.osgeo.org/postgis/trunk@897 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-27 08:26:03 +00:00
Sandro Santilli 0fe42e4616 Added profile.h deps
git-svn-id: http://svn.osgeo.org/postgis/trunk@894 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-24 22:27:57 +00:00
Sandro Santilli bc45e50b22 Added box2d->geometry cast.
git-svn-id: http://svn.osgeo.org/postgis/trunk@890 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-24 09:46:53 +00:00
Sandro Santilli 40bd206c26 Modified GML output as suggested by Martin Daly.
git-svn-id: http://svn.osgeo.org/postgis/trunk@888 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-23 15:09:07 +00:00
Sandro Santilli 3d09c5e1d5 Initial GML output routines.
git-svn-id: http://svn.osgeo.org/postgis/trunk@887 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-23 11:12:47 +00:00
Sandro Santilli 2dbb60a9d8 Profile output modified again, input geoms points and conversion times separated
git-svn-id: http://svn.osgeo.org/postgis/trunk@886 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-23 10:13:15 +00:00
Sandro Santilli 03dc6cbb48 indentation fixes
git-svn-id: http://svn.osgeo.org/postgis/trunk@885 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 17:13:26 +00:00
Sandro Santilli 486b21d9b6 indentation and function-call-debugging preparation
git-svn-id: http://svn.osgeo.org/postgis/trunk@884 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 17:12:40 +00:00
Sandro Santilli 668cfc900f removed some compiler warnings
git-svn-id: http://svn.osgeo.org/postgis/trunk@883 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 17:11:56 +00:00
Sandro Santilli eca0fbae57 Added missing prototype to make compiler happy
git-svn-id: http://svn.osgeo.org/postgis/trunk@882 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 17:11:28 +00:00
Sandro Santilli 543968d2b7 Added lwpoint_size, lwline_size, lwpoly_size for computing
serialized size from deserialized objects.


git-svn-id: http://svn.osgeo.org/postgis/trunk@881 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 16:52:13 +00:00
Sandro Santilli eb473aed1a Some more source file cleanups.
git-svn-id: http://svn.osgeo.org/postgis/trunk@880 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 16:29:18 +00:00
Sandro Santilli 4c8fa68722 Moved size computation functions in module static scope.
Renamed public one to lwgeom_size(char *).


git-svn-id: http://svn.osgeo.org/postgis/trunk@879 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 16:09:54 +00:00
Sandro Santilli c657a75358 lw<type>_findlength function made statics of lwgeom_api.c.
public functions with those names should accept LW<TYPE> pointers instead..


git-svn-id: http://svn.osgeo.org/postgis/trunk@878 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 15:15:51 +00:00
Sandro Santilli 48d3f27f1f LWGEOM TODO moved back to the lwgeom/ dir.
git-svn-id: http://svn.osgeo.org/postgis/trunk@877 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 15:11:30 +00:00
Sandro Santilli 94659e78a8 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@876 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 14:57:17 +00:00
Sandro Santilli edfbdec353 line_interpolate_point added.
git-svn-id: http://svn.osgeo.org/postgis/trunk@875 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 14:57:00 +00:00
Sandro Santilli a12153246e fixed a comment
git-svn-id: http://svn.osgeo.org/postgis/trunk@874 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 14:56:33 +00:00
Sandro Santilli 71164db850 Added 'label' argument to the profreport macro.
git-svn-id: http://svn.osgeo.org/postgis/trunk@873 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 13:45:11 +00:00
Sandro Santilli 0f687e9f3f Renamed lwgeom_npoints_recursive to lwgeom_npoints and exposed in lwgeom.h.
Changed SERIALIZED_FORM macro to be less LWGEOM structure aware.
Added profiling header file.
Modified profiling calls to include total query time.
Initial profiling support in the mindistance function.


git-svn-id: http://svn.osgeo.org/postgis/trunk@872 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-22 11:42:45 +00:00
Sandro Santilli 9d36434ce8 slightly changed PROF_SUM output for sort acceptance
git-svn-id: http://svn.osgeo.org/postgis/trunk@870 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-21 21:04:14 +00:00
Sandro Santilli c3bf4fa141 Fixed a profiler bug.
Added points count and doubled profiler output.


git-svn-id: http://svn.osgeo.org/postgis/trunk@869 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-21 20:44:14 +00:00
Sandro Santilli 4737c374f5 Added missing profiling report calls in predicates
git-svn-id: http://svn.osgeo.org/postgis/trunk@866 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-21 17:50:56 +00:00
Sandro Santilli bfbcb9df08 Added GEOS profiling support.
git-svn-id: http://svn.osgeo.org/postgis/trunk@865 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-21 17:36:54 +00:00
Sandro Santilli 5c1c4b5b2c reduced memory copies in GEOS2POSTGIS()
git-svn-id: http://svn.osgeo.org/postgis/trunk@864 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-21 16:08:03 +00:00
Sandro Santilli a51da0d6c9 buffer serialized accept NULL as return-size pointer
git-svn-id: http://svn.osgeo.org/postgis/trunk@863 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-21 16:07:25 +00:00
Sandro Santilli 6f27bd99cc Added lwgeom_empy_length(), lwgeom_constructempty_buf(), lwexploded_serialize_buf()
git-svn-id: http://svn.osgeo.org/postgis/trunk@862 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-21 15:44:53 +00:00
Sandro Santilli 05fad4e009 Added lwexploded_findlength
git-svn-id: http://svn.osgeo.org/postgis/trunk@861 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-21 10:57:26 +00:00
Sandro Santilli 8c1f0ecf46 Optimized postgis->geos conversion
git-svn-id: http://svn.osgeo.org/postgis/trunk@860 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 21:13:23 +00:00
Sandro Santilli 17505c8ab0 commented pfree call in GEOSnoop (seems to generate memory faults)
git-svn-id: http://svn.osgeo.org/postgis/trunk@859 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 21:13:01 +00:00
Sandro Santilli 31b86139f9 Added force_4d(geometry)
git-svn-id: http://svn.osgeo.org/postgis/trunk@855 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 17:03:41 +00:00
Sandro Santilli 76986f09de Renamed README
git-svn-id: http://svn.osgeo.org/postgis/trunk@846 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 10:09:06 +00:00
Sandro Santilli 5d1d72d034 Added missing 'uninstall' rules. Fixed existing install rules.
git-svn-id: http://svn.osgeo.org/postgis/trunk@845 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 10:08:18 +00:00
Sandro Santilli cbbbfa301c Configuration and common Makefile work moved to Makefile.config
Build is possible from each directory and from the root directory.


git-svn-id: http://svn.osgeo.org/postgis/trunk@844 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 09:58:26 +00:00
Sandro Santilli 909c07e70a added missing prototype
git-svn-id: http://svn.osgeo.org/postgis/trunk@843 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 09:29:29 +00:00
Sandro Santilli 0dc6740832 Reworked build scripts.
git-svn-id: http://svn.osgeo.org/postgis/trunk@842 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 09:22:25 +00:00
Sandro Santilli b10179364d fixed bugs in non-GEOS centroid function
git-svn-id: http://svn.osgeo.org/postgis/trunk@841 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 09:21:29 +00:00
Sandro Santilli 9c2a6c6bfa cleanups
git-svn-id: http://svn.osgeo.org/postgis/trunk@840 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 09:20:51 +00:00
Sandro Santilli 9cc288963a generalized library ignore line
git-svn-id: http://svn.osgeo.org/postgis/trunk@839 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 08:53:06 +00:00
Sandro Santilli f6aca1f6bc Added postgis_geos_version.h
git-svn-id: http://svn.osgeo.org/postgis/trunk@838 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 08:52:20 +00:00
Sandro Santilli 839eff4231 included local postgis_geos_version.h
git-svn-id: http://svn.osgeo.org/postgis/trunk@837 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 08:52:01 +00:00
Sandro Santilli f797a31982 Added detect_geos_version rule
git-svn-id: http://svn.osgeo.org/postgis/trunk@836 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 08:51:43 +00:00
Sandro Santilli bd508b4784 Moved lwgeom TODO in the root
git-svn-id: http://svn.osgeo.org/postgis/trunk@835 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-20 08:29:33 +00:00
Sandro Santilli 32542774ac Fixed a serius bug in pointArray_construct.
Added debugging output, optimized some functions, indentation buties..


git-svn-id: http://svn.osgeo.org/postgis/trunk@831 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-18 22:15:35 +00:00
Sandro Santilli 27150b541c Added more debugging output
git-svn-id: http://svn.osgeo.org/postgis/trunk@830 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-18 22:13:44 +00:00
Sandro Santilli 1a3493fbf9 Added box3d_to_box2df_p to reduce number of required memcpys
git-svn-id: http://svn.osgeo.org/postgis/trunk@827 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-16 10:42:08 +00:00
Sandro Santilli bf36b54431 Changed SPI_cursor_open call changes to be used for USE_VERSION > 80
(change seems to be intended for future releases)


git-svn-id: http://svn.osgeo.org/postgis/trunk@826 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-16 09:06:44 +00:00
Sandro Santilli 3771b8a945 Added binary predicate short-circuits
git-svn-id: http://svn.osgeo.org/postgis/trunk@825 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-16 09:05:31 +00:00
Sandro Santilli ca19a49cf1 Added getbox2d_internal
git-svn-id: http://svn.osgeo.org/postgis/trunk@824 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-16 09:05:10 +00:00
Sandro Santilli e448d226da updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@823 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-16 09:04:45 +00:00
Sandro Santilli d349b26fe0 CHIP and GEOS types (forgot to add)
git-svn-id: http://svn.osgeo.org/postgis/trunk@821 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-14 12:31:31 +00:00
Sandro Santilli 645d76c39f fixed a typo in the geometry_send function definition
git-svn-id: http://svn.osgeo.org/postgis/trunk@818 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-14 08:39:24 +00:00
Sandro Santilli 02d44c24c2 Updated call to SPI_cursor_open to 8.0 (beta2) interface.
git-svn-id: http://svn.osgeo.org/postgis/trunk@816 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-14 07:43:00 +00:00
Sandro Santilli 420a67a53b updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@815 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-13 19:04:23 +00:00
Sandro Santilli ff415dc0e5 Added binary input/output function for type geometry.
git-svn-id: http://svn.osgeo.org/postgis/trunk@808 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-13 14:26:56 +00:00
Sandro Santilli 106efdc5fb updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@806 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-13 13:35:20 +00:00
Sandro Santilli 398ecc65a9 Added AsSVG().
git-svn-id: http://svn.osgeo.org/postgis/trunk@805 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-13 13:32:01 +00:00
Sandro Santilli f6b428f61d updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@798 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-10 13:26:46 +00:00
Sandro Santilli 8f94a87228 Added all ..FromWKB functions, asbinary(geom) and bytea<->geom casts
git-svn-id: http://svn.osgeo.org/postgis/trunk@795 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-10 08:48:49 +00:00
Sandro Santilli 80242e7cd6 asbinary(), geomfromwkb
git-svn-id: http://svn.osgeo.org/postgis/trunk@794 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-10 07:36:25 +00:00
Sandro Santilli 424a6fde1a some bug fixes... geometry_analyze added
git-svn-id: http://svn.osgeo.org/postgis/trunk@788 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-08 16:34:36 +00:00
Sandro Santilli 2b2573246e updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@786 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-08 14:27:07 +00:00
Sandro Santilli f57cfd6a08 Added segmentize()
git-svn-id: http://svn.osgeo.org/postgis/trunk@785 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-08 14:19:25 +00:00
Sandro Santilli 7db775e2d8 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@783 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-08 10:57:08 +00:00
Sandro Santilli 3757c035df Fixed a bug in the z() function.
Added ! GEOS implementation of Centroid().


git-svn-id: http://svn.osgeo.org/postgis/trunk@781 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-08 10:25:26 +00:00
Sandro Santilli 6cdb7f83e2 GEOS support added.
git-svn-id: http://svn.osgeo.org/postgis/trunk@775 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-07 17:04:03 +00:00
Sandro Santilli 5e18b719ee Added CHIP type and support funx
git-svn-id: http://svn.osgeo.org/postgis/trunk@774 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-07 07:47:38 +00:00
Sandro Santilli 942d477249 updated some comments
git-svn-id: http://svn.osgeo.org/postgis/trunk@773 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-06 16:18:17 +00:00
Sandro Santilli 442084c7d0 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@772 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-06 16:05:12 +00:00
Sandro Santilli e45a5556a3 Changed getbox2d_p signature to return 0 for EMPTY geometries.
Ported DP simplifier.


git-svn-id: http://svn.osgeo.org/postgis/trunk@771 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-06 16:04:13 +00:00
Sandro Santilli 092fb61dc4 Added IsEmpty()
git-svn-id: http://svn.osgeo.org/postgis/trunk@770 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-06 12:24:17 +00:00
Sandro Santilli e4e7e35a21 Finished BOX3D functions porting.
Added envelope() and extent3d().


git-svn-id: http://svn.osgeo.org/postgis/trunk@769 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-06 10:37:09 +00:00
Sandro Santilli c40cb4cdf5 Added min/max coordinates from box2d and box3d.
Made geometry->box3d cast actually use 'z' value.


git-svn-id: http://svn.osgeo.org/postgis/trunk@768 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-06 09:32:19 +00:00
Sandro Santilli c50db67ca8 Added box3d support and expand(geom|box2d|box3d, double)
git-svn-id: http://svn.osgeo.org/postgis/trunk@767 b70326c6-7e19-0410-871a-916f4a2858ee
2004-09-06 09:13:13 +00:00
Sandro Santilli 268e8bf615 Added geom_accum(), collect_garray() and collect()
git-svn-id: http://svn.osgeo.org/postgis/trunk@762 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-27 16:01:48 +00:00
Sandro Santilli daf5128a44 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@761 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-27 15:04:09 +00:00
Sandro Santilli 208e9f78cf Fixed bug in lwgeom_explode allocating less memory then needed.
git-svn-id: http://svn.osgeo.org/postgis/trunk@760 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-27 15:03:11 +00:00
Sandro Santilli 81b81d780a Added LWGEOM_EXPLODED structure definition and utility funx.
Added collector() function and memcollect() aggregate.
Still faulting...


git-svn-id: http://svn.osgeo.org/postgis/trunk@759 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-27 14:35:26 +00:00
Sandro Santilli 35a44b8518 Added point_inside_circle() and translate()
git-svn-id: http://svn.osgeo.org/postgis/trunk@758 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-27 08:13:16 +00:00
Sandro Santilli 9cd8d8d04d max_distance() raises an 'unimplemented yet' error.
git-svn-id: http://svn.osgeo.org/postgis/trunk@756 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-26 16:55:09 +00:00
Sandro Santilli 1522fb676d Added nrings(geom), multi(geom) and all of <type>FromText(geom, [srid])
git-svn-id: http://svn.osgeo.org/postgis/trunk@755 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-26 16:44:01 +00:00
Sandro Santilli a4cea467f6 updated
git-svn-id: http://svn.osgeo.org/postgis/trunk@754 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-26 15:04:30 +00:00
Sandro Santilli ebc03ba4fb Added (bogus) max_distance(geom,geom)
git-svn-id: http://svn.osgeo.org/postgis/trunk@753 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-26 15:02:59 +00:00
Sandro Santilli dcd4033a2c Added distance(geometry) and all support functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@752 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-26 12:55:30 +00:00
Sandro Santilli a3d0372f63 Added a note about spheroid computation
git-svn-id: http://svn.osgeo.org/postgis/trunk@751 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-26 12:54:28 +00:00
Sandro Santilli 85e55d8846 Added spheroid type and functions
git-svn-id: http://svn.osgeo.org/postgis/trunk@750 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-26 08:57:39 +00:00
Sandro Santilli c3bc026581 Added IsClosed() and force_collection()
git-svn-id: http://svn.osgeo.org/postgis/trunk@749 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-25 15:28:46 +00:00
Sandro Santilli 55e49cf477 Added macros for LWGEOM.type manipulation
git-svn-id: http://svn.osgeo.org/postgis/trunk@748 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-25 15:26:24 +00:00
Sandro Santilli ea9fd3e3d3 Added force_3d
git-svn-id: http://svn.osgeo.org/postgis/trunk@747 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-25 13:41:43 +00:00
Sandro Santilli 5244c5bcd4 Added perimeter,perimeter2d,perimeter3d.
Modified length,length2d,length3d semantic.
Added force_2d.


git-svn-id: http://svn.osgeo.org/postgis/trunk@746 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-25 12:32:12 +00:00
Sandro Santilli 0ce7e4c333 Added serialized functions writing to a pre-allocated buffer.
git-svn-id: http://svn.osgeo.org/postgis/trunk@745 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-25 12:29:31 +00:00
Sandro Santilli afbe496291 Moved some OGC functions from lwgeom_inout.c to lwgeom_ogc.c.
Added area2d (area) to lwgeom_functions_basic.c


git-svn-id: http://svn.osgeo.org/postgis/trunk@744 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-25 07:29:32 +00:00
Sandro Santilli 927b0b7f31 Added lwgeom_pg to contain PG-specific functions/interfaces.
git-svn-id: http://svn.osgeo.org/postgis/trunk@743 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-25 07:28:28 +00:00
Sandro Santilli 5ec7ce9dc6 Added StartPoint(), EndPoint()
git-svn-id: http://svn.osgeo.org/postgis/trunk@742 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-24 16:33:41 +00:00
Sandro Santilli 7bbcaf08fb Added X(), Y() and Z() funx
git-svn-id: http://svn.osgeo.org/postgis/trunk@741 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-24 16:20:10 +00:00
Sandro Santilli e84cd533b1 PointN() ported.
git-svn-id: http://svn.osgeo.org/postgis/trunk@740 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-24 15:50:04 +00:00
Sandro Santilli 251c98dca4 fixed a bug preventing ExteriorRing() and InteriorRingN from setting the
correct SRID.


git-svn-id: http://svn.osgeo.org/postgis/trunk@739 b70326c6-7e19-0410-871a-916f4a2858ee
2004-08-24 15:10:54 +00:00