Commit graph

6435 commits

Author SHA1 Message Date
Bborie Park 71aa64ee59 Added forgotten explicit freeing of memory and some code cleanup
git-svn-id: http://svn.osgeo.org/postgis/trunk@7766 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-19 22:57:51 +00:00
Bborie Park 28797da0e1 Adds coverage table version of ST_Quantile and ST_ApproxQuantile. Function implemented using the algorithm discussed in
A One-Pass Space-Efficient Algorithm for Finding Quantiles (1995)
  by Rakesh Agrawal, Arun Swami
  in Proc. 7th Intl. Conf. Management of Data (COMAD-95)
  http://www.almaden.ibm.com/cs/projects/iis/hdb/Publications/papers/comad95.pdf

Also refactored the regression test for rt_histogram due to unnecessary columns in output


git-svn-id: http://svn.osgeo.org/postgis/trunk@7765 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-19 19:08:36 +00:00
Bborie Park cd974c4adc Commit of patch provided by David Zwarg in #482 adding the functions ST_SetRotation, ST_Rotation, ST_PixelHeight and ST_PixelWidth.
Associated tickets are #482, #928, #929 and #936


git-svn-id: http://svn.osgeo.org/postgis/trunk@7763 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-19 14:04:50 +00:00
Sandro Santilli 1e09b5c1b8 Include version in liblwgeom.h [RT-SIGTA]
Closes ticket #1164

git-svn-id: http://svn.osgeo.org/postgis/trunk@7762 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-19 10:12:00 +00:00
Sandro Santilli b131652f6c Drop (u)int32 and uchar in favor of C99 standard int types [RT-SIGTA]
This commit drops PostgreSQL references in liblwgeom.h (C_H define)
and hopefully reduces the noise generated by custom symbols.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7761 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-19 09:34:58 +00:00
Sandro Santilli 3713c150e0 Don't use problematic int types for no reason...
git-svn-id: http://svn.osgeo.org/postgis/trunk@7760 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-19 09:30:21 +00:00
Sandro Santilli b6e5840726 Install liblwgeom on 'make install' [RT-SIGTA]
Uses liblwgeom.h as the API header for liblwgeom.

