|
POST
|
The flip line in ArcMap is fine. One operation. Inside python you have 2. An insert Cursor and the flip. I believe you will need to open a da.Editor session for this. Like : # start editing
edit = arcpy.da.Editor(os.path.dirname(outputDataLocation))
edit.startEditing(False, False) # check these settings in the help
edit.startOperation()
# do stuff here
edit.stopOperation()
edit.stopEditing(True)
... View more
10-08-2015
03:25 AM
|
1
|
0
|
982
|
|
POST
|
And is an editor session started somewhere outside of this function. http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-data-access/editor.htm
... View more
10-08-2015
01:20 AM
|
0
|
0
|
982
|
|
POST
|
So if you also want to make sure it is a valid fgdb, look at arcpy.Describe("path/to/f.gdb") and check its dataType == "Workspace"
... View more
10-05-2015
05:47 AM
|
1
|
1
|
7057
|
|
POST
|
But, be aware that the attribute table is not guaranteed to be in PoleID order. Esp if you have done some editing.
... View more
10-05-2015
03:41 AM
|
1
|
0
|
2552
|
|
POST
|
Just because the min/max values in the TOC are the same, the internal values (ie the distribution) should / have to be a bit different. But this is getting a little off the original topic.
... View more
10-01-2015
07:57 AM
|
0
|
1
|
2864
|
|
POST
|
Strange folk in Oregon... Is there any explanation somewhere as to why they have a X offset of ["False_Easting",164041.9947506562]??? That's really easy to remember
... View more
10-01-2015
01:14 AM
|
1
|
2
|
2037
|
|
POST
|
You ran this tool on your data... This is in SA Tools / Neighbourhood / The result cannot be the same...
... View more
10-01-2015
12:34 AM
|
0
|
3
|
2864
|
|
POST
|
Then, why not just run a raster filter for Min on the original raster with a 3X3 processing window?
... View more
09-30-2015
11:32 AM
|
0
|
5
|
2864
|
|
POST
|
There seems to be some inconsistency in you code : for u in range(len(myArray)-1): for v in range(len(myArray)-1): if myArray >myArray[u-1] : constant2[u-1] =myArray[u-1] if myArray >myArray[u+1] : constant2[u+1] =myArray[u+1] if myArray >myArray[u-1][v-1]: constant2[u-1][v-1]=myArray[u-1][v-1] if myArray >myArray[u-1][v+1]: constant2[u-1][v+1]=myArray[u-1][v+1] if myArray[u+1][v+1]>myArray[u+1][v+1]: constant2 [u+1][v+1]=myArray[u+1][v+1] if myArray >myArray[u+1][v-1]: constant2 [u+1][v-1]=myArray[u+1][v-1] if myArray >myArray[v+1]: constant2[v+1]=myArray[v+1] if myArray[v-1]>myArray[v-1]: constant2[v-1]=myArray[v-1] Gee that's looks terrible on my side. All the "ifs" are comparing myArray(,v]) with the cells around it. Except at lines 11 & 17 (I think) Why is that?
... View more
09-30-2015
11:29 AM
|
0
|
6
|
2864
|
|
POST
|
If the layer is visible in the TOC, it will be visible in the layout and will be printed if that is what you want to do. If you have a graphic layer, data frame properties / annotation layers and it is ticked on there, then it will also be visible in any output. Why would something be visible on the screen but not come out from a print?
... View more
09-30-2015
11:18 AM
|
0
|
3
|
3127
|
|
POST
|
And the link posted by ObiDan is pretty well explained in terms of what to do in the raster toolbox / raster calculator. Before getting into the details of coding this in python, why not do it by hand a few times and experiment there. There is a lot of help here and at python.org and many others on python coding.
... View more
09-30-2015
06:18 AM
|
1
|
0
|
2724
|
|
POST
|
Is there any reason you need to do this in python? In an ArcMap edit session, just select the features (select by attribute) then delete. If you want to use a tool, in ArcMap, use a definition query on the layer and save that to a lyr file. Then use the lyr file as input to the Delete features tool.
... View more
09-30-2015
03:50 AM
|
1
|
2
|
2769
|
|
POST
|
Sorry Freddie, that link is broken when I access it...
... View more
09-30-2015
01:02 AM
|
0
|
4
|
1837
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-08-2015 11:28 PM | |
| 1 | 12-20-2013 08:59 PM | |
| 1 | 05-14-2014 10:38 PM | |
| 1 | 12-16-2013 09:05 PM | |
| 1 | 05-31-2019 02:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|