Repath Raster layers from Oracle to Sql Server

656
0
10-29-2010 11:54 AM
MichaelBishopp
Occasional Contributor
I am trying to "repath" a few raster layers that are currently in an Oracle instance to our new Sql Server SDE instance.  I am doing this as part of an automation python script.  The line in question is:

.
.
.
sourchPath = lyr.datasetName
mxd.findAndReplaceWorkspacePaths(sourcePath, r"Database Connections\Prod_Rasta_GISUSER.sde")


Everything is working just fine (the script gets to the point of repathing the raster layers, but no repathing takes place).  And, yes, the database connection exists and works just fine.  Am I using the wrong method?

Michael
0 Kudos
0 Replies