Sqlserver Guide

2
PostGIS 1.5.1 Manual 275 / 315 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 - (T) For geometry: 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. For geography: Uses a planar transform wrapper. Introduced in 1.5 support for different end cap and mitre settings to control shape. buffer_style options: quad_segs=#,endcap=round|flat|square,join=round|mitre|bevel,mitre_limit=#.# This method implements the SQL/MM specifi- cation. 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 specifi- cation. 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 im- plements 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 - For geometry type Returns the 2-dimensional cartesian minimum distance (based on spatial ref) between two geometries in projected units. For geography type defaults to return spheroidal minimum distance between two geographies in meters. 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 speci- fication. SQL-MM 3: 7.1.4 ST_Envelope - Returns a geometry representing the double precision (float8) 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 imple- ments 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_GMLToSQL - Return a specified ST_Geometry value from GML representation. This is an alias name for ST_GeomFromGML This method implements the SQL/MM specification. SQL-MM 3: 5.1.50 (except for curves support). 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

description

sqlserver guide

Transcript of Sqlserver Guide

Page 1: Sqlserver Guide

PostGIS 1.5.1 Manual275 / 315

• ST_Boundary - Returns the closure of the combinatorial boundary of this Geometry. This method implements the SQL/MMspecification. SQL-MM 3: 5.1.14

• ST_Buffer - (T) For geometry: Returns a geometry that represents all points whose distance from this Geometry is less thanor equal to distance. Calculations are in the Spatial Reference System of this Geometry. For geography: Uses a planartransform wrapper. Introduced in 1.5 support for different end cap and mitre settings to control shape. buffer_style options:quad_segs=#,endcap=round|flat|square,join=round|mitre|bevel,mitre_limit=#.# This method implements the SQL/MM specifi-cation. 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 liesin 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 withinthe 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 specifi-cation. SQL-MM 3: 5.1.3

• ST_Crosses - Returns TRUE if the supplied geometries have some, but not all, interior points in common. This methodimplements the SQL/MM specification. SQL-MM 3: 5.1.29

• ST_CurveToLine - Converts a CIRCULARSTRING/CURVEDPOLYGON to a LINESTRING/POLYGON This method im-plements 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. Thismethod 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. Thismethod implements the SQL/MM specification. SQL-MM 3: 5.1.26

• ST_Distance - For geometry type Returns the 2-dimensional cartesian minimum distance (based on spatial ref) between twogeometries in projected units. For geography type defaults to return spheroidal minimum distance between two geographies inmeters. 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 speci-fication. SQL-MM 3: 7.1.4

• ST_Envelope - Returns a geometry representing the double precision (float8) bounding box of the supplied geometry. Thismethod 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 imple-ments 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 thegeometry 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_GMLToSQL - Return a specified ST_Geometry value from GML representation. This is an alias name for ST_GeomFromGMLThis method implements the SQL/MM specification. SQL-MM 3: 5.1.50 (except for curves support).

• ST_GeomCollFromText - Makes a collection Geometry from collection WKT with the given SRID. If SRID is not give, itdefaults to -1. This method implements the SQL/MM specification.

• ST_GeomFromText - Return a specified ST_Geometry value from Well-Known Text representation (WKT). This methodimplements 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 optionalSRID. This method implements the SQL/MM specification. SQL-MM 3: 5.1.41

Page 2: Sqlserver Guide

PostGIS 1.5.1 Manual276 / 315

• ST_GeometryFromText - Return a specified ST_Geometry value from Well-Known Text representation (WKT). This is analias 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, MUL-TILINESTRING, MULTICURVE or MULTIPOLYGON. Otherwise, return NULL. This method implements the SQL/MMspecification. SQL-MM 3: 9.1.5

• ST_GeometryType - Return the geometry type of the ST_Geometry value. This method implements the SQL/MM specifica-tion. 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 apolygon 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 - (T) Returns a geometry that represents the shared portion of geomA and geomB. The geography implemen-tation does a transform to geometry to do the intersection and then transform back to WGS84. This method implements theSQL/MM specification. SQL-MM 3: 5.1.18

• ST_Intersects - Returns TRUE if the Geometries/Geography "spatially intersect" - (share any portion of space) and FALSE ifthey don’t (they are Disjoint). For geography -- tolerance is 0.00001 meters (so any points that close are considered to intersect)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/MMspecification. 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 specifica-tion. 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-MM3: 5.1.9

• ST_Length - Returns the 2d length of the geometry if it is a linestring or multilinestring. geometry are in units of spatialreference and geography are in meters (default spheroid) 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 speci-fication. SQL-MM 3: 7.2.9

• ST_LinestringFromWKB - Makes a geometry from WKB with the given SRID. This method implements the SQL/MM speci-fication. 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 theSQL/MM specification.

• ST_MLineFromText - Return a specified ST_MultiLineString value from WKT representation. This method implements theSQL/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 methodimplements 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, otherwisereturn NULL. This method implements the SQL/MM specification. SQL-MM 3: 9.1.4