GML Reader Parameters
这个读者中rts GML documents conforming to GML v2.1.2, v3.1.1, v3.2.1, and application schemas.
应用程序模式
默认情况下,此模式扫描查找GML功能的元素(通常是即时儿童会员orfeatureMember),然后读取它们包含的任何属性和GML几何形状。看到GML Feature Elementsbelow to customize which elements to scan for.
设置到Yes,GML读取器尝试在没有应用程序模式的情况下读取GML数据集。
A GML instance document specifies the namespace and the location of its application schema through its root elementXsi:schemaLocation属性。This field allows the GML (or GML-based) reader to use a different GML schema document from the one specified in theXsi:schemaLocation属性。
该XML Schema specification states that theXsi:schemaLocationattribute value consists of a set of pairs: The first member of each pair is the namespace for which the second member is the hint describing where to find an appropriate schema document. The presence of this hint does not require the processor to obtain or use the cited schema document, however, the processor is free to use other schemas obtained by other suitable means.
Note: ">注意:This only takes effect if the target namespace of the dataset is not in the Safe fixed schema namespace //www.baooytra.com/xml/schemas/FMEFeatures. The GML2 writer in固定架构模式写出属于该命名空间的文档。
Validate GML Dataset File
确定读者是否应验证指定的数据集文件。
Specifies how the reader obtains feature types:
- XSD Schema: FME reads feature types from the XSD.
- 仅限数据集:FME从数据集中读取要素类型。
- Dataset Only with Attributes Merged from XSD: FME reads feature types from the dataset, and includes any attributes in the XSD that are associated with a particular feature type.
忽略DataSet中的XSI:示例
此参数可用于告诉读者忽略在中指定的模式文件Xsi:schemaLocationattribute of the root element in the dataset. This is particularly useful if the file locations specified inXsi:schemaLocationare not valid file paths.
This optional parameter instructs the reader to map FeatureCollection as an FME feature.
价值观:GML.:FeatureCollection|wfs:FeatureCollection
Usually, only one value is used within a dataset. Selecting bothGML.:FeatureCollectionandwfs:FeatureCollectionmay cause a clash in feature type names when both GML and WFS schemas are loaded, since FME needs the feature type to be unique in a reader or writer.
如果both values are required, you may need to set theAdd XML Namespace Prefix to参数到值功能类型- 此参数将命名空间前缀添加到要素类型中以使其唯一。
此参数可选,仅当忽略应用程序模式是set toYes。
Valid values are whitespace-separated XML element names.
该parameter is useful in忽略应用程序模式如果GML读取器无法读取GML功能,则模式。然后,您可以显式列出应该被解释为GML功能的XML元素。
GML SRS/Geometry Parameters
在GML元素中读取坐标组时覆盖轴顺序。
Valid values for this parameter:
- 1,2
- 2,1
- 1,2,3
- 2,1,3
该re is no default value for most GML formats; however, for IndoorGML, there is a default blank value (which is the same as 1,2,3).
For WFS 1.0, the value is assumed to be1,2。对于WFS 1.1.0和2.0.0,SRS订单由指定的SRS确定。例如,默认轴顺序EPSG:4326是2,1。
如果the srsName in the GML document is set tourn:ogc:def:crs:EPSG:6.6.4326,并且您知道GML文档中的坐标顺序是LON-LAT而不是LOL-LON订单,将此参数设置为1,2因此,读者以lon-lat order读取数据。
This parameter affects the interpretation of the start and end angles forgml:arcbycenterpoint.。
无论数据集SRS如何,该参数会覆盖0轴位置和角度方向的默认解释。
By default, if the SRS axis order is1,2or1,2,3, then the angle direction is assumed to runcounterclockwise从横轴开始。否则,当x和y轴翻转时,角度运行clockwise从纵轴。
This parameter controls how segments in a path are joined together when the segments' end points are not connected:
- 插入新段通过在原始段之间插入新的连接段来连接路径。
- 捕捉端点强制每个段的第一点等于上一段的最后一个点。
Note: ">注意:For backwards compatibility,Inserting New Segment假设何时强制执行路径连续性参数不存在。
功能属性
此参数指定嵌入的GML对象(包含一个GML:ID.), that are not geometries should be mapped.
默认情况下,这些嵌入对象映射到FME属性。
如果参数设置为几何形状,将嵌入对象映射到FME几何形状,嵌入对象属性加载到几何特征中。反过来,嵌套嵌入对象映射到嵌套的聚合几何形状。
如果参数设置为功能类型,嵌入对象将被映射到单独的FME功能类型中,这些功能类型将额外gml_parent_id.其值归回为父功能的属性。
指定是否应该读取默认和可选的GML功能属性,名称和描述。
此参数指定GML几何属性是否应在FME功能类型定义中表示为属性。
In FME data features, the GML geometric properties are represented as a single named geometry – or, if multiple geometries are present, as an aggregate geometry with multiple named geometry components. The name and the position for these geometric elements can also be controlled through theGML用户属性
- 如果检查此参数(这是默认值),则要素类型定义将包含几何名称作为属性,并且它们的类型设置为xml_geometry.。如果属性x有其类型设置为xml_geometry., this attribute X becomes a placeholder in the feature type definition. It is a placeholder because actual data features for the feature type definitions will not have this attribute; instead, the data features will have a geometry named “X”.
- 如果未选中此参数,则要素类型定义将不包含几何名称。
该GML reader will automatically substitute concrete elements that are substitutable for abstract GML properties. Some GML formats declare properties that are not abstract but are nevertheless head of substitution groups.
Selecting this parameter instructs the GML reader to also generate FME attributes for member elements belonging to the substitution group headed by these non-abstract GML properties.
FME功能类型和/或属性名称可以包括GML应用程序模式中使用的XML命名空间前缀。前缀将与下划线与名称分开。
默认情况下,前缀未添加到名称中。要在要素类型中包含前缀,请选择功能类型。包括在特征类型和属性中选择的前缀选择功能类型and Attributes。
Setting this parameter to功能类型是necessary when a GML dataset contains feature types with the same name in different namespaces.
此参数中指定的空白分隔QNames列表定义了读者在处理GML应用程序模式时应忽略的属性。
To ignore property regardless of namespace, simply specify the local-part of the name. For example:
boundedBy name
will ignore all properties whose local name areboundedByorname,无论他们的命名空间如何。
A prefix in a QName should be present in the parsed XML schemas. If no corresponding URI namespace can be found for a prefix, then the prefix will be discarded. The QName will (as in the unprefixed case) apply to all properties with the same local-part, regardless of namespace.
For example:
GML.:boundedBy identifier wrong-prefix:description
如果是一个绑定GML.prefix can be found in the parsed schema, then onlyboundedBy属性与同一名称空间URI为GML.将被忽略;否则,每次boundedBy属性无论名称空间都将被忽略。
Every标识符property, regardless of namespace, will be ignored. Everydescriptionproperty regardless of namespace will also be ignored, since the parsed schema will not have a binding for the "wrong-prefix" prefix.
功能属性 - 属性处理
Specifies whether GML properties that are defined as a complex type with complex content (that is, those that have embedded children elements) should be mapped as nested list attributes within FME features.
如果the value is set to XML Fragments, then the complex properties with complex content are mapped as XML fragments.
Some complex properties, such as those that are recursively defined, cannot be mapped as nested lists. These complex properties will always be mapped as XML fragments, regardless of the setting for this parameter.
此可选参数可以控制嵌套列表属性的深度。
选择此参数时,读取器,除了将GML几何XML元素映射到FME几何形状之外,FME属性中的这些元素将包括该功能中的XML片段。
该FME几何属性是键入的xml_geometry.in the feature type definition. In the group版本和XML命名空间处理below, see the parameterUse Old Reader for GML v3.1.1 and v2.1.2 Documents。
This parameter is useful in the case of a GML geometry reading error, since the XML fragment representing the GML geometry will also be carried along in the same feature as an attribute.
指定是否应将映射为XML片段的GML属性应转换为XML文档。
转换将为片段添加缺少的命名空间声明,它将维护CDATA部分,也将为片段前缀XML标题声明。将XML片段转换为XML文档允许基于XML的解析器,例如XSLT和基于XQuery的处理器,以进一步处理片段。
This parameter specifies whether GML properties that are mapped as XML fragments should be flattened into nested attributes.
展平仅应用于携带XML片段的数据功能,因此新的展开嵌套属性不会反映在FME功能类型模式定义中。
这些选项可用于扁平列表属性:
- 替代打开名单支架:此指令指定要用作扁平括号属性的开放支架的字符。开放式支架默认为卷曲的支撑
{
but any single character is accepted. - Substitute Close List Brace:此指令指定要用作扁平括号属性的关闭支架的字符。近距离默认为卷曲的支撑
}
but any single character is accepted. - 替代元素列表分隔符:此指令指定要用作嵌套属性中的组件的分隔符的字符串。嵌套属性组件分隔符默认为期(。),但接受任何单个字符。
(版本和)XML命名空间处理
When selected, this parameter instructs the GML reader to use the older GML v3.1.1 code base to read GML v3.1.1 and v2.1.2 documents.
Note: ">注意:This parameter is enabled only for GML and WFS readers.
选中时,此参数禁用自动阅读器选择/切换。
当GML读取器正在读取OS MasterMap或CityGML数据时,FME分析指示格式的URI的命名空间标题,然后将数据传递给该读取器。读者然后自动切换到OS(GB)MasterMaporCityGMLreader.
When selected, this parameter disables XML Namespace processing for the underlying XML parser.
请注意,如果GML架构和GML数据使用相同名称空间URI的不同前缀,则可能导致读取错误。此参数可能对不是XML-Namespace的数据集有用。
允许GML读取器从XML模式中提取值。此模式下不需要数据集,因为数据特征的值由XSD确定。XSD值属性名称将以后缀为。Xsd.XXX,在哪里XXX.是各种XSD组件。为每个数据功能构造Explore XSD Values功能类型定义。
例如,“旁观”SOSI功能类型具有“介质”属性,其类型是Xml_buffer。该"medium" is an enumeration in the XML Schema, but this is not representable in the FME feature type definitions, thereforeXml_buffer被使用了。启用这一点Explore XSD Values选项指示GML阅读器构建“媒介”的以下属性:
“medium.xsd.enum {}。值”“xml_buffer”
"medium.xsd.enum_values_csv" "xml_buffer"
“medium.xsd.enum {}。annotation.appinfo {}。源”“XML_Buffer”
“medium.xsd.enum {}。annotation.appinfo {}。XML_FRAGMENT”“XML_XML”
"medium.xsd.enum{}.annotation.documentation{}.source" "xml_buffer"
“medium.xsd.enum {}。注释.documentation {}。文本”xml_buffer“
“medium.xsd.enum {}。注释。注释.documentation {}。XML_FRAGMENT”“XML_XML”
"medium.xsd.enum{}.annotation.documentation{}.xml_lang" "xml_buffer"
该xsd.enum {}是a list attribute whose component lists a single enumeration value, whilexsdl.enum_values_csv.是单个属性列出所有枚举值作为逗号分隔的字符串:
“medium.xsd.enum {0} .value”有值“v”
"medium.xsd.enum{1}.value" has value "B"
"medium.xsd.enum{2}.value" has value "L"
"medium.xsd.enum{3}.value" has value "I"
"medium.xsd.enum{4}.value" has value "S"
“medium.xsd.enum {5} .value”有价值“t”
"medium.xsd.enum{6}.value" has value "O"
“medium.xsd.enum {7} .value”有价值“D”
“medium.xsd.enum {8} .value”有值“J”
“medium.xsd.enum {9} .value”有价值“w”
"medium.xsd.enum{10}.value" has value "U"
“medium.xsd.enum {11} .value”有值“x”
“medium.xsd.enum_values_csv”有值“v,b,l,i,s,t,o,d,j,w,u,x”
枚举可能包含最多一个注释,而每个注释可能包含任何数量的文档和AppInfo标签。在同一个例子中,medium.xsd.enum {}。Annotation.AppInfo {}列表属性组件列出源XML属性和AppInfo内容,其中appinfo content是an xml fragment. Similarily, themedium.xsd.enum{}.annotation.documentation{}list attribute component lists the source xml attribute, theXML:Lang XML属性,以及作为原始XML的文档内容(Xml_fragment)和文本:
“medium.xsd.enum {0} .annotation.documentation {0} .source'有值`'
“medium.xsd.enum {0} .annotation.documentation {0} .text'有值`alltid i vann'
"medium.xsd.enum{0}.annotation.documentation{0}.xml_fragment' has value `Alltid i vann '
"medium.xsd.enum{0}.annotation.documentation{0}.xml_lang' has value `'
For documentation content, theXml_fragmentattribute contains exactly the xml fragment as in the。Xsd,而虽然文本attribute contains only existing raw text and no other xml.
Currently, only enumeration values and annotations contained within enumerations are supported.
Use this parameter to exposeFormat Attributesin Workbench when you create a workspace:
- 在一个dynamic scenario,这意味着这些属性可以在运行时传递到输出数据集。
- 在非动态方案中,此参数允许您在多个要素类型上公开其他属性。单击“浏览”按钮以查看读者的可用格式属性(对于每种格式不同)。
Using the minimum and maximumXandy参数,定义将用于过滤输入功能的边界框。只返回与边界框交叉的功能。(请注意,这是边界框交叉点,而不是像这样的变压器返回的完整几何交叉路口时空Filter.。)
如果搜索信封的所有四个坐标都指定为0., the search envelope will be disabled.
剪辑搜索信封
When selected, this parameter removes any portions of imported features being read that are outside the Search Envelope.
该example below illustrates the results of the Search Envelope when剪辑搜索信封未选择(设置为否),选择(设置为是)。
- 否:将读取跨越搜索包络边界的任何功能,包括位于边界外部的部分。
- Yes: Any features that cross the search envelope boundary will be clipped at the boundary, and only the portion that lies inside the boundary will be read. The underlying function for the剪辑搜索信封function is an intersection; however, when剪辑搜索信封是selected, a clipping operation is also performed in addition to the intersection.
高级
Rather than halting the reader, by default, this parameter allows the reader to continue reading and extracting features from the input GML document stream even after encountering a geometrical error.
根据读取的第一个几何体为坐标系分配一个特征。如果Yes, multiple geometries with different coordinate systems that belong to the same feature are reprojected to the feature's coordinate system.
此参数允许从Internet获取的XML模式文档在本地缓存。
这样可以减少网络获取当tr的数量aversing the GML schema documents.
Determines the length of time that data should be stored in the cache.
This parameter is valid only if缓存XSD文档是set toYes。
有效值是指示秒数的正数。默认值为300。
Read simple, multiple elements and values as a singleFME.属性,而不是列表属性。这些值将通过逗号分隔。
使用网络身份验证
This parameter is always visible in some formats, and visible in other formats only when the dataset is a URL.
Specify the authentication method to use when accessing a password-protected server.
- Basic:(默认)基本访问身份验证旨在允许客户端向服务器提供凭证,假设它们之间的连接是可信和安全的。请注意,通过不安全的连接可以轻松拦截从客户端传递到服务器的任何凭据。
- Digest:Digest身份验证是商定的方法之一,Web服务器可以使用用户的Web浏览器使用用户名或密码等凭据。
- NTLM:A challenge-response protocol that is used to provide compatibility with versions of Windows earlier than the Windows 2000 operating systems.
- Web连接:Web connections provide a convenient and secure way to store and reuse previously established connection parameters. SeeWeb连接below.
- 单点登录:FME将使用当前用户的凭据来验证HTTP请求。此身份验证方法目前仅适用于Windows操作系统。
注意: To access datasets using a proxy server, use the Network tools in FME Options. From the Workbench menu, select工具> FME选项>网络。有关更多信息,请参阅FME Workbench帮助中的“网络代理”。