剪刀

Performs a geometric clipping operation (sometimes called a cookie cutter). Most geometry types can be clipped by an area, and some may also be clipped by a solid. Attributes may be shared between objects (spatial join).

跳转到配置

Typical Uses

  • 识别点、线或区域的内部、外部位置以及与一个或多个参照区域(剪裁器)相交的位置,并相应地修改其几何图形和属性。
  • Clipping features to perform calculations by Clipper area
  • Clipping rasters or point clouds to a regular or irregular area of interest
  • 为美观起见,将要素剪裁到地图边界

它是如何工作的?

The Clipper takes in two sets of features:

  • 快船,这将覆盖在其他特征上,以识别这些功能落在剪刀内或外部的特征,并将它们跨越快船界的边界的特征。
    The geometry of the Clippers is unchanged, and they are discarded after use and not output from the Clipper transformer.
  • 克利普s, which are compared to the Clippers, and split into multiple sections along the Clipper boundaries if necessary. Each section is output as either falling Inside or Outside the Clipper. They may also receive attributes from the Clippers (spatial join).
    Clippee几何体只有在与剪刀相交时才改变。如果它完全落在剪刀内或外部,则它被指定,并用其几何形状未被触及。

Output features receive a new Clipped Indicator Attribute (default name_剪裁), which is set to “yes” for features that have been segmented, enabling differentiation between features that were wholly inside or outside the clip boundaries and those that intersected the Clipper feature(s) and so were modified.

The Clipper works on many geometry types. This diagram illustrates area-on-line and area-on-area vector clipping results.

  • (1) is a single area Clipper (in blue).
  • (2)是Clippee,一种红线,其穿过剪层(1),以及部分地覆盖剪辑器(1)的红色区域。

Both the line and area Clippees are split where they cross the Clipper boundary, and the results are output:

  • (3) Portions of Clippees that fall Inside the Clipper (red only)
  • (4)落在剪刀外的Clippees(仅限红色)

我能夹什么?

由于Clipper将多个剪裁方法收集到一个方便的转换器中,因此了解您希望执行哪种类型的剪裁以及在剪裁操作中可以比较哪种类型的几何体非常重要。

大多数类型可以由区域或多区域剪裁。某些类型也可以通过固体或多固体夹住。

如果clipping operation you need is not listed here, consider one of the Overlayers or theIntersector- 看选择空间变压器below.

例子

使用说明

  • Because a raster feature must always be rectangular, clipped raster cells (that is, those outside the clipper but part of an Inside raster) will be set to the nodata value. If a nodata value has not been set, clipped raster cells will be set to 0. To set a value for nodata, use the光栅BandNodataSetter变压器在剪刀前。
  • This transformer is unaffected by raster band and palette selection.
  • 特性可以剪多次,但不是我teratively (for example, if a line passes through two overlapping polygons, you don’t get a separate clipped line for the overlap - just one per polygon).

    为了最大限度地,考虑Intersector.

选择空间变压器

Many transformers can assess spatial relationships and perform spatial joins - analyzing topology, merging attributes, and sometimes modifying geometry. Generally, choosing the one that is most specific to the task you need to accomplish will provide the optimal performance results. If there is more than one way to do it (which is frequently the case), time spent on performance testing alternate methods may be worthwhile.

To correctly analyze spatial relationships, all features should be in the same coordinate system. The重投影可能对工作区中的恢复功能有用。

配置

输入端口

输出端口

Parameters

Editing Transformer Parameters

使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅变换器参数菜单选项.

定义值

There are several ways to define a value for use in a Transformer. The simplest is to simply type in a value or string, which can include functions of various types such as attribute references, math and string functions, and workspace parameters. There are a number of tools and shortcuts that can assist in constructing values, generally available from the drop-down context menu adjacent to the value field.

对话框选项 - 表格

变压器s with table-style parameters have additional tools for populating and manipulating values.

参考

加工行为

基于小组

Feature Holding

Yes

Dependencies
FME Licensing Level FME Professional Edition and above
Aliases
历史

FME社亚搏国际在线官网区

FME社区是演示亚搏国际在线官网、操作指南、文章、常见问题解答等的地方。获取问题的答案,向其他用户学习,并对新功能进行建议、投票和评论。

搜索all results about the Clipperon the FME Community.

例子may contain information licensed under the Open Government Licence – Vancouver and/or the Open Government Licence – Canada.