|
POST
|
GR, If you are planning to upgrade to 10.1 when it becomes available and you are willing to wait for it; all of the functionality that you are looking for will be available through Python/geoprocessing. You could either use Python scripts directly or you could make geoprocessing calls from your C#/ArcObjects code.
... View more
03-14-2012
07:37 AM
|
0
|
0
|
1394
|
|
POST
|
To ESRI: I am sure that the Table to Domain tool for the tool's dialog box in my ArcCatalog 10 is not working for me - it is a bug in your software. (1) Please fix it. (2) Is any different way (like Python programming) to get the Table to Domain task done in ArcCatalog 10? Please kindly respond and advise. Thanks, Scott Chang I am able to run the table to domain tool without issue. Can you please post sample data and a screenshot of the parameters you are using to run the tool?
... View more
02-01-2012
07:50 AM
|
0
|
0
|
795
|
|
POST
|
This probably does not help you right now but with version 10.1 of ArcGIS there will be an arcpy.da.listdomains function that will return domain objects with the properties you are looking for.
... View more
01-30-2012
08:41 AM
|
0
|
0
|
3781
|
|
POST
|
Is it possible, using arcpy, to query version information from SDE? I would like to report information such as Version Name, Owner, Creation Date, Modified Date, Description, and Permissions. Thanks, Ryan Currently this is not possible @ version 10.0 of ArcGIS. With 10.1 we will have an arcpy.da.ListVersions function that will return version objects with all of these properties.
... View more
01-30-2012
08:39 AM
|
0
|
0
|
695
|
|
POST
|
Something that you might want to look for if you are moving to 10.1 is the new editor tracking capabilities. This will allow the geodatabase to automatically enter certain attributes such as user names when records are updated.
... View more
01-26-2012
09:25 AM
|
0
|
0
|
3122
|
|
POST
|
There is a Summary Statistics tool in the analysis toolbox that will get you to get the max value for a field and output this value to a new table.
... View more
01-23-2012
05:57 AM
|
0
|
0
|
590
|
|
POST
|
I've actually been using SP3 for a while. I've decided to just to my edits in a file geodatabase and then just replace all the rows in the SDE table on a weekly basis with Delete and Append. Were you able to run the sample code that I posted above?
... View more
01-19-2012
07:24 AM
|
0
|
0
|
2568
|
|
POST
|
I am attempting to use the insert cursor on an SDE connection and v10 sp3 doesn't seem to help, no row is added. Perhaps I am doing something else incorrectly? Can you send a simple example of what you are attempting to do? Here is a quick script that I wrote that is working on my 10.1 beta build and should also work on 10.0 SP3: import arcpygdb = 'Database Connections/gdb.sde' #change this to your GDB
table = arcpy.CreateTable_management(gdb, 'testCursor')
arcpy.AddField_management(table, 'testField', "TEXT")
cur = arcpy.InsertCursor(table)
row = cur.newRow()
row.testField = 'insertedTextFromCursor'
cur.insertRow(row)
del cur
del row
... View more
01-13-2012
06:45 AM
|
0
|
0
|
2568
|
|
POST
|
Cool tool. I can explicitly run analyze, but I only want to run from the dataset level, and the only option is to itemize every fc, so if I have 100 feature datasets with 20 feature classes in most of the fd, that is a lot of selecting, especially at the last minute that I don't want to analyze 1 specific FD with its 40 sub layers. This change would need to be un selected manually. Seems like I should have the capability to just analyze at the FD level, too. Do like the idea though, at least 1 script will need to be reworked. Ted, The Analyze Datasets and Rebuild Indexes tools give you a list of all the data that the currently connected user owns. You are correct that we do not provide an option to just analyze a single feature dataset. If you are using the tool through the UI you will need to manually unselect the data that you do not wish to analyze. If you are running the tool through Python you could pass in a list of only the classes in the feature datasets you wish to analyze. The help topic that I wrote for this has an example of how to get a list of all the data in your geodatabase. You could quickly alter this script to only use a single feature dataset as the source of the datasets to analyze. Here is the current code sample: # set the workspace environment
arcpy.env.workspace=workspace
# NOTE: Analyze Datasets can accept a Python list of datasets.
# Get a list of all the datasets the user has access to.
# First, get all the stand alone tables, feature classes and rasters.
dataList = arcpy.ListTables() + arcpy.ListFeatureClasses() + arcpy.ListRasters()
# Next, for feature datasets get all of the datasets and featureclasses
# from the list and add them to the master list.
for dataset in arcpy.ListDatasets("","Feature"):
arcpy.env.workspace = os.path.join(workspace,dataset)
dataList += arcpy.ListFeatureClasses() + arcpy.ListDatasets()
# reset the workspace arcpy.env.workspace = workspace Change this to: # set the workspace environment
arcpy.env.workspace=workspace
# The name of your feature dataset
FDS = 'NameOfYourFDS'
# NOTE: Analyze Datasets can accept a Python list of datasets.
# Next, for feature datasets get all of the datasets and featureclasses
# from the list and add them to the master list.
for dataset in arcpy.ListDatasets(FDS,"Feature"):
arcpy.env.workspace = os.path.join(workspace,dataset)
dataList += arcpy.ListFeatureClasses() + arcpy.ListDatasets()
# reset the workspace arcpy.env.workspace = workspace
... View more
01-13-2012
06:44 AM
|
0
|
0
|
579
|
|
POST
|
Thanks for the clarification. This is not something that will be possible with 10.1. We do not keep a log in the database of what users were connected and for how long. You would need to do something like you suggested to get the currently connected users and subtract their connection time from the current time.
... View more
01-10-2012
11:57 AM
|
0
|
0
|
551
|
|
POST
|
Ted, can you please clarify. The way I read the question is that you want to be able to find out how long a user was connected to a database whilst you are disconnecting them?
... View more
01-10-2012
07:50 AM
|
0
|
0
|
551
|
|
POST
|
This was a bug that we fixed at 10.0 SP3. If you are attempting to use insert or update cursors against versioned data and they are not working, please try installing SP3.
... View more
01-10-2012
07:24 AM
|
0
|
0
|
2568
|
|
POST
|
P.S. How do I put my code above in a special box like everyone else seems to do? There is a button when you are replying that looks like # it will put [noparse] [/noparse] tags around your selected text.
... View more
10-12-2011
08:22 AM
|
0
|
0
|
475
|
|
POST
|
Hi Steve, There is currently no option to create or alter query layers through Python at 9.x or 10. If you have access to the Beta program you can take a look at the "Make Query Layer" tool in 10.1 Beta.
... View more
10-10-2011
08:33 AM
|
0
|
0
|
974
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-10-2025 06:48 AM | |
| 4 | 05-21-2025 08:31 AM | |
| 3 | 05-20-2025 12:14 PM | |
| 1 | 08-29-2013 08:26 AM | |
| 1 | 08-20-2014 11:38 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|