paxtaru

Defining SDE connection in Python

Discussion created by paxtaru on Jan 4, 2011
Latest reply on Sep 14, 2011 by phani99
Hi all,

I'm having a bit of a hard time finding a good reference on how to approach this...

The task assigned is for me to write a python script to run on Linux.  I was able to write the script on the Windows development environment without any issue... however I realized that I have no clue how to define an SDE connection on the Linux system.

I looked up some new and old forum threads but still I can't seem to find my way around, there are some references to use the sde file (create them on Windows with ArcCatalog then copy to Linux) which I haven't tried, but the preferred way is still to just have the user be able to define the connection somehow. 

Our Linux system is not using an ArcServer environment, rather just the ArcEngine 9.3.1 license is being used.  If there's any reference to a document on how to do that, or some forum posts that has some examples, I'd really appreciate the help.

For clarification, I just need to execute SynchronizeChanges_management(SDE1, replicaname, SDE2).  There really isn't much to do other than figuring out how to get the python scripts to run properly (already got that done) and to define SDE connections as parameters somehow...

Thanks,
Peter

Outcomes