Tag Info

New answers tagged

0

I use ArcObjects and have used the try/catch method you mentioned. In my case more than one user needs to read and write data in the same feature class in a geodatabase. I have a "load screen" that comes up and lets the user know that the data is in use and then a loop keeps trying every few seconds in the background until a lock is able to be created for ...


0

You need to put the relevant feature class as the input and not the Geodatabase.


3

The intersect tool expects a feature class or a layer as input. But you try to use a geodatabase as input. Add two feature classes (or layer) to ModellBuilder instead of two geodatabases.


0

Disable windows firewall. While not a great solution because of vulnerability, it works.


2

You must choose Directory and not File in the dialog:


1

So based on @PolyGeo's comment you should just replace the datatype parameter in the arcpy.da.Walk() function: walk = arcpy.da.Walk(workspace, datatype="FeatureClass") The rest of the code can be reused as it is.


1

After a lot of testing, I have found out, where the problem is: nested loops with "old" cursors (not data access cursors) and with geodatabases are making troubles - nested loops, "old" cursors and shapefiles are working normally. when using nested loops with da.cursors, you have to open an edit session with da.editor - this is just for nested loops ...


3

You can certainly use FME to wrangle the XML and write it to a database. Something for you to understand first is that GIS like flat data with rows and columns, including geometry. XML is not flat, it is a (maybe big) hierarchical tree, which is a fundamentally different data model than most GIS formats. That said, you can parse the XML and extract all the ...


3

Listing topology name is not possible using arcpy directly as listing feature classes. You have to get to the feature dataset first and then iterate through objects within the feature dataset. ListFeatureClasses() will not return topologies. import arcpy import os path = r"C:\ArcGIS\Default.gdb" arcpy.env.workspace = path gdb_objects = ...


1

There is a way.You can do it feature class by feature class(no hierarchy i.e feature dataset) as below


0

After talking with ESRI, they do not have this functionality at this point. Development of this enhancement is unknown.


0

There are several errors in your code. First, a file geodatabase is a directory, not a file, so you'll want to iterate over the directories, not the files. Second, arcpy.ListWorkspaces lists workspaces in the current directory, not the directory you are iterating over in your loop. Also, it is unnecessary as the arcpy.Compact_management will accept paths as ...


3

Sorry,My English is not so good.But it may be useful to you. You can use [Make Query Table] Tool in ArcToolBox: Add feature class and table to the input table. Select the required field in the field list(eg.table.trip,table.datetime...),Most important point is you must select your featrue class's shape field too. If you forget it,the result be a TableView ...



Top 50 recent answers are included