Changes between Version 2 and Version 3 of WKTRaster/SpecificationWorking03


Ignore:
Timestamp:
10/07/09 13:59:38 (15 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking03

    v2 v3  
    2020 
    2121
    22 '''RT_SetSRID(raster|geometry, integer)'''[[BR]]
    23 '''RT_SetPixelType(raster, band, string)'''[[BR]]
    24 '''RT_SetPixelSize(raster)'''[[BR]]
    25 '''RT_SetNoDataValue(raster, band, value)'''[[BR]]
    26 '''RT_SetGeoReference(raster, string)'''
     22'''ST_SetSRID(raster|geometry, integer)'''[[BR]]
     23'''ST_SetPixelType(raster, band, string)'''[[BR]]
     24'''ST_SetPixelSize(raster)'''[[BR]]
     25'''ST_SetNoDataValue(raster, band, value)'''[[BR]]
     26'''ST_SetGeoReference(raster, string)'''
    2727 
    2828----
     
    3030 
    3131
    32 '''RT_Transform(raster|geometry, SRID) -> same type as input'''
     32'''ST_Transform(raster|geometry, SRID) -> same type as input'''
    3333 
    3434----
     
    3636 
    3737
    38 '''RT_Area(raster|geometry) -> double'''[[BR]]
    39 '''RT_Count(raster, value) -> integer'''[[BR]]
    40 '''RT_Resample(raster, pixelsize, method) -> raster'''[[BR]]
    41 '''RT_SelectByValue(raster|geometry, ‘expression’) -> same type as first argument'''[[BR]]
    42 '''RT_Reclass(raster|geometry,string) -> same type as first argument'''[[BR]]
    43 '''RT_MapAlgebra(raster|geometry, [raster|geometry,…], ‘mathematical expression’, ‘raster’ |’geometry’) -> raster/geometry'''[[BR]]
    44 '''RT_Clip(raster|geometry,geometry) -> same type as first argument'''[[BR]]
    45 '''RT_Flip(raster|geometry, ’vertical’|’horizontal’) -> same type as first argument'''
     38'''ST_Area(raster|geometry) -> double'''[[BR]]
     39'''ST_Count(raster, value) -> integer'''[[BR]]
     40'''ST_Resample(raster, pixelsize, method) -> raster'''[[BR]]
     41'''ST_SelectByValue(raster|geometry, ‘expression’) -> same type as first argument'''[[BR]]
     42'''ST_Reclass(raster|geometry,string) -> same type as first argument'''[[BR]]
     43'''ST_MapAlgebra(raster|geometry, [raster|geometry,…], ‘mathematical expression’, ‘raster’ |’geometry’) -> raster/geometry'''[[BR]]
     44'''ST_Clip(raster|geometry,geometry) -> same type as first argument'''[[BR]]
     45'''ST_Flip(raster|geometry, ’vertical’|’horizontal’) -> same type as first argument'''
    4646
    4747
     
    5353 
    5454
    55 '''RT_AsKML(raster|geometry) -> string'''[[BR]]
    56 '''RT_AsSVG(raster|geometry) -> string'''
     55'''ST_AsKML(raster|geometry) -> string'''[[BR]]
     56'''ST_AsSVG(raster|geometry) -> string'''
    5757 
    5858----
     
    6060 
    6161
    62 '''RT_IsEmpty(raster|geometry) -> boolean'''[[BR]]
    63 '''RT_mem_size(raster|geometry) -> integer'''[[BR]]
    64 '''RT_isvalid(raster|geometry) -> boolean'''
     62'''ST_IsEmpty(raster|geometry) -> boolean'''[[BR]]
     63'''ST_mem_size(raster|geometry) -> integer'''[[BR]]
     64'''ST_isvalid(raster|geometry) -> boolean'''
    6565 
    6666----
     
    6868 
    6969
    70 '''RT_Within(raster|geometry A, raster|geometry B)'''[[BR]]
    71 '''RT_Contains(raster|geometry A, raster|geometry B)'''[[BR]]
    72 '''RT_Overlaps(raster|geometry, raster|geometry)'''
     70'''ST_Within(raster|geometry A, raster|geometry B)'''[[BR]]
     71'''ST_Contains(raster|geometry A, raster|geometry B)'''[[BR]]
     72'''ST_Overlaps(raster|geometry, raster|geometry)'''
    7373
    7474----
     
    7979 
    8080
    81 '''RT_Interpolate(points, pixelsize, method) -> raster'''
     81'''ST_Interpolate(points, pixelsize, method) -> raster'''
    8282 
    8383----
     
    8585 
    8686
    87 '''RT_Centroid(raster|geometry) -> point geometry'''[[BR]]
    88 '''RT_PointOnSurface(raster|geometry) -> point geometry'''[[BR]]
    89 '''RT_Buffer(raster|geometry, double) -> same type as first arg.'''[[BR]]
    90 '''RT_ConvexHull(raster|geometry) -> same type as input'''[[BR]]
    91 '''RT_Difference(raster|geometry A, raster|geometry B) -> same type as first argument'''[[BR]]
    92 '''RT_SymDifference(raster|geometry,raster|geometry,‘raster’|’geometry’) -> raster/geometry'''
     87'''ST_Centroid(raster|geometry) -> point geometry'''[[BR]]
     88'''ST_PointOnSurface(raster|geometry) -> point geometry'''[[BR]]
     89'''ST_Buffer(raster|geometry, double) -> same type as first arg.'''[[BR]]
     90'''ST_ConvexHull(raster|geometry) -> same type as input'''[[BR]]
     91'''ST_Difference(raster|geometry A, raster|geometry B) -> same type as first argument'''[[BR]]
     92'''ST_SymDifference(raster|geometry,raster|geometry,‘raster’|’geometry’) -> raster/geometry'''
    9393
    9494
     
    100100 
    101101
    102 '''RT_Equals(raster|geometry, raster|geometry)'''[[BR]]
    103 '''RT_Disjoint(raster|geometry, raster|geometry)'''[[BR]]
    104 '''RT_Touches(raster|geometry, raster|geometry)'''[[BR]]
    105 '''RT_Crosses(raster|geometry, raster|geometry)'''[[BR]]
    106 '''RT_Covers(raster|geometry A, raster|geometry B)'''[[BR]]
    107 '''RT_IsCoveredBy(raster|geometry A, raster|geometry B)'''[[BR]]
    108 '''RT_Relate(raster|geometry, raster|geometry, intersectionPatternMatrix )'''
     102'''ST_Equals(raster|geometry, raster|geometry)'''[[BR]]
     103'''ST_Disjoint(raster|geometry, raster|geometry)'''[[BR]]
     104'''ST_Touches(raster|geometry, raster|geometry)'''[[BR]]
     105'''ST_Crosses(raster|geometry, raster|geometry)'''[[BR]]
     106'''ST_Covers(raster|geometry A, raster|geometry B)'''[[BR]]
     107'''ST_IsCoveredBy(raster|geometry A, raster|geometry B)'''[[BR]]
     108'''ST_Relate(raster|geometry, raster|geometry, intersectionPatternMatrix )'''
    109109 
    110110----
     
    112112 
    113113
    114 '''RT_Value(raster, band, x, y) -> value'''[[BR]]
     114'''ST_Value(raster, band, x, y) -> value'''[[BR]]
    115115Return value of a single pixel. Pixel location is specified by 1-based index of Nth band of raster and X,Y coordinates.[[BR]]
    116 The X coordinate is expected to be in range of [1, RT_Width(raster)] and Y coordinate in range of [1, RT_Height(raster))].
     116The X coordinate is expected to be in range of [1, ST_Width(raster)] and Y coordinate in range of [1, ST_Height(raster))].
    117117Return value is of type of 64-bit float-point number.[[BR]]
    118118'''TODO''': mloskot: Should we return NUMERIC instead of FLOAT8?
    119119
    120120
    121 '''RT_SetValue(raster, band, x, y, value)'''[[BR]]
    122 '''RT_Affine(raster|geometry,…) -> same type as input'''[[BR]]
    123 '''RT_Translate(raster|geometry,…) -> same type as input'''[[BR]]
    124 '''RT_Scale(raster|geometry,…) -> same type as input'''[[BR]]
    125 '''RT_TransScale(raster|geometry,…) -> same type as input'''[[BR]]
    126 '''RT_RotateZ,Y,Z(raster|geometry, float8) -> same type as input'''
     121'''ST_SetValue(raster, band, x, y, value)'''[[BR]]
     122'''ST_Affine(raster|geometry,…) -> same type as input'''[[BR]]
     123'''ST_Translate(raster|geometry,…) -> same type as input'''[[BR]]
     124'''ST_Scale(raster|geometry,…) -> same type as input'''[[BR]]
     125'''ST_TransScale(raster|geometry,…) -> same type as input'''[[BR]]
     126'''ST_RotateZ,Y,Z(raster|geometry, float8) -> same type as input'''
    127127
    128128'''Other functions'''
    129129 
    130130
    131 '''RT_AsBinary(raster, compression)'''[[BR]]
    132 '''RT_RasterFromWKB(raster, [<srid>])'''[[BR]]
    133 '''RT_RasterFromText(string, [<srid>])'''[[BR]]
    134 '''RT_AsText(raster)'''
     131'''ST_AsBinary(raster, compression)'''[[BR]]
     132'''ST_RasterFromWKB(raster, [<srid>])'''[[BR]]
     133'''ST_RasterFromText(string, [<srid>])'''[[BR]]
     134'''ST_AsText(raster)'''
    135135----