Bborie Park
885d19a614
Initialize variables that may cause compile-time warnings in rt_api.c. Added additional NLS items to raster2pgsql.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9436 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-09 19:00:25 +00:00
Paul Ramsey
987e550427
Remove reliance on pwd
for raster build and test.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9423 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-07 20:38:53 +00:00
Bborie Park
fa08dbe28d
Slightly more verbose error message for when rt_raster_gdal_rasterize() is unable to have an OSR object project a provided srs text.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9413 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-07 04:28:02 +00:00
Bborie Park
453e944c85
Fixed problem with passing PROJ.4 text to GDAL which may result in SRS WKT that is NOT what is desired. Now preferentially use EPSG:SRID if available. Ticket is #1618 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9386 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-02 19:00:44 +00:00
Regina Obe
5a7f227459
#1630 Add missing permutations of st_clip that exist in older versions so trimraster can be renamed to crop
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9384 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-02 14:36:33 +00:00
Bborie Park
c4d679a6d6
Add handling of when clamped pixel values is equal to the band's clamped NODATA value. Ticket is #1139 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9380 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-02 01:15:35 +00:00
David Zwarg
c566325249
Added regression test for error case reported in #1638 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9379 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-01 22:25:12 +00:00
Bborie Park
da2ddaa065
Refactored how skewed rasters are computed as the extents were not correct. Rewrote parts of rt_raster_gdal_warp and rt_raster_gdal_rasterize. Related ticket is #1615 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9378 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-01 22:17:28 +00:00
Bborie Park
4e0e8a5948
Update regression tests for 1-raster ST_MapAlgebraExpr due to commit r9371
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9373 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-01 16:47:20 +00:00
Pierre Racine
e15f24052c
Fix for ticket #1635 . Added explicit ~ and && operators on raster and geometry.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9372 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-01 16:47:18 +00:00
Bborie Park
64af0eb823
Forced casting of output from 1-raster ST_MapAlgebraExpr. Ticket is #1639 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9371 b70326c6-7e19-0410-871a-916f4a2858ee
2012-03-01 15:59:39 +00:00
Sandro Santilli
72348611c8
Get the deprecated function right (fixes previous commit)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9351 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-29 14:20:41 +00:00
Sandro Santilli
614e2333f7
Drop removed st_clip function ( #1630 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9350 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-29 14:14:19 +00:00
Sandro Santilli
fb3211b4b3
Do not install intermediary files ( #1621 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9349 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-29 13:52:38 +00:00
Regina Obe
3bb5d43a84
#1630 : Swap the order of dropping - you have to drop the function first before the type
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9342 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-29 09:00:10 +00:00
Pierre Racine
3faa5d9980
git-svn-id: http://svn.osgeo.org/postgis/trunk@9339 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-29 03:01:03 +00:00
Pierre Racine
82dd3e883c
Fix for ticket 1536. Added a nodataval[] parameter to ST_Intersection and removed the otheruserfunc one.
...
Changed the ST_Clip trimraster parameter name to crop and set it to true by default.
Updated the doc.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9336 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-29 02:47:35 +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
28e6d5972f
Set appropriate mime types and text file types on all files. ( #1605 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9323 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 20:58:36 +00:00
Bborie Park
2ea489449e
Correct handling of 8BSI pixel types when converting a raster to a GDAL MEM dataset. This should resolve the failures in #1617 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9313 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 16:42:03 +00:00
Sandro Santilli
73a51386c1
Have postgis_raster_lib_version() include SVN revision ( #1608 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9309 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 15:39:11 +00:00
Sandro Santilli
0ea1f1c6dd
st_clip signature changed ( #1620 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9308 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 15:26:48 +00:00
Sandro Santilli
71768cdaeb
Add postgis_raster_scripts_installed() function ( #1608 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9307 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-27 15:03:06 +00:00
Bborie Park
daa8db9ca9
Additional test of rt_raster_to_gdal().
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9303 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-26 18:31:38 +00:00
Paul Ramsey
154d3402be
Compress sed calls into one to make life better for MSYS
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9300 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-25 19:46:00 +00:00
Bborie Park
abc24ff5a2
Forgot to update regression tests for changes made in r9293
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9294 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 23:42:58 +00:00
Bborie Park
3f456ff50a
Fixed conversion of pixel types between PostGIS raster and GDAL. Essentially PostGIS raster 8BSI is now a GDT_Int16.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9293 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 22:54:10 +00:00
Bborie Park
d1a99c694b
Additional fixups to not increase extent if an alignment is to take place in rt_raster_gdal_rasterize().
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9289 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 19:24:02 +00:00
Bborie Park
9d9c19d7c1
Added additional conditions for rt_raster_gdal_rasterize() determining when to expand the extent.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9286 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 17:33:48 +00:00
Bborie Park
c91f947cf4
Set all raster CASTs to be ASSIGNMENT not IMPLICIT. Related ticket is #490 . Knowing my luck, I'll be reverting this due to some showstopper.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9282 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-24 05:05:25 +00:00
Bborie Park
5bb4a73a5f
Added correct handling of negative scale-x and positive scale-y in rt_raster_gdal_warp().
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9281 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-23 22:25:54 +00:00
Bborie Park
dea913f123
Renamed rt_raster_dump_as_wktpolygons() to rt_raster_gdal_polygonize(). Refactored rt_raster_gdal_polygonize() to use LWPOLY objects instead of WKT strings. Also added cleanup code to make invalid dumped geometries valid. Associated tickets are #1586 and #637 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9280 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-23 21:49:51 +00:00
Bborie Park
4f3020d1b5
Rewrote chunks of rt_raster_gdal_warp() and rt_raster_gdal_rasterize() to correctly generate skewed rasters. Related ticket is #1395 . This should also resolve #1586 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9271 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-22 23:06:26 +00:00
Paul Ramsey
46bbc14bfb
Switch to evaluating tests using psql with verbosity=terse
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9260 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-22 18:59:09 +00:00
Pierre Racine
e0e08530de
Ticket #1536 . First revision of st_intersection(). Removal of the extent parameter and first documentation.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9229 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-17 20:52:41 +00:00
Pierre Racine
06aa92b83e
Fix for #1576 & #1569 . ST_Clip now works on multiband rasters and accept an array of nodata values.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9195 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-15 19:28:31 +00:00
Bborie Park
add85641d3
Readded rt_clip regression test.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9188 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-14 17:47:12 +00:00
Bborie Park
ce290556e6
Fixed handling of negative X-scale or positive Y-scale in rt_raster_gdal_rasterize(). Ticket is #1574 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9187 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-14 17:29:45 +00:00
David Zwarg
7db166f084
Reverting changes that optimize ST_MapAlgebraExpr. Re-advertise x and y parameters as int32. Reverts changes from r9137, closes #1557 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9185 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-14 17:00:00 +00:00
Pierre Racine
ee19eb5332
Temporarily remove st_clip regress...
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9183 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 22:46:36 +00:00
Pierre Racine
8d55a8d413
Closing ticket #597 . Added regression tests for ST_Clip. More tests to come when fixing #1576 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9181 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 21:58:53 +00:00
Pierre Racine
2799a2ed80
Fix for ticket #1572 . ST_PixelAsPolygons() return NULL values when the requested band or no band exist.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9176 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 18:28:45 +00:00
Pierre Racine
d4590827ad
Fix regression broken by the limit imposed to SRID < 999999. Anyway the srid provided was not the right one. Changed from 4269 to 26919.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9169 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 15:43:16 +00:00
Paul Ramsey
17215f5474
Fix regression in OSX (-0 vs 0)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9156 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-11 16:08:26 +00:00
Bborie Park
9369f89557
Added checks of SRID to make sure that SRIDs are within the permitted range. Ticket is #1568 .
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9154 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-10 23:33:37 +00:00
Pierre Racine
d6e3ca4dd2
Fix for ticket #1569 . ST_Clip variants defaulting to band 1 should default to NULL so that they return all bands.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9152 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-10 22:36:14 +00:00
Pierre Racine
e31905a418
ST_PixelAsPolygon() does not have a band parameter anymore.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9148 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-10 18:46:48 +00:00
David Zwarg
5644708326
Performance improvement by keeping x and y pixel coordinates as floats.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9137 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-09 20:12:18 +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