12-10-2013
08:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
This succeeds if FGDB is on disk:ws_output = r'\\NetworkPath\GDB\Conc2.gdb' elevrasname = "tabElev" outelevtab = ws_output + "\\" + elevrasname arcpy.sa.Sample(rasters, transect_in, outelevtab)
This fails:outelevtab = "in_memory" elevrasname = "tabElev" outelevtab = ws_output + "\\" + elevrasname arcpy.sa.Sample(rasters, transect_in, outelevtab)
James,
in your second bit of code, outelevtype is being assigned twice and there is no assignment for ws_output.
So perhaps that second bit should be...
ws_output = "in_memory" elevrasname = "tabElev" outelevtab = ws_output + "\\" + elevrasname arcpy.sa.Sample(rasters, transect_in, outelevtab)
I also find it is better to use that os.path.join(var1, var2) construct to piece variables together to make paths.
Cheers,
Neil