ESRI shape representation

You can generate a geometry from an ESRI shape representation. In addition to the two-dimensional representation supported by the Open GIS well-known binary representation, the ESRI shape representation also supports optional Z coordinates and measures.

The following functions generate geometry from an ESRI shape.

SE_GeomFromShape()
The function creates an ST_Geometry from a shape of any geometry type.
SE_PointFromShape()
The function creates an ST_Point from a point shape.
SE_LineFromShape()
The function creates an ST_LineString from a polyline shape.
SE_PolyFromShape()
The function creates an ST_Polygon from a polygon shape.
SE_MPointFromShape()
The function creates an ST_MultiPoint from a multipoint shape.
SE_MLineFromShape()
The function creates an ST_MultiLineString from a multipart polyline shape.
SE_MPolyFromShape()

The function creates an ST_MultiPolygon from a multipart polygon shape.

For all of these functions, the first argument is the shape representation and the second argument is the spatial reference identifier to assign to the ST_Geometry. For example, the SE_GeomFromShape() function has the following syntax:
SE_GeomFromShape(shapegeometry, SRID)

The SE_AsShape() function converts the geometry value into an ESRI shape representation.