-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FGDC metadata, step 2 #65
Comments
It looks to me like the tool is expecting an element in your metadata template and there isn't one. We should change this because that element is not a mandatory CSDGM element and because that section get re-written for each feature class and table anyway, but try adding one, even an empty element and see if it the tool runs. |
I went back through the Metadata Wizard and I'm getting this error in the metadata validation. Maybe I should post this question with the Wizard but could this be the broken step? Errors: I don't see where the Spatial Domain field is in the wizard. |
Ha! you know what? I wrote the element name in my last reply but I put it inside angle brackets like it appears in XML and GitHub didn't print it! The element your xml is missing, apparently is the eainfo or Entity And Attribute Information element. Add that one and try it. I don't know Metadata Editor, so I can't advise you on that. Its easy with tkme |
Hi, Im back at it again with new Errors for step 2. Hoping you can point me in the right direction :) Thanks so much Executing: MetadataFGDC-2 J:\gis_editing\projects_current\250_500k_gems\Validation\500k_Metadata\500k_Template.gdb J:\gis_editing\projects_current\250_500k_gems\Validation\500k_Metadata\500k_Template-metadata.xml # Traceback (most recent call last): Failed to execute (MetadataFGDC-2)." |
The offending character looks to be an em-space, which I would imagine could be hard to find. |
I opened the metadata file using the tkme software and wasn't able to find the error. I attached a folder with the geodatabase I am using and the metadata file that is generated from the FGDC metadata step 1 which I have filled out with all the appropriate info. |
I got past your initial error with new code on the issue65 branch, but then ran into one that I cannot solve. Four definitions of faults in the Glossary use the degree symbol which I have not been successful yet in getting written to the XML metadata. It will take more time to track down so, in the meanwhile, the workaround is to replace those symbols with some text, degrees or deg., for example. We have some other problems with the metadata scripts and we really need to get this non-ASCII character encoding worked out, but for now, at least, the xml files that I got out of the script could be run through mp or the USGS online validator to be validated. My changes in the issue65 branch have been merged into the latest version, v1.6.3. Try that and let me know. |
I was able to get past my issues this morning without any further errors, but if you ran into an error that I haven't I wonder how I actually did that. thanks for getting me past all that. |
I have to admit, since the changes I made didn't fix the degree symbol problem, it doesn't seem to me like they should have had any effect on your first error either, so I am not sure what is going on, except that it's clear that I need to learn up on UTF-8 encoding. |
I think I'm running into a similar issue. Here is snippet of the error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 60: ordinal not in range(128) |
Hi I am trying to run the FGDC metadata step 2 from the most recent toolbox and im not sure what is going wrong, below are my geoprocessing results:
Running script MetadataFGDC-2...
GeMS_FGDC2_Arc10.py, version of 15 March 2021
Parsing J:\gis_editing\projects_current\250_500k_gems\Validation\500k_Metadata\500k_Template-metadata.xml
Master record parsed successfully
DescriptionOfMapUnits
Updating E-A stuff
Failed script MetadataFGDC-2...
Traceback (most recent call last):
File "J:\gis_editing\projects_current\250_500k_gems\gems-tools-arcmap-1.6\gems-tools-arcmap-1.6\Scripts\GeMS_FGDC2_Arc10.py", line 501, in
fixObjXML(objName,objType,objLoc,domMR)
File "J:\gis_editing\projects_current\250_500k_gems\gems-tools-arcmap-1.6\gems-tools-arcmap-1.6\Scripts\GeMS_FGDC2_Arc10.py", line 432, in fixObjXML
dom, dataSourceValues = updateTableDom(dom,objLoc,logFile)
File "J:\gis_editing\projects_current\250_500k_gems\gems-tools-arcmap-1.6\gems-tools-arcmap-1.6\Scripts\GeMS_FGDC2_Arc10.py", line 318, in updateTableDom
eainfo = dom.getElementsByTagName('eainfo')[0]
IndexError: list index out of range
Failed to execute (MetadataFGDC-2).
Any suggestions would be greatly appreciated. Thanks !
The text was updated successfully, but these errors were encountered: