fmeobjects.fmemultiarea.

fmeobjects.fmemultiarea的遗传图
FMEMultiArea.appendPart(区域) 这将该区域附加到多体区域。
FMEMultiArea.appendParts(multiArea) 这将多ALEA附加到现有的多ALEA。
fmemultiarea.boundingbox.() 此方法返回几何图形的边界框。
fmemultiarea.boundingcube.() 此方法返回几何图形的边界多维数据集。
fmemultiarea.bounds.() 回报the bounds of the geometry.
Fmemultiarea.Clearmeasures.() 从几何中删除所有措施。
fmemultiarea.copyattributesfromfeature.(...) 如果它们匹配(可选)正则表达式,则将来自给定功能从给定功能的所有属性复制到该几何图形中的所有属性。
fmemultiarea.copynamefromGomGefortry.(sourceGeometry) 将“superegeometry”的名称复制到此几何符中。
FMEMultiArea.copyTraitsFromGeometry(...) 将所有特征复制来自给定的几何图形匹配(可选)正则表达式。
FMEMultiArea.copyTraitsToFeature(...) 如果匹配(可选)正则表达式,则将从该几何中的所有特征复制到给定功能的属性。
fmemultiarea.deletename.() 删除几何名称。
fmemuliarea.force2d.() 将几何形状减少到2D。
FMEMultiArea.force3D(纽茨) 这将几何体的维度设置为3D。
fmemultiarea.getarea.() 区域计算。
FMEMultiArea.getMeasureNames() Retrieve the names of the measures on this geometry.
fmemultiarea.getName.() 此例程将此几何形状的“名称”检索为asix.text_type.
Fmemultiarea.getPartat.(指数) 此方法返回给定索引处的区域。
fmemultiarea.gettrait.(TraitName) 检索指定特征名称的几何特征值。
fmemultiarea.gettrait.Names() 检索此几何符中的特征的名称。
fmemultiarea.gettrait.NullMissingAndType(...) 此方法返回布尔值的元组,指示特性是null,一个布尔值,指示特性是否缺失,以及表示特征类型的整数。
fmemultiarea.gettraittype.(TraitName) 返回给定特征的类型。
fmemultiarea.hasmeasures.() 检查此几何形状的几何或任何子部分是否具有措施。
FMEMultiArea.hasName() 返回几何是否有名称。
FMEMultiArea.is3D() 返回几何是否为3D。
fmemuliarea.iscollection.() Check if the geometry is an aggregate or multi-part collection.
Fmemultiarea.Isinplane.(宽容, …) 与此同样做isplanar(),但是在给定正常或给定平面上检查平面度(如果指定平面方程D - 请参阅下文)。
FMEMultiArea.isPlanar(宽容) 回报真的如果这是在给定的公差范围内的平面False否则。
fmemultiarea.measureexist.(measureName) 回报真的if the specified measure exists andFalse否则。
fmemultiarea.numparts.() 这返回构成此多体区域的区域数。
fmemultiariarea.offset.(offsetPoint) 由“offsetPoint”指定的Coords抵消几何图形。
fmemultiarea.removelastpart.() 这会删除并返回多ALEA的最后一个区域。
fmemultiarea.removemeasure.(measureName) 如果提供的默认测量,则使用名称'MeasureName'删除测量值。
FMEMultiArea.removeTraits(regexp) 此方法有4种模式:
Fmemultiarea.CremeMemeSure.(OldMeasurename,......) 将“OldMeasurename”指定的度量重命名为“newmeasurename”指定的新名称。
fmemuliarea.rotate2d.(center, angle) 角度从水平向上CCW,以度为单位测量。
fmemultiarea.scale.(xscale, yscale, zscale) 将规模因子应用于多个月。
fmemultiarea.setname.(姓名) 使用a设置几何名称six.text_type.
fmemultiariarea.settrait.(traitName, traitValue) 设置具有指定值的几何特性。
fmemultiariarea.settraitnullwithtype.(TraitName,......) 此方法提供与几何形式的空特性值。
class FMEMultiArea

