Skip to main content
Question

How to get lat/lon values into the geometry of an geodatabase writer


bodolv
Participant
Forum|alt.badge.img

I have a csv file where the geometry is in LL-WGS84, but displayed into a single field like this: (lat, lon).

 

I am very new to FME, but I think I have managed to first use a attribute trimmer to get the parentheses out.

 

I then do a Attribute splitter, which sends the data into a _list. I send list{0} and _list{1} into a newly made latitude and longitude field for the geodb writer, but I get a lot of warnings saying

 

"FileGDB Writer: The `Longitude' attribute could not be written. The containing feature has been dropped

"

So latitude gets written, but not longitude, and I dont know whyUntitledAnyone know what I am doin wrong?

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

Is your goal to write the coordinates as attributes? Or do you want to create points? If you want to write attributes, you are on the right track. If you want to create points, you can use a VertexCreator.

 

I'm not sure what is going wrong, I would use an AttributeCreator to create attributes Longitude and Latitude from _list{0} and _list{1}. You can then set the attributes and attributetypes for Longitude and Latitude in the FeatureWriter.


david_r
Celebrity
  • October 2, 2023

First I'd make sure that the Longitude field has the same data type as the Latitude field in the database.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings