DOI-USGS / gems-tools-pro

GeMS Tools for ArcGIS Pro
Creative Commons Zero v1.0 Universal
45 stars 15 forks source link

Validate Database - GeoMaterialDict does Not Meet Standard #78

Closed dmirandaUSGS closed 11 months ago

dmirandaUSGS commented 11 months ago

While working to convert a database to GeMS, Tracey Felger and I were getting a validation error when using Validate Database on the GeoMaterialsDict. See below: image

The GeMS database we used was generated with the Create New Database script, so I would expect the GeoMaterialsDict to be correct.

To troubleshoot the problem, I:

  1. Pulled the latest version of the toolbox
  2. Ran Create New Database
  3. Validated the brand new empty GeMS database

I ended up receiving the same error about definitions missing for the three GeoMaterialDict items. I took a look at the GeMS_lib.gdb, where the table is copied from in the Create New Database script, and noticed that the GeoMaterialDict table is missing those three definitions: image

Should the GeMS_lib.gdb/GeoMaterialsDict table have defintions for Other materials, Water or ice, and Unmapped area so that we can prevent this validation error?

ethoms-usgs commented 11 months ago

Ok, hang on. I need to change the Create Database tool. That tool does make the table from GeMS_lib.gdb, but the Validate Database uses GeoMaterialDict.csv in the Scripts folder. I like saving the table in the more open format so I will work toward removing GeMS_lib.gdb.

ethoms-usgs commented 11 months ago

Updated in v2.12.4