Commit graph

6296 commits

Author SHA1 Message Date
Bborie Park d432dc28e5 Inclusion of missing ST_PixelWidth and ST_PixelHeight functions and regression tests.
Associated ticket is #928


git-svn-id: http://svn.osgeo.org/postgis/trunk@7779 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-24 15:23:25 +00:00
Bborie Park 3ac670b992 Refactored ST_ValueCount and ST_ValuePercent to be a C function rather than a plpgsql function.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7778 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-23 22:41:22 +00:00
Regina Obe 38e708b3a1 #997 put in correct codes for non-state us territories
git-svn-id: http://svn.osgeo.org/postgis/trunk@7775 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-22 21:24:52 +00:00
Regina Obe df057abedf #1158 add proj flags to fix mingw test issue
git-svn-id: http://svn.osgeo.org/postgis/trunk@7774 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-21 03:34:56 +00:00
Sandro Santilli d62bc59a97 Put PG_MODULE_MAGIC in raster and postgis source files rather than in libpgcommon. Should fix the mingw build. See ticket #1158.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7773 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-20 21:17:14 +00:00
Sandro Santilli ea68d53e6f Use PROJ cflags when building raster module (see #1158)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7772 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-20 21:08:25 +00:00
Bborie Park 4c3dac62a8 More fixups for the quantile coverage function. Fixes segfault that seems to only occur on OSX.
git-svn-id: http://svn.osgeo.org/postgis/trunk@7771 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-20 17:51:04 +00:00
Sandro Santilli 91dd7fc219 Drop duplicated typedef [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7770 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-20 16:43:23 +00:00
Sandro Santilli ebd64f02f5 Install liblwgeom.h under a sensible location... [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7769 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-20 15:55:13 +00:00
Sandro Santilli 70e6070563 Move gserialized_gist to libpgcommon fixing a circular dependency between libpgcommon and liblwgeom, put libpgcommon _after_ liblwgeom in pg modules link lines, drop duplicated lwgeom_init_allocators and PG_MODULE_MAGIC from raster module (they are in libpgcommon already). Includes patch in #1161. [RT-SIGTA]
git-svn-id: http://svn.osgeo.org/postgis/trunk@7768 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-20 15:43:29 +00:00
Bborie Park 9e587030c8 Corrected incorrect function usage
git-svn-id: http://svn.osgeo.org/postgis/trunk@7767 b70326c6-7e19-0410-871a-916f4a2858ee
2011-08-20 00:54:19 +00:00
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