PostGIS function commonly used Chinese presentation description

1.OGC standard functions

Management functions: 
add geometry field AddGeometryColumn (,,,,,) 
to delete geometric field DropGeometryColumn (,,) 
checks the database geometry field and archive Probe_Geometry_Columns in geometry_columns in () 
to geometric objects set the spatial reference (often used when doing spatial query through a range ) ST_SetSRID (geometry, integer)

Geometric objects relation function: 
acquiring distance ST_Distance (geometry, geometry) between two geometric objects 
if the distance is within a given range, TRUE ST_DWithin return between two geometric objects (geometry, geometry, float) 
determines whether two geometric objects equivalent 
(such LINESTRING (0 0, 2 2) and LINESTRING (0 0, 1 1, 2 2) is the same geometric object) ST_Equals (geometry, geometry) 
determines whether two separated geometric objects ST_Disjoint (geometry, geometry) 
determines two if geometric objects intersect ST_Intersects (geometry, geometry) 
determines two edges of the geometric object is in contact ST_Touches (geometry, geometry) 
determines whether the two geometry objects to each other through ST_Crosses (geometry, geometry) 
determines whether the a B comprises ST_Within (geometry A, geometry B) 
determining whether the two geometric objects overlap ST_Overlaps (geometry, geometry) 
determines A contains B ST_Contains (geometry A, geometry B  )
determines whether the cover A B ST_Covers (geometry A, geometry B  )
determines whether or not A is B covered ST_CoveredBy (geometry A, geometry B) 
DE-9IM matrix is determined by the relationship between two geometric objects is established ST_Relate (geometry, geometry, intersectionPatternMatrix) 
to obtain the relationship between two geometric objects (DE-9IM matrix) ST_Relate (geometry, geometry)

Geometric objects handler: 
Gets the geometric center of the object ST_Centroid (geometry) 
Area by ST_Area (geometry) 
length measured ST_Length (geometry) 
returns a point ST_PointOnSurface (geometry) on the surface 
acquires a boundary ST_Boundary (geometry) 
after acquiring the buffer geometric object ST_Buffer (geometry, double, [integer  ])
acquiring a plurality of geometric objects external objects ST_ConvexHull (geometry) 
acquired two geometry objects intersecting portion ST_Intersection (geometry, geometry) 
longitude less than 360 increments the value 0 for all values longitude 0- 360 ST_Shift_Longitude (geometry) 
obtaining two disjoint partial geometric object (a, B interchangeable) ST_SymDifference (geometry a, geometry B  )
returns ST_Difference removed from the rear portion a and the intersection B (geometry a, geometry B) 
returns the combined results ST_Union (geometry, geometry) of the two geometric object 
returns a series of geometric objects merge result ST_Union (geometry set) 
complete the merge operation with less memory and a long time, the same results ST_Union ST_MemUnion (geometry set)

Geometric Object Access functions: 
acquisition geometry object WKT description ST_AsText (geometry) 
acquisition geometry object WKB described ST_AsBinary (geometry) 
Gets the geometric object spatial reference ID ST_SRID (geometry) 
acquisition geometry object dimension ST_Dimension (geometry) 
acquisition geometry objects the boundaries ST_Envelope (geometry) 
determines the geometric object is empty ST_IsEmpty (geometry) 
determines geometric object does not contain a specific point (for example, self-intersecting) ST_IsSimple (geometry) 
determines whether the geometry object closed ST_IsClosed (geometry) 
determines whether the curve is closed and does not comprise special point ST_IsRing (geometry) 
Get the number of objects ST_NumGeometries (geometry) of multiple geometry objects 
acquire a plurality of geometric objects in N objects ST_GeometryN (geometry, int) 
point number ST_NumPoints (geometry) of the object acquisition geometry 
acquisition geometry object of N points ST_PointN (geometry, integer) 
acquired a polygonal outer edge ST_ExteriorRing (geometry) 
Get the number of the polygon edge ST_NumInteriorRings (geometry) 
supra ST_NumInteriorRing (geometry) 
Acquiring the N-th polygon boundary ST_InteriorRingN (geometry, integer) 
acquired line end ST_EndPoint (geometry) 
acquired line starting ST_StartPoint (geometry) 
acquisition geometry object type GeometryType (geometry) 
Similarly, the value of M but does not check, i.e., POINTM object is determined as a point ST_GeometryType (geometry) 
obtaining the X-coordinate ST_X (geometry) points 
acquires ST_Y Y coordinate point (Geometry) 
Get ST_Z Z coordinate point (Geometry) 
acquisition point M value ST_M (geometry)