基础:fmeobjects.FMEGeometry

FME Multi-Area Class

Create an instance of a Multi-Area geometry object.

在里面()

默认FMEMultiArea构造函数。

返回类型: FMEMultiArea
返回: 多体区域几何对象的实例。

init(multiarea)

Create a copy of the passed in Multi-Area geometry object.

Parameters: 多体子(FMEMultiArea) - 用于创建副本的多区域几何对象。
返回类型: FMEMultiArea
返回: An instance of a MultiArea Geometry object.
__在里面__

初始化自我。请参阅帮助(类型(self))以获得准确的签名。

阑尾 ( area )

这将该区域附加到多体区域。如果没有通过,没有任何东西可以附加。All areas in the MultiArea will be forced to have the same dimension. If any 3D areas exist, all 2D areas will be converted to 3D with a default Z value of 0.0.

Parameters: area(FMEArea) – The area to be appended.
返回类型: 没有
提升: fmeexception.- 如果发生错误,则会提出异常。
阑尾s ( 多体子 )

这将多ALEA附加到现有的多ALEA。如果没有通过,没有任何东西可以附加。

Parameters: 多体子(FMEMultiArea) – The MultiArea to be appended.
返回类型: 没有
提升: fmeexception.- 如果发生错误,则会提出异常。
boundingBox ( )

此方法返回几何图形的边界框。

