Tagged Questions
3
votes
1answer
57 views
How can I list SDE versions using Python?
I have an SDE geodatabase with different versions for each user.
How can I list each version using Python?
3
votes
1answer
130 views
Arcpy does not execute “CopyFeatures_Management” to write a featureclass to an ArcSDE database
I have some problems with my Python script. The script gets an JSON with different information about images. The information includes general information about images and also the gps position of ...
1
vote
0answers
42 views
Extract an ArcSDE datasets (rasters/shape files) using python?
I would like to write a python script to extract/export a dataset (rasters/shape files) in ArcSDE. I saw this posts to connect to the server:
Define Workspace for SDE Connection in Python
But how ...
3
votes
0answers
66 views
How to enable SDE Archiving with python and the SDE api ArcGIS 10.0
I have a script that does some register as versioned and updating privileges. How would I call into the c api for ArcSDE to enable archiving with python?
...
5
votes
1answer
154 views
Can you synchronize tables between ArcSDE(MSSQL) and PostgreSQL(PostGIS) regularly?
I have spatial tables in ArcSDE 10.1 (MSSQL 2008 R2) geodatabases and need to update the same spatial tables in PostgreSQL 9.1(PostGIS 2.0.1) geodatabases. Basically I use my ArcSDE environment for ...
0
votes
1answer
309 views
arcpy - how to run geoprocessing python script on SDE
I was testing my script on a .gdb on my local drive and I got it to work. The actual geodatabase I would like to run the script on is an SDE. I tried changing my filepath from the .gdb to the .sde and ...
1
vote
0answers
185 views
How to drop ArcSDE connection using Python scripting?
I want to be able to control connections to ArcSDE via python. Here is my script so far using ESRI's example.
import arcpy
from arcpy import env
env.workspace = r"SDEConnection"
fcList = ...
6
votes
3answers
853 views
Python script - how to avoid exclusive schema lock error?
I have a script for updating some features on my database every night (just for copying and replacing some features). This features are "read-only".
My problem is that I can't avoid that these ...
-4
votes
1answer
484 views
How to script a csv to file geodatabase tool?
I have many separate field data files in CSV format and I wish to automatically convert these CSV files into a geodatabase to be able to load them into a schema I created for them in my new ArcSDE ...
3
votes
1answer
411 views
How can I create an empty feature class in a file geodatabase based on the schema of an SDE feature class?
I have 150+ feature classes in SDE for which I need to create an empty feature class in a file geodatabase. For these feature classes I need to import the attributes and the name of the feature class ...
2
votes
3answers
536 views
Tracking change with ArcSDE/Oracle
I'm looking for the simplest way to track changes ([delete, update, create] feature(s)) made to the DEFAULT version of a given feature class in ArcSDE(10) and Oracle(11g).
Qualifier: I am not a dba ...
5
votes
3answers
335 views
How not to Copy Features when too many would be output?
This question has already been posed to the ArcGIS Geoprocessing forum but I have had no responses there.
I have a 3.5 million polygon layer (cadastre) stored in Oracle via ArcSDE. I use a polygon ...
1
vote
1answer
338 views
Copying and renaming files on SDE connection
I have a script that renames and copies files (feature classes) on an SDE connection. This script works just fine if the feature class name does not start with an 'S'. If the feature class name does ...
5
votes
1answer
359 views
How to check whether a fc is registered as versioned or not using python
How can I check whether or not a feature class is versioned using python? I'm trying to register feature classes using a python script. Before I do this I need to check whether a feature class is ...
2
votes
1answer
179 views
Query for Selecting only Selected Fc's from a GDB
I need to version n number of fc's which start with sde."ENT-QA". I need to select only those feature classes and run versioning for it. Can anyone help me in writing the query for selecting only fc's ...
5
votes
3answers
3k views
Define Workspace for SDE Connection in Python
How do we define SDE Connection for workspace in Python Scripting. Its urgent please need your suggestion. Thanks
0
votes
1answer
144 views
How do I assign a variable to a SQL Server ArcSDE database's feature class?
I'm using ArcGIS Desktop 10 and have no experience using Python with a SQL Server ArcSDE database. When using a shp file or file gdb it is very simple to reference a given feature class by simply ...
2
votes
3answers
540 views
Definition Query to Python script on Oracle 9i and ArcGIS 9.3.1
SUBTYPECD=1 AND SERIESNAME NOT LIKE '%-%' AND OPERATIONALSTATUS IS NULL OR SUBTYPECD=1 AND SERIESNAME NOT LIKE '%-%' AND OPERATIONALSTATUS = 976
The above is my def query in ArcMap against ArcSDE ...
5
votes
3answers
277 views
After running the Version Changes tool ..Export pre-reconcile/post records from parent
I would like to export those records identified as changes after running the Version Changes tool before running Reconcile and Post tools. Preferably with python or having python call a program to do ...
3
votes
3answers
570 views
Is it possible to create a python script to rec/post versions?
I’m trying to set up a python script so that I can schedule our rec/post to run on a server. I’ve created a model with the Reconcile Version tool, with the option to Post checked on. I then export ...
1
vote
2answers
1k views
How do I programmatically update/recreate an ArcSDE feature class from external sql data?
I have an ArcSDE feature class that contains project points based on xy data from an external SQL databaes. (Not a geodb). I am looking for the best way to "recreate" the ArcSDE feature class from the ...
5
votes
2answers
3k views
How does one access a featurelayer in SDE via Python?
I am trying to use Arcpy to run the CopyFeatures_management script so that I can copy a featurelayer in SDE.
What do I use for the input (and output, for that matter, since I'll be copying the layer ...
0
votes
2answers
159 views
APDM - error exporting database from Oracle
I have a farily large database on a slow network and I am using a thrid party tool to update data which calculates other fields and so on.
I have a guid string with an empty box (weird glyph - seen ...