Commit graph

62 commits

Author SHA1 Message Date
Paul Ramsey 648fe8424f Move the circ tree caching code out of libpgcommon and into the geography area that actually uses it
git-svn-id: http://svn.osgeo.org/postgis/trunk@9934 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-18 22:02:30 +00:00
Paul Ramsey 01b6557b10 Remove dead code, add commentary on caching system.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9929 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-18 17:44:33 +00:00
Paul Ramsey e16cba24b1 Update caching code to be more generic, using call-backs to allocate/build/free specific cache structures.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9928 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-18 17:12:22 +00:00
Paul Ramsey c2a95f250f Update the caching infrastructure to allow for arbitrary new caching systems to be combined into one fn_extra pointer slot. Clean up the 1-d r-tree code a little bit. Make the cache handling code for geometry caching generic so it can be re-used across different internal indexing approaches
git-svn-id: http://svn.osgeo.org/postgis/trunk@9918 b70326c6-7e19-0410-871a-916f4a2858ee
2012-06-15 23:11:03 +00:00
Sandro Santilli d3b8a9c3a6 Turn custom allocators into an occasion for interruption (#1802)
This change allows interrupting any function at allocation time.
Doesn't allow interrupting loops not invoking custom allocators
(includes GEOS, so far).

git-svn-id: http://svn.osgeo.org/postgis/trunk@9715 b70326c6-7e19-0410-871a-916f4a2858ee
2012-05-04 11:21:18 +00:00
Paul Ramsey 29e2d6a299 Change @rm to rm for visibility
git-svn-id: http://svn.osgeo.org/postgis/trunk@9523 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-21 21:36:59 +00:00
Paul Ramsey cf8753bd36 Make distclean should remove all the Makefile's generated by ./configure
git-svn-id: http://svn.osgeo.org/postgis/trunk@9522 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-21 20:32:29 +00:00
Paul Ramsey 820079f092 Roll back changes for autodetecting C99 vsnprintf (#1688)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9485 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-13 16:23:38 +00:00
Paul Ramsey 8be09879c7 Complete alternate implementation of vsnprintf, vasprintf for non-C99 systems. (#1668)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9477 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-12 21:27:39 +00:00
Sandro Santilli 03de589457 Fix UTM zone reserved SRID interpretation (#1680)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9476 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-12 17:45:48 +00:00
Paul Ramsey 729d1061cb Try again with line endings, this time using eol-style instead of eol-type (#1605)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9324 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 22:08:12 +00:00
Paul Ramsey fce22f0c5a Correct fix for win32 crasher, it was proj returning a null error string.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9299 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-25 17:10:23 +00:00
Paul Ramsey dd04aefc26 SPI_finish before dropping out on NULL proj4text
git-svn-id: http://svn.osgeo.org/postgis/trunk@9298 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-25 05:53:11 +00:00
Paul Ramsey fcbe9af9c2 Remove Win32 crasher on NULL proj4 string
git-svn-id: http://svn.osgeo.org/postgis/trunk@9296 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-25 03:12:30 +00:00
Paul Ramsey 97e9357796 Remove now-obsolete TODO comment
git-svn-id: http://svn.osgeo.org/postgis/trunk@9215 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-16 00:28:04 +00:00
Paul Ramsey 4520e70063 Prepare for Proj4.8 with spheroid info handling
git-svn-id: http://svn.osgeo.org/postgis/trunk@9214 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-16 00:25:48 +00:00
Sandro Santilli bc47761f48 Do not take PROJ4 errno value as a sign of error (#1580)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9194 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-15 15:59:52 +00:00
Sandro Santilli 5703e75da6 Drop postgis_config.h include from lwgeom_pg.h header.
Generally, package config files should _not_ be included
by package headers. In this specific case the aim is overriding
POSTGIS_DEBUG_LEVEL in implementation files for the sake of
enabling debugging of a single file.

Also part of this commit is addition of copyright header in
two files which were missing it (used git history to figure
assignments)

git-svn-id: http://svn.osgeo.org/postgis/trunk@9134 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-09 17:00:23 +00:00
Sandro Santilli 6498c6f9ed Fix header guard of pgsql_compat.h and drop the duplicate
git-svn-id: http://svn.osgeo.org/postgis/trunk@9133 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-09 17:00:02 +00:00
Paul Ramsey 87a2a38faa Stop relying on private projects.h PROJ header (#1541)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9108 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-08 18:51:32 +00:00
Paul Ramsey 3623b6bcd5 Reorder the include flags, per Greg Troxel
git-svn-id: http://svn.osgeo.org/postgis/trunk@9066 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-07 17:07:52 +00:00
Paul Ramsey 86d8c4aeae Change searched location of proj files when no proj variable (#1022)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9051 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-06 20:07:21 +00:00
Paul Ramsey 77e0e30b0b Try out the pj_get_def() method of finding the spheroid parameters, but: it doesn't work.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9036 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-06 02:15:01 +00:00
Paul Ramsey c1f7407a09 Geography should support SRIDs other than 4326 (#1538)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9029 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-04 01:30:14 +00:00
Paul Ramsey 88c557fc6c Prevent people from inserting entries in spatial_ref_sys with no proj4text (#1150)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8910 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-24 00:09:53 +00:00
Sandro Santilli bce8e015d6 Virtualize ``make'' calls (#1464)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8801 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 16:23:18 +00:00
Sandro Santilli 1ecb481104 Encode dependency of libpgcommon on postgis_config.h
git-svn-id: http://svn.osgeo.org/postgis/trunk@8777 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-11 17:18:19 +00:00
Paul Ramsey f56dc54f2d Remove redundant prototype
git-svn-id: http://svn.osgeo.org/postgis/trunk@8067 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-31 20:59:07 +00:00
Paul Ramsey 2398afc183 Move gserialized_get_gbox_p to liblwgeom and gserialized_read_gbox_p to liblwgeom_internal
git-svn-id: http://svn.osgeo.org/postgis/trunk@8066 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-31 20:55:05 +00:00
Paul Ramsey 2844486b6c Rename pglwgeom_box2d_p
git-svn-id: http://svn.osgeo.org/postgis/trunk@8065 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-31 20:23:44 +00:00
Paul Ramsey 93087d39dc Remove some duplicate headers (much of this to be done...)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8053 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-30 20:57:56 +00:00
Paul Ramsey a7f66610ba Remove SERIALIZED_FORM
git-svn-id: http://svn.osgeo.org/postgis/trunk@8052 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-30 20:45:58 +00:00
Paul Ramsey 32589f9f97 Remove pglwgeom_serialize
git-svn-id: http://svn.osgeo.org/postgis/trunk@8051 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-30 20:40:19 +00:00
Paul Ramsey 183dde1c71 Remove pglwgeom_ndims
git-svn-id: http://svn.osgeo.org/postgis/trunk@8046 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-29 20:35:41 +00:00
Paul Ramsey 9899cf87bb Remove pglwgeom_size
git-svn-id: http://svn.osgeo.org/postgis/trunk@8045 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-29 20:07:33 +00:00
Paul Ramsey 475ce68b84 Remove pglwgeom_get_zm
git-svn-id: http://svn.osgeo.org/postgis/trunk@8044 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-29 20:04:04 +00:00
Paul Ramsey 71b9cf2ec9 Remove pglwgeom_is_empty
git-svn-id: http://svn.osgeo.org/postgis/trunk@8042 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-29 01:01:48 +00:00
Paul Ramsey 4bd7ed861d Remove pglwgeom_drop_bbox
git-svn-id: http://svn.osgeo.org/postgis/trunk@8041 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-29 01:00:49 +00:00
Paul Ramsey 84206a3396 Remove pglwgeom_has_bbox, pglwgeom_has_z, pglwgeom_has_m
git-svn-id: http://svn.osgeo.org/postgis/trunk@8039 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-29 00:58:06 +00:00
Paul Ramsey e0f79d979a Remove pglwgeom_get_type
git-svn-id: http://svn.osgeo.org/postgis/trunk@8038 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-29 00:50:33 +00:00
Paul Ramsey 6e55225337 remove pglwgeom_get_srid, pglwgeom_set_srid
git-svn-id: http://svn.osgeo.org/postgis/trunk@8037 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 22:06:16 +00:00
Paul Ramsey ffbb26a36e Remove pglwgeom_deserialize
git-svn-id: http://svn.osgeo.org/postgis/trunk@8036 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 21:57:57 +00:00
Paul Ramsey 8a41cb45be Commit remaining removals of BOX2DFLOAT4 and PG_LWGEOM
git-svn-id: http://svn.osgeo.org/postgis/trunk@8035 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-28 20:54:23 +00:00
Paul Ramsey 24719b86b6 Remove PG_LWGEOM_construct
git-svn-id: http://svn.osgeo.org/postgis/trunk@8010 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-26 23:47:16 +00:00
Paul Ramsey 9487fd9d47 Remove orphaned pglwgeom function pglwgeom_compute_serialized_box3d
git-svn-id: http://svn.osgeo.org/postgis/trunk@8009 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-26 23:21:05 +00:00
Paul Ramsey b50f2487da Remove non-gserialized portions of utility functions.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8008 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-26 23:07:17 +00:00
Paul Ramsey fbb351b5ad Remove old box2dfloat4 in favor of gbox.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8004 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-25 21:05:42 +00:00
Sandro Santilli 6bfec0a01e Use macros for hard-coded "magic" SRIDs used by _BestSRID and ST_Transform, use 999xxx range for them. See ticket #1230.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7960 b70326c6-7e19-0410-871a-916f4a2858ee
2011-10-10 06:55:50 +00:00
Paul Ramsey d8d9fe9d9c Remove gserialized.h define file (actual #define is now temporarily in liblwgeom.h)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7914 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-28 23:59:10 +00:00
Paul Ramsey e287dff03d Remove GSERIALIZED_ON from .sql files.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7913 b70326c6-7e19-0410-871a-916f4a2858ee
2011-09-28 23:58:34 +00:00