空间函数¶
此模块定义 GenericFunction 类,它是GeoAlchemy中空间函数实现的基础。这个模块也是定义实际空间函数的地方。本模块定义了GeoAlchemy支持的空间函数。见 GenericFunction 了解如何创建新的空间功能。
注解
按照惯例,空间函数的名称以 ST_ . 这与PostGIS一致,PostGIS本身基于 SQL-MM 标准。
通过子类化创建的函数 GenericFunction 可以通过多种方式调用:
通过使用
func对象,这是SQLAlchemy调用函数的标准方法。例如,如果没有ORM::select([func.ST_Area(lake_table.c.geom)])
对于ORM:
Session.query(func.ST_Area(Lake.geom))
通过将函数应用于几何列。例如,如果没有ORM::
select([lake_table.c.geom.ST_Area()])
对于ORM:
Session.query(Lake.geom.ST_Area())
通过将函数应用于
geoalchemy2.elements.WKBElement对象 (geoalchemy2.elements.WKBElement是GeoAlchemy将从数据库中读取的几何值转换为的类型,或转换为geoalchemy2.elements.WKTElement反对。例如,如果没有ORM::conn.scalar(lake['geom'].ST_Area())
对于ORM:
session.scalar(lake.geom.ST_Area())
参考文献¶
- class geoalchemy2.functions.AddAuth(*args, **kwargs)¶
添加要在当前事务中使用的授权令牌。
请参阅http://postgis.net/docs/AddAuth.html
- class geoalchemy2.functions.AddGeometryColumn(*args, **kwargs)¶
将几何图形列添加到现有表格。
请参阅http://postgis.net/docs/AddGeometryColumn.html
- class geoalchemy2.functions.Box2D(*args, **kwargs)¶
返回表示几何图形的二维范围的BOX2D。
请参阅http://postgis.net/docs/Box2D_type.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.Box3D(*args, **kwargs)¶
[几何体] 返回表示几何图形的3D范围的BOX3D。或 [栅格] 返回栅格的封闭框的框3D表示。
请参阅http://postgis.net/docs/Box3D_type.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.CheckAuth(*args, **kwargs)¶
在表上创建触发器,以基于授权令牌阻止/允许更新和删除行。
请参阅http://postgis.net/docs/CheckAuth.html
- class geoalchemy2.functions.DisableLongTransactions(*args, **kwargs)¶
禁用长事务支持。
请参阅http://postgis.net/docs/DisableLongTransactions.html
- class geoalchemy2.functions.DropGeometryColumn(*args, **kwargs)¶
从空间表中删除几何图形列。
请参阅http://postgis.net/docs/DropGeometryColumn.html
- class geoalchemy2.functions.DropGeometryTable(*args, **kwargs)¶
删除GEOMETRY_COLUMNS中的表及其所有引用。
请参阅http://postgis.net/docs/DropGeometryTable.html
- class geoalchemy2.functions.EnableLongTransactions(*args, **kwargs)¶
启用长事务支持。
请参阅http://postgis.net/docs/EnableLongTransactions.html
- class geoalchemy2.functions.Find_SRID(*args, **kwargs)¶
返回为几何列定义的SRID。
请参阅http://postgis.net/docs/Find_SRID.html
- class geoalchemy2.functions.GenericFunction(*args, **kwargs)[源代码]¶
GeoAlchemy函数的基类。
这个类继承自
sqlalchemy.sql.functions.GenericFunction,因此通过子类化该类定义的函数可以被赋予固定的返回类型。例如,函数ST_Buffer和ST_Envelope拥有他们的type属性设置为geoalchemy2.types.Geometry.这个类允许像
Lake.geom.ST_Buffer(2). 在这种情况下Function实例绑定到表达式 (Lake.geom在这里),该表达式在实际调用函数时传递给函数。如果您需要使用GeoAlchemy没有提供的函数,那么您肯定希望将该类子类化。例如,如果您需要
ST_TransScaleGeoAlchemy(GeoAlchemy)本机不支持空间函数,您将编写以下代码:from geoalchemy2 import Geometry from geoalchemy2.functions import GenericFunction class ST_TransScale(GenericFunction): name = 'ST_TransScale' type = Geometry
- class geoalchemy2.functions.GeometryType(*args, **kwargs)¶
以文本形式返回几何图形的类型。
请参阅http://postgis.net/docs/GeometryType.html
- class geoalchemy2.functions.LockRow(*args, **kwargs)¶
设置表中行的锁定/授权。
请参阅http://postgis.net/docs/LockRow.html
- class geoalchemy2.functions.Populate_Geometry_Columns(*args, **kwargs)¶
确保使用类型修饰符定义几何图形列或具有适当的空间约束。
请参阅http://postgis.net/docs/Populate_Geometry_Columns.html
- class geoalchemy2.functions.PostGIS_AddBBox(*args, **kwargs)¶
将边界框添加到几何图形。
请参阅http://postgis.net/docs/PostGIS_AddBBox.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.PostGIS_DropBBox(*args, **kwargs)¶
从几何体中删除边界框缓存。
请参阅http://postgis.net/docs/PostGIS_DropBBox.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.PostGIS_Extensions_Upgrade(*args, **kwargs)¶
将postgis扩展(例如postgis_raster、postgis_topology、postgis_sfcgal)打包并升级到最新的可用版本。
请参阅http://postgis.net/docs/PostGIS_Extensions_Upgrade.html
- class geoalchemy2.functions.PostGIS_Full_Version(*args, **kwargs)¶
报告完整的PostGIS版本和构建配置信息。
请参阅http://postgis.net/docs/PostGIS_Full_Version.html
- class geoalchemy2.functions.PostGIS_GEOS_Version(*args, **kwargs)¶
返回GEOS库的版本号。
请参阅http://postgis.net/docs/PostGIS_GEOS_Version.html
- class geoalchemy2.functions.PostGIS_HasBBox(*args, **kwargs)¶
如果此几何图形的BBox已缓存,则返回True,否则返回False。
请参阅http://postgis.net/docs/PostGIS_HasBBox.html
- class geoalchemy2.functions.PostGIS_LibXML_Version(*args, **kwargs)¶
返回libxml2库的版本号。
请参阅http://postgis.net/docs/PostGIS_LibXML_Version.html
- class geoalchemy2.functions.PostGIS_Lib_Build_Date(*args, **kwargs)¶
返回PostGIS库的构建日期。
请参阅http://postgis.net/docs/PostGIS_Lib_Build_Date.html
- class geoalchemy2.functions.PostGIS_Lib_Version(*args, **kwargs)¶
返回PostGIS库的版本号。
请参阅http://postgis.net/docs/PostGIS_Lib_Version.html
- class geoalchemy2.functions.PostGIS_Liblwgeom_Version(*args, **kwargs)¶
返回liblwgeom库的版本号。这应该与PostGIS的版本匹配。
请参阅http://postgis.net/docs/PostGIS_Liblwgeom_Version.html
- class geoalchemy2.functions.PostGIS_PROJ_Version(*args, **kwargs)¶
返回PROJ4库的版本号。
请参阅http://postgis.net/docs/PostGIS_PROJ_Version.html
- class geoalchemy2.functions.PostGIS_Scripts_Build_Date(*args, **kwargs)¶
返回PostGIS脚本的构建日期。
请参阅http://postgis.net/docs/PostGIS_Scripts_Build_Date.html
- class geoalchemy2.functions.PostGIS_Scripts_Installed(*args, **kwargs)¶
返回此数据库中安装的PostGIS脚本的版本。
请参阅http://postgis.net/docs/PostGIS_Scripts_Installed.html
- class geoalchemy2.functions.PostGIS_Scripts_Released(*args, **kwargs)¶
返回随安装的postgis库一起发布的postgis.sql脚本的版本号。
请参阅http://postgis.net/docs/PostGIS_Scripts_Released.html
- class geoalchemy2.functions.PostGIS_Version(*args, **kwargs)¶
返回PostGIS版本号和编译时选项。
请参阅http://postgis.net/docs/PostGIS_Version.html
- class geoalchemy2.functions.PostGIS_Wagyu_Version(*args, **kwargs)¶
返回内部和库的版本号。
请参阅http://postgis.net/docs/PostGIS_Wagyu_Version.html
- class geoalchemy2.functions.ST_3DArea(*args, **kwargs)¶
计算三维曲面几何图形的面积。对于实体将返回0。
请参阅http://postgis.net/docs/ST_3DArea.html
- class geoalchemy2.functions.ST_3DClosestPoint(*args, **kwargs)¶
返回G1上最接近G2的三维点。这是3D最短直线的第一个点。
见http://postgis.net/docs/ST嫒3DClosestPoint.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_3DDFullyWithin(*args, **kwargs)¶
如果所有3D几何图形都在彼此的指定距离内,则返回TRUE。
请参阅http://postgis.net/docs/ST_3DDFullyWithin.html
- class geoalchemy2.functions.ST_3DDWithin(*args, **kwargs)¶
对于3D(Z)几何图形,如果两个几何图形的3D距离在单位数内,则TYPE返回TRUE。
请参阅http://postgis.net/docs/ST_3DDWithin.html
- class geoalchemy2.functions.ST_3DDifference(*args, **kwargs)¶
执行三维差异
请参阅http://postgis.net/docs/ST_3DDifference.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_3DDistance(*args, **kwargs)¶
以投影单位返回两个几何图形之间的3D笛卡尔最小距离(基于空间参考)。
请参阅http://postgis.net/docs/ST_3DDistance.html
- class geoalchemy2.functions.ST_3DExtent(*args, **kwargs)¶
返回限定几何图形行的3D边框的聚合函数。
请参阅http://postgis.net/docs/ST_3DExtent.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_3DIntersection(*args, **kwargs)¶
执行三维相交
请参阅http://postgis.net/docs/ST_3DIntersection.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_3DIntersects(*args, **kwargs)¶
如果几何图形在3D中“空间相交”-仅适用于点、线串、多边形、多面体曲面(面积),则返回TRUE。
请参阅http://postgis.net/docs/ST_3DIntersects.html
- class geoalchemy2.functions.ST_3DLength(*args, **kwargs)¶
返回线性几何图形的三维长度。
请参阅http://postgis.net/docs/ST_3DLength.html
- class geoalchemy2.functions.ST_3DLineInterpolatePoint(*args, **kwargs)¶
返回在3D中沿直线插值的点。第二个参数是介于0和1之间的float8,表示该点必须定位的线字符串总长度的一部分。
见http://postgis.net/docs/ST_3DLineInterpolatePoint.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_3DLongestLine(*args, **kwargs)¶
返回两个几何之间的3D最长线
见http://postgis.net/docs/ST_3DLongestLine.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_3DMakeBox(*args, **kwargs)¶
创建由两个三维点几何图形定义的BOX3D。
见http://postgis.net/docs/ST_3DMakeBox.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_3DMaxDistance(*args, **kwargs)¶
以投影单位返回两个几何图形之间的3D笛卡尔最大距离(基于空间参考)。
请参阅http://postgis.net/docs/ST_3DMaxDistance.html
- class geoalchemy2.functions.ST_3DPerimeter(*args, **kwargs)¶
返回多边形几何体的3D周长。
请参阅http://postgis.net/docs/ST_3DPerimeter.html
- class geoalchemy2.functions.ST_3DShortestLine(*args, **kwargs)¶
返回两个几何之间的3D最短线
见http://postgis.net/docs/ST_3DShortestLine.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_3DUnion(*args, **kwargs)¶
执行三维合并
请参阅http://postgis.net/docs/ST_3DUnion.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_AddBand(*args, **kwargs)¶
返回一个栅格,其中给定类型的新标注栏与给定索引位置中的给定初始值相加。如果未指定索引,则会将标注栏添加到末尾。
见http://postgis.net/docs/RT_ST_AddBand.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_AddMeasure(*args, **kwargs)¶
返回在起点和终点之间线性插值测量元素的导出几何体。
见http://postgis.net/docs/ST_AddMeasure.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_AddPoint(*args, **kwargs)¶
向线条添加点。
见http://postgis.net/docs/ST_AddPoint.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Affine(*args, **kwargs)¶
将3D仿射变换应用于几何体。
见http://postgis.net/docs/ST_Affine.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Angle(*args, **kwargs)¶
返回3个点之间或2个矢量(4个点或2条直线)之间的角度。
请参阅http://postgis.net/docs/ST_Angle.html
- class geoalchemy2.functions.ST_ApproximateMedialAxis(*args, **kwargs)¶
计算面状几何图形的近似中轴。
请参阅http://postgis.net/docs/ST_ApproximateMedialAxis.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Area(*args, **kwargs)¶
返回多边形几何体的面积。
见http://postgis.net/docs/ST_Area.html
- class geoalchemy2.functions.ST_AsBinary(*args, **kwargs)¶
返回不带SRID元数据的几何/地理的已知二进制(WKB)表示形式。
见http://postgis.net/docs/ST_AsBinary.html
- class geoalchemy2.functions.ST_AsEWKB(*args, **kwargs)¶
返回具有SRID元数据的几何体的熟知二进制(WKB)表示。
见http://postgis.net/docs/ST_AsEWKB.html
- class geoalchemy2.functions.ST_AsEWKT(*args, **kwargs)¶
返回具有SRID元数据的几何图形的熟知文本(WKT)表示。
见http://postgis.net/docs/ST_AsEWKT.html
- class geoalchemy2.functions.ST_AsEncodedPolyline(*args, **kwargs)¶
从线串几何图形返回编码的多段线。
请参阅http://postgis.net/docs/ST_AsEncodedPolyline.html
- class geoalchemy2.functions.ST_AsGDALRaster(*args, **kwargs)¶
以指定的GDAL栅格格式返回栅格平铺。栅格格式是编译后的库支持的格式之一。使用ST_GDALDrivers()获取您的库支持的格式列表。
请参阅http://postgis.net/docs/RT_ST_AsGDALRaster.html
- class geoalchemy2.functions.ST_AsGML(*args, **kwargs)¶
将几何图形作为GML版本2或3元素返回。
见http://postgis.net/docs/ST_AsGML.html
- class geoalchemy2.functions.ST_AsGeoJSON(*args, **kwargs)[源代码]¶
将几何图形作为GeoJSON“geometry”对象返回,或将行作为GeoJSON feature“对象返回(仅限PostGIS 3)。(参见GeoJSON规范RFC 7946)。支持二维和三维几何图形。GeoJSON只支持SFS 1.1几何类型(例如不支持曲线)。见https://postgis.net/docs/ST_AsGeoJSON.html
- class geoalchemy2.functions.ST_AsGeobuf(*args, **kwargs)¶
返回一组行的Geobuf表示形式。
请参阅http://postgis.net/docs/ST_AsGeobuf.html
- class geoalchemy2.functions.ST_AsHEXEWKB(*args, **kwargs)¶
使用小端(NDR)或大端(XDR)编码返回HEXEWKB格式(文本形式)的几何图形。
请参阅http://postgis.net/docs/ST_AsHEXEWKB.html
- class geoalchemy2.functions.ST_AsHexWKB(*args, **kwargs)¶
返回栅格的祸不单行表示形式的熟知二进制(Wkb)。
请参阅http://postgis.net/docs/RT_ST_AsHexWKB.html
- class geoalchemy2.functions.ST_AsJPEG(*args, **kwargs)¶
将栅格拼贴选定的带区作为单个联合照片导出组(JPEG)图像(字节数组)返回。如果未指定标注栏且有1个或3个以上标注栏,则仅使用第一个标注栏。如果只有3个波段,则使用所有3个波段并将其映射到RGB。
请参阅http://postgis.net/docs/RT_ST_AsJPEG.html
- class geoalchemy2.functions.ST_AsKML(*args, **kwargs)¶
将几何图形作为KML元素返回。几个变种。默认版本=2,默认最大小数位数=15
见http://postgis.net/docs/ST_AsKML.html
- class geoalchemy2.functions.ST_AsLatLonText(*args, **kwargs)¶
返回给定点的度、分、秒表示形式。
请参阅http://postgis.net/docs/ST_AsLatLonText.html
- class geoalchemy2.functions.ST_AsMVT(*args, **kwargs)¶
返回一组行的MapBox向量平铺表示形式的聚合函数。
请参阅http://postgis.net/docs/ST_AsMVT.html
- class geoalchemy2.functions.ST_AsMVTGeom(*args, **kwargs)¶
将几何图形转换为地图框矢量平铺的坐标空间。
见http://postgis.net/docs/ST_asmvtgome.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_AsPNG(*args, **kwargs)¶
将栅格平铺所选波段作为单个便携网络图形(PNG)图像(字节数组)返回。如果栅格中的1、3或4个标注栏未指定标注栏,则将使用所有标注栏。如果超过2个或4个标注栏但未指定标注栏,则仅使用标注栏1。标注栏映射到RGB或RGBA空间。
请参阅http://postgis.net/docs/RT_ST_AsPNG.html
- class geoalchemy2.functions.ST_AsRaster(*args, **kwargs)¶
将PostGIS几何图形转换为PostGIS栅格。
见http://postgis.net/docs/RT_ST_AsRaster.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_AsSVG(*args, **kwargs)¶
返回几何图形的SVG路径数据。
见http://postgis.net/docs/ST_AsSVG.html
- class geoalchemy2.functions.ST_AsTIFF(*args, **kwargs)¶
将栅格选定波段作为单个TIFF图像(字节数组)返回。如果未指定标注栏或栅格中不存在任何指定标注栏,则将尝试使用所有标注栏。
请参阅http://postgis.net/docs/RT_ST_AsTIFF.html
- class geoalchemy2.functions.ST_AsTWKB(*args, **kwargs)¶
将几何图形返回为TWKB,也称为“微小的已知二进制”
见http://postgis.net/docs/ST_AsTWKB.html
- class geoalchemy2.functions.ST_AsText(*args, **kwargs)¶
返回不带SRID元数据的几何/地理的已知文本(WKT)表示形式。
见http://postgis.net/docs/ST_AsText.html
- class geoalchemy2.functions.ST_AsX3D(*args, **kwargs)¶
返回X3DXML节点元素格式的几何图形:ISO-IEC-19776-1.2-X3DEncoding-xml
请参阅http://postgis.net/docs/ST_AsX3D.html
- class geoalchemy2.functions.ST_Aspect(*args, **kwargs)¶
返回高程栅格标注栏的纵横比(默认情况下以度为单位)。对于分析地形非常有用。
请参阅http://postgis.net/docs/RT_ST_Aspect.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_Azimuth(*args, **kwargs)¶
返回从点A上的垂直线到点B的顺时针方向测量的角度(以弧度表示),以北为基准的方位角。
见http://postgis.net/docs/ST_方位角.html
- class geoalchemy2.functions.ST_Band(*args, **kwargs)¶
将现有栅格的一个或多个波段作为新栅格返回。对于从现有栅格构建新栅格非常有用。
请参阅http://postgis.net/docs/RT_ST_Band.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_BandFileSize(*args, **kwargs)¶
返回存储在文件系统中的带的文件大小。如果未指定带宽,则假定为1。
请参阅http://postgis.net/docs/RT_ST_BandFileSize.html
- class geoalchemy2.functions.ST_BandFileTimestamp(*args, **kwargs)¶
返回存储在文件系统中的带的文件时间戳。如果未指定带宽,则假定为1。
请参阅http://postgis.net/docs/RT_ST_BandFileTimestamp.html
- class geoalchemy2.functions.ST_BandIsNoData(*args, **kwargs)¶
如果带区仅填充无数据值,则返回TRUE。
请参阅http://postgis.net/docs/RT_ST_BandIsNoData.html
- class geoalchemy2.functions.ST_BandMetaData(*args, **kwargs)¶
返回特定栅格波段的基本元数据。如果未指定,则假定波段编号为1。
请参阅http://postgis.net/docs/RT_ST_BandMetaData.html
- class geoalchemy2.functions.ST_BandNoDataValue(*args, **kwargs)¶
返回给定区段中表示无数据的值。如果没有频带数,则假定为1。
请参阅http://postgis.net/docs/RT_ST_BandNoDataValue.html
- class geoalchemy2.functions.ST_BandPath(*args, **kwargs)¶
返回存储在文件系统中的带的系统文件路径。如果未指定带宽,则假定为1。
请参阅http://postgis.net/docs/RT_ST_BandPath.html
- class geoalchemy2.functions.ST_BandPixelType(*args, **kwargs)¶
返回给定波段的像素类型。如果未指定带宽,则假定为1。
请参阅http://postgis.net/docs/RT_ST_BandPixelType.html
- class geoalchemy2.functions.ST_BdMPolyFromText(*args, **kwargs)¶
构造一个多多边形,给定一个任意的闭行字符串集合作为多行文本表示,这是众所周知的文本表示。
见http://postgis.net/docs/ST懔BdMPolyFromText.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_BdPolyFromText(*args, **kwargs)¶
构造给定任意闭合线串集合作为MultiLineString熟知文字表示的多边形。
见http://postgis.net/docs/ST_BdPolyFromText.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Boundary(*args, **kwargs)¶
返回几何图形的边界。
见http://postgis.net/docs/ST_Boundary.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_BoundingDiagonal(*args, **kwargs)¶
返回几何图形边界框的对角线。
见http://postgis.net/docs/ST_bounding对角线.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Box2dFromGeoHash(*args, **kwargs)¶
从GeoHash字符串返回BOX2D。
见http://postgis.net/docs/STúu Box2dFromGeoHash.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Buffer(*args, **kwargs)¶
返回一个几何图形,该几何图形覆盖与输入几何图形之间给定距离内的所有点。
见http://postgis.net/docs/ST_Buffer.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_BuildArea(*args, **kwargs)¶
创建由给定几何图形的组成线条形成的区域几何图形
见http://postgis.net/docs/ST_BuildArea.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_CPAWithin(*args, **kwargs)¶
如果两个轨迹的最接近点在指定距离内,则返回TRUE。
请参阅http://postgis.net/docs/ST_CPAWithin.html
- class geoalchemy2.functions.ST_Centroid(*args, **kwargs)¶
返回几何图形的几何中心。
见http://postgis.net/docs/ST_Centroid.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ChaikinSmoothing(*args, **kwargs)¶
使用Chaikin算法返回给定几何体的“平滑”版本
见http://postgis.net/docs/STñChaikinSmoothing.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Clip(*args, **kwargs)¶
返回由输入几何图形剪裁的栅格。如果未指定波段编号,则处理所有波段。如果未指定裁剪或TRUE,则将修剪输出栅格。
请参阅http://postgis.net/docs/RT_ST_Clip.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_ClipByBox2D(*args, **kwargs)¶
返回属于矩形的几何图形部分。
见http://postgis.net/docs/ST_ClipByBox2D.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ClosestPoint(*args, **kwargs)¶
返回G1上最接近G2的二维点。这是最短直线的第一个点。
见http://postgis.net/docs/STúu ClosestPoint.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ClosestPointOfApproach(*args, **kwargs)¶
返回沿两个轨迹插值的点最接近的度量值。
请参阅http://postgis.net/docs/ST_ClosestPointOfApproach.html
- class geoalchemy2.functions.ST_ClusterDBSCAN(*args, **kwargs)¶
使用DBSCAN算法返回每个输入几何图形的群集ID的窗口函数。
请参阅http://postgis.net/docs/ST_ClusterDBSCAN.html
- class geoalchemy2.functions.ST_ClusterIntersecting(*args, **kwargs)¶
聚合函数,用于将输入几何图形聚集到相连的集合中。
请参阅http://postgis.net/docs/ST_ClusterIntersecting.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ClusterKMeans(*args, **kwargs)¶
窗口函数,使用K-Means算法返回每个输入几何图形的群集ID。
请参阅http://postgis.net/docs/ST_ClusterKMeans.html
- class geoalchemy2.functions.ST_ClusterWithin(*args, **kwargs)¶
按分隔距离对输入几何图形进行聚类的聚合函数。
请参阅http://postgis.net/docs/ST_ClusterWithin.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Collect(*args, **kwargs)¶
从一组几何图形创建GeometryCollection或Multi*几何图形。
见http://postgis.net/docs/ST_Collect.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_CollectionExtract(*args, **kwargs)¶
给定(多)几何图形,返回仅由指定类型的元素组成的(多)几何图形。
见http://postgis.net/docs/ST_CollectionExtract.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_CollectionHomogenize(*args, **kwargs)¶
给定一个几何集合,返回内容的“最简单”表示形式。
见http://postgis.net/docs/ST_collection均质.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ColorMap(*args, **kwargs)¶
从源栅格和指定的标注栏中创建最多包含四个8BUI标注栏(灰度、RGB、RGBA)的新栅格。如果未指定,则假定为带1。
请参阅http://postgis.net/docs/RT_ST_ColorMap.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_ConcaveHull(*args, **kwargs)¶
几何体的凹面外壳表示可能包含集合内所有几何体的凹面几何体。你可以把它看作是收缩包装。
见http://postgis.net/docs/ST_ConcaveHull.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ConstrainedDelaunayTriangles(*args, **kwargs)¶
返回围绕给定输入几何图元的约束Delaunay三角剖分。
请参阅http://postgis.net/docs/ST_ConstrainedDelaunayTriangles.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Contains(*args, **kwargs)¶
[几何体] 当且仅当B的点没有位于A的外部,并且B的内部至少有一个点位于A的内部时,返回TRUE。或 [栅格] 如果栅格栅格B的点没有位于栅格RASTA的外部,并且栅格B的内部至少有一个点位于RASTA的内部,则返回TRUE。
见http://postgis.net/docs/ST_Contains.html
- class geoalchemy2.functions.ST_ContainsProperly(*args, **kwargs)¶
[几何体] 如果B与A的内部相交,但与边界(或外部)不相交,则返回TRUE。A没有适当地包含它自己,但确实包含它自己。或 [栅格] 如果rastB与Rasta的内部相交,但不与Rasta的边界或外部相交,则返回TRUE。
见http://postgis.net/docs/ST_containsProperty.html
- class geoalchemy2.functions.ST_ConvexHull(*args, **kwargs)¶
[几何体] 计算几何图形的凸包。或 [栅格] 返回栅格的凸壳几何图形,包括等于BandNoDataValue的像素值。对于形状规则且无倾斜的栅格,这将提供与ST_Entaine相同的结果,因此仅适用于形状不规则或倾斜的栅格。
见http://postgis.net/docs/ST_converxhull.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_CoordDim(*args, **kwargs)¶
返回几何图形的坐标尺寸。
请参阅http://postgis.net/docs/ST_CoordDim.html
- class geoalchemy2.functions.ST_Count(*args, **kwargs)¶
返回栅格或栅格覆盖的给定波段中的像素数。如果未指定波段,则默认为波段1。如果EXCLUDE_NODATA_VALUE设置为TRUE,将只计算不等于NODATA值的像素。
请参阅http://postgis.net/docs/RT_ST_Count.html
- class geoalchemy2.functions.ST_CountAgg(*args, **kwargs)¶
聚合。返回一组栅格的给定波段中的像素数。如果未指定波段,则默认为波段1。如果EXCLUDE_NODATA_VALUE设置为TRUE,将只计算不等于NODATA值的像素。
请参阅http://postgis.net/docs/RT_ST_CountAgg.html
- class geoalchemy2.functions.ST_CoveredBy(*args, **kwargs)¶
[几何体] 如果Geometry/Geography A中没有点在Geometry/Geography B之外,则返回1(TRUE) [栅格] 如果没有栅格RASTA的点位于栅格栅格B之外,则返回TRUE。
见http://postgis.net/docs/ST_CoveredBy.html
- class geoalchemy2.functions.ST_Covers(*args, **kwargs)¶
[几何体] 如果几何图形B中没有点在几何图形A之外,则返回1(TRUE) [栅格] 如果栅格栅格B的点没有位于栅格RASTA之外,则返回TRUE。
见http://postgis.net/docs/ST_Covers.html
- class geoalchemy2.functions.ST_Crosses(*args, **kwargs)¶
如果提供的几何图形有一些(但不是全部)共有的内部点,则返回TRUE。
见http://postgis.net/docs/ST_crosss.html
- class geoalchemy2.functions.ST_CurveToLine(*args, **kwargs)¶
将循环字符串/CURVEPOLYGON/MULTISURFACE转换为LINESTRING/POLYGON/MULTIPOLYGON
见http://postgis.net/docs/ST_CurveToLine.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_DFullyWithin(*args, **kwargs)¶
[几何体] 如果所有几何都在彼此的指定距离内,则返回TRUE,或者 [栅格] 如果栅格RastA和rastB彼此完全在指定距离内,则返回TRUE。
见http://postgis.net/docs/ST_dfullythin.html
- class geoalchemy2.functions.ST_DWithin(*args, **kwargs)¶
[几何体] 如果几何图形彼此在指定距离内,则返回TRUE。对于以空间参考为单位的几何图形单位,对于以米为单位的地理单位,测量默认为USE_SERSPOID=TRUE(围绕椭球体测量),为了更快地检查,请使用_SERSPOID=FALSE沿球体进行测量。或 [栅格] 如果栅格RastA和rastB彼此在指定距离内,则返回TRUE。
见http://postgis.net/docs/ST_DWithin.html
- class geoalchemy2.functions.ST_DelaunayTriangles(*args, **kwargs)¶
返回给定输入点周围的Delaunay三角剖分。
见http://postgis.net/docs/STúu delaunaytangles.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Difference(*args, **kwargs)¶
返回表示几何图形a中与几何图形B不相交的部分的几何图形。
见http://postgis.net/docs/ST_Difference.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Dimension(*args, **kwargs)¶
返回几何图形的拓扑尺寸。
请参阅http://postgis.net/docs/ST_Dimension.html
- class geoalchemy2.functions.ST_Disjoint(*args, **kwargs)¶
[几何体] 如果几何图形不“空间相交”-如果它们不共享任何空间,则返回TRUE。或 [栅格] 如果栅格RASTA在空间上不与rastB相交,则返回TRUE。
见http://postgis.net/docs/ST_Disjoint.html
- class geoalchemy2.functions.ST_Distance(*args, **kwargs)¶
返回两个几何图形或地理值之间的距离。
见http://postgis.net/docs/ST_Distance.html
- class geoalchemy2.functions.ST_DistanceCPA(*args, **kwargs)¶
返回两个轨迹的最近接近点之间的距离。
请参阅http://postgis.net/docs/ST_DistanceCPA.html
- class geoalchemy2.functions.ST_DistanceSphere(*args, **kwargs)¶
使用球形地球模型返回两个经度/纬度几何图形之间的最小距离(以米为单位)。
见http://postgis.net/docs/ST_DistanceSphere.html
- class geoalchemy2.functions.ST_DistanceSpheroid(*args, **kwargs)¶
使用球体地球模型返回两个经度/纬度几何图形之间的最小距离。
请参阅http://postgis.net/docs/ST_DistanceSpheroid.html
- class geoalchemy2.functions.ST_Distance_Sphere(*args, **kwargs)¶
返回两个lon/lat几何图形之间的最小距离(以米为单位)。使用半径为6370986米的球形地球。比
ST_Distance_Spheroid,但不太准确。1.5之前的PostGIS版本仅针对点实现。见http://postgis.net/docs/ST_Distance_Sphere.html
- class geoalchemy2.functions.ST_Distinct4ma(*args, **kwargs)¶
栅格处理函数,用于计算邻域中唯一像素值的数量。
请参阅http://postgis.net/docs/RT_ST_Distinct4ma.html
- class geoalchemy2.functions.ST_Dump(*args, **kwargs)¶
返回几何图形组件的一组GEOMETRY_DUMP行。
见http://postgis.net/docs/ST_Dump.html
返回类型:
geoalchemy2.types.GeometryDump.- type¶
alias of
geoalchemy2.types.GeometryDump
- class geoalchemy2.functions.ST_DumpAsPolygons(*args, **kwargs)¶
返回给定栅格标注栏中的一组geomval(geom,val)行。如果未指定波段编号,则波段编号默认为1。
请参阅http://postgis.net/docs/RT_ST_DumpAsPolygons.html
- class geoalchemy2.functions.ST_DumpPoints(*args, **kwargs)¶
返回几何图形中点的一组GEOMETRY_DUMP行。
见http://postgis.net/docs/ST_DumpPoints.html
返回类型:
geoalchemy2.types.GeometryDump.- type¶
alias of
geoalchemy2.types.GeometryDump
- class geoalchemy2.functions.ST_DumpRings(*args, **kwargs)¶
返回多边形外环和内环的一组GEOMETRY_DUMP行。
请参阅http://postgis.net/docs/ST_DumpRings.html
返回类型:
geoalchemy2.types.GeometryDump.- type¶
alias of
geoalchemy2.types.GeometryDump
- class geoalchemy2.functions.ST_DumpValues(*args, **kwargs)¶
以二维数组的形式获取指定波段的值。
请参阅http://postgis.net/docs/RT_ST_DumpValues.html
- class geoalchemy2.functions.ST_EndPoint(*args, **kwargs)¶
返回LineString或CircularLineString的最后一点。
见http://postgis.net/docs/ST_EndPoint.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Envelope(*args, **kwargs)¶
[几何体] 返回表示几何图形的边框的几何图形。或 [栅格] 返回栅格范围的多边形表示。
见http://postgis.net/docs/ST_Envelope.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Equals(*args, **kwargs)¶
如果给定的几何图形表示相同的几何图形,则返回TRUE。方向性被忽略。
见http://postgis.net/docs/ST_Equals.html
- class geoalchemy2.functions.ST_EstimatedExtent(*args, **kwargs)¶
返回空间表的“估计”范围。
请参阅http://postgis.net/docs/ST_EstimatedExtent.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Expand(*args, **kwargs)¶
返回从另一个边框或几何图形展开的边框。
见http://postgis.net/docs/ST_Expand.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Extent(*args, **kwargs)¶
返回限定几何图形行的边框的聚合函数。
请参阅http://postgis.net/docs/ST_Extent.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ExteriorRing(*args, **kwargs)¶
返回表示多边形外环的线串。
见http://postgis.net/docs/ST_ExteriorRing.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Extrude(*args, **kwargs)¶
将曲面挤出到相关体积
请参阅http://postgis.net/docs/ST_Extrude.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_FilterByM(*args, **kwargs)¶
基于顶点的m值过滤顶点
见http://postgis.net/docs/ST_FilterByM.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_FlipCoordinates(*args, **kwargs)¶
返回给定几何体的版本,其中X轴和Y轴翻转。对于构建纬度/经度功能并需要修复它们的用户非常有用。
见http://postgis.net/docs/ST_FlipCoordinates.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Force2D(*args, **kwargs)¶
强制几何图形进入“二维模式”。
见http://postgis.net/docs/ST_Force2D.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Force3D(*args, **kwargs)¶
强制几何图形进入XYZ模式。这是ST_Force3DZ的别名。
见http://postgis.net/docs/ST_Force_3D.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Force3DM(*args, **kwargs)¶
强制几何体进入XYM模式。
见http://postgis.net/docs/ST_Force_3DZ.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Force3DZ(*args, **kwargs)¶
强制几何图形进入XYZ模式。
见http://postgis.net/docs/ST_Force_3DZ.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Force4D(*args, **kwargs)¶
强制几何体进入XYZM模式。
见http://postgis.net/docs/ST_Force_4D.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ForceCollection(*args, **kwargs)¶
将几何图形转换为GEOMETRYCOLLECTION。
见http://postgis.net/docs/ST_Force_Collection.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ForceCurve(*args, **kwargs)¶
如果适用,将几何图形上溯到其曲线类型。
见http://postgis.net/docs/ST_ForceCurve.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ForceLHR(*args, **kwargs)¶
强制LHR方向
请参阅http://postgis.net/docs/ST_ForceLHR.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ForcePolygonCCW(*args, **kwargs)¶
逆时针定位所有外圈,顺时针定位所有内圈。
见http://postgis.net/docs/ST_forcepolygoncw.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ForcePolygonCW(*args, **kwargs)¶
按顺时针方向调整所有外环,按逆时针方向调整所有内环。
见http://postgis.net/docs/ST_ForcePolygonCW.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ForceRHR(*args, **kwargs)¶
强制多边形中顶点的方向遵循右手规则。
见http://postgis.net/docs/ST_ForceRHR.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ForceSFS(*args, **kwargs)¶
强制几何图形仅使用SFS 1.1几何图形类型。
见http://postgis.net/docs/ST_ForceSFS.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_FrechetDistance(*args, **kwargs)¶
返回两个几何图形之间的Fréchet距离。
请参阅http://postgis.net/docs/ST_FrechetDistance.html
- class geoalchemy2.functions.ST_FromGDALRaster(*args, **kwargs)¶
从支持的GDAL栅格文件返回栅格。
请参阅http://postgis.net/docs/RT_ST_FromGDALRaster.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_GMLToSQL(*args, **kwargs)¶
从GML表示返回指定的ST U几何体值。这是ST_GeomFromGML的别名
见http://postgis.net/docs/ST_GMLToSQL.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeneratePoints(*args, **kwargs)¶
将多边形或多多边形转换为由原始区域内的随机位置点组成的多点。
见http://postgis.net/docs/ST_GeneratePoints.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeoHash(*args, **kwargs)¶
返回几何图形的GeoHash表示形式。
请参阅http://postgis.net/docs/ST_GeoHash.html
- class geoalchemy2.functions.ST_GeoReference(*args, **kwargs)¶
返回坐标文件中常见的GDAL或ESRI格式的地理参考元数据。默认值为GDAL。
请参阅http://postgis.net/docs/RT_ST_GeoReference.html
- class geoalchemy2.functions.ST_GeogFromText(*args, **kwargs)¶
从已知的文本表示或扩展(WKT)返回指定的地理位置值。
见http://postgis.net/docs/ST_GeogFromText.html
返回类型:
geoalchemy2.types.Geography.- type¶
alias of
geoalchemy2.types.Geography
- class geoalchemy2.functions.ST_GeogFromWKB(*args, **kwargs)¶
从已知的二进制几何表示(WKB)或扩展的已知二进制(EWKB)创建地理实例。
见http://postgis.net/docs/ST_GeogFromWKB.html
返回类型:
geoalchemy2.types.Geography.- type¶
alias of
geoalchemy2.types.Geography
- class geoalchemy2.functions.ST_GeographyFromText(*args, **kwargs)¶
从已知的文本表示或扩展(WKT)返回指定的地理位置值。
见http://postgis.net/docs/ST_GeographyFromText.html
返回类型:
geoalchemy2.types.Geography.- type¶
alias of
geoalchemy2.types.Geography
- class geoalchemy2.functions.ST_GeomCollFromText(*args, **kwargs)¶
使用给定的SRID从集合WKT生成集合几何体。如果未给定SRID,则默认为0。
见http://postgis.net/docs/ST_GeomCollFromText.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeomFromEWKB(*args, **kwargs)¶
从扩展的已知二进制表示(EWKB)返回指定的ST_Geometry值。
见http://postgis.net/docs/ST_GeomFromEWKB.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeomFromEWKT(*args, **kwargs)¶
从扩展的已知文本表示(EWKT)返回指定的ST U几何体值。
见http://postgis.net/docs/ST_GeomFromEWKT.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeomFromGML(*args, **kwargs)¶
以几何图形的GML表示作为输入,并输出PostGIS几何对象
见http://postgis.net/docs/ST_geomfrommgml.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeomFromGeoHash(*args, **kwargs)¶
从GeoHash字符串返回几何体。
见http://postgis.net/docs/ST_GeomFromGeoHash.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeomFromGeoJSON(*args, **kwargs)¶
将几何图形的geojson表示作为输入,并输出PostGIS几何图形对象
见http://postgis.net/docs/ST_GeomFromGeoJSON.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeomFromKML(*args, **kwargs)¶
将几何图形的KML表示作为输入,并输出PostGIS几何对象
见http://postgis.net/docs/ST_GeomFromKML.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeomFromTWKB(*args, **kwargs)¶
从TWKB(“微小的已知二进制”)几何表示创建几何实例。
见http://postgis.net/docs/ST_GeomFromTWKB.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeomFromText(*args, **kwargs)¶
从已知文本表示(WKT)返回指定的ST U几何体值。
见http://postgis.net/docs/ST_GeomFromText.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeomFromWKB(*args, **kwargs)¶
从已知的二进制几何表示(WKB)和可选SRID创建几何实例。
见http://postgis.net/docs/ST_GeomFromWKB.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeometricMedian(*args, **kwargs)¶
返回多点的几何中值。
见http://postgis.net/docs/ST_GeometricMedian.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeometryFromText(*args, **kwargs)¶
从已知文本表示(WKT)返回指定的ST U几何体值。这是ST_GeomFromText的别名
见http://postgis.net/docs/ST_GeometryFromText.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeometryN(*args, **kwargs)¶
返回几何集合的第N个几何元素。
见http://postgis.net/docs/ST_GeometryN.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_GeometryType(*args, **kwargs)¶
以文本形式返回几何图形的SQL-MM类型。
见http://postgis.net/docs/ST_GeometryType.html
- class geoalchemy2.functions.ST_Grayscale(*args, **kwargs)¶
根据源栅格和表示红色、绿色和蓝色的指定波段创建新的One-8BUI波段栅格
请参阅http://postgis.net/docs/RT_ST_Grayscale.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_HasArc(*args, **kwargs)¶
测试几何图形是否包含圆弧
请参阅http://postgis.net/docs/ST_HasArc.html
- class geoalchemy2.functions.ST_HasNoBand(*args, **kwargs)¶
如果不存在具有给定波段编号的波段,则返回TRUE。如果未指定波段编号,则假定波段编号为1。
请参阅http://postgis.net/docs/RT_ST_HasNoBand.html
- class geoalchemy2.functions.ST_HausdorffDistance(*args, **kwargs)¶
返回两个几何图形之间的Hausdorff距离。
请参阅http://postgis.net/docs/ST_HausdorffDistance.html
- class geoalchemy2.functions.ST_Height(*args, **kwargs)¶
返回栅格的高度(以像素为单位)。
见http://postgis.net/docs/RT_ST_Height.html
- class geoalchemy2.functions.ST_HillShade(*args, **kwargs)¶
使用提供的方位角、高度、亮度和比例输入返回高程栅格标注栏的假设照明。
见http://postgis.net/docs/RT_ST_HillShade.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_Histogram(*args, **kwargs)¶
返回一组记录,其中汇总了栅格或栅格覆盖率数据分布的单独面元范围。如果未指定,则自动计算垃圾箱的数量。
请参阅http://postgis.net/docs/RT_ST_Histogram.html
- class geoalchemy2.functions.ST_InteriorRingN(*args, **kwargs)¶
返回多边形的第N个内环(孔)。
见http://postgis.net/docs/ST_InteriorRingN.html网站
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_InterpolatePoint(*args, **kwargs)¶
返回几何图形在接近所提供点的点处的测量尺寸值。
请参阅http://postgis.net/docs/ST_InterpolatePoint.html
- class geoalchemy2.functions.ST_Intersection(*args, **kwargs)¶
[几何体] (T)返回表示geomA和geomB的共享部分的几何图形。或 [栅格] 返回一个栅格或一组几何体-像素值对,表示两个栅格的共享部分或栅格和几何体的矢量化的几何体交集。
见http://postgis.net/docs/ST_Intersection.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Intersects(*args, **kwargs)¶
[几何体] 如果Geometries/Geography“在2D中空间相交”-(共享空间的任何部分),则返回TRUE;如果它们不相交(它们是不相交的),则返回FALSE。地理公差为0.00001米(因此任何接近的点都被视为相交)或 [栅格] 如果栅格RASTA与栅格栅格B在空间上相交,则返回TRUE。
见http://postgis.net/docs/ST_Intersects.html
- class geoalchemy2.functions.ST_InvDistWeight4ma(*args, **kwargs)¶
从像素的邻域内插像素值的栅格处理函数。
请参阅http://postgis.net/docs/RT_ST_InvDistWeight4ma.html
- class geoalchemy2.functions.ST_IsClosed(*args, **kwargs)¶
测试LineString的起点和终点是否重合。对于多面体曲面,测试其是否闭合(体积)。
请参阅http://postgis.net/docs/ST_IsClosed.html
- class geoalchemy2.functions.ST_IsCollection(*args, **kwargs)¶
测试几何图形是否为几何图形集合类型。
请参阅http://postgis.net/docs/ST_IsCollection.html
- class geoalchemy2.functions.ST_IsEmpty(*args, **kwargs)¶
[几何体] 测试几何图形是否为空。或 [栅格] 如果栅格为空(宽度=0,高度=0),则返回TRUE。否则,返回FALSE。
请参阅http://postgis.net/docs/ST_IsEmpty.html
- class geoalchemy2.functions.ST_IsPlanar(*args, **kwargs)¶
检查曲面是否为平面
请参阅http://postgis.net/docs/ST_IsPlanar.html
- class geoalchemy2.functions.ST_IsPolygonCCW(*args, **kwargs)¶
测试多边形是否具有逆时针方向的外环和顺时针方向的内环。
请参阅http://postgis.net/docs/ST_IsPolygonCCW.html
- class geoalchemy2.functions.ST_IsPolygonCW(*args, **kwargs)¶
测试多边形是否具有顺时针方向的外环和逆时针方向的内环。
请参阅http://postgis.net/docs/ST_IsPolygonCW.html
- class geoalchemy2.functions.ST_IsRing(*args, **kwargs)¶
测试线串是否闭合且简单。
请参阅http://postgis.net/docs/ST_IsRing.html
- class geoalchemy2.functions.ST_IsSimple(*args, **kwargs)¶
测试几何体是否没有自交点或自切点。
请参阅http://postgis.net/docs/ST_IsSimple.html
- class geoalchemy2.functions.ST_IsSolid(*args, **kwargs)¶
测试几何图形是否为实体。不执行有效性检查。
请参阅http://postgis.net/docs/ST_IsSolid.html
- class geoalchemy2.functions.ST_IsValid(*args, **kwargs)¶
测试几何图形在二维中是否格式良好。
见http://postgis.net/docs/ST_IsValid.html
- class geoalchemy2.functions.ST_IsValidDetail(*args, **kwargs)¶
返回一个VALID_DETAIL行,说明几何图形是否有效,如果不是,说明原因和位置。
请参阅http://postgis.net/docs/ST_IsValidDetail.html
- class geoalchemy2.functions.ST_IsValidReason(*args, **kwargs)¶
返回说明几何图形是否有效或无效原因的文本。
请参阅http://postgis.net/docs/ST_IsValidReason.html
- class geoalchemy2.functions.ST_IsValidTrajectory(*args, **kwargs)¶
如果几何图形是有效轨迹,则返回TRUE。
请参阅http://postgis.net/docs/ST_IsValidTrajectory.html
- class geoalchemy2.functions.ST_Length(*args, **kwargs)¶
返回线性几何图形的二维长度。
见http://postgis.net/docs/ST_Length.html
- class geoalchemy2.functions.ST_Length2D(*args, **kwargs)¶
返回线性几何图形的二维长度。ST_LENGTH的别名
请参阅http://postgis.net/docs/ST_Length2D.html
- class geoalchemy2.functions.ST_LengthSpheroid(*args, **kwargs)¶
返回椭球体上经度/纬度几何图形的二维或三维长度/周长。
请参阅http://postgis.net/docs/ST_LengthSpheroid.html
- class geoalchemy2.functions.ST_LineCrossingDirection(*args, **kwargs)¶
给定2个线串,返回一个介于-3和3之间的数字,指示哪种交叉行为。0表示无交叉。
请参阅http://postgis.net/docs/ST_LineCrossingDirection.html
- class geoalchemy2.functions.ST_LineFromEncodedPolyline(*args, **kwargs)¶
从编码的多段线创建线字符串。
见http://postgis.net/docs/STúlinefromcodedpolyline.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LineFromMultiPoint(*args, **kwargs)¶
从多点几何图形创建线串。
见http://postgis.net/docs/ST_LineFromMultiPoint.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LineFromText(*args, **kwargs)¶
使用给定的SRID从WKT表示生成几何体。如果未给定SRID,则默认为0。
见http://postgis.net/docs/ST_LineFromText.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LineFromWKB(*args, **kwargs)¶
使用给定的SRID从WKB生成一个LINESTRING
见http://postgis.net/docs/ST_LineFromWKB.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LineInterpolatePoint(*args, **kwargs)¶
返回沿直线插值的点。第二个参数是介于0和1之间的float8,表示该点必须定位的linestring总长度的一部分。
见http://postgis.net/docs/ST_LineInterpolatePoint.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LineInterpolatePoints(*args, **kwargs)¶
返回沿直线插值的一个或多个点。
见http://postgis.net/docs/ST_LineInterpolatePoints.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LineLocatePoint(*args, **kwargs)¶
返回一个介于0和1之间的浮点数,该浮点数表示线条字符串上最接近给定点的位置,作为总二维线条长度的一部分。
见http://postgis.net/docs/ST_LineLocatePoint.html
- class geoalchemy2.functions.ST_LineMerge(*args, **kwargs)¶
返回由缝合在一起的MULTILINESTRING形成的(一组)线串。
见http://postgis.net/docs/ST_LineMerge.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LineSubstring(*args, **kwargs)¶
返回一个线串,它是输入的子串,在总2D长度的给定分数处开始和结束。第二个和第三个参数是介于0和1之间的浮动8值。
见http://postgis.net/docs/ST_LineSubstring.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LineToCurve(*args, **kwargs)¶
将线条/多边形转换为循环字符串、曲线多边形
见http://postgis.net/docs/ST_LineToCurve.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LinestringFromWKB(*args, **kwargs)¶
使用给定的SRID从WKB生成几何体。
见http://postgis.net/docs/ST_LinestringFromWKB.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LocateAlong(*args, **kwargs)¶
返回包含与指定度量值匹配的元素的派生几何体集合值。不支持多边形元素。
见http://postgis.net/docs/ST_LocateAlong.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LocateBetween(*args, **kwargs)¶
返回派生几何集合值,其中包含与指定度量范围匹配的元素。
见http://postgis.net/docs/ST_LocateBetween.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LocateBetweenElevations(*args, **kwargs)¶
返回包含与指定高程范围相交的元素的派生几何图形(集合)值。
见http://postgis.net/docs/ST_LocateBetweenElevations.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_LongestLine(*args, **kwargs)¶
返回两个几何图形之间的二维最长直线。
见http://postgis.net/docs/ST_LongestLine.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_M(*args, **kwargs)¶
返回点的M坐标。
见http://postgis.net/docs/ST_M.html
- class geoalchemy2.functions.ST_MLineFromText(*args, **kwargs)¶
从WKT表示返回指定的ST_MultiLineString值。
见http://postgis.net/docs/ST_MLineFromText.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MPointFromText(*args, **kwargs)¶
使用给定的SRID从WKT生成几何体。如果未给定SRID,则默认为0。
见http://postgis.net/docs/ST MPointFromText.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MPolyFromText(*args, **kwargs)¶
使用给定的SRID从WKT生成多多边形几何体。如果未给定SRID,则默认为0。
见http://postgis.net/docs/ST impolyfromtext.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MakeBox2D(*args, **kwargs)¶
创建由两个二维点几何图形定义的BOX2D。
见http://postgis.net/docs/ST_MakeBox2D.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MakeEmptyCoverage(*args, **kwargs)¶
使用空栅格平铺网格覆盖地理参考区域。
请参阅http://postgis.net/docs/RT_ST_MakeEmptyCoverage.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_MakeEmptyRaster(*args, **kwargs)¶
返回给定尺寸(宽度和高度)、左上角X和Y、像素大小和旋转(scalex、scaleY、skewx和skewy)以及参考系(SRID)的空栅格(没有带)。如果传入栅格,则返回具有相同大小、对齐方式和SRID的新栅格。如果省略sRID,则空间参考设置为未知(0)。
请参阅http://postgis.net/docs/RT_ST_MakeEmptyRaster.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_MakeEnvelope(*args, **kwargs)¶
从最小和最大坐标创建矩形多边形。
见http://postgis.net/docs/ST_MakeEnvelope.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MakeLine(*args, **kwargs)¶
从点、多点或线串几何图形创建线串。
见http://postgis.net/docs/ST_MakeLine.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MakePoint(*args, **kwargs)¶
创建二维、三维或四维点。
见http://postgis.net/docs/ST_MakePoint.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MakePointM(*args, **kwargs)¶
从X、Y和M值创建点。
见http://postgis.net/docs/ST_MakePointM.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MakePolygon(*args, **kwargs)¶
从壳和可选的孔列表创建多边形。
见http://postgis.net/docs/ST_MakePolygon.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MakeSolid(*args, **kwargs)¶
将几何图形投射到实体中。不执行任何检查。要获取有效实体,输入几何图形必须是闭合多面体曲面或闭合三角网。
请参阅http://postgis.net/docs/ST_MakeSolid.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MakeValid(*args, **kwargs)¶
尝试使无效几何体有效而不丢失顶点。
见http://postgis.net/docs/ST_MakeValid.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MapAlgebra(*args, **kwargs)¶
[栅格] 回调函数版本-返回给定一个或多个输入栅格、波段索引和一个用户指定的回调函数的单波段栅格。或 [栅格] 表达式版本-返回给定一个或两个输入栅格、波段索引以及一个或多个用户指定的SQL表达式的单波段栅格。
请参阅http://postgis.net/docs/RT_ST_MapAlgebra.html
- class geoalchemy2.functions.ST_MapAlgebraExpr(*args, **kwargs)¶
[栅格] 1个栅格波段版本:通过对输入栅格波段应用有效的PostgreSQL代数运算并提供像素类型创建新的单波段栅格。如果未指定波段,则假定波段1。或 [栅格] 2个栅格波段版本:创建通过对提供的两个输入栅格波段应用有效的PostgreSQL代数运算形成的新单波段栅格。如果未指定波段编号,则假定每个栅格的波段1。生成的栅格将在第一个栅格定义的栅格上对齐(缩放、倾斜和像素角),其范围由“extenttype”参数定义。“extenttype”的值可以是:交集、并集、第一个、第二个。
请参阅http://postgis.net/docs/RT_ST_MapAlgebraExpr.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_MapAlgebraFct(*args, **kwargs)¶
[栅格] 单波段版本-通过在输入栅格波段上应用有效的PostgreSQL函数创建一个新的单波段栅格,该栅格是通过对输入栅格波段和像素类型生产的栅格应用有效的PostgreSQL函数而形成的。如果未指定波段,则假定波段1。或 [栅格] 2波段版本-创建新的单波段栅格,该栅格是通过在2个输入栅格波段上应用有效的PostgreSQL函数和像素类型生成的。如果未指定波段,则假定波段1。如果未指定范围类型,则默认为相交。
请参阅http://postgis.net/docs/RT_ST_MapAlgebraFct.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_MapAlgebraFctNgb(*args, **kwargs)¶
1波段版本:使用自定义PostgreSQL函数的地图代数最近邻。返回值为PLPGSQL用户函数的结果的栅格,该用户函数涉及输入栅格波段中的值的邻域。
请参阅http://postgis.net/docs/RT_ST_MapAlgebraFctNgb.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_Max4ma(*args, **kwargs)¶
计算邻域中最大像素值的栅格处理函数。
请参阅http://postgis.net/docs/RT_ST_Max4ma.html
- class geoalchemy2.functions.ST_MaxDistance(*args, **kwargs)¶
以投影单位返回两个几何图形之间的二维最大距离。
请参阅http://postgis.net/docs/ST_MaxDistance.html
- class geoalchemy2.functions.ST_Mean4ma(*args, **kwargs)¶
栅格处理函数,用于计算邻域中的平均像素值。
请参阅http://postgis.net/docs/RT_ST_Mean4ma.html
- class geoalchemy2.functions.ST_MemSize(*args, **kwargs)¶
[几何体] 返回几何体占用的内存空间量。或 [栅格] 返回栅格占用的空间量(以字节为单位)。
请参阅http://postgis.net/docs/ST_MemSize.html
- class geoalchemy2.functions.ST_MemUnion(*args, **kwargs)¶
与STúu Union相同,只有内存友好型(使用更少的内存和更多的处理器时间)。
见http://postgis.net/docs/ST_MemUnion.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MetaData(*args, **kwargs)¶
返回有关栅格对象的基本元数据,如像素大小、旋转(倾斜)、左上角、左下角等。
请参阅http://postgis.net/docs/RT_ST_MetaData.html
- class geoalchemy2.functions.ST_Min4ma(*args, **kwargs)¶
计算邻域中最小像素值的栅格处理函数。
请参阅http://postgis.net/docs/RT_ST_Min4ma.html
- class geoalchemy2.functions.ST_MinConvexHull(*args, **kwargs)¶
返回不包括NODATA像素的栅格凸包几何图形。
请参阅http://postgis.net/docs/RT_ST_MinConvexHull.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MinDist4ma(*args, **kwargs)¶
栅格处理函数,返回感兴趣的像素与相邻像素之间的最小距离(以像素数表示)。
请参阅http://postgis.net/docs/RT_ST_MinDist4ma.html
- class geoalchemy2.functions.ST_MinPossibleValue(*args, **kwargs)¶
返回此像素类型可以存储的最小值。
请参阅http://postgis.net/docs/ST_MinPossibleValue.html
- class geoalchemy2.functions.ST_MinimumBoundingCircle(*args, **kwargs)¶
返回完全包含几何图形的最小圆多边形。默认情况下,每个四分之一圆使用48个线段。
见http://postgis.net/docs/ST_MinimumBoundingCircle.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MinimumBoundingRadius(*args, **kwargs)¶
返回可以完全包含几何图形的最小圆的中心点和半径。
请参阅http://postgis.net/docs/ST_MinimumBoundingRadius.html
- class geoalchemy2.functions.ST_MinimumClearance(*args, **kwargs)¶
返回几何体的最小间隙,这是几何体稳健性的度量。
请参阅http://postgis.net/docs/ST_MinimumClearance.html
- class geoalchemy2.functions.ST_MinimumClearanceLine(*args, **kwargs)¶
返回跨越几何图形最小间隙的两点线串。
见http://postgis.net/docs/ST_MinimumClearanceLine.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_MinkowskiSum(*args, **kwargs)¶
执行Minkowski和
请参阅http://postgis.net/docs/ST_MinkowskiSum.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Multi(*args, **kwargs)¶
将几何图形作为多*几何图形返回。
见http://postgis.net/docs/ST_Multi.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_NDims(*args, **kwargs)¶
返回几何图形的坐标尺寸。
请参阅http://postgis.net/docs/ST_NDims.html
- class geoalchemy2.functions.ST_NPoints(*args, **kwargs)¶
返回几何体中的点(顶点)数。
见http://postgis.net/docs/ST_NPoints.html
- class geoalchemy2.functions.ST_NRings(*args, **kwargs)¶
返回多边形几何体中的环形数。
请参阅http://postgis.net/docs/ST_NRings.html
- class geoalchemy2.functions.ST_NearestValue(*args, **kwargs)¶
返回由Columnx和Rowy或在与栅格相同的空间参考坐标系中表示的几何点指定的给定波段像素的最接近的非NODATA值。
请参阅http://postgis.net/docs/RT_ST_NearestValue.html
- class geoalchemy2.functions.ST_Neighborhood(*args, **kwargs)¶
返回由ColumnX和Rowy指定的给定标注栏像素周围的非NODATA值的二维双精度数组,或者返回在与栅格相同的空间参考坐标系中表示的几何点。
请参阅http://postgis.net/docs/RT_ST_Neighborhood.html
- class geoalchemy2.functions.ST_Node(*args, **kwargs)¶
节点一组字符串。
见http://postgis.net/docs/ST_Node.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Normalize(*args, **kwargs)¶
以规范形式返回几何体。
见http://postgis.net/docs/ST_Normalize.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_NotSameAlignmentReason(*args, **kwargs)¶
返回文本,说明栅格是否对齐,如果未对齐,则说明原因。
请参阅http://postgis.net/docs/RT_ST_NotSameAlignmentReason.html
- class geoalchemy2.functions.ST_NumBands(*args, **kwargs)¶
返回栅格对象中的波段数。
请参阅http://postgis.net/docs/RT_ST_NumBands.html
- class geoalchemy2.functions.ST_NumGeometries(*args, **kwargs)¶
返回几何图形集合中的元素数。
请参阅http://postgis.net/docs/ST_NumGeometries.html
- class geoalchemy2.functions.ST_NumInteriorRing(*args, **kwargs)¶
返回多边形的内环(孔)数。ST_NumInteriorRings的AIAS
请参阅http://postgis.net/docs/ST_NumInteriorRing.html
- class geoalchemy2.functions.ST_NumInteriorRings(*args, **kwargs)¶
返回多边形的内环(孔)数。
请参阅http://postgis.net/docs/ST_NumInteriorRings.html
- class geoalchemy2.functions.ST_NumPatches(*args, **kwargs)¶
返回多面体曲面上的面数。对于非多面体几何图形将返回NULL。
请参阅http://postgis.net/docs/ST_NumPatches.html
- class geoalchemy2.functions.ST_NumPoints(*args, **kwargs)¶
返回LineString或CircularString中的点数。
请参阅http://postgis.net/docs/ST_NumPoints.html
- class geoalchemy2.functions.ST_OffsetCurve(*args, **kwargs)¶
返回与输入线在给定距离和边上的偏移线。用于计算关于中心线的平行线
见http://postgis.net/docs/ST_OffsetCurve.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_OrderingEquals(*args, **kwargs)¶
如果给定的几何图形表示相同的几何图形并且点具有相同的方向顺序,则返回TRUE。
见http://postgis.net/docs/ST_OrderingEquals.html
- class geoalchemy2.functions.ST_Orientation(*args, **kwargs)¶
确定曲面方向
请参阅http://postgis.net/docs/ST_Orientation.html
- class geoalchemy2.functions.ST_OrientedEnvelope(*args, **kwargs)¶
返回包围几何图形的最小旋转矩形。
见http://postgis.net/docs/ST_OrientedEnvelope.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Overlaps(*args, **kwargs)¶
[几何体] 如果Geometry共享空间,具有相同的维度,但不完全包含在彼此之间,则返回TRUE。或 [栅格] 如果栅格RastA和rastB相交,但其中一个没有完全包含另一个,则返回TRUE。
见http://postgis.net/docs/ST_Overlaps.html
- class geoalchemy2.functions.ST_PatchN(*args, **kwargs)¶
返回多面体曲面的第N个几何图形(面)。
见http://postgis.net/docs/ST_PatchN.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Perimeter(*args, **kwargs)¶
返回多边形几何图形或地理区域的边界长度。
见http://postgis.net/docs/ST_perioder.html
- class geoalchemy2.functions.ST_Perimeter2D(*args, **kwargs)¶
返回多边形几何体的二维周长。ST_PERIMETER的别名。
请参阅http://postgis.net/docs/ST_Perimeter2D.html
- class geoalchemy2.functions.ST_PixelAsCentroid(*args, **kwargs)¶
返回像素表示的区域的质心(点几何图形)。
请参阅http://postgis.net/docs/RT_ST_PixelAsCentroid.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_PixelAsCentroids(*args, **kwargs)¶
返回栅格标注栏的每个像素的质心(点几何图形)以及每个像素的值、X和Y栅格坐标。点几何图形是由像素表示的区域的质心。
请参阅http://postgis.net/docs/RT_ST_PixelAsCentroids.html
- class geoalchemy2.functions.ST_PixelAsPoint(*args, **kwargs)¶
返回像素左上角的点几何图形。
请参阅http://postgis.net/docs/RT_ST_PixelAsPoint.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_PixelAsPoints(*args, **kwargs)¶
返回栅格标注栏的每个像素的点几何图形,以及每个像素的值、X和Y栅格坐标。点几何图形的坐标位于像素的左上角。
请参阅http://postgis.net/docs/RT_ST_PixelAsPoints.html
- class geoalchemy2.functions.ST_PixelAsPolygon(*args, **kwargs)¶
返回限定特定行和列的像素的多边形几何图形。
请参阅http://postgis.net/docs/RT_ST_PixelAsPolygon.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_PixelAsPolygons(*args, **kwargs)¶
返回限定栅格带的每个像素的多边形几何图形,以及每个像素的值、X和Y栅格坐标。
请参阅http://postgis.net/docs/RT_ST_PixelAsPolygons.html
- class geoalchemy2.functions.ST_PixelHeight(*args, **kwargs)¶
返回以空间参考系的几何单位表示的像素高度。
请参阅http://postgis.net/docs/RT_ST_PixelHeight.html
- class geoalchemy2.functions.ST_PixelOfValue(*args, **kwargs)¶
获取其值等于搜索值的像素的Columnx,Rowy坐标。
请参阅http://postgis.net/docs/RT_ST_PixelOfValue.html
- class geoalchemy2.functions.ST_PixelWidth(*args, **kwargs)¶
返回以空间参考系的几何单位表示的像素宽度。
请参阅http://postgis.net/docs/RT_ST_PixelWidth.html
- class geoalchemy2.functions.ST_Point(*args, **kwargs)¶
使用给定的坐标值创建点。ST_MakePoint的别名。
见http://postgis.net/docs/ST_Point.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_PointFromGeoHash(*args, **kwargs)¶
从GeoHash字符串返回点。
见http://postgis.net/docs/ST懔PointFromGeoHash.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_PointFromText(*args, **kwargs)¶
使用给定的SRID从WKT生成点几何图形。如果没有给出SRID,则默认为unknown。
见http://postgis.net/docs/ST_PointFromText.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_PointFromWKB(*args, **kwargs)¶
使用给定的SRID从WKB生成几何体
见http://postgis.net/docs/ST_PointFromWKB.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_PointInsideCircle(*args, **kwargs)¶
是由center_x,center_y,Radius定义的圆内的点几何
请参阅http://postgis.net/docs/ST_PointInsideCircle.html
- class geoalchemy2.functions.ST_PointN(*args, **kwargs)¶
返回几何图形中第一条直线串或圆形直线串中的第N点。
见http://postgis.net/docs/ST_PointN.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_PointOnSurface(*args, **kwargs)¶
返回保证位于曲面上的点。
见http://postgis.net/docs/ST_PointOnSurface.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Points(*args, **kwargs)¶
返回包含几何图形所有坐标的多点。
见http://postgis.net/docs/ST_Points.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Polygon(*args, **kwargs)¶
[几何体] 从具有指定SRID的线串创建多边形。或 [栅格] 返回由像素值不是无数据值的像素并集形成的多多边形几何图形。如果未指定波段编号,则波段编号默认为1。
见http://postgis.net/docs/ST_Polygon.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_PolygonFromText(*args, **kwargs)¶
使用给定的SRID从WKT生成几何体。如果未给定SRID,则默认为0。
见http://postgis.net/docs/ST_PolygonFromText.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Polygonize(*args, **kwargs)¶
聚合。创建包含由一组几何图形的组成线条形成的可能多边形的GeometryCollection。
见http://postgis.net/docs/ST_Polygonize.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Project(*args, **kwargs)¶
返回从起点按距离和方位角(方位角)投影的点。
见http://postgis.net/docs/ST_Project.html
返回类型:
geoalchemy2.types.Geography.- type¶
alias of
geoalchemy2.types.Geography
- class geoalchemy2.functions.ST_Quantile(*args, **kwargs)¶
在样本或总体上下文中计算栅格或栅格表覆盖的分位数。因此,可以将值检查为位于栅格的25%、50%、75%的百分位数。
请参阅http://postgis.net/docs/RT_ST_Quantile.html
- class geoalchemy2.functions.ST_QuantizeCoordinates(*args, **kwargs)¶
将坐标的最低有效位设置为零
见http://postgis.net/docs/ST_QuantizeCoordinates.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Range4ma(*args, **kwargs)¶
计算邻域内像素值范围的栅格处理函数。
请参阅http://postgis.net/docs/RT_ST_Range4ma.html
- class geoalchemy2.functions.ST_RastFromHexWKB(*args, **kwargs)¶
从熟知二进制(Wkb)栅格的祸不单行表示中返回栅格值。
请参阅http://postgis.net/docs/RT_ST_RastFromHexWKB.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_RastFromWKB(*args, **kwargs)¶
从熟知的二进制(WKB)栅格返回栅格值。
请参阅http://postgis.net/docs/RT_ST_RastFromWKB.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_RasterToWorldCoord(*args, **kwargs)¶
在给定列和行的情况下,以几何X和Y(经度和纬度)形式返回栅格的左上角。列和行从1开始。
请参阅http://postgis.net/docs/RT_ST_RasterToWorldCoord.html
- class geoalchemy2.functions.ST_RasterToWorldCoordX(*args, **kwargs)¶
返回栅格、列和行的左上角几何X坐标。列和行的编号从1开始。
请参阅http://postgis.net/docs/RT_ST_RasterToWorldCoordX.html
- class geoalchemy2.functions.ST_RasterToWorldCoordY(*args, **kwargs)¶
返回栅格、列和行的几何Y坐标左上角。列和行的编号从1开始。
请参阅http://postgis.net/docs/RT_ST_RasterToWorldCoordY.html
- class geoalchemy2.functions.ST_Reclass(*args, **kwargs)¶
创建由从原始标注栏重新分类的标注栏类型组成的新栅格。nband是要更改的频带。如果未指定nband,则假定为1。所有其他波段将原封不动地返回。用例:将16BUI波段转换为8BUI,以此类推,以便更简单地呈现为可视格式。
请参阅http://postgis.net/docs/RT_ST_Reclass.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_Relate(*args, **kwargs)¶
通过测试intersectionMatrixPattern中的值指定的两个几何图形的内部、边界和外部之间的交点,如果此Geometry在空间上与另一个Geometry相关,则返回True。如果没有传入intersectionMatrixPattern,则返回关联两个几何图形的最大intersectionMatrixPattern。
见http://postgis.net/docs/ST_Relate.html
- class geoalchemy2.functions.ST_RelateMatch(*args, **kwargs)¶
如果intersectionMattrixPattern1暗示intersectionMatrixPattern2,则返回TRUE
请参阅http://postgis.net/docs/ST_RelateMatch.html
- class geoalchemy2.functions.ST_RemovePoint(*args, **kwargs)¶
从线串中删除点。
见http://postgis.net/docs/ST_RemovePoint.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_RemoveRepeatedPoints(*args, **kwargs)¶
返回给定几何体的版本,删除重复点。
见http://postgis.net/docs/ST_removeepeatedpoints.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Resample(*args, **kwargs)¶
使用指定的重采样算法、新尺寸、任意栅格角点和一组定义或从其他栅格借用的栅格地理参考属性对栅格重采样。
见http://postgis.net/docs/RT_ST_Resample.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_Rescale(*args, **kwargs)¶
仅通过调整栅格的比例(或像素大小)对其重新采样。新的像素值是使用最近邻(英语或美国拼写)、双线性、立方、立方线或Lanczos重采样算法计算的。默认值是NearestNeighbor。
见http://postgis.net/docs/RT_ST_Rescale.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_Resize(*args, **kwargs)¶
将栅格调整为新的宽度/高度
见http://postgis.net/docs/RT_ST_Resize.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_Reskew(*args, **kwargs)¶
通过仅调整栅格的倾斜(或旋转参数)来重新采样栅格。新的像素值是使用最近邻(英语或美国拼写)、双线性、立方、立方线或Lanczos重采样算法计算的。默认值是NearestNeighbor。
见http://postgis.net/docs/RT_ST_Reskew.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_Retile(*args, **kwargs)¶
从任意平铺的栅格覆盖中返回一组配置的平铺。
请参阅http://postgis.net/docs/RT_ST_Retile.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_Reverse(*args, **kwargs)¶
返回顶点顺序颠倒的几何体。
见http://postgis.net/docs/ST_Reverse.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Rotate(*args, **kwargs)¶
绕原点旋转几何图形。
见http://postgis.net/docs/ST_Rotate.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_RotateX(*args, **kwargs)¶
绕X轴旋转几何图形。
见http://postgis.net/docs/ST_RotateX.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_RotateY(*args, **kwargs)¶
绕Y轴旋转几何图形。
见http://postgis.net/docs/ST_RotateY.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_RotateZ(*args, **kwargs)¶
绕Z轴旋转几何图形。
见http://postgis.net/docs/ST_RotateZ.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Rotation(*args, **kwargs)¶
返回栅格以弧度为单位的旋转。
请参阅http://postgis.net/docs/RT_ST_Rotation.html
- class geoalchemy2.functions.ST_Roughness(*args, **kwargs)¶
返回具有计算出的DEM“粗糙度”的栅格。
请参阅http://postgis.net/docs/RT_ST_Roughness.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_SRID(*args, **kwargs)¶
[几何体] 返回在SPATIAL_REF_SYS表中定义的ST_Geometry的空间参考标识符。或 [栅格] 返回在SPATIAL_REF_SYS表中定义的栅格的空间参考标识符。
见http://postgis.net/docs/ST_SRID.html
- class geoalchemy2.functions.ST_SameAlignment(*args, **kwargs)¶
如果栅格具有相同的倾斜、比例、空间参考和偏移量(像素可以放在相同的网格上,而不会剪切成像素),则返回TRUE,如果它们不具有相同的倾斜、比例、空间参考和偏移量,则返回FALSE,并注意细节问题。
请参阅http://postgis.net/docs/RT_ST_SameAlignment.html
- class geoalchemy2.functions.ST_Scale(*args, **kwargs)¶
按给定因子缩放几何图形。
见http://postgis.net/docs/ST_Scale.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ScaleX(*args, **kwargs)¶
以坐标参考系为单位返回像素宽度的X分量。
请参阅http://postgis.net/docs/RT_ST_ScaleX.html
- class geoalchemy2.functions.ST_ScaleY(*args, **kwargs)¶
以坐标参考系为单位返回像素高度的Y分量。
请参阅http://postgis.net/docs/RT_ST_ScaleY.html
- class geoalchemy2.functions.ST_Segmentize(*args, **kwargs)¶
返回一个修改过的几何/地理,其线段长度不超过给定的距离。
见http://postgis.net/docs/ST_Segmentize.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_SetBandIndex(*args, **kwargs)¶
更新数据库外波段的外部波段编号
请参阅http://postgis.net/docs/RT_ST_SetBandIndex.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_SetBandIsNoData(*args, **kwargs)¶
将波段的isnodata标志设置为true。
请参阅http://postgis.net/docs/RT_ST_SetBandIsNoData.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_SetBandNoDataValue(*args, **kwargs)¶
设置表示无数据的给定标注栏的值。如果未指定波段,则假定波段1。要将波段标记为没有nodata值,请将nodata值设置为NULL。
请参阅http://postgis.net/docs/RT_ST_SetBandNoDataValue.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_SetBandPath(*args, **kwargs)¶
更新数据库外波段的外部路径和波段编号
请参阅http://postgis.net/docs/RT_ST_SetBandPath.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_SetEffectiveArea(*args, **kwargs)¶
设置每个顶点的有效区域,将值存储在M坐标中。然后,通过对M坐标进行滤波,可以生成简化的几何图形。
见http://postgis.net/docs/ST_SetEffectiveArea.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_SetGeoReference(*args, **kwargs)¶
在单个调用中设置地理参考6个地理参考参数。数字之间应该用空格隔开。接受GDAL或ESRI格式的输入。默认值为GDAL。
请参阅http://postgis.net/docs/RT_ST_SetGeoReference.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_SetPoint(*args, **kwargs)¶
用给定点替换线字符串的点。
见http://postgis.net/docs/ST_SetPoint.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_SetRotation(*args, **kwargs)¶
以弧度设置栅格的旋转。
请参阅http://postgis.net/docs/RT_ST_SetRotation.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_SetSRID(*args, **kwargs)¶
[几何体] 将几何图形上的SRID设置为特定整数值。或 [栅格] 将栅格的SRID设置为在SPATIAL_REF_SYS表中定义的特定整数sRID。
见http://postgis.net/docs/ST_SetSRID.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_SetScale(*args, **kwargs)¶
以坐标参考系为单位设置像素的X和Y大小。数字单位/像素宽度/高度。
请参阅http://postgis.net/docs/RT_ST_SetScale.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_SetSkew(*args, **kwargs)¶
设置地理参考X和Y倾斜(或旋转参数)。如果只传入一个,则将X和Y设置为相同的值。
请参阅http://postgis.net/docs/RT_ST_SetSkew.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_SetUpperLeft(*args, **kwargs)¶
将栅格像素左上角的值设置为投影的X和Y坐标。
请参阅http://postgis.net/docs/RT_ST_SetUpperLeft.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_SetValue(*args, **kwargs)¶
返回因设置给定列x、行像素或与特定几何图形相交的像素中的给定波段的值而修改的栅格。波段编号从1开始,如果未指定,则假定为1。
请参阅http://postgis.net/docs/RT_ST_SetValue.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_SetValues(*args, **kwargs)¶
返回通过设置给定波段的值而修改的栅格。
请参阅http://postgis.net/docs/RT_ST_SetValues.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
返回一个集合,该集合包含两个输入行字符串/多行字符串共享的路径。
见http://postgis.net/docs/ST_SharedPaths.html
返回类型:
geoalchemy2.types.Geometry.alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ShiftLongitude(*args, **kwargs)¶
在-180..180和0..360范围之间切换几何坐标。
请参阅http://postgis.net/docs/ST_Shift_Longitude.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_ShortestLine(*args, **kwargs)¶
返回两个几何之间的2D最短线
见http://postgis.net/docs/ST_ShortestLine.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Simplify(*args, **kwargs)¶
使用Douglas Peucker算法返回给定几何体的“简化”版本。
见http://postgis.net/docs/ST_Simplify.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_SimplifyPreserveTopology(*args, **kwargs)¶
使用Douglas Peucker算法返回给定几何体的“简化”版本。将避免创建无效的派生几何体(特别是多边形)。
见http://postgis.net/docs/ST_SimplifyPreserveTopology.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_SimplifyVW(*args, **kwargs)¶
使用Visvalingam Whyatt算法返回给定几何体的“简化”版本
见http://postgis.net/docs/ST_SimplifyVW.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_SkewX(*args, **kwargs)¶
返回地理参考X倾斜(或旋转参数)。
请参阅http://postgis.net/docs/RT_ST_SkewX.html
- class geoalchemy2.functions.ST_SkewY(*args, **kwargs)¶
返回地理参考Y倾斜(或旋转参数)。
请参阅http://postgis.net/docs/RT_ST_SkewY.html
- class geoalchemy2.functions.ST_Slope(*args, **kwargs)¶
返回高程栅格标注栏的坡度(默认情况下以度为单位)。对于分析地形非常有用。
请参阅http://postgis.net/docs/RT_ST_Slope.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_Snap(*args, **kwargs)¶
将输入几何体的线段和顶点捕捉到参考几何体的顶点。
见http://postgis.net/docs/ST_Snap.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_SnapToGrid(*args, **kwargs)¶
[几何体] 将输入几何体的所有点捕捉到规则栅格。或 [栅格] 通过将栅格捕捉到栅格来重采样栅格。使用NearestNeighbor(英式或美式拼写)、双线性、立方、立方样条线或Lanczos重采样算法计算新的像素值。默认值为NearestNeighbor。
见http://postgis.net/docs/ST_SnapToGrid.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Split(*args, **kwargs)¶
返回通过拆分几何图形生成的几何图形集合。
见http://postgis.net/docs/ST_Split.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_StartPoint(*args, **kwargs)¶
返回线串的第一个点。
见http://postgis.net/docs/ST_StartPoint.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_StdDev4ma(*args, **kwargs)¶
栅格处理功能,用于计算邻域内像素值的标准偏差。
请参阅http://postgis.net/docs/RT_ST_StdDev4ma.html
- class geoalchemy2.functions.ST_StraightSkeleton(*args, **kwargs)¶
从几何图形计算直骨架
请参阅http://postgis.net/docs/ST_StraightSkeleton.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Subdivide(*args, **kwargs)¶
返回一组几何体,其中集合中的任何几何体的顶点数都不超过指定的顶点数。
见http://postgis.net/docs/ST_Subdivide.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Sum4ma(*args, **kwargs)¶
计算邻域中所有像素值之和的栅格处理函数。
请参阅http://postgis.net/docs/RT_ST_Sum4ma.html
- class geoalchemy2.functions.ST_Summary(*args, **kwargs)¶
[几何体] 返回几何图形内容的文本摘要。或 [栅格] 返回栅格内容的文本摘要。
请参阅http://postgis.net/docs/ST_Summary.html
- class geoalchemy2.functions.ST_SummaryStats(*args, **kwargs)¶
返回由栅格或栅格Coverage的给定栅格波段的COUNT、SUM、Mean、STDDEV、MIN、MAX组成的摘要统计信息。假定带区1未指定带区。
请参阅http://postgis.net/docs/RT_ST_SummaryStats.html
- class geoalchemy2.functions.ST_SummaryStatsAgg(*args, **kwargs)¶
聚合。返回由一组栅格的给定栅格波段的COUNT、SUM、Mean、STDDEV、MIN、MAX组成的摘要统计信息。假定带区1未指定带区。
请参阅http://postgis.net/docs/RT_ST_SummaryStatsAgg.html
- class geoalchemy2.functions.ST_SwapOrdinates(*args, **kwargs)¶
返回给定坐标值交换的给定几何图形的版本。
见http://postgis.net/docs/ST_swaportdinates.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_SymDifference(*args, **kwargs)¶
返回表示a和B中不相交部分的几何图形。之所以称之为对称差分,是因为ST_SymDifference(a,B)=ST_SymDifference(B,a)。
见http://postgis.net/docs/ST_SymDifference.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_TPI(*args, **kwargs)¶
返回具有计算出的地形位置索引的栅格。
请参阅http://postgis.net/docs/RT_ST_TPI.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_TRI(*args, **kwargs)¶
返回具有计算出的地形崎岖指数的栅格。
请参阅http://postgis.net/docs/RT_ST_TRI.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_Tesselate(*args, **kwargs)¶
执行面或多面体表面的表面镶嵌,并以TIN或TIN集合的形式返回
请参阅http://postgis.net/docs/ST_Tesselate.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Tile(*args, **kwargs)¶
根据输出栅格的所需尺寸,返回通过拆分输入栅格产生的一组栅格。
请参阅http://postgis.net/docs/RT_ST_Tile.html
返回类型:
geoalchemy2.types.Raster.- type¶
alias of
geoalchemy2.types.Raster
- class geoalchemy2.functions.ST_TileEnvelope(*args, **kwargs)¶
在WebMercator中创建矩形多边形(编号:3857)使用XYZ平铺系统。
见http://postgis.net/docs/ST_TileEnvelope.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Touches(*args, **kwargs)¶
[几何体] 如果几何图形至少有一个共同点,但其内部不相交,则返回TRUE。或 [栅格] 如果栅格RastA和rastB至少有一个共同点,但其内部不相交,则返回TRUE。
见http://postgis.net/docs/ST_touchs.html
- class geoalchemy2.functions.ST_TransScale(*args, **kwargs)¶
按给定的偏移和因子平移和缩放几何图形。
见http://postgis.net/docs/ST_TransScale.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Transform(*args, **kwargs)¶
[几何体] 返回坐标转换到不同空间参考系的新几何图形。或 [栅格] 使用指定的重采样算法将已知空间参考系中的栅格重投影到另一个已知空间参考系。选项包括NearestNeighbor、双线性、立方、三次样条、默认为NearestNeighbor的Lanczos。
见http://postgis.net/docs/ST_Transform.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Translate(*args, **kwargs)¶
按给定偏移平移几何图形。
见http://postgis.net/docs/ST_Translate.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_UnaryUnion(*args, **kwargs)¶
与ST_Union类似,但在几何体组件级别工作。
见http://postgis.net/docs/ST_UnaryUnion.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Union(*args, **kwargs)¶
[几何体] 返回表示几何图形的点集并集的几何图形。或 [栅格] 将一组栅格平铺的并集返回由1个或多个标注栏组成的单个栅格。
见http://postgis.net/docs/ST_Union.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_UpperLeftX(*args, **kwargs)¶
返回投影空间参考中栅格的左上角X坐标。
请参阅http://postgis.net/docs/RT_ST_UpperLeftX.html
- class geoalchemy2.functions.ST_UpperLeftY(*args, **kwargs)¶
返回投影空间参考中栅格的左上角Y坐标。
请参阅http://postgis.net/docs/RT_ST_UpperLeftY.html
- class geoalchemy2.functions.ST_Value(*args, **kwargs)¶
返回给定列x、行像素或特定几何点处的给定带区的值。波段编号从1开始,如果未指定,则假定为1。如果EXCLUDE_NODATA_VALUE设置为FALSE,则包括NODATA像素的所有像素都被视为相交并返回值。如果未传入EXCLUDE_NODATA_VALUE,则从栅格的元数据中读取它。
见http://postgis.net/docs/RT_ST_Value.html
- class geoalchemy2.functions.ST_ValueCount(*args, **kwargs)¶
返回一组记录,其中包含一个像素带值和具有给定值集的栅格(或栅格覆盖率)的给定带中像素数的计数。如果未指定标注栏,则默认为标注栏1。默认情况下,不计算nodata值像素。输出像素中的所有其他值,并将像素带值舍入到最接近的整数。
请参阅http://postgis.net/docs/RT_ST_ValueCount.html
- class geoalchemy2.functions.ST_Volume(*args, **kwargs)¶
计算三维实体的体积。如果应用于曲面(即使是闭合的)几何图形将返回0。
请参阅http://postgis.net/docs/ST_Volume.html
- class geoalchemy2.functions.ST_VoronoiLines(*args, **kwargs)¶
返回由几何体顶点构造的Voronoi图的单元格之间的边界。
见http://postgis.net/docs/ST_voronolines.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_VoronoiPolygons(*args, **kwargs)¶
返回从几何体顶点构造的Voronoi图的单元格。
见http://postgis.net/docs/STúu VoronoiPolygons.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_WKBToSQL(*args, **kwargs)¶
从已知的二进制表示(WKB)返回指定的ST_Geometry值。这是不带srid的ST_GeomFromWKB的别名
见http://postgis.net/docs/ST_WKBToSQL.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_WKTToSQL(*args, **kwargs)¶
从已知文本表示(WKT)返回指定的ST U几何体值。这是ST_GeomFromText的别名
见http://postgis.net/docs/ST_wktosql.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_Width(*args, **kwargs)¶
返回栅格的宽度(以像素为单位)。
见http://postgis.net/docs/RT_ST_Width.html
- class geoalchemy2.functions.ST_Within(*args, **kwargs)¶
[几何体] 如果几何A完全位于几何B内部,则返回TRUE,或者 [栅格] 如果栅格RastA的点没有位于栅格rastB的外部,并且Rasta的内部至少有一个点位于rastB的内部,则返回TRUE。
见http://postgis.net/docs/ST_Within.html
- class geoalchemy2.functions.ST_WorldToRasterCoord(*args, **kwargs)¶
在给定几何X和Y(经度和纬度)或以栅格的空间参考坐标系表示的点几何图形的情况下,将左上角返回为列和行。
请参阅http://postgis.net/docs/RT_ST_WorldToRasterCoord.html
- class geoalchemy2.functions.ST_WorldToRasterCoordX(*args, **kwargs)¶
返回点几何图形的栅格中的列(Pt)或在栅格的世界空间参考系中表示的X和Y世界坐标(xw,yw)。
请参阅http://postgis.net/docs/RT_ST_WorldToRasterCoordX.html
- class geoalchemy2.functions.ST_WorldToRasterCoordY(*args, **kwargs)¶
返回点几何图形的栅格中的行(Pt)或在栅格的世界空间参考系中表示的X和Y世界坐标(xw,yw)。
请参阅http://postgis.net/docs/RT_ST_WorldToRasterCoordY.html
- class geoalchemy2.functions.ST_WrapX(*args, **kwargs)¶
围绕X值包装几何体。
见http://postgis.net/docs/ST_wrappx.html
返回类型:
geoalchemy2.types.Geometry.- type¶
alias of
geoalchemy2.types.Geometry
- class geoalchemy2.functions.ST_X(*args, **kwargs)¶
返回点的X坐标。
见http://postgis.net/docs/ST_X.html
- class geoalchemy2.functions.ST_XMax(*args, **kwargs)¶
返回二维或三维边界框或几何图形的X最大值。
请参阅http://postgis.net/docs/ST_XMax.html
- class geoalchemy2.functions.ST_XMin(*args, **kwargs)¶
返回二维或三维边界框或几何图形的X最小值。
请参阅http://postgis.net/docs/ST_XMin.html
- class geoalchemy2.functions.ST_Y(*args, **kwargs)¶
返回点的Y坐标。
见http://postgis.net/docs/ST_Y.html
- class geoalchemy2.functions.ST_YMax(*args, **kwargs)¶
返回二维或三维边界框或几何图形的Y最大值。
请参阅http://postgis.net/docs/ST_YMax.html
- class geoalchemy2.functions.ST_YMin(*args, **kwargs)¶
返回二维或三维边界框或几何图形的Y最小值。
请参阅http://postgis.net/docs/ST_YMin.html
- class geoalchemy2.functions.ST_Z(*args, **kwargs)¶
返回点的Z坐标。
见http://postgis.net/docs/ST_Z.html
- class geoalchemy2.functions.ST_ZMax(*args, **kwargs)¶
返回二维或三维边界框或几何图形的Z最大值。
请参阅http://postgis.net/docs/ST_ZMax.html
- class geoalchemy2.functions.ST_ZMin(*args, **kwargs)¶
返回二维或三维边界框或几何图形的Z最小值。
请参阅http://postgis.net/docs/ST_ZMin.html
- class geoalchemy2.functions.ST_Zmflag(*args, **kwargs)¶
返回指示几何图形的ZM坐标尺寸的代码。
请参阅http://postgis.net/docs/ST_Zmflag.html
- class geoalchemy2.functions.UnlockRows(*args, **kwargs)¶
移除授权令牌持有的所有锁。
请参阅http://postgis.net/docs/UnlockRows.html
- class geoalchemy2.functions.UpdateGeometrySRID(*args, **kwargs)¶
更新几何图形列中所有要素的SRID和表元数据。
请参阅http://postgis.net/docs/UpdateGeometrySRID.html
- class geoalchemy2.functions.postgis_sfcgal_version(*args, **kwargs)¶
返回正在使用的SFCGAL的版本
请参阅http://postgis.net/docs/postgis_sfcgal_version.html