模块fmeobjects.::Class FmeCoordsysManager.
[hide private]
[框架] |no frames]

Class FmeCoordsysManager.


在里面()

FME坐标System Manager类。

T.his class provides provides the ability to retrieve and define coordinate system information: projections, datums, ellipsoids, and units.

实例方法 [hide private]
__init__()
x.__init__(...) initializes x; see help(type(x)) for signature
a new object with type S, a subtype of T
__新的__T.S.......
S.tring
DefinecoordsyscoordSysParms
提供由传入的参数定义的坐标系的名称。
没有任何
definecocoordsysfromfeature.Coordsysfeature.
定义从功能中传递的坐标系。
S.tring
definecoordsysfromogcdef.ogcdef.coordSysName
根据通过的OGC定义定义Coord系统。
没有任何
simentatum.datumNamedatumParams
Defines a datum based on the parameters passed in.
没有任何
defineellipsoid.ellipsoidNameellipsoidparams.
根据通过的参数定义椭圆体。
没有任何
defineUnitunitNameunitParams
根据通过的参数定义一个单元。
S.tring
getcoordsysasogcdef.coordSysNameogcdef.
Gets the OGC definition of the coordinate system whose name is passed in.
listofS.trings或没有任何
getcoordsyslist.()
检索所有支持的坐标系名称的列表。
S.tringor没有任何
getCoordSysNameFromPrjFileprjFileName
Returns a coord system name for the coordinate system represented by the contents of the .prj filename passed in The file is taken to hold an ESRI Well Known Text (WKT) representation of a coordinate system definition.
listofS.tringS.
getCoordSysParmscoordSysName
返回与成对'coordsysparms数组中的坐标系名称关联的参数。
FMemeature.
getCoordSysParmsAsFeaturecoordSysName
Retrieves the specified coordinate system and stores its definition in a returned feature.
listofS.tringS.
getDatumparsdatumName
Gets the definition of the datum whose name is passed in.
listofS.tringS.
getEllipsoidParmsellipsoidName
Gets the definition of the ellipsoid whose name is passed in.
listofS.tringS.
GetUnitParms.unitName
Gets the definition of the unit whose name is passed in.
listofS.tringS.
getUserCoordSysDefFiles()
返回应从读取坐标系Defs的所有文件的列表。
没有任何
readDefsFromFile文件名
Reads definitions for Coordinate systems, Datums, Ellipsoids, and Units from the specified file.
S.tring
reprojectDirectory.()
返回重新注明子系统支持文件的目录。
没有任何
writePrjFileprjFileNamecoordSysName
写入,包含Coord System名称的ESRI众所周知的文本表示。

继承自目的__delattr____格式____getattribute____hash____reduce____reduce_ex____repr____setattr____sizeof____str____subclasshook__

Properties [hide private]

继承自目的__class__

Method Details [hide private]

__init__()
(Constructor)

x.__init__(...) initializes x; see help(type(x)) for signature

覆盖:对象.__ init__

__新的__T.S.......

Returns: a new object with type S, a subtype of T
覆盖:对象.__ new__

DefinecoordsyscoordSysParms

提供由传入的参数定义的坐标系的名称。A new coordinate system is defined only if the coordinate system did not already exist under a previous name.