Geometric object constructor: 
Reference Semantic: 
the Text: the WKT 
the WKB: the WKB 
Geom: the Geometry 
M: the Multi 
Bd of: BuildArea 
Coll.: Collection ST_GeomFromText (text, [])

ST_PointFromText(text,[]) 
ST_LineFromText(text,[]) 
ST_LinestringFromText(text,[]) 
ST_PolyFromText(text,[]) 
ST_PolygonFromText(text,[]) 
ST_MPointFromText(text,[]) 
ST_MLineFromText(text,[]) 
ST_MPolyFromText(text,[]) 
ST_GeomCollFromText(text,[]) 
ST_GeomFromWKB(bytea,[]) 
ST_GeometryFromWKB(bytea,[]) 
ST_PointFromWKB(bytea,[]) 
ST_LineFromWKB(bytea,[]) 
ST_LinestringFromWKB(bytea,[]) 
ST_PolyFromWKB(bytea,[]) 
ST_PolygonFromWKB(bytea,[]) 
ST_MPointFromWKB(bytea,[]) 
ST_MLineFromWKB(bytea,[]) 
ST_MPolyFromWKB(bytea,[]) 
ST_GeomCollFromWKB(bytea,[]) 
ST_BdPolyFromText(text WKT, integer SRID)

ST_BdMPolyFromText(text WKT, integer SRID)

2. PostGIS extension functions

Management functions:

To delete a table space (including records of geometry_columns) DropGeometryTable ([],) 
space to update the reference table space UpdateGeometrySRID ([],,,) 
to update table space statistics update_geometry_stats ([,])

Reference Semantic: 
Geos: the GEOS library 
Jts: JTS library 
Proj: PROJ4 library postgis_version ()

postgis_lib_version() 
postgis_lib_build_date() 
postgis_script_build_date() 
postgis_scripts_installed() 
postgis_scripts_released() 
postgis_geos_version() 
postgis_jts_version() 
postgis_proj_version() 
postgis_uses_stats() 
postgis_full_version()

Geometric operator:

A range of the range A = B = B 
A B coverage range A or range B & scope left A <> B 
A B range in the range A << >> B left 
the coverage range B A B A range or the range below A & <| BA coverage range A or range B B over the range of A | &> B 
A B range below the range A << | BA range above the range B A | B >> 
A = B = BA ~ 
A range is a range comprising B @ B A 
A B range including the range of ~ B A 
A B coverage range A && B

Geometric measurement function:

Measurement area ST_Area (geometry) 
calculated latitude and longitude on Earth surface point distance, in meters, Earth radius value 6,370,986 m ST_distance_sphere (point, point) 
Similarly, the earth ellipsoid specified parameters ST_distance_spheroid (point, point, spheroid ) 
measured 2D object length ST_length2d (geometry) 
measuring the length of a 3D object ST_length3d (geometry) 
calculates the length of the earth surface ST_length_spheroid (geometry, spheroid) objects latitude and longitude 
ST_length3d_spheroid (geometry, spheroid) 
the distance between two measuring objects st_distance ( geometry, geometry) 
the maximum distance between the measuring ST_max_distance two lines (linestring, linestring) 
circumference measured 2D object ST_perimeter (Geometry) 
ST_perimeter2d (Geometry) 
circumference measured 3D object ST_perimeter3d (geometry) 
measurement points azimuth constituted radian ST_azimuth (geometry, geometry)

Output geometry: 
Reference Semantic: 
the NDR: Little Endian 
the XDR: Big-endian 
HEXEWKB: Canonical 
the SVG: the SVG format 
GML: GML format 
KML: KML format 
GeoJson: GeoJson format

ST_AsBinary(geometry,{‘NDR’|’XDR’}) 
ST_AsEWKT(geometry) 
ST_AsEWKB(geometry, {‘NDR’|’XDR’}) 
ST_AsHEXEWKB(geometry, {‘NDR’|’XDR’}) 
ST_AsSVG(geometry, [rel], [precision]) 
ST_AsGML([version], geometry, [precision]) 
ST_AsKML([version], geometry, [precision]) 
ST_AsGeoJson([version], geometry, [precision], [options])

Geometric objects are created:

Reference Semantic: 
the Dump: Dump ST_GeomFromEWKT (text)

ST_GeomFromEWKB(bytea) 
ST_MakePoint(, , [], []) 
ST_MakePointM(, , ) 
ST_MakeBox2D(, ) 
ST_MakeBox3D(, ) 
ST_MakeLine(geometry set) 
ST_MakeLine(geometry, geometry) 
ST_LineFromMultiPoint(multipoint) 
ST_MakePolygon(linestring, [linestring[]]) 
ST_BuildArea(geometry) 
ST_Polygonize(geometry set) 
ST_Collect(geometry set) 
ST_Collect(geometry, geometry) 
ST_Dump(geometry) 
ST_DumpRings(geometry)

