Skip to content
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

Translate to Shapefiles fail #85

Open
stub0035 opened this issue Feb 10, 2022 · 5 comments
Open

Translate to Shapefiles fail #85

stub0035 opened this issue Feb 10, 2022 · 5 comments

Comments

@stub0035
Copy link

While running this tool it fails when it's trying to read the DescriptionOfMapUnits and converting it to a csv file. I'm also having issues running this tool in ArcPro (see issues in gems-tools-arcpro). My database is level 3 compliant with full Metadata. Here is my Fail:

Dumping DescriptionOfMapUnits.csv...
Failed script TranslateToShape...

Traceback (most recent call last):
File "J:\ArcGIS_scripts\GeMS\gems-tools-arcmap-1.6.11\gems-tools-arcmap-1.6.11\Scripts\GeMS_TranslateToShape_Arc10.py", line 461, in
main(newgdb, ows, gdb)
File "J:\ArcGIS_scripts\GeMS\gems-tools-arcmap-1.6.11\gems-tools-arcmap-1.6.11\Scripts\GeMS_TranslateToShape_Arc10.py", line 439, in main
dumpTable(tbl, outName, False, outputDir, logfile, isOpen, tbl)
File "J:\ArcGIS_scripts\GeMS\gems-tools-arcmap-1.6.11\gems-tools-arcmap-1.6.11\Scripts\GeMS_TranslateToShape_Arc10.py", line 189, in dumpTable
out_field.name = remapFieldName(fName)
File "J:\ArcGIS_scripts\GeMS\gems-tools-arcmap-1.6.11\gems-tools-arcmap-1.6.11\Scripts\GeMS_TranslateToShape_Arc10.py", line 126, in remapFieldName
j = j+1
UnboundLocalError: local variable 'j' referenced before assignment

Failed to execute (TranslateToShape).
Failed at Thu Feb 10 10:51:53 2022 (Elapsed Time: 46 minutes 25 seconds)

image

@ethoms-usgs
Copy link
Collaborator

Have you added any extra non-GeMS fields to DescriptionOfMapUnits?

@stub0035
Copy link
Author

stub0035 commented Feb 24, 2022 via email

@ethoms-usgs
Copy link
Collaborator

Possibly, what are the names as they appear in the table? Be sure to you are not looking at an alias.
If they are tripping up the tool, I need to change it because extra fields should be allowed.

@stub0035
Copy link
Author

stub0035 commented Feb 24, 2022 via email

@ethoms-usgs
Copy link
Collaborator

Sure, send the gdb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants