Tag Info

New answers tagged

1

You are on the right track. You just need to use MakeFeatureLayer to convert the feature class to a layer. I created a version and did an edit and then tried the following: >>> arcpy.env.workspace = r'Database Connections\gisadmin.sde' >>> arcpy.MakeFeatureLayer_management(r'Database Connections\gisadmin.sde\GISADMIN.Buildings', 'fl') ...


2

In Arcgis the dataset version is set at Workspace level. As you have mentioned in your question, you should create a connection file for that version and change the handle to the featureclass or table. something like this: worspace = "c:/connectionFiles/version1.sde/" layerName = "parcel" fc= worpspace+layerName arcpy.da.SearchCursor(fc,...) ##to change ...


2

Every set of coordinates stored inside SDE.ST_GEOMETRY is stored as a compressed array of 8-byte long integers. The IEEE floating-point to integer conversion is performed by subtracting the coordinate reference X_OFFSET (or Y_OFFSET, or Z_OFFSET, or M_OFFSET) and multiplying by the XYUNITS (or Z_SCALE or M_SCALE). The process is reversed when querying for ...


1

I have also had issues with this...This post was helpful. In our case, we have 50+ mxd's we use for web applications, each with a corresponding SDE database. We just upgraded our SDE and ArcGIS Server so I used the lyr.replaceDataSource to explicitly set the SDE workspace and it seemed to work much better. It still missed a few, but for some reason I can ...


-1

Web Services... SOA - Service Oriented Architecture http://en.wikipedia.org/wiki/Service-oriented_architecture


0

Since FGDB's are treated as folders, this script looks for folders in a directory older that seven days, then uses the Delete management tool to remove the old folders. import os import time import arcpy dirPath = r"C:\test_data" cutoff = 7 * 86400 present = time.time() directories = [] for root, dirs, files in os.walk(dirPath, topdown=False): for ...


0

I know this is answered but I just ran up against the same thing and in searching found this esri KB article that outlines nearly the same procedure as above but also what to look for to compare if you have errant versions. The article is specifically looking for replications that were deleted but not properly dropped from the database. Which is exactly what ...


0

In the ParcelEditing feature dataset, under ParcelFabric, ParcelFabric_Parcels contains a field called 'BlockDesignator' which has an alias of 'Block Number'. I hope that helps.



Top 50 recent answers are included