I have a csv separated by semicolon.Some lines have too many semicolons (bad data).To clean up the data I have read the csv with a Text File Reader to read line-by-line and used an AttributeCreator to create an attribute for the number of semicolons in each line.Then I followed that up with a Tester to retrieve the lines with the correct number of semicolons (clean data).Now I have this text line data and need to write back to a csv.I cannot figure out how to write to a csv from the text line data.
I used a CoördinatExtractor and a ListExploder to get the Coördinates.I create a attribute to write the x and y coördinates in one line.Now the question is how can I create the last line whit only end?
example:
pnt 111223,513248
pnt 111225,513256
END
I have a text file that contains attribute information and coordinates of points representing polygon vertices.Here is a simplified example of the data set up:
attributes: Name="Bob" Number="1"
x="634522.22","y=834343.22"
x="634522.23","y=834344.22"
x="634522.24","y=834345.22"
x="634522.25","y=834346.22"
attributes: Name="Steve" Number="2"
x="634522.26",y="834347.22"
x="634522.27",y="834348.22"
x="634522.28",y="834349.22"
x="634522.29",y="834350.22"
x="634522.30",y="834351.22"
(repeats for a few hundred entries)
I want to make individual polygons (for use in Arc) with each set of coordinates and attach the attributes.Is FME capable of this (i tried all day without success) or should I be working on a python solution?
Thanks!
Hi,
I have a simple txt with many coordinates like (no header):
554174.746999408,5598075.08612377,554175.302999408,558090.53212377,554177.963999408,5598129.63312377,554182.011999408,5598160.71912377,554182.176999408,5598181.49312377,554180.422999408,5598212.50312377,554172.863999408,5598249.02912377,554167.975999407,
I want to validate that geometry.I tried using different readers (txt,csv) and transformers like stringreplacer.
I found this question
https://knowledge.亚搏在线safe.com/questions/39344/use-of-the-geometryreplacer.html
but could not modify my workbench with success.
Any hints on that?
So I have a point shapefile of orthophoto locations with approx.250 features in it with attributes.I also have a .txt file to use as a template.What I basically need to do is for each feature in the shapefile,I need to extract the attributes,do a find/replace in the template,写一个文本文件。Essentially it's just creating text files with metadata of each orthophoto in it,so I should end up with approximately 250 text files when finished.
I'm not sure how to get FME to go through one feature at a time and write out to a .txt.Does anybody have any idea how to do this?