DOI-USGS / gems-tools-pro

GeMS Tools for ArcGIS Pro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax error, integer type in Project Map Data to Cross Section tool

LLeBlanc110 opened this issue · comments

I ran the tool on a fully attributed gems gdb and this is the message returned -

image

image

There's only one cross section line in the CartographicLines feature class. There's already a feature dataset 'CrossSectionB' in the gdb from when I as messing around with the tool in ArcMap a couple years ago, does that mattter? Another question, the Pro tool specifies a "GeMS style geodatabase," how GeMS compliant does it need to be and do the attribute fields all need to be filled-in for the tool to work? I asked one of our mappers to run it on their gdb and they received the same error. I've attached the gdb that I ran the tool on, thanks for your help.

EulatonGeMSxsect.gdb.zip

@ethoms-usgs The tool runs, but it doesn't generate any spatial data, even when the 'Add surface profile' and 'Add frame' is checked, is that right? I ran with the token "eulaton2" without the surface profile and frame checked and it just generated tables, I ran again with "eulaton3" with those extras checked and it only generated tables again. And, the MapUnitPolys events table doesn't generate with the token.

I'm more familiar with the ArcMap version and pre-GeMS tools you built, so maybe I'm assuming this tool generates data that it actually isn't meant too...

image
image
image

Set the scratch workspace to something other than where you want the feature classes to end up. The tool needs a place to write intermediate datasets to and defaults to your default.gdb. Unless you check 'save intermediate data', the intermediate and final feature classes are deleted (I forgot to add code to track down the _evtbl tables) so if the input and scratch workspaces are the same, you end up with no feature classes.

I put that option on the parameter form for troubleshooting but I should probably remove it and just tell people to look in the default.gdb.

Ah ok, makes sense. I changed the workspace and everything ran as it should. Thanks!

Great!