Changes between Version 41 and Version 42 of WKTRaster/SpecificationFinal01


Ignore:
Timestamp:
Sep 3, 2010, 10:27:01 AM (14 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationFinal01

    v41 v42  
    340340
    341341----
    342 == '''Objective 0.1.6i - Being able to quickly get metadata for raster and band.''' ==
     342== '''Objective 0.1.6h - Being able to quickly get metadata for raster and band.''' ==
    343343
    344344'''ST_Metadata(raster) -> record'''[[BR]]
     
    351351
    352352It should be used like this: "SELECT (bmd).* FROM (SELECT ST_BandMetadata(rast) AS bmd FROM myrastertable) foo"
     353
     354----
     355== '''Objective 0.1.6i - Being able to easily convert world coordinates to raster coordinates.''' ==
     356
     357'''ST_World2RasterCoordX(rast raster, xw float8, yw float8)'''[[BR]]
     358Returns the column number of the pixel covering the provided X and Y world coordinates.
     359This function works even if the world coordinates are outside the raster extent.
     360
     361'''ST_World2RasteCoordX(rast raster, xw float8)'''[[BR]]
     362Returns the column number of the pixels covering the provided world X coordinate for a non-rotated raster.
     363This function works even if the world coordinate is outside the raster extent.
     364This function returns an error if the raster is rotated. In this case you must also provide a Y.
     365
     366'''ST_World2RasterCoordX(rast raster, pt geometry)'''[[BR]]
     367Returns the column number of the pixel covering the provided point geometry.
     368This function works even if the point is outside the raster extent.
     369
     370'''ST_World2RasterCoordY(rast raster, xw float8, yw float8)'''[[BR]]
     371Returns the row number of the pixel covering the provided X and Y world coordinates.
     372This function works even if the world coordinates are outside the raster extent.
     373
     374'''ST_World2RasterCoordY(rast raster, yw float8)'''[[BR]]
     375Returns the row number of the pixels covering the provided world Y coordinate for a non-rotated raster.
     376This function works even if the world coordinate is outside the raster extent.
     377This function returns an error if the raster is rotated. In this case you must also provide an X.
     378
     379'''ST_World2RasterCoordY(rast raster, pt geometry)'''[[BR]]
     380Returns the row number of the pixel covering the provided point geometry.
     381This function works even if the point is outside the raster extent.
     382
     383'''ST_Raster2WorldCoordX(rast raster, xr int, yr int)'''[[BR]]
     384Returns the X world coordinate of the upper left corner of the pixel located at the provided column and row numbers.
     385This function works even if the provided raster column and row are beyond or below the raster width and height.
     386
     387
     388'''ST_Raster2WorldCoordX(rast raster, xr int)'''[[BR]]
     389Returns the X world coordinate of the upper left corner of the pixel located at the provided column number for a non-rotated raster.
     390This function works even if the provided raster column is beyond or below the raster width.
     391This function returns an error if the raster is rotated. In this case you must also provide a Y.
     392
     393'''ST_Raster2WorldCoordY(rast raster, xr int, yr int)'''[[BR]]
     394Returns the Y world coordinate of the upper left corner of the pixel located at
     395the provided column and row numbers.
     396This function works even if the provided raster column and row are beyond or below the raster width and height.
     397
     398'''ST_Raster2WorldCoordY(rast raster, yr int)'''[[BR]]
     399Returns the Y world coordinate of the upper left corner of the pixel located at the provided row number for a non-rotated raster.
     400This function works even if the provided raster row is beyond or below the raster height.
     401This function returns an error if the raster is rotated. In this case you must
     402also provide an X.
    353403
    354404----