span8
span4
我与他们之间重叠的多个功能的输入shape文件。
我需要创建有很多的功能,以及,从该输入shape文件派生的新Shape文件,但没有重叠的功能。对于这一点,我需要的重叠特征被转换为仅一个特征考虑通过的重叠特征属性过滤。这些属性都与插入在字段中的日期,但也应该相应萃取。我的意思是,我需要提取的重叠区域考虑优先级是一个功能(见路径字段):201705,201704 ..;如果不存在,使用201807,201805,201806,如果有属性等于(同月,年),使用最新的。在附接一个简单的例子来解释这种更好,最终shape文件的特征应当合并如果相邻特征是相等的。在这个例子中最终shape文件应该有3个功能,而不会重叠区域
您可以使用AreaOnAreaOverlayer并将它创建一个列表,然后进行排序,关于年/月(ListSorter)列表,并使用ListIndexer,索引1,促进了第一个列表元素的属性的特征本身的属性。
然后溶解到邻近区域与相同年/月值合并
Here you go:
I'm using a StringSearcher to look for a regular expression in the path, in this case20\d{4}which means 20 followed by 4 digits, e.g.201807, for a year/month combo.Then an AreaOnAreaOverlayer, set to create a list.So every point where 2 or more aerial photos overlap that overlap gets a list of all the year/month values.Then I use a ListSorter to sort on that year/month value, descending so the first list element is the most recent date.Finally a ListIndexer to grab the attributes from that first list element (we start counting at 0).
Great!Many thanks!Just a question.The list sorter is not the recent month/ year, it is a different criteria.This is the promotion:
201809, 201808, 201807, 201806, 201805, 201810, 201909, 201908, 201907, 201806, 201905, 201910, 201709, 201708, 201707, 201706, 201705, 201710,
I dont know how to consider it in the model.I mean, the list sort should be:
I understand I should add a StringSearchParameter before LIstSort.Could you help me?
Many thanks!!!
方便问:我的意思是,如果我有一个shapefile (many features) with a field called index (0,1,2...) in my original file in order to prioritize the overlap features (0 is more priority, then 1, 2, 3...).
I need the output shapefile promote this index field in the overlap areas (0, then 1, 2, 3..)prueba.fmwPrueba.zip
When and how to connect ListSorter in the transformer "areaonareaoverlayer"?Thanks
That would be the same concept: first overlay, create a list, then sort and index that list.
©2020安全亚搏在线软件公司|法律