返回类型: 元组[元组[漂浮]
返回: The bounding box of the Geometry, in the form ((minx, miny), (maxx, maxy)).
绑定铲子 ( )

此方法返回几何图形的边界多维数据集。

返回类型: 元组[元组[漂浮]
返回: The bounding box of the Geometry, in the form ((minx, miny, minz), (maxx, maxy, maxz)).
界限 ( )

回报the bounds of the geometry.

返回类型: 元组[FMEPoint]
返回: 界限的最小点和最大点。没有如果几何图形没有任何点,则返回。
清除 ( )

从几何中删除所有措施。

返回类型: 没有
copyAttributesFromFeature ( sourceFeature,overwriteExisting,regexp,字首 )

如果它们匹配(可选)正则表达式,则将来自给定功能从给定功能的所有属性复制到该几何图形中的所有属性。

Parameters:
  • sourceFeature(FMemeature.) - 复制属性的功能。
  • overwriteExisting(BOOL.) - 只有在覆盖件包销时,才会覆盖现有的特征真的
  • regexp(str.) - (可选)正则表达式以与属性匹配。如果未指定Regexp,则将复制所有属性。
  • 字首(str.) - (可选)将前缀放在所有特征名称上,因为它们被复制。如果未指定,则不会将前缀添加到特征名称中。
返回类型:

没有

CopyNameFromGeometry. ( sourcegeometry. )

将“superegeometry”的名称复制到此几何符中。如果'sourcegeometry的名称是空白或没有,这种几何名称将成为没有

Parameters: sourcegeometry.(fmegeometry.) – The geometry to copy the name from.
返回类型: 没有
copyTraitsFromGeometry ( sourcegeometry.,overwriteExisting,regexp,字首 )

将所有特征复制来自给定的几何图形匹配(可选)正则表达式。

Parameters:
  • sourcegeometry.(fmegeometry.) – The geometry to copy traits from.
  • overwriteExisting(BOOL.) - 只有在覆盖件包销时,才会覆盖现有的特征真的
  • regexp(str.) - (可选)与特征相匹配的正则表达式。如果未指定regexp,或者是空字符串,则将复制所有特征。
  • 字首(str.) - (可选)将前缀放在所有特征名称上,因为它们被复制。如果未指定,则不会将前缀添加到特征名称中。
返回类型:

没有

CopyTraitStoFeature. ( Destfeature.,overwriteExisting,regexp,字首 )

如果匹配(可选)正则表达式,则将从该几何中的所有特征复制到给定功能的属性。

Parameters:
  • Destfeature.(FMemeature.) - 复制特征的功能。
  • overwriteExisting(BOOL.) - 仅当覆盖件包装是时,才会覆盖现有属性真的
  • regexp(str.) - (可选)与特征相匹配的正则表达式。如果未指定regexp,或者是空字符串,则将复制所有特征。
  • 字首(str.) – (Optional) The prefix is put on all the attribute names as they are copied. If it is not specified, a prefix will not be added to the attribute names.
返回类型:

没有

deletename. ( )

删除几何名称。如果此呼叫之前存在一个名称真的被归还;否则Falseis returned.

返回类型: BOOL.
返回: 回报a boolean indicating whether or not the name existed before deletion.
Force2d. ( )

将几何形状减少到2D。

返回类型: 没有
force3D ( 纽茨 )

这将几何体的维度设置为3D。即使几何形状已经3D,也将所有z值设置为传入的值。

Parameters: 纽茨(漂浮) - 新z值。
返回类型: 没有
Getarea. ( )

区域计算。

返回类型: 漂浮
返回: The calculated area.
GetMeasurenames. ( )

Retrieve the names of the measures on this geometry.

返回类型: 元组[细绳]
返回: 返回一个元组,存储此几何符上的措施的名称。如果没有措施,这将返回一个空元组。为了fmeaggregge.,fmemultisurface., 和FMECompositeSurface,这将返回所有部分的所有措施的联盟。
getName ( )

此例程将此几何形状的“名称”检索为asix.text_type.。This will return没有如果它没有与之关联的名称。

返回类型: six.text_type或没有
返回: 几何名称。
getPartat. ( index )

此方法返回给定索引处的区域。没有如果索引超出范围,则返回。

Parameters: index() – The index of the area part to return.
返回类型: FMEArea或者没有
返回: 给定索引处的区域。注意:此方法返回终端区域类型FMEArea; i.e. one of the leaf classes in theFMEAreainheritance graph. For example, aFMEPolygon如果该区域真正是多边形,则返回。
提升: fmeexception.- 如果发生错误,则会提出异常。
GetTrait. ( TraitName. )

检索指定特征名称的几何特征值。为了Python 2.7, strings are returned as one of two possible types - system encoded strings or unicode strings, if the source trait was encoded. Null trait values will be returned as an empty string. Binary blob traits are returned as a bytearray.

没有is returned when the trait is not found on the geometry.

Parameters: TraitName.(str.) - 几何特征的名称。
返回类型: BOOL.,, long,漂浮,six.string_types,ByteArray.,字节或者没有
返回: 特质价值。
提升: fmeexception.- 如果在检索特征值时出现问题,提出了一个例外。
GetTraitnames. ( )

检索此几何符中的特征的名称。

返回类型: 元组[str.]
返回: 返回存储此几何形状上的特征名称的元组。如果没有特征,这将返回空元组。对于所有集合和容器,这将仅返回最外面对象上的特征名称。
gettraitnullmissingandtype. ( TraitName. )

此方法返回布尔值的元组,指示特性是null,一个布尔值,指示特性是否缺失,以及表示特征类型的整数。The first boolean is真的if ‘traitName’ maps to a null trait value on the geometry. Otherwise it isFalse。第二个布尔值是真的如果'traitname'映射到几何上没有值。否则是False。如果the trait is absent,fme_attr_undefined.is returned for the type.

可能的特质是fme_attr_undefined.,fme_attr_boolean.,FME_ATTR_INT8,fme_attr_uint8.,fme_attr_int16,fme_attr_uint16,fme_attr_int32.,fme_attr_uint32.,fme_attr_real32.,fme_attr_real64.,FME_ATTR_REAL80,fme_attr_string.,FME_ATTR_ENCODED_STRING,fme_attr_int64.,FME_ATTR_UINT64

Parameters: TraitName.(str.) – The trait’s name.
返回类型: 元组[BOOL.,BOOL.,]
返回: A tuple of 2 boolean values the first indicating whether or not the value of the trait is null, the second indicating whether or not the trait is missing, and an integer representing the trait type.
getTraittype. ( TraitName. )

返回给定特征的类型。如果无法找到特质,fme_attr_undefined.将返回。

返回其中一个fme_attr_undefined.,fme_attr_boolean.,FME_ATTR_INT8,fme_attr_uint8.,fme_attr_int16,fme_attr_uint16,fme_attr_int32.,fme_attr_uint32.,fme_attr_real32.,fme_attr_real64.,FME_ATTR_REAL80,fme_attr_string.,FME_ATTR_ENCODED_STRING,fme_attr_int64.,FME_ATTR_UINT64

Parameters: TraitName.(str.) – The trait’s name.
返回类型:
返回: 特质类型。
哈米索 ( )

检查此几何形状的几何或任何子部分是否具有措施。

返回类型: BOOL.
返回: 真的如果这种几何形状或该几何形状的任何子部分都有措施,False否则。
hasname. ( )

返回几何是否有名称。

返回类型: BOOL.
返回: 回报真的如果几何有名称和False否则。
is3D ( )

返回几何是否为3D。

返回类型: BOOL.
返回: 回报真的if the geometry is 3D andFalse否则。为了FMENull,这种方法总是返回真的。为了fmeaggregge.,FMEMultiPoint,FMEMultiArea,Fmemultitext.fmemulticurve., this method will return真的if any one of the sub-parts is 3D. If the collection is empty or all of its members are 2D, this method will returnFalse
iscollection. ( )

Check if the geometry is an aggregate or multi-part collection.

返回类型: BOOL.
返回: 真的如果几何是聚合或多零件集合。
isinplane. ( 宽容,normalVector,val,重新计算 )

与此同样做isplanar(),但是在给定正常或给定平面上检查平面度(如果指定平面方程D - 请参阅下文)。如果给定正常是零向量,则使用Newell的方法计算用于检查平面度的正常方法isplanar()。VALD是对平面方程AX + + CZ = D中的D值的参考。它可用于确保多个件位于同一平面中。如果“重新计算”设置为False,D的D值为D将用于计算中。如果设置为“重新计算”真的, the passed in value is ignored and is instead automatically calculated (and returned in the second position of the returned tuple). A useful calling pattern for ensuring co-planarity is to get valD computed on the first call to the function setting recalculateD to真的,然后使用此值备将来调用重新计算到False

Parameters:
  • 宽容(漂浮) - 遏制检查。
  • normalVector(元组[漂浮,漂浮,漂浮]) – The normal used to check the planarity.
  • val(漂浮) – The value D from ‘AX + BY + CZ = D’.
  • 重新计算(BOOL.) - 是否重新计算或不重新计算。
返回类型:

元组[BOOL.,元组,漂浮]

返回:

A tuple containing a boolean, tuple, and float representing: 1) Whether or not the multiarea is in plane; 2) The normal vector returned; and 3) The value ‘D’.Note: If recalculateD isFalse, the tuple returned will only contain the boolean and vector tuple (i.e. ‘valD’ is not returned).

