Changes between Version 153 and Version 154 of WKTRaster/SpecificationWorking03


Ignore:
Timestamp:
Sep 20, 2011, 7:39:07 AM (13 years ago)
Author:
Bborie Park
Comment:

updates to ST_AsRaster

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking03

    v153 v154  
    3838Special case where a raster may be fully contained within another raster's cell (the entirety of A within a cell of B):
    3939
    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.
     401. 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.
    4141
    42422. if a cell of A does overlap a cell of B, return true.
     
    4646Actual testing involves the use of calculating the intersection of grid lines between A and B
    4747
    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.
     481. Using every third A's column and B's row, calculate the intersection point of each pair of grid lines.
    4949
    50502. 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.
     
    60607. If after all the searching and testing, nothing intersects or touches, return false.
    6161
    62 A set of ST_Intersects functions:
     62A set of ST_Intersects functions for rasters:
    6363
    64641. ST_Intersects(raster rastA, raster rastB, integer bandA DEFAULT NULL, integer bandB DEFAULT NULL) -> boolean
     
    12411241        value double precision[] DEFAULT ARRAY![1]::double precision[],[[BR]]
    12421242        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
    12441245) -> raster
    12451246
     
    12671268
    12681269    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."
    12691272
    12701273''If the number of elements for pixeltype, value and nodataval do not match, the minimum number of elements will be used.''
     
    12771280        nodataval double precision[] DEFAULT ARRAY![0]::double precision[],[[BR]]
    12781281        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
    12801284) -> raster
    12811285
     
    12871291        value double precision[] DEFAULT ARRAY![1]::double precision[],[[BR]]
    12881292        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
    12901295) -> raster
    12911296
     
    12971302        nodataval double precision[] DEFAULT ARRAY![0]::double precision[],[[BR]]
    12981303        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
    13001306) -> raster
    13011307
     
    13071313        value double precision DEFAULT 1,[[BR]]
    13081314        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
    13101317) -> raster
    13111318
     
    13171324        nodataval double precision DEFAULT 0,[[BR]]
    13181325        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
    13201328) -> raster
    13211329
     
    13271335        value double precision DEFAULT 1,[[BR]]
    13281336        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
    13301339) -> raster
    13311340
     
    13371346        nodataval double precision DEFAULT 0,[[BR]]
    13381347        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
    13401350) -> raster
    13411351
     
    13451355        pixeltype text[] DEFAULT ARRAY!['8BUI']::text[],[[BR]]
    13461356        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
    13481359) -> raster
    13491360
     
    13531364        pixeltype text,[[BR]]
    13541365        value double precision DEFAULT 1,[[BR]]
    1355         nodataval double precision DEFAULT 0
     1366        nodataval double precision DEFAULT 0,[[BR]]
     1367        touched boolean DEFAULT FALSE
    13561368) -> raster
    13571369