I'm trying to save a raster to an sde workspace, but get the following error:
ERROR 000875: Output raster: c:\program files (x86)\arcgis\desktop10.2\bin\Database Connections\test.sde\LatNorth's workspace is an invalid output workspace.
INWorkspace = arcpy.GetParameterAsText(0) InputLatitude = arcpy.Raster(INWorkspace + "\\" + StageAge + "_Latitude") LatNorth = Con((InputLatitude > 0), InputLatitude) LatNorth.save("LatNorth")
(StageAge is just a string)
I have also tried:
OUTWorkspace = arcpy.env.workspace LatNorth.save(os.path.join(OUTWorkspace, "LatNorth"))
What is the correct syntax for saving a raster to sde? This isn't documented, or if it is, it's well hidden.