isplanar. ( 宽容 )

回报真的如果这是在给定的公差范围内的平面False否则。

平面状况通过以下算法计算。正常矢量由使用Newell的方法确定该区域的顶点。对于该区域的第一点(x',y',z'),我们计算d'= ax'+ by' + cz'。然后,如果仅当该区域的每个后续点(x,y,z)给出d = cz的每个后续点(x,y,z),则该区域是平面的。也就是说,|D - D'|<=容差。

如果指定的公差为否定,则此方法总是返回真的

Parameters: 宽容(漂浮) - 遏制检查。
返回类型: BOOL.
返回: 多体界是在提供的公差范围内是平面的。
measureExists ( measureName. )

回报真的if the specified measure exists andFalse否则。如果未指定“MeasureName”参数,则检查默认度量。

Parameters: measureName.(str.) - (可选)措施的名称。
返回类型: BOOL.
返回: Boolean indicating whether or not the measure exists.
numParts ( )

这返回构成此多体区域的区域数。

返回类型:
返回: 多AIREA的区域数。
抵消 ( offsetPoint. )

由“offsetPoint”指定的Coords抵消几何图形。

Parameters: offsetPoint.(FMEPoint) – The point to offset the coordinates of the geometry by.
返回类型: 没有
提升: fmeexception.- 如果发生错误,则会提出异常。
removelastpart. ( )

这会删除并返回多ALEA的最后一个区域。如果多体子中没有区域,它将返回没有

返回类型: FMEArea或者没有
返回: The last area of the MultiArea. Note: This method returns a terminal area type of theFMEArea; i.e. one of the leaf classes in theFMEAreainheritance graph. For example, aFMEPolygon如果该区域真正是多边形,则返回。
提升: fmeexception.- 如果发生错误,则会提出异常。
搬迁 ( measureName. )

如果提供的默认测量,则使用名称'MeasureName'删除测量值。

Parameters: measureName.(str.) – (Optional) The name of the measure to remove.
返回类型: 没有
removetraits. ( regexp )

此方法有4种模式:

  1. 删除顶级的所有特征:Regex == null
  2. 在顶级删除一些特征:Regex ==
  3. Remove all traits at all levels: regex ==kfme_recurseall
  4. Remove some traits at all levels: regex ==kfme_recursesome.

例如,为多表面指定Regex == null将在多表面​​的根级别删除所有特征,而指定Regex ==kfme_recursesome.将从匹配匹配的多个级别的所有级别中删除所有特征。如果是非法的正则表达式,则不会删除任何特征。

返回类型: 没有
重新评估 ( oldmeasurename.,newmeasurename. )

将“OldMeasurename”指定的度量重命名为“newmeasurename”指定的新名称。

Parameters:
  • oldmeasurename.(str.) - 衡量标准的原始名称。
  • newmeasurename.(str.) - 措施的新名称。
返回类型:

没有

Rotate2d. ( 中央,角度 )

角度从水平向上CCW,以度为单位测量。

Parameters:
  • 中央(FMEPoint) - 旋转的中心。
  • 角度(漂浮) - 以度数的角度。
返回类型:

没有

提升:

fmeexception.- 如果发生错误,则会提出异常。

规模 ( xscale,yscale,ZScale. )

将规模因子应用于多个月。如果几何为2D,则忽略zscale。

Parameters:
  • xscale(漂浮) - x比例因子。
  • yscale(漂浮) - y比例因子。
  • ZScale.(漂浮) - z比例因子。
返回类型:

没有

提升:

fmeexception.- 如果发生错误,则会提出异常。

setName ( 姓名 )

使用a设置几何名称six.text_type.。By supplying a blank name as input, this method will act asdeletename()

Parameters: 姓名(six.text_type.) - 几何的新名称。
返回类型: 没有
setTrait ( TraitName.,TraitValue. )

设置具有指定值的几何特性。如果几何特性已经存在,则其值和类型将被更改。使用以下类型的数字映射:

pyint ==> fme_int32

pyfloat ==> fme_real64

Pylong ==> FME_INT64

为了Python 2.7, strings can be input as one of two possible types: system encoded strings or unicode strings. Binary values are to be specified as bytearray values or bytes values for Python 3 and as bytearray values for Python 2.7.

Parameters:
返回类型:

没有

settraitnullwithtype. ( TraitName.,traitType )

此方法提供与几何形式的空特性值。如果已存在具有相同名称的特性,则会覆盖。

Trait type must be one offme_attr_undefined.,fme_attr_boolean.,FME_ATTR_INT8,fme_attr_uint8.,fme_attr_int16,fme_attr_uint16,fme_attr_int32.,fme_attr_uint32.,fme_attr_real32.,fme_attr_real64.,FME_ATTR_REAL80,fme_attr_string.,FME_ATTR_ENCODED_STRING,fme_attr_int64.,FME_ATTR_UINT64

Parameters:
  • TraitName.(str.) – The trait’s name.
  • traitType() - 表示特征类型的整数。
返回类型:

没有