|
POST
|
Wes Miller is right you should look into using the faster da cursor. If you want to continue using the cursor you are using then rather than accessing the field name directly as you have use this approach: myField = "ADD_FULL" # You can change this to what ever field name you want
rows = arcpy.UpdateCursor(featureClass)
row = rows.next()
while row:
s= row.getValue(myField)
print s
row = rows.next()
... View more
07-20-2015
08:19 AM
|
0
|
1
|
4473
|
|
POST
|
Joshua, Have a look at this thread which discusses this issue. In a link in the final comment to my answer is a solution that you are probably after. Duncan
... View more
07-20-2015
08:10 AM
|
0
|
6
|
3914
|
|
POST
|
Just looking at your screen shot I would never have used the file path naming convention you have used! You have a long folder name with multiple hyphens and spaces. Try copying the file geodatabase folder (Data_1.gdb) with windows explorer to say a much simpler folder structure like c:\temp and see if you can open/recover it from there?
... View more
07-16-2015
09:12 AM
|
0
|
1
|
1967
|
|
POST
|
I once had a problem with a file geodatabase caused when I tried to compact it. As the recovery tool has failed for you, this is worth at least a look? https://community.esri.com/thread/26108#post261837
... View more
07-16-2015
02:42 AM
|
1
|
3
|
2596
|
|
POST
|
It's worth emphasising that the method segmentAlongLine returns the polyline segment between start and end measure on a single polyline. If the river is composed of polylines joining at nodes which is typical of say a geometric network it could not return a segment that followed the river downstream beyond it's To-end. If Peter wanted a line that went beyond the end of a polyline he either has to prepare the main stem by dissolving the polylines into a single route and use your code or traverse a network.
... View more
07-15-2015
09:27 AM
|
1
|
0
|
3603
|
|
POST
|
Hi Chris, Looks like you got a solution but from one developer to another your formatting is not very helpful so it was difficult to read the code. You seem to have about 4 to 5 blank lines between every line of code... Can you reformat it to make it more readable for others?
... View more
07-15-2015
09:11 AM
|
1
|
2
|
1365
|
|
POST
|
Karolina, First of all I am not a statistician so when you wrote find values of quantile 5% and quantile 95% of my data I interpreted that as percentiles, so my following example may not be giving you the correct values! What it does show is how you compute values that the standard raster property tools do not return. By using the approach below you can compute the values you need and integrate them into model builder. Below is a model with two Model only tools Calculate Value returning the 5% and 95% percentile of a raster. If for example,I open the 95% percentile tool you can see the python code used to compute the value. The trick is to turn it into a numpy array and then you have access to many of the array processing functions. Dan Patterson has written many guides doing very clever stuff with numpy arrays, too clever for me!
... View more
07-15-2015
07:44 AM
|
0
|
3
|
2634
|
|
POST
|
Looking at your code I can't see anything obvious but you do mention SDE so a quick look on GeoNet threw up this thread, worth a look. There is also a useful thread on GIS SE.
... View more
07-09-2015
07:17 AM
|
0
|
0
|
1062
|
|
DOC
|
Hmm.. I hear what you are saying about GeoNet being a good site to discuss ideas, it has the mechanism for posting and replying but I don't think it should become the "go to" place for tools created by the user community. As you know the new ArcScript site is a response to the poor and impenetrable code gallery. Hopefully it will become the one-stop site for all community uploaded tools. A forum site is not what I would go to in the hope someone has attached a tool to their thread. That's why I think ArcScripts works you go there and search there and voilà you find Wes's awesome tool! I only stumbled across this thread because I like looking at the helpful documents that you and other users have created.
... View more
07-09-2015
05:19 AM
|
0
|
0
|
2715
|
|
POST
|
I don't believe they are things that appear in the Customize/commands section. Think about it, you can't find the dockable catalog window or ArcToolbox window in it. The buttons that open them are there but not the actual window. I wrote a project a few years ago that employed dockable windows and can confirm that I do not see them in the customize dialog in Arcmap.
... View more
07-09-2015
04:18 AM
|
0
|
0
|
1270
|
|
POST
|
I think you need to upload the code if you want anyone to respond. Someone may spot some way of speeding up the code?
... View more
07-09-2015
03:43 AM
|
0
|
2
|
1062
|
|
DOC
|
I don't wish to sound discouraging but should this not be on ArcScripts instead as a document? Seems a very odd and in my opinion, an inappropriate place to share your tool.
... View more
07-09-2015
03:15 AM
|
0
|
0
|
2715
|
|
POST
|
I'm a bit confused in what you are asking for? You say you want a solution in model builder but talk about ValueTables. To my knowledge these don't exist in model builder. They are controls that can be exposed in a Python Toolbox, an environment you specifically say you want to avoid. You are mixing concepts from Python Toolbox, scripting and model builder. I wrote a short guide about ValueTables here, may be that will help?
... View more
07-09-2015
03:03 AM
|
0
|
0
|
845
|
|
POST
|
I've very little experience with representations so not sure how you would do this or if it is even possible. I know you can override representations, maybe there is some boundary cut effect? Something you would have to manually apply. There is one scenario I can envisage and this is when a polygon is surrounded my several other polygons that have a mixture of boundaries absent or present so I do not know if you can have multiple overrides for several parts of a polygon boundary?
... View more
07-09-2015
02:28 AM
|
0
|
0
|
1588
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-03-2026 07:31 AM | |
| 3 | 06-29-2026 05:17 AM | |
| 1 | 02-15-2023 05:45 AM | |
| 1 | 06-16-2026 02:37 AM | |
| 1 | 06-15-2026 08:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|