Clipper
Performs a geometric clipping operation.
此变形金机需要多个剪辑边界(Clippers)和许多要剪裁的功能(clippees.). The output is split into two groups: the parts of theclippees.在剪辑边界内,以及部分clippees.不在剪辑边界内。该clippees.that intersect the clip boundaries will be cut into multiple sections (along the clip boundaries), and then each section will be added to the appropriate group. Theclippees.不合适的不与相应的组添加到相应的组,并在没有修改的情况下输出。
Input Ports
该features routed into the transformer via theClipperport identify the area against which allClippeefeatures are processed. TheClippercan consist of any area features (polygons, donuts, or aggregate polygons/donuts). TheClipper如果如果是,也可以是固体或多固Clippee输入包括这些几何形状的固体,点,点云或聚集体。遇到的任何无效剪辑功能都将以警告记录并丢弃。
通过剪裁功能Clippee港口。
Output Ports
Clippeefeatures that are completely within theClipper,和Clippeefeatures that intersect theClipper这被分成了碎片。那些在里面的那些碎片Clipperare output via this port.
Clippeefeatures completely outside of theClipper通过Outsideport, andClippeefeatures that intersect theClipper这被分成了碎片。在剪裁区域外部的那些碎片通过该端口输出。
无效Clipper功能(即非多边形功能)以及无效Clippeefeatures (that is, features with no geometry) are output via the
被拒绝的功能将有一个fme_rejection_codeattribute with one of the following values:EXTRA_CLIPPER_FEATURE,INVALID_CLIPPER_GEOMETRY_TYPE.
Parameters
变形金刚
IfGroup Byattributes are selected, features with the same values in theGroup Byattributes are placed into the same set, and clipping occurs in each set independent of other sets.
Clipper
- Single Clipper:只有一个单一的Clipperfeature will be used.
- Multiple Clippers: AllClipperfeatures will be used.
- Clippers First:剪辑假设所有Clipperfeatures will enter the transformer before anyClippee特征。进一步Clipperfeatures that arrive after the firstClippee将用警告登录并丢弃。
This attribute (if specified) will be added with a value ofyesto any features output via either theInside要么Outside由变压器切割的端口和值没有到任何由变压器更改的输出功能。
Z and Measures Parameters
Specifies where to take the measures and Z values from. IfClippee Onlyis selected, all measures and Z values of the Clipper will be dropped. If仅限剪刀is selected, all measures and Z values from the Clippee will be dropped.
When viewed in 2D (ignoring Z), a path (which may define the border of a polygon) may appear to be closed as shown in the left figure below. This same path, when viewed in 3D, may appear to be open as shown in the right figure below.
To specify how (and if) paths should be closed in 3D, select one of the listed modes.
模式 | Description | Example |
---|---|---|
Extend | 该Curve is extended so that all vertices are left at their original location. | |
Average | Subsequent vertices that are not connected, but share an x and a y value are combined into one vertex, whose Z value is the average of the original two. | |
First Wins | Subsequent vertices that are not connected, but share an x and a y value are combined into one vertex, whose Z value is taken from the first encountered vertex. | |
Last Wins | 未连接的后续顶点,但共享x和y值组合成一个顶点,其z值从最后遇到的顶点取出。 | |
Ignore | z值忽略。没有更改节点连接的方式。 |
This parameter specifies how to deal with geometries that have a measure, but are missing at least one value, or that have z values, but are missing at least one value.Dropwill cause the incomplete measure or z values to be removed.Use Default Valuewill fill in the missing values with a default value that is specified in theDefault Valueparameter.Computewill look at the values on either side of the missing value, and then provide an estimate.
该值用于Default ValueMeasures/Z Conflict Modeto flag missing measures and z values.
When using theCompute模式计算缺失测量值,可以考虑测量连续,和linearly interpolated from their neighbors, or they can beDiscrete,和taken exactly from the nearest neighbor.
矢量参数
This parameter directs what action should be taken withClippee完全放在剪刀边界的特征。
- Treat as Inside:躺在边界上的这些功能通过Inside港口。
- Treat as Outside:躺在边界上的这些功能通过Outside港口。
- treat: Points and line segments on the boundary are duplicated and output as bothInside和Outside.
If theCreate Aggregates参数是没有, then features that are clipped into multiple parts will not be aggregated, but rather each part will be output as a separate feature.
If set toYes, then contiguous lines that constitute the boundary of the output features will be left as separate segments in a path. The default is没有,这意味着除非它们具有不同的属性(例如,特征,测量和几何名称),否则这些线将在输出中加入较长的线路。
光栅参数
如果此参数设置为没有, theInsiderasters which were clipped will be equal to the intersections of the clippers and clippees. Otherwise, the intersections will be padded by nodata so that the extents are identical to those of the input rasters.
Merge Attributes
If theMerge Attributes参数是enabled, attributes on theClipperwill be merged onto theClippeeas defined by the parameters within the expandable group. Otherwise, no attribute merging will take place.
如果是属性Clipper和Clippee功能共享相同的名称,但不是从中开始的几何属性fme_, then they are deemed conflicted.
Merge Clipper: TheClippeefeature will retain all of its own un-conflicted attributes, and will additionally acquire any un-conflicted attributes that theClipperfeature has. This mode will handle conflicted attributes based on theConflict Resolutionparameter.
Prefix Clipper: TheClippee功能将保留其所有属性。除此之外Clippee将获得反映的属性Clipper功能的属性,名称为前缀Prefixparameter.
Only Use Clipper: TheClippeefeature will have all of its attributes removed, except geometry attributes that start withfme_. Then, all of the attributes from one (arbitrary)Clipperfeature will be placed onto theClippee.
Use Clippee: If a conflict occurs, theClippee将保持值。
Use Clipper: If a conflict occurs, the values of theClipperwill be transferred onto theClippee.
If the累积模式参数是set toPrefix Clipper,此值将添加到添加到的前缀属性Clippee特征来自Clipper特征。
Usage Notes
- This transformer works with raster, point cloud, and vector data.
- This transformer is unaffected by raster band and palette selection.
- 剪光栅细胞(即clipp以外er but part of anInsideraster) 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 theRasterBandNodataSettertransformer prior to the Clipper.
Example
该example below illustrates the input features on the left and the output features on the right. Both the input and output consist of a clipping boundary (1) (Clippers)在蓝色和剪辑特征(2)(clippees.) in red. The output then splits the features into two groups: Inside port and Outside port.
该Clippeefeatures highlighted in white fall within or intersect the clipper, and these features are output to theInside(3)港口。该Clippeefeatures that fall outside of the clipping boundary are output to theOutside(4) port.
Editing Transformer Parameters
使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅Transformer Parameter Menu Options.
Transformer Categories
Search FME Knowledge Center
Search for samples and information about this transformer on theFME Knowledge Center.
TagsKeywords: MBR "minimum bounding rectangle" raster grid clip clipper clippee subset extent sample bound clean conflation overshoot undershoot pointcloud