Commit graph

328 commits

Author SHA1 Message Date
Sandro Santilli f6ed58d1fd Style only change: remove trailing whitespaces
git-svn-id: http://svn.osgeo.org/postgis/trunk@14869 b70326c6-7e19-0410-871a-916f4a2858ee
2016-04-27 14:45:28 +00:00
Paul Ramsey f2b5bf3767 Expunge all trace of rt_init_allocators
git-svn-id: http://svn.osgeo.org/postgis/trunk@14704 b70326c6-7e19-0410-871a-916f4a2858ee
2016-02-26 11:19:07 +00:00
Paul Ramsey b214b12a98 Change from on-the-fly raster context set-up to _PG_init()-driven context set-up, hopefully to address upgrade issues on ubuntu
git-svn-id: http://svn.osgeo.org/postgis/trunk@14694 b70326c6-7e19-0410-871a-916f4a2858ee
2016-02-25 10:08:04 +00:00
Daniel Baston 2465d24e9d #3365, remove code paths for POSTGIS_GEOS_VERSION < 33
git-svn-id: http://svn.osgeo.org/postgis/trunk@14466 b70326c6-7e19-0410-871a-916f4a2858ee
2015-12-01 23:16:41 +00:00
Bborie Park a96eb0893c syntax cleanup
git-svn-id: http://svn.osgeo.org/postgis/trunk@14195 b70326c6-7e19-0410-871a-916f4a2858ee
2015-10-05 17:37:18 +00:00
Regina Obe ffc47387c9 #3315: fix typos in error messages for map algebra mask and provide more descriptive error about dimension mismatch
git-svn-id: http://svn.osgeo.org/postgis/trunk@14185 b70326c6-7e19-0410-871a-916f4a2858ee
2015-10-04 20:47:09 +00:00
Sandro Santilli 39431b11f5 Detect GNU/Hurd and treat it like Linux just as BSD (#3295)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14114 b70326c6-7e19-0410-871a-916f4a2858ee
2015-09-26 10:49:44 +00:00
Sandro Santilli 373ae56e81 Add all missing format attributes under GNUC
Fixes the leftover suggestion warnings from -Wmissing-format-attribute

git-svn-id: http://svn.osgeo.org/postgis/trunk@14063 b70326c6-7e19-0410-871a-916f4a2858ee
2015-09-14 12:13:59 +00:00
Sandro Santilli f2cb3ac519 Move liblwgeom logging functions outside of public header (#1220)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13652 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-11 11:03:03 +00:00
Paul Ramsey 74e84aeae1 #2287, fix regressions with new debug in raster
git-svn-id: http://svn.osgeo.org/postgis/trunk@13619 b70326c6-7e19-0410-871a-916f4a2858ee
2015-06-04 19:45:36 +00:00
Paul Ramsey 870eaef414 Remove the many and unloved $Id$ tags that clutter the code base
git-svn-id: http://svn.osgeo.org/postgis/trunk@13496 b70326c6-7e19-0410-871a-916f4a2858ee
2015-05-13 18:13:18 +00:00
Sandro Santilli d7ac463494 C++ style comments are not allowed in ISO C90
git-svn-id: http://svn.osgeo.org/postgis/trunk@13473 b70326c6-7e19-0410-871a-916f4a2858ee
2015-05-04 08:36:28 +00:00
Paul Ramsey 84abc55b75 Quiet warnings about misuse of abs() / fabs() on
wrong types (new clang in OSX 10.10)


git-svn-id: http://svn.osgeo.org/postgis/trunk@13457 b70326c6-7e19-0410-871a-916f4a2858ee
2015-04-29 15:49:19 +00:00
Sandro Santilli 944a0e4f39 Adapt the rest of the code to the change in LWGEOM2GEOS function
Fixes #2948 (introduced by previous commit)

git-svn-id: http://svn.osgeo.org/postgis/trunk@13019 b70326c6-7e19-0410-871a-916f4a2858ee
2014-10-01 13:13:46 +00:00
Sandro Santilli a389e0a96b Slightly simplify a loop setting projection parameters for gdal warp
git-svn-id: http://svn.osgeo.org/postgis/trunk@12929 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-29 16:37:02 +00:00
Sandro Santilli 790f448d6d Fix output georeference on warping rasters with default georeference
Closes #2911 and re-closes #2251

git-svn-id: http://svn.osgeo.org/postgis/trunk@12928 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-28 15:15:43 +00:00
Regina Obe 8ddee2f9ac #2903 change in #2620 (to support debian freebsd kernel) broke freebsd compilation
git-svn-id: http://svn.osgeo.org/postgis/trunk@12905 b70326c6-7e19-0410-871a-916f4a2858ee
2014-08-22 02:15:03 +00:00
Bborie Park 2ff7023685 ST_Envelope(raster) in C instead of ST_Envelope(ST_ConvexHull(raster)). ticket #2828
git-svn-id: http://svn.osgeo.org/postgis/trunk@12832 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-26 13:47:29 +00:00
Bborie Park e22285d18a fix obsolete URL in headers
git-svn-id: http://svn.osgeo.org/postgis/trunk@12737 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-06 17:32:55 +00:00
Sandro Santilli bbe7b108ec Inline hex conversion of raster wkb in rt_raster_to_hexwkb (#2798)
Speeds up importing large rasters.

git-svn-id: http://svn.osgeo.org/postgis/trunk@12724 b70326c6-7e19-0410-871a-916f4a2858ee
2014-07-04 16:11:49 +00:00
Bborie Park 6042e16a83 basic support for GDAL 2.0
git-svn-id: http://svn.osgeo.org/postgis/trunk@12584 b70326c6-7e19-0410-871a-916f4a2858ee
2014-05-25 19:51:01 +00:00
Bborie Park 7d58fb71bd add VSICURL keyword for GUC postgis.gdal_enabled_drivers. add GUC posgis.enable_outdb_rasters
git-svn-id: http://svn.osgeo.org/postgis/trunk@12492 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-26 14:01:02 +00:00
Bborie Park e79b6ab3fb If GUC postgis.gdal_enabled_drivers = 'DISABLE_ALL', use of GDALOpen and GDALOpenShared is disabled.
git-svn-id: http://svn.osgeo.org/postgis/trunk@12477 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-13 22:02:16 +00:00
Bborie Park 98a3040c2d remove --disable-offline-raster compile flag as by default the GUC postgis.gdal_enabled_drivers is set to DISABLE_ALL
git-svn-id: http://svn.osgeo.org/postgis/trunk@12476 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-13 03:14:14 +00:00
Bborie Park 55e3d2dbb3 Addition of GUC postgis.gdal_enabled_drivers with default set to all GDAL drivers disabled
git-svn-id: http://svn.osgeo.org/postgis/trunk@12474 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-13 03:07:41 +00:00
Bborie Park aa3b68e154 remove some noisy debug messages
git-svn-id: http://svn.osgeo.org/postgis/trunk@12461 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-11 00:08:47 +00:00
Bborie Park fc802115de by default, prevent PostGIS raster from using GDAL drivers that can easily be abused (VRT, MEM, WCS, WMS)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12457 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-10 21:53:49 +00:00
Sandro Santilli fc956aaa28 Do not allow loading offline rasters when explicitly disabled
Previous commit only disabled _saving_ rasters with offline flag,
this one prevents actually loading the offline data.
You can still dump databases with offline raster specs.

git-svn-id: http://svn.osgeo.org/postgis/trunk@12455 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-10 14:35:17 +00:00
Sandro Santilli e6e62b1424 Fix typo in error message
git-svn-id: http://svn.osgeo.org/postgis/trunk@12454 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-10 14:22:59 +00:00
Sandro Santilli f0a6de476a Encode dependency of raster objects on header files
git-svn-id: http://svn.osgeo.org/postgis/trunk@12453 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-10 14:10:03 +00:00
Sandro Santilli 610a37eb20 Add support for disabling offline raster storage at compile time
Adds --disable-offline-raster configure switch
Testsuite fails with offline rasters disabled (could be fixed to
skip offline raster tests)

git-svn-id: http://svn.osgeo.org/postgis/trunk@12450 b70326c6-7e19-0410-871a-916f4a2858ee
2014-04-10 09:18:15 +00:00
Regina Obe 8c094763e8 #2620 allow kFreeBSD to be treated as FreeBSD
git-svn-id: http://svn.osgeo.org/postgis/trunk@12337 b70326c6-7e19-0410-871a-916f4a2858ee
2014-03-22 05:51:08 +00:00
Bborie Park 229548eaa5 Fix the inability to open more than ~1024 unique out-db files in one process
git-svn-id: http://svn.osgeo.org/postgis/trunk@12185 b70326c6-7e19-0410-871a-916f4a2858ee
2014-01-17 03:35:37 +00:00
Bborie Park a89b72f14c Addition of mask parameter for ST_MapAlgebra. Merge of pull request 17 from github. Lots of thanks to nclay for the hard work. Ticket #2341.
git-svn-id: http://svn.osgeo.org/postgis/trunk@12179 b70326c6-7e19-0410-871a-916f4a2858ee
2014-01-07 04:16:00 +00:00
Bborie Park 8c2f1de848 Remove use of void pointers in rt_raster_from_gdal_dataset to prevent void point arithemetics. Ticket #2589
git-svn-id: http://svn.osgeo.org/postgis/trunk@12177 b70326c6-7e19-0410-871a-916f4a2858ee
2014-01-04 17:53:22 +00:00
Bborie Park 4b73954d08 fix parse cleanup of reclassarg and add unit tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@12152 b70326c6-7e19-0410-871a-916f4a2858ee
2013-12-07 14:18:20 +00:00
Bborie Park 1afc0be708 rearrange includes
git-svn-id: http://svn.osgeo.org/postgis/trunk@12151 b70326c6-7e19-0410-871a-916f4a2858ee
2013-12-07 14:18:11 +00:00
Bborie Park dabe55a5f1 code cleanup
git-svn-id: http://svn.osgeo.org/postgis/trunk@12077 b70326c6-7e19-0410-871a-916f4a2858ee
2013-11-02 21:03:12 +00:00
Bborie Park dfd95c1afd changed behavior of how non-spatially referenced rasters are handled
git-svn-id: http://svn.osgeo.org/postgis/trunk@12076 b70326c6-7e19-0410-871a-916f4a2858ee
2013-11-02 21:03:06 +00:00
Bborie Park 7f35d8de48 Change raster license from v3+ to v2+. Ticket #2516
git-svn-id: http://svn.osgeo.org/postgis/trunk@12058 b70326c6-7e19-0410-871a-916f4a2858ee
2013-10-28 18:53:52 +00:00
Bborie Park c9e428f82e Split rt_core/rt_api.c and rt_pg/rt_pg.c into smaller files.
git-svn-id: http://svn.osgeo.org/postgis/trunk@11719 b70326c6-7e19-0410-871a-916f4a2858ee
2013-08-02 19:51:09 +00:00
Bborie Park 9e2d455ebe Grammar fixes for error messages (active vs passive)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11541 b70326c6-7e19-0410-871a-916f4a2858ee
2013-06-11 22:52:01 +00:00
Bborie Park 5fcd1c4e28 Added raster upgrade path from 2.0 to 2.1. Ticket #2348
git-svn-id: http://svn.osgeo.org/postgis/trunk@11523 b70326c6-7e19-0410-871a-916f4a2858ee
2013-06-04 19:18:17 +00:00
Bborie Park 1988ccc896 Fixed issues caught by clang
git-svn-id: http://svn.osgeo.org/postgis/trunk@11488 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-23 22:02:34 +00:00
Bborie Park c7c613a38e Added more predefined color ramps for ST_ColorMap(raster). Removed RGB
<-> HSV colorspace conversion as it sometimes resulted in strange
answers when interpolating.

git-svn-id: http://svn.osgeo.org/postgis/trunk@11411 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-10 22:27:44 +00:00
Bborie Park 2eb335c389 Remove noisy info message. A big source of confusion. Ticket #2309
git-svn-id: http://svn.osgeo.org/postgis/trunk@11410 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-10 22:27:35 +00:00
Bborie Park 46a76d3b39 Addition of ST_ColorMap(raster). Ticket #2290
git-svn-id: http://svn.osgeo.org/postgis/trunk@11392 b70326c6-7e19-0410-871a-916f4a2858ee
2013-05-10 00:09:11 +00:00
Bborie Park bd4596f366 Added parameter to ST_AsBinary(raster) to permit out-db bands to be treated as in-db. Ticket #2222
git-svn-id: http://svn.osgeo.org/postgis/trunk@11320 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-23 23:46:27 +00:00
Bborie Park 972305ae7c Addition of ST_AddBand(raster, ...) for out-db bands. Ticket #2276
git-svn-id: http://svn.osgeo.org/postgis/trunk@11311 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-23 19:32:06 +00:00
Bborie Park 82fedf929f Emit warning when changing a raster's georeference if raster has any
out-db bands. Also updated docs with note. Ticket #2244

git-svn-id: http://svn.osgeo.org/postgis/trunk@11298 b70326c6-7e19-0410-871a-916f4a2858ee
2013-04-15 21:40:34 +00:00