Home | Trees | Indices | Help |
|
---|
|
init(readerName, cacheFeatures, directives)
Create a FME reader to read data from a format or system. Only the reader's type mneumonic, as found in the FME Reference Manual Part II, need be passed in. Any parameters needed for the reader will be passed to it via its `open' call.
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
None
|
|
||
None
|
|
||
None
|
|
||
dict
|
|
||
dict
|
|
||
None
|
|
||
FMEFeature |
|
||
FMEFeature |
|
||
None
|
|
||
None
|
|
||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
Terminate the reader mid-stream.
|
Close the reader after it has exhausted its data source.
|
This method flushes cached geometries to disk. When reading and building a feature cache, most geometries will be kept on memory to avoid the expense of serializing them. Calling this method forces the unserialized geometries to be written to disk. Typically it is not necessary to make this call. However, it may be useful in cases where the temporary cached ffs file is being accessed directly.
|
Query the native reader for properties. It is a proxy to the pluginbuilder.FMEUniversalReader.getProperties() method. For more information, please consult the documentation for pluginbuilder.FMEUniversalReader.getProperties() in the FME Plugin Builder SDK.
|
Return property values for the given property category. This method handles the following property categories: 'fme_prop_spatial_index' The return value will contain the key 'fme_prop_spatial_index' with
either 'FME_TRUE' or 'FME_FALSE' indicating if the reader being used is
spatially enabled or not. 'fme_prop_persistent_cache_loaded' The return value will contain the key
'fme_prop_persistent_cache_loaded' with either 'FME_TRUE' or 'FME_FALSE'
indicating if the reader persistent cache is loaded or not.
'fme_prop_coord_sys_aware' The return value will contain the key 'fme_prop_coord_sys_aware' with
either 'FME_TRUE' or 'FME_FALSE' indicating if the reader is coordinate
system aware or not. '*' Returns all properties for all known property categories.
|
Open the reader.
|
Return the next feature in the data source.
|
Return the next schema feature for the data source.
|
Specify the spatial and attribute constraints to be used when reading the data. The spatial and attribute query is specified in the feature object. This only need be implemented by those readers which return spatialEnables() as true, otherwise they can do nothing. This can be called at any time after the reader is created. If any read is in progress then it is terminated and the next read will reflect the new constraints. The constraint feature must have an attribute called 'fme_search_type' on it. The value of this attribute indicates the kind of search to be done. The supported values are: 'fme_envelope_intersects' When this is the value, then the bounding box of the feature is used as the query envelope. Future reads of the data will return only those features in the envelope area. 'fme_closest' When this is the value, then a future read will only return the single feature that was the closest to the center of the bounding box of the passed in feature. Normally, a point feature is used. In addition, when this search method is used, a maximum distance must be given in an additional 'fme_max_distance' attribute. 'fme_specified_feature' When this is the value, then a future read will only return the single feature that is specified by an additional 'fme_index' attribute which takes a non-negative integer as value, that is integers starting from 0. If the index is out of range, then no features will be returned on subsequent read() calls. It is best for the feature cache to be loaded before this constraint is set, if the cache is not loaded then the reader will automatically read all features from the specified data set into the cache. To load the feature cache manually, simply read through all of the features with the read() method, until the read() method flag returns FME_TRUE.
|
Extract reader parameters from schema feature and set the parameters on this reader.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Apr 20 06:21:05 2017 | http://epydoc.sourceforge.net |