Tuesday, May 25, 2010

PostGIS SQL-MM Compliant Functions

The functions given below are PostGIS functions that conform to the SQL/MM 3 standard

  • ST_Area – Returns the area of the geometry if it is a polygon or multi-polygon. This method implements the SQL/MM specification: SQL-MM 3: 8.1.2, 9.5.3
  • ST_AsBinary – Return the Well-Known Binary (WKB) representation of the geometry without SRID meta data. This method implements the SQL/MM specification: SQL-MM 3: 5.1.37
  • ST_AsText – Return the Well-Known Text (WKT) representation of the geometry without SRID metadata. This method implements the SQL/MM specification: SQL-MM 3: 5.1.25
  • ST_Boundary – Returns the closure of the combinatorial boundary of this Geometry. This method implements the SQL/MM specification: SQL-MM 3: 5.1.14
  • ST_Buffer – Returns a geometry that represents all points whose distance from this Geometry is less than or equal to distance. Calculations are in the Spatial Reference System of this Geometry. The optional third parameter sets the number of segments used to approximate a quarter circle (defaults to 8). This method implements the SQL/MM specification: SQL-MM 3: 5.1.17
  • ST_Centroid – Returns the geometric center of a geometry. This method implements the SQL/MM specification: SQL-MM 3: 8.1.4, 9.5.5
  • ST_Contains – Returns true if and only if no points of B lie in the exterior of A, and at least one point of the interior of B lies in the interior of A. This method implements the SQL/MM specification: SQL-MM 3: 5.1.31
  • ST_ConvexHull – The convex hull of a geometry represents the minimum convex geometry that encloses all geometries within the set. This method implements the SQL/MM specification: SQL-MM 3: 5.1.16
  • ST_CoordDim – Return the coordinate dimension of the ST_Geometry value. This method implements the SQL/MM specification: SQL-MM 3: 5.1.3
  • ST_Crosses – Returns TRUE if the supplied geometries have some, but not all, interior points in common. This method implements the SQL/MM specification: SQL-MM 3: 5.1.29
  • ST_CurveToLine – Converts a CIRCULARSTRING/CURVEDPOLYGON to a LINESTRING/POLYGON This method implements the SQL/MM specification: SQL-MM 3: 7.1.7
  • ST_Difference – Returns a geometry that represents that part of geometry A that does not intersect with geometry B. This method implements the SQL/MM specification: SQL-MM 3: 5.1.20
  • ST_Dimension – The inherent dimension of this Geometry object, which must be less than or equal to the coordinate dimension. This method implements the SQL/MM specification: SQL-MM 3: 5.1.2
  • ST_Disjoint – Returns TRUE if the Geometries do not “spatially intersect” – if they do not share any space together. This method implements the SQL/MM specification: SQL-MM 3: 5.1.26
  • ST_Distance – Returns the 2-dimensional cartesian minimum distance between two geometries in projected units. This method implements the SQL/MM specification: SQL-MM 3: 5.1.23
  • ST_EndPoint – Returns the last point of a LINESTRING geometry as a POINT. This method implements the SQL/MM specification: SQL-MM 3: 7.1.4
  • ST_Envelope – Returns a geometry representing the bounding box of the supplied geometry. This method implements the SQL/MM specification: SQL-MM 3: 5.1.15
  • ST_Equals – Returns true if the given geometries represent the same geometry. Directionality is ignored. This method implements the SQL/MM specification: SQL-MM 3: 5.1.24
  • ST_ExteriorRing – Returns a line string representing the exterior ring of the POLYGON geometry. Return NULL if the geometry is not a polygon. Will not work with MULTIPOLYGON This method implements the SQL/MM specification: SQL-MM 3: 8.2.3, 8.3.3
  • ST_GeomCollFromText – Makes a collection Geometry from collection WKT with the given SRID. If SRID is not give, it defaults to -1. This method implements the SQL/MM specification: ?
  • ST_GeomFromText – Return a specified ST_Geometry value from Well-Known Text representation (WKT). This method implements the SQL/MM specification: SQL-MM 3: 5.1.40
  • ST_GeomFromWKB – Creates a geometry instance from a Well-Known Binary geometry representation (WKB) and optional SRID. This method implements the SQL/MM specification: SQL-MM 3: 5.1.41
  • ST_GeometryFromText – Return a specified ST_Geometry value from Well-Known Text representation (WKT). This is an alias name for ST_GeomFromText This method implements the SQL/MM specification: SQL-MM 3: 5.1.40
  • ST_GeometryN – Return the 1-based Nth geometry if the geometry is a GEOMETRYCOLLECTION, MULTIPOINT, MULTILINESTRING, MULTICURVE or MULTIPOLYGON. Otherwise, return NULL. This method implements the SQL/MM specification: SQL-MM 3: 9.1.5
  • ST_GeometryType – Return the geometry type of the ST_Geometry value. This method implements the SQL/MM specification: SQL-MM 3: 5.1.4
  • ST_InteriorRingN – Return the Nth interior linestring ring of the polygon geometry. Return NULL if the geometry is not a polygon or the given N is out of range. This method implements the SQL/MM specification: SQL-MM 3: 8.2.6, 8.3.5
  • ST_Intersection – Returns a geometry that represents the shared portion of geomA and geomB This method implements the SQL/MM specification: SQL-MM 3: 5.1.18
  • ST_Intersects – Returns TRUE if the Geometries “spatially intersect” – (share any portion of space) and FALSE if they don’t (they are Disjoint). This method implements the SQL/MM specification: SQL-MM 3: 5.1.27
  • ST_IsClosed – Returns TRUE if the LINESTRING’s start and end points are coincident. This method implements the SQL/MM specification: SQL-MM 3: 7.1.5, 9.3.3
  • ST_IsEmpty – Returns true if this Geometry is an empty geometry . If true, then this Geometry represents the empty point set – i.e. GEOMETRYCOLLECTION(EMPTY). This method implements the SQL/MM specification: SQL-MM 3: 5.1.7
  • ST_IsRing – Returns TRUE if this LINESTRING is both closed and simple. This method implements the SQL/MM specification: SQL-MM 3: 7.1.6
  • ST_IsSimple – Returns (TRUE) if this Geometry has no anomalous geometric points, such as self intersection or self tangency. This method implements the SQL/MM specification: SQL-MM 3: 5.1.8
  • ST_IsValid – Returns true if the ST_Geometry is well formed. This method implements the SQL/MM specification: SQL-MM 3: 5.1.9
  • ST_Length – Returns the 2d length of the geometry if it is a linestring or multilinestring. This method implements the SQL/MM specification: SQL-MM 3: 7.1.2, 9.3.4
  • ST_LineFromText – Makes a Geometry from WKT representation with the given SRID. If SRID is not given, it defaults to -1. This method implements the SQL/MM specification: SQL-MM 3: 7.2.8
  • ST_LineFromWKB – Makes a LINESTRING from WKB with the given SRID This method implements the SQL/MM specification: SQL-MM 3: 7.2.9
  • ST_LinestringFromWKB – Makes a geometry from WKB with the given SRID. This method implements the SQL/MM specification: SQL-MM 3: 7.2.9
  • ST_M – Return the M coordinate of the point, or NULL if not available. Input must be a point. This method implements the SQL/MM specification: SQL-MM 3 New standard: ?
  • ST_MLineFromText – Return a specified ST_MultiLineString value from WKT representation. This method implements the SQL/MM specification: SQL-MM 3: 9.4.4
  • ST_MPointFromText – Makes a Geometry from WKT with the given SRID. If SRID is not give, it defaults to -1. This method implements the SQL/MM specification: SQL-MM 3: 9.2.4
  • ST_MPolyFromText – Makes a MultiPolygon Geometry from WKT with the given SRID. If SRID is not give, it defaults to -1. This method implements the SQL/MM specification: SQL-MM 3: 9.6.4
  • ST_NumGeometries – If geometry is a GEOMETRYCOLLECTION (or MULTI*) return the number of geometries, otherwise return NULL. This method implements the SQL/MM specification: SQL-MM 3: 9.1.4
  • ST_NumInteriorRing – Return the number of interior rings of the first polygon in the geometry. Synonym to ST_NumInteriorRings. This method implements the SQL/MM specification: SQL-MM 3: 8.2.5
  • ST_NumInteriorRings – Return the number of interior rings of the first polygon in the geometry. This will work with both POLYGON and MULTIPOLYGON types but only looks at the first polygon. Return NULL if there is no polygon in the geometry. This method implements the SQL/MM specification: SQL-MM 3: 8.2.5
  • ST_NumPoints – Return the number of points in an ST_LineString or ST_CircularString value. This method implements the SQL/MM specification: SQL-MM 3: 7.2.4
  • ST_OrderingEquals – Returns true if the given geometries represent the same geometry and points are in the same directional order. This method implements the SQL/MM specification: SQL-MM 3: 5.1.43
  • ST_Overlaps – Returns TRUE if the Geometries share space, are of the same dimension, but are not completely contained by each other. This method implements the SQL/MM specification: SQL-MM 3: 5.1.32
  • ST_Perimeter – Return the length measurement of the boundary of an ST_Surface or ST_MultiSurface value. (Polygon, Multipolygon) This method implements the SQL/MM specification: SQL-MM 3: 8.1.3, 9.5.4
  • ST_Point – Returns an ST_Point with the given coordinate values. OGC alias for ST_MakePoint. This method implements the SQL/MM specification: SQL-MM 3: 6.1.2
  • ST_PointFromText – Makes a point Geometry from WKT with the given SRID. If SRID is not given, it defaults to unknown. This method implements the SQL/MM specification:SQL-MM 3: 6.1.8
  • ST_PointFromWKB – Makes a geometry from WKB with the given SRID This method implements the SQL/MM specification: SQL-MM 3: 6.1.9
  • ST_PointN – Return the Nth point in the first linestring or circular linestring in the geometry. Return NULL if there is no linestring in the geometry. This method implements the SQL/MM specification: SQL-MM 3: 7.2.5, 7.3.5
  • ST_PointOnSurface – Returns a POINT guaranteed to lie on the surface. This method implements the SQL/MM specification: SQL-MM 3: 8.1.5, 9.5.6. According to the specs, ST_PointOnSurface works for surface geometries (POLYGONs, MULTIPOLYGONS, CURVED POLYGONS). So PostGIS seems to be extending what the spec allows here. Most databases Oracle,DB II, ESRI SDE seem to only support this function for surfaces. SQL Server 2008 like PostGIS supports for all common geometries.
  • ST_Polygon – Returns a polygon built from the specified linestring and SRID. This method implements the SQL/MM specification: SQL-MM 3: 8.3.2
  • ST_PolygonFromText – Makes a Geometry from WKT with the given SRID. If SRID is not give, it defaults to -1. This method implements the SQL/MM specification: SQL-MM 3: 8.3.6
  • ST_Relate – Returns true if this Geometry is spatially related to anotherGeometry, by testing for intersections between the Interior, Boundary and Exterior of the two geometries as specified by the values in the intersectionMatrixPattern. If no intersectionMatrixPattern is passed in, then returns the maximum intersectionMatrixPattern that relates the 2 geometries. This method implements the SQL/MM specification: SQL-MM 3: 5.1.25
  • ST_SRID – Returns the spatial reference identifier for the ST_Geometry as defined in spatial_ref_sys table. This method implements the SQL/MM specification: SQL-MM 3: 5.1.5
  • ST_StartPoint – Returns the first point of a LINESTRING geometry as a POINT. This method implements the SQL/MM specification: SQL-MM 3: 7.1.3
  • ST_SymDifference – Returns a geometry that represents the portions of A and B that do not intersect. It is called a symmetric difference because ST_SymDifference(A,B) = ST_SymDifference(B,A). This method implements the SQL/MM specification: SQL-MM 3: 5.1.21
  • ST_Touches – Returns TRUE if the geometries have at least one point in common, but their interiors do not intersect. This method implements the SQL/MM specification: SQL-MM 3: 5.1.28
  • ST_Transform – Returns a new geometry with its coordinates transformed to the SRID referenced by the integer parameter. This method implements the SQL/MM specification: SQL-MM 3: 5.1.6
  • ST_Union – Returns a geometry that represents the point set union of the Geometries. This method implements the SQL/MM specification: SQL-MM 3: 5.1.19
  • ST_WKBToSQL – Return a specified ST_Geometry value from Well-Known Binary representation (WKB). This is an alias name for ST_GeomFromWKB that takes no srid This method implements the SQL/MM specification: SQL-MM 3: 5.1.36
  • ST_WKTToSQL – Return a specified ST_Geometry value from Well-Known Text representation (WKT). This is an alias name for ST_GeomFromText This method implements the SQL/MM specification: SQL-MM 3: 5.1.34
  • ST_Within – Returns true if the geometry A is completely inside geometry B This method implements the SQL/MM specification: SQL-MM 3: 5.1.30
  • ST_X – Return the X coordinate of the point, or NULL if not available. Input must be a point. This method implements the SQL/MM specification: SQL-MM 3 standard: SQL-MM 3: 6.1.3
  • ST_Y – Return the Y coordinate of the point, or NULL if not available. Input must be a point. This method implements the SQL/MM specification: SQL-MM 3 standard: SQL-MM 3: 6.1.4
  • ST_Z – Return the Z coordinate of the point, or NULL if not available. Input must be a point. This method implements the SQL/MM specification: SQL-MM 3 standard New Spec: ?

No comments:

Post a Comment

Pages

About Me

My photo
- A competent M.S. Software Engineer and B.E. (Comp) with 6 years of rich experience in Java/ C / C++ / Oracle/PHP/Postgresql/Mysql in IT industry.
- Resourceful in developing Applications with various platforms and different domains.
A strategic planner with expertise in designing internal control systems towards the accomplishment of corporate business goals.
- A keen analyst with exceptional relationship management skills and abilities in liaising with different clients.
- Team player with excellent analytical and communications skills.
Worked with development projects with software brands like Cognizant and Infosys
Specialties
- Master in struts
- Good hands on in core Java
- Understanding of other building blocks of Enterprise applications like middle ware technologies.
- Knowledge of database like Oracle,postgresql,mysql