git-svn-id: http://svn.osgeo.org/postgis/trunk@7759 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-19 08:16:23 +00:00
Sandro Santilli 090ac6125a Move SQL-exposed functions out of libpgcommon (#1163).
git-svn-id: http://svn.osgeo.org/postgis/trunk@7758 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-19 07:55:50 +00:00
Regina Obe 8dcd3139b5 more clarification of behavior change in 2.0 of bbox storage
git-svn-id: http://svn.osgeo.org/postgis/trunk@7757 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-16 13:19:18 +00:00
Regina Obe 88b2edb9c5 #1160: documentation clarification of behavior
git-svn-id: http://svn.osgeo.org/postgis/trunk@7755 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-16 12:51:30 +00:00
Sandro Santilli 21bfcbf735 Move NO_*_VALUE from liblwgeom.h to liblwgeom_internal.h [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7754 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-16 09:47:32 +00:00
Sandro Santilli 99b6091234 Move DIST_MAX and DIST_MIN from liblwgeom.h to liblwgeom_internal.h (weird values, btw) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7753 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-16 09:25:30 +00:00
Sandro Santilli e83e96db9b Honour DISTDIR when installing liblwgeom. Drop the finish call as it may require root privileges on some systems [RT-SIGTA].
git-svn-id: http://svn.osgeo.org/postgis/trunk@7752 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-16 09:15:49 +00:00
Bborie Park 768deb55a9 Removed unnecessary code from rt_band_get_summary_stats. Fixed incorrect comment for rt_band_get_value_count.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7751 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-15 22:43:13 +00:00
Sandro Santilli 6b454dc401 Use proper PROJ4 flags when linking against liblwgeom. See ticket #1158. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7749 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-15 11:36:59 +00:00
Sandro Santilli a1304fc5ab Fix for missing include directory on Mingw (#1158). Thanks Bryce Nordgren.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7748 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-14 19:47:04 +00:00
Regina Obe f6e422f5f9 #1071: Logic to mark nodes that are contained in a face
git-svn-id: http://svn.osgeo.org/postgis/trunk@7747 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-14 12:39:26 +00:00
Regina Obe 4e55f59114 #1071 - start work on tiger PostGIS topology loader
git-svn-id: http://svn.osgeo.org/postgis/trunk@7746 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-14 12:32:23 +00:00
Bborie Park 33352aacb5 Consolidated various struct declarations from rt_api.c into rt_api.h as these structs are duplicatively redeclared in rt_pg.c and testapi.c
git-svn-id: http://svn.osgeo.org/postgis/trunk@7745 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-13 18:10:44 +00:00
Sandro Santilli f3db965181 Second attempt at libtool usage. Seems better to me now.
PostGIS clients still all use the static version of the library.
Libraries are not installed by default.
[RT-SIGTA]

git-svn-id: http://svn.osgeo.org/postgis/trunk@7744 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-13 10:06:07 +00:00
Sandro Santilli 9041b17422 Drop unused code
git-svn-id: http://svn.osgeo.org/postgis/trunk@7743 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-13 09:02:54 +00:00
Regina Obe e5889ccb57 #1156 incorporate suggestions from forkandwait
git-svn-id: http://svn.osgeo.org/postgis/trunk@7742 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-13 02:01:27 +00:00
Sandro Santilli a7e6fe6c36 Move lwproj_from_string from libpgcommon to liblwgeom [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7741 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 19:18:46 +00:00
Sandro Santilli 9e0173b08b liblwgeom/cunit also needs PROJ_CPPFLAGS
git-svn-id: http://svn.osgeo.org/postgis/trunk@7740 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 17:57:17 +00:00
Sandro Santilli 23bb1c43b2 Rename make_project to lwproj_from_string, ready to be moved to liblwgeom [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7739 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 17:55:40 +00:00
Sandro Santilli c1b6254c15 Even generator.c will need proper proj cflags now..
git-svn-id: http://svn.osgeo.org/postgis/trunk@7738 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 17:42:36 +00:00
Sandro Santilli 72b1c0a360 loader also includes liblwgeom.h, thus wants PROJ cpp flags
git-svn-id: http://svn.osgeo.org/postgis/trunk@7737 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 17:37:33 +00:00
Sandro Santilli c18e8b0c18 Use PROJ4 C flags, see if this makes Hudson happy.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7736 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 17:33:33 +00:00
Sandro Santilli 6354a67e76 Copyright review on lwgeom_pg.{c,h} files
git-svn-id: http://svn.osgeo.org/postgis/trunk@7735 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 17:26:03 +00:00
Sandro Santilli 4239e692bb Make transformation and projection cache API available (ticket #1053)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7734 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 17:25:01 +00:00
Sandro Santilli 54b8ca3739 Drop unused macros CARTESIAN and GEODETIC from liblwgeom.h
git-svn-id: http://svn.osgeo.org/postgis/trunk@7733 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 10:12:26 +00:00
Sandro Santilli 1d4276c497 Snap and SharedPaths are both direct GEOS proxies, not extra [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7732 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 10:11:57 +00:00
Sandro Santilli 09ea66209a Export lwgeom_sharedpaths to liblwgeom, and fix exception message [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7731 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-12 09:11:26 +00:00
Bborie Park 09a73008c6 Rewrote the code for the coverage table versions of ST_SummaryStats and ST_Histogram. So instead of plpgsql, it is now in C within rt_pg/rt_pg.c
git-svn-id: http://svn.osgeo.org/postgis/trunk@7730 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-11 21:01:45 +00:00
Regina Obe dff685ce27 change reverse_geocode back to using addr table and also use cousub for location
git-svn-id: http://svn.osgeo.org/postgis/trunk@7729 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-11 16:35:13 +00:00
Sandro Santilli 3e591db73e Fix leftover PARSER_CHECK reference (thanks Hudson) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7728 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-11 08:04:49 +00:00
Sandro Santilli 625e72615d Export lwgeom_split to liblwgeom, const-correct it [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7727 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-11 08:04:20 +00:00
Sandro Santilli 64acaf3bf8 Export lwgeom_snap to liblwgeom [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7726 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-11 07:52:10 +00:00
Sandro Santilli 89bb89d9d1 Give PARSER_CHECK macros an LW_ prefix [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7725 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-11 07:51:45 +00:00
Sandro Santilli 34a0789b21 Fix parser documentation [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7724 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-11 07:50:45 +00:00
Paul Ramsey 0603950296 Match style of liblwgeom.h include guard
git-svn-id: http://svn.osgeo.org/postgis/trunk@7723 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-10 23:16:41 +00:00
Paul Ramsey 05d5133dcb Little checks in clean_wkt_out_suite
git-svn-id: http://svn.osgeo.org/postgis/trunk@7722 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-10 22:43:54 +00:00
Paul Ramsey 60b4daef28 Remove old WKB/WKT parsers and generators and switch all internal references remaining (mostly in cunit) over to the new implementations.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7721 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-10 22:28:05 +00:00
Sandro Santilli 9e51495630 Export lwgeom_makevalid to liblwgeom [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7720 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-09 16:56:02 +00:00
Sandro Santilli 6a56e2a82e Add GEOS entry points in liblwgeom.h (public API) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7719 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-09 16:05:30 +00:00
Sandro Santilli 7a904c7bb4 Add some documentation about parsing [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7718 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-09 15:43:51 +00:00
Sandro Santilli 1e2eff39b3 Mark "chip" functions for deletion
git-svn-id: http://svn.osgeo.org/postgis/trunk@7717 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-09 15:43:11 +00:00
Sandro Santilli f9b94014f1 Drop REPEATED_POINTS_* and SPLICE_* defines from liblwgeom.h, move MAXFLOAT to liblwgeom_internal.h [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7716 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-09 15:12:06 +00:00
Regina Obe afd7ca5245 make eol for all rfcs be LF so our unix brethren can edit them without fuss
git-svn-id: http://svn.osgeo.org/postgis/trunk@7715 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-09 14:54:32 +00:00
Sandro Santilli e8814f483c Move floating points comparator macros from liblwgeom.h to liblwgeom_internal.h (not prefixed symbols) [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7714 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-09 14:19:12 +00:00