Changes between Version 54 and Version 55 of WKTRaster/SpecificationWorking01


Ignore:
Timestamp:
Dec 16, 2009, 10:15:15 AM (14 years ago)
Author:
pracine
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WKTRaster/SpecificationWorking01

    v54 v55  
    165165----
    166166== '''Objective 0.1.6e - Being able to intersect vector and raster to produce vector.''' ==
    167  
    168 '''ST_GetBBox(raster) -> polygon geometry'''
    169 
    170 List of similar functions in PostGIS:
    171 
    172 ST_Boundary(geometry) (not really - always return a geometry a dimension lower - i.e. the boundary of a polygon is a polyline.)[[BR]][[BR]]
    173 ST_box(geometry) (return a PostgreSQL box object)[[BR]][[BR]]
    174 ST_box2d(geometry) (return a box2d object)[[BR]][[BR]]
    175 ST_box3d(geometry) (return a box3d object)[[BR]][[BR]]
    176 ST_Envelope(geometry) Returns the minimum bounding box for the supplied geometry, as a geometry. The polygon is defined by the corner points of the bounding box ((MINX, MINY), (MINX, MAXY), (MAXX, MAXY), (MAXX, MINY), (MINX, MINY)). (PostGIS will add a ZMIN/ZMAX coordinate as well). In PostGIS, the bounding box of a geometry is represented internally using float4s instead of float8s that are used to store geometries. The bounding box coordinates are floored, guarenteeing that the geometry is contained entirely within its bounds. This has the advantage that a geometry's bounding box is half the size as the minimum bounding rectangle, which means significantly faster indexes and general performance. But it also means that the bounding box is NOT the same as the minimum bounding rectangle that bounds the geometry.[[BR]][[BR]]
    177 getBBOX(geometry) (Deprecation in 1.2.3)[[BR]]
    178 
    179 List of related functions in PostGIS:
    180 
    181 ST_extent(geometry set)[[BR]][[BR]]
    182 ST_ExteriorRing(geometry)[[BR]][[BR]]
     167
     168List of PostGIS functions similar or related to ST_GetBBox(), ST_Envelope(), ST_Shape():
     169
     170ST_Boundary(geometry) (not really - always return a geometry a dimension lower - i.e. the boundary of a polygon is a polyline.)
     171
     172ST_box(geometry) (return a PostgreSQL box object)
     173
     174ST_box2d(geometry) (return a box2d object)
     175
     176ST_box3d(geometry) (return a box3d object)
     177
     178getBBOX(geometry) (Deprecation in 1.2.3)
     179
     180ST_Envelope(geometry) Returns the minimum bounding box for the supplied geometry, as a geometry. The polygon is defined by the corner points of the bounding box ((MINX, MINY), (MINX, MAXY), (MAXX, MAXY), (MAXX, MINY), (MINX, MINY)). (PostGIS will add a ZMIN/ZMAX coordinate as well). In PostGIS, the bounding box of a geometry is represented internally using float4s instead of float8s that are used to store geometries. The bounding box coordinates are floored, guarenteeing that the geometry is contained entirely within its bounds. This has the advantage that a geometry's bounding box is half the size as the minimum bounding rectangle, which means significantly faster indexes and general performance. But it also means that the bounding box is NOT the same as the minimum bounding rectangle that bounds the geometry.
     181
     182envelope(geometry) (Deprecation in 1.2.3)
     183
     184ST_extent(geometry set)
     185
     186ST_ExteriorRing(geometry)
     187
    183188ST_ConvexHull(geometry)
    184189
    185 
    186 '''ST_Envelope(raster|geometry) -> polygon geometry'''[[BR]]
    187 
    188 List of similar functions in PostGIS:
    189 
    190 ST_Boundary(geometry)[[BR]]
    191 ST_Envelope(geometry)[[BR]]
    192 envelope(geometry) (Deprecation in 1.2.3)[[BR]]
    193 ST_ExteriorRing(geometry)[[BR]]
    194 ST_ConvexHull(geometry)
    195 
    196 List of related functions in PostGIS:
    197 
    198 
    199 
    200 '''ST_Shape(raster) -> polygon geometry'''[[BR]]
    201 '''ST_AsPolygon(raster) -> polygon geometry set'''[[BR]]
    202 '''ST_Intersects(raster|geometry, raster|geometry)'''[[BR]]
    203 '''ST_Intersection(raster|geometry, raster|geometry, ‘raster’|’geometry’)->raster/geometry'''
     190'''ST_GetBBox(raster) -> polygon geometry''' - Replaced with ST_Envelope() since there is no equivalent function in PostGIS.
     191
     192'''ST_Envelope(raster) -> polygon geometry''' Returns the minimum bounding box for the supplied raster, as a geometry. If the raser is rotated, the envelope is a non-rotated box enclosing the rotated raster.
     193
     194'''ST_Shape(raster) -> polygon geometry'''- Replaced with ST_ConvexHull(raster).
     195
     196'''ST_ConvexHull(raster) -> polygon geometry''' Returns the minimum convex geometry that encloses every pixel from the raster.
     197
     198 By default the resulting polygon take the NODATA values into account and enclose only pixels having a value different than the NODATA value. The ST_ConvexHull(raster, 'WITHNODATA') variant do not take the NODATA value into account and generally return a square or rectangle polygon that can be rotated or not. If the raster is not rotated ST_ConvexHull(geometry, 'WITHNODATA') is equivalent to ST_Envelope(raster).
     199
     200'''ST_AsPolygon(raster) -> polygon geometry set''' Returns a
     201
     202'''ST_Intersects(raster|geometry, raster|geometry)'''[[BR]][[BR]]
     203'''ST_Intersection(raster|geometry, raster|geometry, ‘raster’|’geometry’)->raster/geometry'''[[BR]]
    204204
    205205----