Skip to main content
6 events
when toggle format what by license comment
Jan 6, 2015 at 22:31 history edited matt wilkie CC BY-SA 3.0
github link
Mar 28, 2014 at 17:47 comment added perrygeo @GeorgeC - I know this is an old post but in case anyone finds this via search engine, the solution to this error is likely to drop the .shp from the dataset name. IOW the third arg to replaceDataSource needs to be "newfile" not "newfile.shp"
Aug 2, 2012 at 6:41 comment added GeorgeC Does this work when I want to replace .lyr source shp file with a new one? I get ValueError: Layer: Unexpected error.
Oct 18, 2011 at 23:29 history edited matt wilkie CC BY-SA 3.0
update script to use parameters instead of hardcoded values
Apr 6, 2011 at 23:29 vote accept matt wilkie
Mar 8, 2011 at 23:24 history answered matt wilkie CC BY-SA 2.5