I am trying to convert a custom S-57 format into a file GDB. I can upload the file if needed.
Hi @seanlegeer,
Please upload the file, and I would be happy to see if FME can extract those attributes for you.
Thank you very much and the file is attached.
I was able to read the raw S-57 records using FME's ISO8211 reader, and get a list of the attributes on the OBSTRN features. I am attaching a workspace that will use this reader to produce a CSV of all the attributes on the features. It matches the codes to the existing s57attributes.csv file to produce a table showing the known and unknown attributes.
In the table above, we can see that there are a number of attributes with codes in the 1000 and 2000 range. We will need to assign attribute acronyms and descriptions to these code in order to create the custom attribute and object classes CSV files for the S-57 reader. Can you provide this information?
Thank you for the help. I am a confused about how I would now use this Attributes.csv to read this file and convert it to a GDB with the new attributes.
Thank you for the help. I am a confused about how I would now use this Attributes.csv to read this file and convert it to a GDB with the new attributes.
You can use Attributes.csv as a guide to creating the custom attribute and object classes files.
The custom attributes file should follow the same pattern as the s57attributes.csv in your Program FIles\\FME\\s57 folder, and acts as an extension to it. The custom object classes file should follow the same pattern as s57objectclasses.csv.
In the custom attribute file, copy the header line from s57attributes.csv, then add the 1000 and 2000 attributes shown in Attributes.csv, with their Attribute and Acronym info.
In the custom object classes file, copy the header and Obstruction (Code 86) lines from s57objectclasses.csv, then modify the Obstruction line to include all the attributes shown in Attributes.csv. This will override the standard Obstruction definition to include the new attributes.
If you like, I would be happy create the custom attributes and object classes files for you. I just need you to fill in the missing Attribute and Acronym filed in Attributes.csv, and send it to me.
Thank you again. I believe I have followed your instructions but I am getting an error when I try to read the file in workbench: s57ojectclasses columns don't match expected format!
I have only added one custom attribute to test that I am doing it correct (1118, REMRK). I have attached the custom CSVs for your information.
I am very appreciative of this help and thank you again for your patience in dealing with a novice like myself.
Thank you again. I believe I have followed your instructions but I am getting an error when I try to read the file in workbench: s57ojectclasses columns don't match expected format!
I have only added one custom attribute to test that I am doing it correct (1118, REMRK). I have attached the custom CSVs for your information.
I am very appreciative of this help and thank you again for your patience in dealing with a novice like myself.
The header line in the CSVs require that the column names be enclosed in quotes. You can add these back using a text editor:
"Code","ObjectClass","Acronym","Attribute_A","Attribute_B","Attribute_C","Class","Primitives"
The correction did the trick. I am up and running! Thank you so much for your help.