参数:
  • coordSysParmslistofS.trings或dictofS.tringS.)- A pairwise array of FME Coordinate system parameters, and their values. (i.e. entry 0 is a FME coordinate system parameter keyword, as defined in the coordinate systems section of the FME Reference Manual, and entry 1 is its value. Entry 2 is the parameter name, entry 3 its value, and so on. There MUST be an even number of parameters in the 'coordSysParms' array.
Returns:S.tring
坐标系是唯一的名称。
Raises:
  • fmeexception.- 如果出现错误,则会提出FMEException。

definecocoordsysfromfeature.Coordsysfeature.

定义从功能中传递的坐标系。

参数:
Returns:没有任何
Raises:
  • fmeexception.- 如果出现错误,则会提出FMEException。

definecoordsysfromogcdef.ogcdef.coordSysName

根据通过的OGC定义定义Coord系统。

参数:
  • ogcdef.S.tring) - 这OGC definition the coordinate system is defined from.
  • coordSysNameS.tring) - CoordSysName是一个参数,它采用以下提示常量,该常量定义OGC定义的形式。
    • ESRI: Translate ESRI style to standard first, before getting a FME name,
    • Autodesk:在尝试自动WKT转换之前首先使用Autodesk WKT异常文件,
    • EPSG: Translate an EPSG code to FME (needs some support files to operate),
    • MapInfo:将MapInfo坐标系字符串(在OGCDEF字符串中保持)转换为FME名称,
    • proj4:将一个proj.4字符串翻译为fme,
    • ORACLE: Use the Oracle SRID to FME name exceptions file (an SRID code is excepted in the ogcDef parameter.
Returns:S.tring
这name of the coordinate system that can be used within FME. If the source representation does not have a FME representation (but no errors occur) the return value will bean empty string. This could occur, for example, when no mapping exists between an Oracle SRID and a FME coordinate system.
Raises:
  • fmeexception.- 如果出现错误,则会提出FMEException。

simentatum.datumNamedatumParams

Defines a datum based on the parameters passed in. The datum definition is only validated on first use. If the datum was already defined, the new definition replaces the old one and no error is returned. To find out if the datum already existed, thegetDatumpars可以使用以下呼叫。

参数:
  • datumNameS.tring) - 在坐标系定义中稍后可以参考数据的名称。
  • datumParamslistofS.trings或dictofS.trings) - 成对基准定义参数及其值的列表。(i.e. entry 0 is a datum definition keyword, as defined in the coordinate systems section of the FME Reference Manual section 8.6.1, and entry 1 is its value. Entry 2 is the parameter name, entry 3 its value, and so on. There MUST be an even number of parameters.
Returns:没有任何
Raises:
  • fmeexception.- 如果出现错误,则会提出FMEException。

defineellipsoid.ellipsoidNameellipsoidparams.

根据通过的参数定义椭圆体。这ellipsoid definition is only validated on first use. If the ellipsoid was already defined, the new definition replaces the old one and no error is returned. To find out if the ellipsoid already existed, thegetEllipsoidParms可以使用以下呼叫。

参数:
  • ellipsoidNameS.tring) - 稍后可以在坐标系定义中提及椭圆体的名称。
  • ellipsoidparams.listofS.trings或dictofS.tringS.)- A pairwise list of ellipsoid definition parameters, and their values.(i.e. entry 0 is an ellipsoid definition keyword, as defined in the coordinate systems section of the FME Reference Manual section 8.7.1, and entry 1 is its value. and entry 1 is its value. Entry 2 is the parameter name, entry 3 its value, and so on. There MUST be an even number of parameters.
Returns:没有任何
Raises:
  • fmeexception.- 如果出现错误,则会提出FMEException。

defineUnitunitNameunitParams

根据通过的参数定义单元。单位定义仅在首次使用时验证。如果已经定义了该单元,则新定义替换旧的且返回任何错误。找出单位是否已存在,GetUnitParms.可以使用以下呼叫。

参数:
  • unitNameS.tring) - 这name that the unit can be referred to by later in coordinate system definitions.
  • unitParamslistofS.trings或dictofS.trings) - 单位定义参数的成对列表及其值。(i.e. entry 0 is a FME unit definition keyword, as defined in the coordinate systems section of the FME Reference Manual section 8.7.1, and entry 1 is its value. Entry 2 is the parameter name, entry 3 its value, and so on. There MUST be an even number of parameters.
Returns:没有任何
Raises:
  • fmeexception.- 如果出现错误,则会提出FMEException。

getcoordsysasogcdef.coordSysNameogcdef.

Gets the OGC definition of the coordinate system whose name is passed in.

参数:
  • coordSysNameS.tring) - 这name of the coordinate system the ogc definition is being retrieved for.
  • ogcdef.S.tring) - 这'ogcDef' parameter takes in the following hint constants that define the form of the OGC definition.
    • ESRI: Translate to ESRI WKT format,
    • Autodesk:在尝试自动WKT转换之前首先使用Autodesk WKT异常文件,
    • EPSG: Translate a FME name to an EPSG SRID code (which is also not OGC WKT at all),
    • MapInfo:将FME名称转换为MapInfo坐标系字符串(根本不是OGC WKT),
    • proj4:转换为proj.4字符串(当然不是真正的OGC WKT),
    • ORACLE: Translate a FME name to an Oracle SRID code (which is also not OGC WKT at all),
    • prettywkt:翻译成恰好格式化的WKT,更容易阅读,
    • simpleifiedprettywkt:wkt,但剥去一些无用的东西,如轴定义,
    • WKT1: Same as regular WKT but strip all parameters not listed in the Simple Features for SQL specification. This is needed for MapGuide for instance.
Returns:S.tring
坐标系的目标表示。如果坐标系没有目标表示(但未发生错误),则返回值将设置为空字符串。例如,当Oracle SRID和FME坐标系之间不存在映射时,可以发生这种情况。
Raises:

getcoordsyslist.()

检索所有支持的坐标系名称的列表。

Returns:listofS.trings或没有任何
所有支持的坐标系名称的列表。
Raises:

getCoordSysNameFromPrjFileprjFileName

Returns a coord system name for the coordinate system represented by the contents of the .prj filename passed in The file is taken to hold an ESRI Well Known Text (WKT) representation of a coordinate system definition.

参数:
  • prjFileNameS.tring) - 这name of the .prj that contains the representation of the coordinate system. or blank if any problems or errors occurred in retrieving the coordinate system from the file.
Returns:S.tringor没有任何
这unique name of the coordinate system that can be used within FME, or blank if any problems or errors occurred in retrieving the coordinate system from the file.

getCoordSysParmscoordSysName

返回与成对'coordsysparms数组中的坐标系名称关联的参数。

参数:
  • coordSysNameS.tring)——坐标系统的参数的名称rs are being retrieved for.
Returns:listofS.tringS.
返回包含命名坐标系的参数的成对列表。
Raises:
  • fmeexception.——会抛出一个异常,如果发生错误或the coordinate system could not be retrieved.

getCoordSysParmsAsFeaturecoordSysName

Retrieves the specified coordinate system and stores its definition in a returned feature.

参数:
  • coordSysNameS.tring)——坐标系统的参数的名称rs are being retrieved for.
Returns:FMemeature.
FMemeature.the coordinate system definition is being stored in.
Raises:

getDatumparsdatumName

Gets the definition of the datum whose name is passed in.

参数:
  • datumNameS.tring) - 正在检索参数的DATUM的名称。
Returns:listofS.tringS.
这list storing the datum parameters. If no such datum exists, then an empty list is returned.
Raises:

getEllipsoidParmsellipsoidName

Gets the definition of the ellipsoid whose name is passed in.

参数:
  • ellipsoidNameS.tring) - 椭圆体的名称正在检索参数。
Returns:listofS.tringS.
这list storing the ellipsoid parameters. If no such ellipsoid exists, then an empty list is returned.
Raises:

GetUnitParms.unitName

Gets the definition of the unit whose name is passed in.

参数:
  • unitNameS.tring) - 这name of the unit the parameters are being retrieved for.
Returns:listofS.tringS.
存储单元参数的列表。如果没有这样的单位,则返回空列表。
Raises:

getUserCoordSysDefFiles()

返回应从读取坐标系Defs的所有文件的列表。

Returns:listofS.tringS.
应从中读取协调系统定义的文件列表。
Raises:

readDefsFromFile文件名

Reads definitions for Coordinate systems, Datums, Ellipsoids, and Units from the specified file. If the file cannot be found or there is an invalid definition then an error code is returned.

参数:
  • 文件名S.tring) - 从中​​读取定义的文件的名称。
Returns:没有任何
Raises:

reprojectDirectory.()

返回重新注明子系统支持文件的目录。通常,这是在fme_home / reproject中,但此调用应用于获得它。可以使用正常的“获取”呼叫从映射文件对象中获取FME_HOME。

Returns:S.tring
重新注入子系统支持文件的目录。

writePrjFileprjFileNamecoordSysName

写入,包含Coord System名称的ESRI众所周知的文本表示。

参数:
  • prjFileNameS.tring) - 这name of destination file the representation of the coordinate system will be written to.
  • coordSysNameS.tring) - 坐标系的名称。
Returns:没有任何
Raises: