Commit graph

823 commits

Author SHA1 Message Date
Bborie Park cf1fad5072 Fixed issue where ST_AsRaster() may not return raster with specified
pixel types. Ticket #2100

git-svn-id: http://svn.osgeo.org/postgis/trunk@10710 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-19 23:18:59 +00:00
Bborie Park a267014232 Code cleanup of rt_raster_gdal_rasterize()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10709 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-19 23:18:53 +00:00
Bborie Park a0adf1f20b Refactored internal use variables and functions for rt_raster_iterator()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10708 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-19 23:18:48 +00:00
Bborie Park faab58c46c Added RANGE uniontype option for ST_Union(raster) Ticket #2097
git-svn-id: http://svn.osgeo.org/postgis/trunk@10696 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-16 22:59:46 +00:00
Bborie Park 60bddebf57 Fixed SQL error in regression test
git-svn-id: http://svn.osgeo.org/postgis/trunk@10691 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-16 03:39:42 +00:00
Bborie Park 8aab3b0353 Added docs and regression test for extent parameter variants of
ST_Slope, ST_Aspect and ST_Hillshade

git-svn-id: http://svn.osgeo.org/postgis/trunk@10690 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-16 01:32:10 +00:00
Bborie Park 81d92baf7d If hillshade < 0, hillshade = 0 for ST_HillShade()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10689 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-16 01:32:02 +00:00
Bborie Park 14dfdbfd6b Added variants of ST_Slope, ST_Aspect and ST_Hillshade to provide
support for tiles in a coverage. Ticket is #2078

git-svn-id: http://svn.osgeo.org/postgis/trunk@10688 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-16 01:31:55 +00:00
Bborie Park 67c8c67016 Removed code that is no longer used and updated docs with default
parameters

git-svn-id: http://svn.osgeo.org/postgis/trunk@10629 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-02 20:40:25 +00:00
Bborie Park 596a985b12 Refactored ST_Slope, ST_Aspect and ST_Hillshade() (also their
_st_XXX4ma() functions). Detailed docs for all three functions. Outputs
now in sync with return from ArcGIS. Ticket is #2077

git-svn-id: http://svn.osgeo.org/postgis/trunk@10619 b70326c6-7e19-0410-871a-916f4a2858ee
2012-11-02 17:22:29 +00:00
Bborie Park d4912e50a5 Added missing DROP FUNCTION statements. Ticket #2073
git-svn-id: http://svn.osgeo.org/postgis/trunk@10607 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-31 14:31:00 +00:00
Bborie Park ddcfa9e1e1 Changed when the isnodata check takes place for out-db raster tiles
git-svn-id: http://svn.osgeo.org/postgis/trunk@10603 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-31 00:42:00 +00:00
Bborie Park fcdc4c083e Added SRID check to ST_Neighborhood(raster, geometry)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10586 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-29 22:23:23 +00:00
Bborie Park 2bf4b3c235 Added SRID check for ST_Intersects(geometry, raster)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10585 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-29 22:23:16 +00:00
Bborie Park 36a1a9ab39 Added SRID check of geometry for ST_World2RasterCoord variants
git-svn-id: http://svn.osgeo.org/postgis/trunk@10584 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-29 22:23:05 +00:00
Bborie Park bc1deba176 Added check for SRID match in ST_Value(raster) geometry variant
git-svn-id: http://svn.osgeo.org/postgis/trunk@10583 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-29 22:22:57 +00:00
Bborie Park 2c5af63f64 Set defaults for parameters of ST_Slope(raster). Ticket #1655
git-svn-id: http://svn.osgeo.org/postgis/trunk@10582 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-29 20:14:37 +00:00
Bborie Park 19dc276d02 Added UpdateRasterSRID() as per ticket #739
git-svn-id: http://svn.osgeo.org/postgis/trunk@10581 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-29 18:56:41 +00:00
Bborie Park 6cc3ebb2d4 Rewrite of ST_Clip(raster) to be C-based and updated regression test.
Ticket is #2065

git-svn-id: http://svn.osgeo.org/postgis/trunk@10568 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-26 00:28:10 +00:00
Bborie Park bff55cd99b Fixed default Y-scale to -1 from 1
git-svn-id: http://svn.osgeo.org/postgis/trunk@10567 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-25 23:06:42 +00:00
Bborie Park 34ee5c00a7 Preprocess input geometry for clipping raster by using the intersection
of the input geometry and the convex hull of the raster. Ticket #1989

git-svn-id: http://svn.osgeo.org/postgis/trunk@10551 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-24 22:22:04 +00:00
Bborie Park 04434e7ef9 Added checks to rt_raster_gdal_rasterize() and RASTER_asRaster() where
if input geometry is empty, return empty raster.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10550 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-24 22:21:56 +00:00
Bborie Park ee40807c5a Have ST_Tile() generate out-of-db tile bands if input raster's band is
out-of-db.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10546 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-24 19:22:46 +00:00
Bborie Park 0cfabd61a8 Added "auto" option to -t switch where raster2pgsql can compute a usable
tile size. Added warning message if generated tiles may cause memory
issues.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10541 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-24 16:31:39 +00:00
Bborie Park efb538a7c8 Rearranged function arguments for ST_Tile(raster)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10536 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-23 23:59:02 +00:00
Bborie Park 714e4a202d Added news and docs for ST_Tile(raster). Additional regression tests for
one additional variant of ST_Tile(raster)

git-svn-id: http://svn.osgeo.org/postgis/trunk@10535 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-23 22:44:52 +00:00
Bborie Park 977d30fbfb Added ST_Tile() and regression tests. The circle is complete.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10534 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-23 22:44:42 +00:00
Bborie Park ecfd1ae373 Added rt_band_get_pixel_line() and regression tests
git-svn-id: http://svn.osgeo.org/postgis/trunk@10533 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-23 22:44:28 +00:00
Bborie Park 7457de4d6d Fix POSTGIS_RT_DEBUGF() usage
git-svn-id: http://svn.osgeo.org/postgis/trunk@10522 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-22 19:05:47 +00:00
Bborie Park ba037a2008 Fixed doxygen comment formats
git-svn-id: http://svn.osgeo.org/postgis/trunk@10521 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-22 19:05:40 +00:00
Bborie Park 86e26513e5 Remove unused variables.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10520 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-22 17:20:20 +00:00
Bborie Park b130dcabf4 Cache frequently used variables minimize # of function calls in
rt_raster_iterator()

git-svn-id: http://svn.osgeo.org/postgis/trunk@10519 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-22 17:20:09 +00:00
Bborie Park caab584f72 Include output from gdal-config --dep-libs when building raster2pgsql
git-svn-id: http://svn.osgeo.org/postgis/trunk@10518 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-22 17:20:00 +00:00
Bborie Park f8cea63045 have raster2pgsql check for raster bands being NODATA
git-svn-id: http://svn.osgeo.org/postgis/trunk@10516 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-22 17:19:48 +00:00
Bborie Park fc2e203a2a Tweaked rt_band_check_is_nodata() to make use of rt_band_get_pixel()'s
ability to return flag indicating if value is NODATA

git-svn-id: http://svn.osgeo.org/postgis/trunk@10515 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-22 17:19:41 +00:00
Bborie Park 2714e2635b Final fixes to support band's isnodata flag.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10514 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-22 17:19:35 +00:00
Bborie Park f17f3b3ca9 All functions in core API now support a band's isnodata value.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10513 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-22 17:19:28 +00:00
Bborie Park 781902e9bb Changed signature of rt_band_get_nodata() as there was no way to
indicate an error if the band has no NODATA.

git-svn-id: http://svn.osgeo.org/postgis/trunk@10512 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-22 17:19:20 +00:00
Bborie Park fd53ffe4ef Some work adding proper support for using a band's isnodata flag.
git-svn-id: http://svn.osgeo.org/postgis/trunk@10511 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-22 17:19:11 +00:00
Bborie Park 84999882fb Changed function signature for core API function rt_band_get_pixel() to
indicate if pixel is NODATA

git-svn-id: http://svn.osgeo.org/postgis/trunk@10510 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-22 17:19:04 +00:00
Bborie Park 95cfed94c3 Add variables specifying PostgreSQL CPPFLAGS and LDFLAGS.
Ticket is #2057

git-svn-id: http://svn.osgeo.org/postgis/trunk@10485 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-19 18:49:02 +00:00
Bborie Park 2b065f102c Forgot to wrap tags with <para></para> in reference_raster.xml. Minor
comment cleanup in rt_pg.c

git-svn-id: http://svn.osgeo.org/postgis/trunk@10479 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-19 01:36:44 +00:00
Bborie Park cc58352ad2 Combined the gist spatial relationship tests into
rt_gist_relationships

git-svn-id: http://svn.osgeo.org/postgis/trunk@10474 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-18 23:52:45 +00:00
Bborie Park 313ca7680e Combined all raster GEOS dependent spatial relationship regression tests into
rt_geos_relationships.sql

git-svn-id: http://svn.osgeo.org/postgis/trunk@10473 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-18 23:52:36 +00:00
Bborie Park 085b0d3dfb Clamp SRID when comparing SRIDs of raster vs geometry for geomval
variant of ST_SetValues()

git-svn-id: http://svn.osgeo.org/postgis/trunk@10469 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-18 21:45:33 +00:00
Bborie Park 0b7294f625 Code cleanup in rt_pg/rt_pg.c. Changed point geometry variant of
ST_SetValue() to wrap around geomval variant of ST_SetValues(). This
will result in a behavior change for geometry variant of ST_SetValue().

git-svn-id: http://svn.osgeo.org/postgis/trunk@10466 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-18 21:45:16 +00:00
Bborie Park 8da4897b8c Addition of geomval variants of ST_SetValues() and regression tests.
Added helper function rt_raster_get_inverse_geotransform_matrix().
Additional code cleanup for rt_raster_geopoint_to_cell() and
rt_raster_cell_to_geopoint().

git-svn-id: http://svn.osgeo.org/postgis/trunk@10465 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-18 21:45:06 +00:00
Bborie Park c8280a3eb4 Correct usage of memset()
git-svn-id: http://svn.osgeo.org/postgis/trunk@10460 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-17 19:30:54 +00:00
Bborie Park 8dc51330f8 Addition of ST_DumpValues() and regression tests. Ticket #2011
git-svn-id: http://svn.osgeo.org/postgis/trunk@10457 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-17 16:08:16 +00:00
Bborie Park c9e436d70d Add fallback method of getting maximum extent for extent constraint.
Ticket is #2050

git-svn-id: http://svn.osgeo.org/postgis/trunk@10455 b70326c6-7e19-0410-871a-916f4a2858ee
2012-10-17 14:29:42 +00:00