Home | Trees | Indices | Help |
---|
|
object --+ | FMEFeature
init()
Create an instance of a feature which is used throughout the system to contain both geometric and attribute data
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
None
|
|
||
None
|
|
||
((float, float), (float, float))
|
|
||
((float, float, float), (float, float, float))
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
bool
|
|
||
FMEFeature |
|
||
FMEFeature |
|
||
None
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
bool
|
|
||
string
|
|
||
string
|
|
||
tuple
|
|
||
list of string s
|
|
||
list
|
|
||
bool , int , long ,
float , string , list of
string s, unicode , list of
unicode s, bytearray , list of
bytearray s, or None
|
|
||
tuple of bool bool and
int
|
|
||
int
|
|
||
string
|
|
||
tuple of float s
|
|
||
int
|
|
||
list of FMEFeatures
|
|
||
string
|
|
||
FMEGeometry of a terminal type |
|
||
int
|
|
||
list of string s
|
|
||
bool
|
|
||
bool
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
int
|
|
||
int
|
|
||
int
|
|
||
None
|
|
||
int
|
|
||
None
|
|
||
string
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
FMEGeometry of a terminal type |
|
||
None
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
string or None
|
|
||
None
|
|
||
none
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
None
|
|
||
list of FMEFeature
|
|
||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
Adds a coordinate onto the feature. Missing values are replaced by 0. If the feature is two-dimensional, any provided third coordinate is ignored.
|
Adds coordinates onto the feature. Missing values are replaced by 0. If the feature is two-dimensional, any provided third coordinate is ignored.
|
Return the bounding box of the feature.
|
Return the bounding cube of the feature.
|
Set the FeatureType of the feature.
|
Create an aggregate feature from the supplied list of features.
|
Change the letter case of attribute names and values.
|
Convert a feature into an aggregate, if it contains more than the threshold of vertices, where each member of the aggregate has fewer than the threshold number of vertices. If the feature was an area based feature, it will do area chopping, subdividing the area so that no area piece has more than the number of vertices. If the feature was linear, then the line is broken into chunks that meet the size criteria.
|
Create a new FMEFeature as a clone of this one.
|
Create a new FMEFeature with only the attributes of this one copied over.
|
Strokes an arc feature to be a polygon or line.
|
Strokes an arc feature to be a polygon or line. The parameters used to stroke the arc or ellipse are retrieved from the related attributes. Arcs with a sweep angle of 360 degrees will be converted into a polygon.
|
Strokes an arc feature to be a polygon or line.
|
Converts the feature into a point feature with attributes required to define it as an arc. If the feature has more than 3 points, the arc is approximated.
|
Restore the state of the FMEFeature from the specified buffer.
|
Convert the geometry of the feature to the OGC Well Known Binary format.
|
Convert the geometry of the feature to the OGC Well Known Text format.
|
Generate a point somewhere inside the polygon. If the feature is 3D, the Z value is calculated to be the average of all points on the feature.
|
This method returns a complete, exhaustive list of all the attribute names present in the feature.
|
Get all the coordinates in this feature. Returns a list of coordinates, each as a tuple of floats.
|
Get the value of the named attribute. Strings are returned as one of two possible types - system encoded strings or unicode strings, if the source attribute was encoded. Null attribute values will be returned as an empty string. Binary blob attributes are returned as a bytearray. For list attributes, an example list name could be "adjacentIds", which would return a list of all the values found for "adjacentIds{0} ... adjacentIds{N}". The function also accepts a "structured list" specification, such as "attrInfo{}.name", which would return a list of all the values found for "attrInfo{0}.name ... attrInfo{N}.name". In cases where there is ambiguity between retrieving an attribute value and a list attribute, the attrName should be appended with "{}" in order to retrieve the list (i.e. the attrName "fme_type" should be "fme_type{}"). A return of
|
This method returns a tuple of a boolean, indicating if the attribute
is null, a boolean indicating if the attribute is missing and an integer
representing the type of the attribute. The first boolean is
The possible attribute types are 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.
|
Get the type of the named attribute. Returns one of 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.
|
Get the Coordinate System of the feature.
|
Access the feature's individual coordinates by index. The index must be in the range 0 .. (numCoords() - 1). The coordinates are returned as a tuple of floats.
|
Get the dimension of the feature. Returns either fmeobjects.FME_TWO_D or fmeobjects.FME_THREE_D
|
Break a donut feature into its constituent parts. The first part is the outer shell of the donut polygon, and the following parts are the holes. All of the parts have the same attributes and feature type as the original feature.
|
Get the Feature Type of the feature.
|
Get the feature's geometry.
|
Get the feature's classic geometry type. Returns one of FME_GEOM_UNDEFINED, FME_GEOM_POINT, FME_GEOM_LINE, FME_GEOM_POLYGON, FME_GEOM_DONUT, FME_GEOM_PIP, or FME_GEOM_AGGREGATE
|
This method gets a list of sequenced attribute names in the order they were added to the feature. The attrNames list is only populated for schema features. The list will not contain sequenced attribute names for data features.
|
|
|
Set the geometry of the feature to be that specified in the OGC Well Known Binary format. If the feature has geometry, then the geometry is replaced.
|
Set the geometry of the feature to be that specified in the OGC Well Known Text format. If the feature has geometry, then the geometry is replaced.
|
Perform interpolation on the feature.
|
Construct a donut polygon from the list of features provided. If multiple donut polygons are formed then the resulting geometry is an aggregate of these donuts.
|
Perform a 2D or 3D matrix transformation on the feature. Note: The passed in matrix must be in row-wise order.
|
Set the featureType and attributes of the feature passed in from the current feature, but ONLY if those attributes are not already present. The geometry is not touched. The original attributes on the destFeature are not lost.
|
Get the number of coordinates in the feature. We recommend limited use of this method since it returns numVertices() + numParts() for multi-part features. A true vertex count will be returned by numVertices().
|
Get the number of parts that make up the geometry of the feature.
|
Get the number of vertices that make up the geometry of the feature Multi-part (aggregate) geometries are handled properly. For simple geometries, the same value is returned as in numCoords()
|
Offsets the feature by the given amounts. (2D or 3D)
|
Optionally set and get the orientation rule of the feature. This descends into aggregates and orients any polygons or donuts found. Geometries other than polygons or donuts are left unchanged.
|
Set the geometry of the feature to be just its outer shell. This has no effect on non-area features.
|
Call any FME function on the feature. See the FME documentation for the format of the functions. The function string passed in to this function follows the syntax of the manual exactly. Note that no spaces should be present between any parameters of the function, or between the function name and the '('. Additionally, do not call this method during a writer's close() method.
|
Perform some general processing operation on a list of features. The operation performed is governed by the contents of paramList.
|
Remove the named attribute if it exists.
|
Remove all attributes with the specified prefix.
|
Remove and return the feature's geometry. The feature loses its geometry and can no longer be accessed.
|
|
Reproject the feature from its current coordinate system to that specified. If the feature has no coordinate system specified then this has the same effect as the setCoordSys method.
|
Reset (clear) all the attributes and geometry of the feature. It results in a fresh clean feature.
|
Rotate the feature counterclockwise around the origin point by the specified angle (in degrees)
|
Scale the feature by the given amounts. (2D or 3D)
|
Write the state of the FMEFeature to a string buffer.
|
Supply a new attribute for the feature. If the attribute already exists, it will be overwritten. The following type numeric mappings are used: PyInt ==> FME_Int32 PyFloat ==> FME_Real64 PyLong ==> FME_Int64 Encoded values are to be specified as unicode strings. Binary values are to be specified as bytearray values.
|
This method supplies a null attribute with a type to the feature. If an attribute with the same name already exists, it is overwritten. Attribute type must be one of 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.
|
Set the Coordinate System of the feature.
|
Set the dimension of the feature.
|
This method sets the feature type of the FME Feature. The feature type is often also called the "class" or "category" of the feature. The feature type set on a feature through this method will change as the feature is routed through a translation pipeline.
|
Set the feature's geometry. Any existing geometry on the feature is overwritten.
|
Set the feature's classic geometry type.
|
Supply a new attribute for the feature, but in such a way that the sequence is remembered. This is needed for schema features, to preserve the order of attributes. Encoded values are to be specified as unicode strings.
|
Split up an aggregate feature into pieces, all of which have the same
attributes and feature type. If the recurse flag is
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Nov 26 19:10:16 2015 | http://epydoc.sourceforge.net |