Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 20447

A site-package created by Esri to expose ArcGIS Desktop (ArcMap and ArcGIS Pro) geoprocessing, mapping, etc, to Python.

0 votes
1 answer
139 views

Get list of editable fields while also adding 'SHAPE@' to the end [closed]

I need to get a list of field names that only includes editable fields and not the geometry field, but then add the geometry field back to the end of the list as SHAPE@ token. I have code that runs s …
Rex's user avatar
  • 596
1 vote
0 answers
168 views

Why does an insert cursor only insert rows when it is followed by del statement even though ... [duplicate]

My insert cursor failed in insert any rows. After spending time trying to fix something within the main loops, I added the del inCursor after the loop and now the cursor inserts rows. How can someth …
Rex's user avatar
  • 596
1 vote
1 answer
174 views

Arcpy ListDatasets function to specific directories instead of workspace [duplicate]

Are there any alternatives to the arcpy list functions (ListDatasets, etc.) where the directory can be specified rather than using the env.workspace? …
Rex's user avatar
  • 596
1 vote
2 answers
103 views

Arcpy: How to use da.cursors to 'pivot' one table into another

Let say I have a table that looks this: State--City TX--Houston TX--Dallas OK--Stillwater And I want to insert it into a table that looks like this: State--City1--City2--City3 For results that l …
Rex's user avatar
  • 596
1 vote
2 answers
99 views

projectAs on original geometry vs part geometry

I need to get XY and lengths of a part of a multipart feature in different CRS. I can use the projectAs just fine when the it's the original feature geometry, but when I try to use it on the feature …
Rex's user avatar
  • 596
4 votes
1 answer
813 views

What is the arcpy.ddd module?

I see arcpy.ddd referenced in 3D Analyst code, but I don't see it documented anywhere. What is this module and how does it relate to 3D Analyst? For example: Stack Profile # Execute StackProfile ar …
Rex's user avatar
  • 596
5 votes
2 answers
3k views

How to get size of SDE geodatabase feature class

Is there a way in catalog or arcpy to determine the amount of hard drive space a SDE feature class takes up on disk? … As for arcpy, I have not see a property of any Describe object that can call size or read/write for that matter. The answer question How to get size of file geodatabase feature class on disk? …
Rex's user avatar
  • 596
2 votes
1 answer
240 views

ArcPy: How best to handle output that could be a shapefile or feature class?

Is there any ArcPy built-in to handing this? …
Rex's user avatar
  • 596
0 votes

Creating points along 3D stream at inflection points

If you were more comfortable calculating the inflection in excel, you would only need to log the centerline ID and the measure, then use "Make Route Event Layer" to locate those points along the cente …
Rex's user avatar
  • 596
-2 votes
1 answer
426 views

Writing rows from file geodatabase Table to NonGDB Table in SQL Server using Python [closed]

I have data in a file geodatabase table that I want to write into an existing table in SQL Server (not enterprise-enabled) using Python. I am already using pyodbc to read SQL data elsewhere, but am o …
Rex's user avatar
  • 596
0 votes
0 answers
77 views

Feature Class Geometry in Stored as 0 to 360 degrees, rather than -180 to 180 degrees

My X coordinates for my geometries are all stored in 0-360. ArcMap seems to handle it fine (i.e. knows that 260°=-100°) except when I use python geometry methods. The geometry methods (intersect, co …
Rex's user avatar
  • 596
1 vote
2 answers
112 views

Arcpy Map Algebra: Maximum Number of Nestings

When using Map Algebra you can nest multiple expressions as can be seen in the Esri example below. Is there a limit on how many long of a statement you can have OR a limit on how many Con statements …
Rex's user avatar
  • 596
2 votes
0 answers
52 views

Arcpy: MXD automatically removing layer whose data source was overwritten

I have a large script that does many things, but at the end it creates a buffer whose output is an existing feature class that is overwritten. That feature class is the data source for a layer that i …
Rex's user avatar
  • 596
5 votes

When to use ModelBuilder over Python scripting and vice versa?

I have found that I seem to get stuck with no solution more with model builder than with python scripting. The somewhat 'black box' nature of model builder to me makes it harder to find where the pro …
Rex's user avatar
  • 596
0 votes

Making ArcPy code run faster

If we kept the logic and code you posted, the one small change that could improve performance is to make you 'subwatershed' from CopyFeatures_management an in_memory feature class rather than write it …
Rex's user avatar
  • 596

15 30 50 per page