Geometric Object Editor:

Geometric objects to add a border, make queries faster ST_AddBBOX (geometry) 
to delete the geometry of the boundary ST_DropBBOX (geometry) 
to add, delete, set point ST_AddPoint (LineString, Point, []) 
ST_RemovePoint (LineString, offset) 
ST_SetPoint (LineString, N, point) 
geometric object type conversion ST_Force_collection (geometry) 
ST_Force_2d (geometry) 
ST_Force_3dz (geometry), ST_Force_3d (geometry), 
ST_Force_3dm (geometry) 
ST_Force_4d (geometry) 
ST_Multi (geometry) 
transformed geometric object to the specified spatial reference ST_Transform (geometry, integer) 
of the 3D geometric objects as affine ST_Affine (geometry, float8, float8,  float8, float8, float8, float8, float8, float8, float8, float8, float8, float8)
of geometric objects as 2D affine ST_Affine (geometry, float8, float8, float8, float8,  float8, float8)
Geometric objects as offset ST_Translate (geometry, float8, float8,  float8)
on geometric objects for scaling ST_Scale (geometry, float8, float8,  float8)
of the 3D geometric objects rotational ST_RotateZ (Geometry, float8) 
ST_RotateX (Geometry, float8) 
ST_RotateY (geometry, float8) 
of 2D objects for scaling and offset ST_TransScale (geometry, float8, float8,  float8, float8)
reverse ST_Reverse (geometry) 
transformed to the right hand rule ST_ForceRHR (geometry) 
reference IsSimple function 
using Douglas-Peuker algorithm ST_Simplify ( geometry, Tolerance) 
ST_SimplifyPreserveTopology (geometry, Tolerance) 
speaks to the apex capture geometry grid ST_SnapToGrid (geometry, originX, originY, sizeX, sizeY) 
ST_SnapToGrid (geometry, sizeX, sizeY), ST_SnapToGrid (geometry, size) 
the second parameter is point, specifying the origin coordinates ST_SnapToGrid (geometry, geometry, sizeX,  sizeY, sizeZ, sizeM)
Segment ST_Segmentize (geometry, maxlength) 
merged line ST_LineMerge (geometry)

Linear Reference:

The location (0-1) to obtain the position of a point ST_line_interpolate_point (linestring, location) 
acquiring section line ST_line_substring (LineString, Start, End) 
(0-1) ST_line_locate_point (the LineString, Point) acquired based on the dot location 
is obtained according to the geometrical measured values Object ST_locate_along_measure (geometry, float8) 
to obtain a set of geometric objects ST_locate_between_measures (geometry, float8, float8) according to the measured value interval

Miscellaneous Function Function: 
Summary ST_Summary (geometry) geometry object 
boundary ST_box2d (geometry) geometric objects 
ST_box3d (geometry) 
boundary ST_extent (geometry set) a plurality of geometric objects 
0 = 2d, 1 = 3dm, 2 = 3dz, 3 = 4d ST_zmflag (geometry) 
contains a Bounding Box ST_HasBBOX (geometry) 
dimension of the geometric objects: 2,3,4 ST_ndims (geometry) 
number ST_nrings child objects (the geometry) 
ST_npoints (the geometry) 
whether the object verification is successful ST_isvalid (geometry) 
to expand geometry Object ST_expand (geometry, float) 
calculates a table space boundaries ST_estimated_extent ([schema], table,  geocolumn)
obtaining spatial reference ST_find_srid (,,) 
memory size geometric object used, the unit byte ST_mem_size (geometry) 
point is on a circle ST_point_inside_circle (,,,) 
acquired boundary X-, the Y, the Z ST_XMin (box3d) 
ST_YMin (box3d) 
ST_ZMin (box3d) 
ST_XMax (box3d) 
ST_YMax (box3d) 
ST_ZMax (box3d) 
configured ST_Accum an array of geometric objects (geometry set)

Long transaction support: 
Enable / Disable long transaction support, repeated calls to no side effects EnableLongTransactions () 
DisableLongTransactions () 
whether update and delete operations examination row authorized CheckAuth ([], 
,) 
lock line LockRow ([],,,, [ ]) 
unlock line UnlockRows () 
to add the current transaction authorization ID AddAuth ()

Other functions can be viewed to the official website:  http://postgis.net/docs/reference.html

Guess you like

Origin www.cnblogs.com/airen123/p/11278434.html