让我们谈谈果酱一分钟。在2000年,一对心理学家进行了一项研究,他们安排了24种果酱的展示桌,第二天,类似的设置只有6种果酱。While the large display attracted more attention, the small display produced more purchases. This led to the conclusion that太多的选择会使人们因决定而瘫痪,有时对结果不太满意。
然而,more choices empower us为了取得更好的成果 - 如果您可以在100个不同的酒店之间进行选择,那么您更有可能找到适合您需求和预算的酒店。
我们知道FME有很多变压器。从400多个可供选择,从空白的FME Workbench帆布开始可能会瘫痪。但是,当您缩小每个变压器的目的时,选择将减少到一个漂亮的果酱桌子上,使您能够吞噬您所带来的任何数据挑战。
知道要使用哪种FME变压器的诀窍来自动手体验,并了解您的输出需要包含的内容,例如清理数据,动态功能类或多个PDF页面。搜索变压器时,您可以键入所需的输出,例如“过滤器”或“夹子”,在FME Workbench帆布上或FME变压器画廊and get a list of transformers that can help you accomplish your goal. TheTransformer Reference Guide是了解哪些变压器最适合特定任务的好方法。
For ourrecent webinar,我们邀请用户提交他们的方案。Dale(安亚搏在线全联合创始人)和IRIS(FME Server Web开发人员)随后浏览了解决FME中的每个问题的过程以及如何确定要使用哪种FME Transformers。他们解决了一些有趣的问题:
方案1:地理空间PDF:如何创建包含地图数据的多页PDF
The challenge: To produce a multi-page PDF. Each page needs to contain a photo, a title and signature, and descriptive info containing the location of a building footprint.
用来解决它的关键变压器:
- Counter: Provided a page attribute that allowed the PDF Writer to know what page to put features on. This was the trick to writing to multiple PDF pages.
- 空间传说: Filters out the undesired data features (CAD building footprints), giving the building polygons and attributes from each point.
- SpatialRelator:用于查找建筑物所在的栅格正射脚印。
- pdfpageformatter: To layout the PDF page in the desired output format.
也可以看看:[教程]创建PDF制图输出
方案2:创建动态FME工作区
The challenge: A SQL Server database has tables containing multiple versions of the same dataset that are then written out as Shapefiles. The goal is to produce a dynamic workspace that can handle revisions in source data, like adding more tables, and can offer different outputs for historical and current data.
我们如何解决它:
- To allow for dynamic source data, Reader properties were set to “Merge Feature Type.”
- Tester变压器检查了表名称,以决定是否将功能写入当前或历史目录。
也可以看看:[Tutorial] Dynamic Workflows in FME
Scenario 3: How to Generate DEMs and Hillshades from LiDAR files
The challenge: Automating the process of generating 4000 LAS files into DEMs and hillshades.
该解决方案以动态工作流和变压器的形式出现,例如:亚搏在线
- NumericRasterizer:通过将点云栅格化为10×10分辨率来减少数据量。
- rasterhillshader:产生了丘陵。
- RasterDemganerator: Generated the DEMs.
- RasterMosaicker: Prepared the output by mosaicking all the raster features.
Scenario 4: How to convert Area feature class to Line feature class
挑战:用线代替路径多边形。
用于解决它的变压器:
- CenterlineReplacer:做到这一点。在FME 2019中,它将具有一种称为“近似Centerline”的新模式,该模式基本上更快,更稳定。
- 溶解器: Cleaned up the geometry.
方案5:分析雷达图像
挑战:分析历史雷达的栅格图像,将雷达图像中的值与电线的线性特征进行比较,并知道线性特征与一定水平的雷达活性相交的频率。
我们如何解决它:
该解决方案来自尽可能长的时间(以减少数据量)并借助几个基本变压器:
- rasterbandnodatasetter: To clean up the empty values in the input rasters.
- 分类器: Used the numeric component of the images to read them in order.
- 3DFORCER:在将线性功能转换为栅格之前,请给它一个高程(因此,线性特征显示在光栅中)。
- NumericRasterizer: Turned the vector features into rasters.
- Raster ExpressepressionEvaluator:发现了两个横梁之间的相交细胞。
- 统计量表:计算平均间隔。
方案6:批量阅读和编写CSV文件
挑战:阅读多达13种不同的CSVfiles (all with the same name), decide which feature type each CSV file refers to, and to write records for each CSV file to the appropriate set of fields in a database.
我们如何解决它:
- 读取器参数设置为所有CSV文件的“单个合并功能类型”,因此工作空间读取所有可能字段的联合。
- TestFilter: To filter data to differentiate each CSV file.
- AttributeKeeper: For each record type, keep only the attributes that apply to a specific CSV.
*
我们的webinars是看到我们的变形金刚在行动中的好地方。观看我们解决的其他一些情况:
Are you stuck on a scenario? Share your problem with our community of users and experts on theFME Knowledge Center.要学习FME变形金刚的基础知识,请尝试我们的其中之一free online training courses并获得动手经验。
Stephanie Warner
Stephanie is a marketing coordinator at Safe Software. With a background in film production, she specializes in producing Safe’s webinars, videos, and other creative content. Stephanie enjoys riding her horse, Flynn, and eating cookies.
Leave a Reply