Changes between Version 153 and Version 154 of WKTRaster/SpecificationWorking03
- Timestamp:
- 09/20/11 07:39:07 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WKTRaster/SpecificationWorking03
v153 v154 38 38 Special case where a raster may be fully contained within another raster's cell (the entirety of A within a cell of B): 39 39 40 1. using a 3x3 search pattern, test each selected cell's geopoint (excluding no data by default unless exclude_nodata_value = FALSE) of A to that of B for overlap.40 1. using every third pixel by row and column, test each selected cell's geopoint (excluding no data by default unless exclude_nodata_value = FALSE) of A to that of B for overlap. 41 41 42 42 2. if a cell of A does overlap a cell of B, return true. … … 46 46 Actual testing involves the use of calculating the intersection of grid lines between A and B 47 47 48 1. Using A's columns and B's rows in a 3x3 search pattern, calculate the intersection point of each pair of grid lines.48 1. Using every third A's column and B's row, calculate the intersection point of each pair of grid lines. 49 49 50 50 2. If intersection point doesn't exist or is outside the bounds of the end points comprising each grid line used, go back to step 1. … … 60 60 7. If after all the searching and testing, nothing intersects or touches, return false. 61 61 62 A set of ST_Intersects functions :62 A set of ST_Intersects functions for rasters: 63 63 64 64 1. ST_Intersects(raster rastA, raster rastB, integer bandA DEFAULT NULL, integer bandB DEFAULT NULL) -> boolean … … 1241 1241 value double precision[] DEFAULT ARRAY![1]::double precision[],[[BR]] 1242 1242 nodataval double precision[] DEFAULT ARRAY![0]::double precision[],[[BR]] 1243 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0 1243 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0,[[BR]] 1244 touched boolean DEFAULT FALSE 1244 1245 ) -> raster 1245 1246 … … 1267 1268 1268 1269 skewy: the skew along the Y axis of the raster. by default, the skew along the X axis is zero. 1270 1271 touched: from the GDAL man page for gdal_rasterize: "Enables the ALL_TOUCHED rasterization option so that all pixels touched by lines or polygons will be updated not just those one the line render path, or whose center point is within the polygon. Defaults to disabled for normal rendering rules." 1269 1272 1270 1273 ''If the number of elements for pixeltype, value and nodataval do not match, the minimum number of elements will be used.'' … … 1277 1280 nodataval double precision[] DEFAULT ARRAY![0]::double precision[],[[BR]] 1278 1281 upperleftx double precision DEFAULT NULL, upperlefty double precision DEFAULT NULL,[[BR]] 1279 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0 1282 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0,[[BR]] 1283 touched boolean DEFAULT FALSE 1280 1284 ) -> raster 1281 1285 … … 1287 1291 value double precision[] DEFAULT ARRAY![1]::double precision[],[[BR]] 1288 1292 nodataval double precision[] DEFAULT ARRAY![0]::double precision[],[[BR]] 1289 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0 1293 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0,[[BR]] 1294 touched boolean DEFAULT FALSE 1290 1295 ) -> raster 1291 1296 … … 1297 1302 nodataval double precision[] DEFAULT ARRAY![0]::double precision[],[[BR]] 1298 1303 upperleftx double precision DEFAULT NULL, upperlefty double precision DEFAULT NULL,[[BR]] 1299 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0 1304 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0,[[BR]] 1305 touched boolean DEFAULT FALSE 1300 1306 ) -> raster 1301 1307 … … 1307 1313 value double precision DEFAULT 1,[[BR]] 1308 1314 nodataval double precision DEFAULT 0,[[BR]] 1309 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0[[BR]] 1315 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0,[[BR]] 1316 touched boolean DEFAULT FALSE 1310 1317 ) -> raster 1311 1318 … … 1317 1324 nodataval double precision DEFAULT 0,[[BR]] 1318 1325 upperleftx double precision DEFAULT NULL, upperlefty double precision DEFAULT NULL,[[BR]] 1319 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0 1326 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0,[[BR]] 1327 touched boolean DEFAULT FALSE 1320 1328 ) -> raster 1321 1329 … … 1327 1335 value double precision DEFAULT 1,[[BR]] 1328 1336 nodataval double precision DEFAULT 0,[[BR]] 1329 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0 1337 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0,[[BR]] 1338 touched boolean DEFAULT FALSE 1330 1339 ) -> raster 1331 1340 … … 1337 1346 nodataval double precision DEFAULT 0,[[BR]] 1338 1347 upperleftx double precision DEFAULT NULL, upperlefty double precision DEFAULT NULL,[[BR]] 1339 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0 1348 skewx double precision DEFAULT 0, skewy double precision DEFAULT 0,[[BR]] 1349 touched boolean DEFAULT FALSE 1340 1350 ) -> raster 1341 1351 … … 1345 1355 pixeltype text[] DEFAULT ARRAY!['8BUI']::text[],[[BR]] 1346 1356 value double precision[] DEFAULT ARRAY![1]::double precision[],[[BR]] 1347 nodataval double precision[] DEFAULT ARRAY![0]::double precision[] 1357 nodataval double precision[] DEFAULT ARRAY![0]::double precision[],[[BR]] 1358 touched boolean DEFAULT FALSE 1348 1359 ) -> raster 1349 1360 … … 1353 1364 pixeltype text,[[BR]] 1354 1365 value double precision DEFAULT 1,[[BR]] 1355 nodataval double precision DEFAULT 0 1366 nodataval double precision DEFAULT 0,[[BR]] 1367 touched boolean DEFAULT FALSE 1356 1368 ) -> raster 1357 1369