|
POST
|
Had to think a little bit (I'm taking baby steps with this...) but yes, it did work once I realized I needed to use row[1] instead of 0 because that is where some null values are. Thanks again for the help.
... View more
02-18-2020
11:58 AM
|
0
|
0
|
2557
|
|
POST
|
Thanks for the quick reply and formatting help (I couldn't figure out how to do it in the first post). I added the code you suggested but it came back as "NameError: name 'Null' is not defined" so I changed it to None which seemed to go through. Now, it's back to the same error as before.
... View more
02-14-2020
12:13 PM
|
0
|
2
|
2557
|
|
POST
|
The script I am writing is simply to query multiple fields based on certain criteria and then assign a value to another field. I have multiple queries that need to be built. This is just the beginning as I am stepping into it slowly. This is literally the first script I've tried to write. I started working in Pro 2.4 which is where I am getting the TypeError. I tried it in ArcMap 10.5.1 and it ran fine. After researching a bit, I think it has something to do with changes between Python 2 and 3 but I am not sure. Field 0 is a short data type, Field 1 is a long data type and Field 2 is text. If anyone has a suggestion on how to make it work in Pro, I would appreciate it. fc = r"K:\PHYS\PROJECTS\LTSTest.gdb\Streets"
fields = ['LOCAL_SPEED_MPH', 'AADT_NBR', 'TestLTS']
with arcpy.da.UpdateCursor(fc,fields) as cursor:
for row in cursor:
if (row[0] <= 25 or row[1] <= 1500):
row[2] = 1
elif (row [0] > 40):
row[2] = 2
cursor.updateRow(row)
print("Done")
# Traceback (most recent call last):
# File "<string>", line 3, in <module>
# TypeError: '<=' not supported between instances of 'NoneType' and 'int'
... View more
02-14-2020
11:11 AM
|
1
|
4
|
2628
|
|
POST
|
The current and scratch workspaces are set to the db for the project I set up, which I made from scratch, not a template. Perhaps it's time to call up support. Thanks.
... View more
01-21-2020
11:30 AM
|
0
|
0
|
918
|
|
POST
|
Thanks Jay, but those options are set correctly.It's not using my default GDB. The analysis GDB is being placed in C:\Users\myuser\AppData\Local\Temp\ArcGISProTemp3612\scratch.gdb. Another one I did is in ArcGISProTemp11608. However, I just browsed to that location and those folders do not exist. It seems like the analysis is only created temporarily and then discarded.
... View more
01-16-2020
11:11 AM
|
0
|
2
|
918
|
|
POST
|
I have been running Location Allocation analyses in Pro 2.4.2. When I closed the project for the day and reopened the next, all of my analysis tables were not found by Pro. The first time, there was a lock icon next to the analysis name and the next time I tried to open and close a new analysis, I have the exclamation point saying to repair the source. It's pointing to a temporary gdb in my Local/Temp file. How can I make the results permanent? I don't see where to tell the analysis where to store the data. Thanks.
... View more
01-15-2020
12:31 PM
|
0
|
4
|
963
|
|
POST
|
Well, I'm proud (?) that my thread is still going after 4 years. Everytime I get a new email saying someone replied my hopes are up that the issue was resolved. Alas, I have a shiny new 2.4 install now and none of the tricks above are working for me. Can we just get Control+C and Control+V working? I'm not asking for anything fancy...
... View more
07-11-2019
07:12 AM
|
3
|
0
|
5479
|
|
POST
|
I would like to create a couple of pages for my open data site and then have links to them at the top of the site to the right of the default "Home" link. My home link is currently on the left side of the main menu area (I don't have the logo enabled). Looking around, I see code snippets and examples for customizing but I don't know where to go to start. Is there a step by step tutorial for where the code goes in the site editor and how to change it to add these links?
... View more
02-01-2019
01:16 PM
|
0
|
1
|
3030
|
|
POST
|
Thanks Sam. I'm actually trying to copy/paste the features from one feature class into an existing feature class, not create a new one. This was straight forward in ArcMap: start editing, select, ctrl+C, ctrl+V and done. This is what happens when I click on a feature to select it in the attribute table. The drop down arrow for paste special is grayed out. When I click Paste, it copies the whole layer, not the selected features. It works fine selecting them with the Selection tool so I'm not sure why selecting features another way is not working.
... View more
04-22-2015
11:52 AM
|
1
|
13
|
19806
|
|
POST
|
There seems to be an issue here depending on how you select the features. The procedure you outlined above only works if I use the Select tool and manually select the features. When I use the Select Layer by Attribute, all the cut/copy/paste icons are grayed out. If I select features in the attribute table just by clicking on them, sometimes I get the cut/copy/paste icons to turn on and sometimes none of them do. But the "paste special" arrow is never active in this scenario. Let me know if you need more info.
... View more
04-22-2015
09:34 AM
|
3
|
16
|
19806
|
|
POST
|
Sephe Fox, I did look around in the editing properties but didn't see anything that needs to be changed in order to be able to copy/paste individual features between layers. My layers are editable. Is there something specific I need to do? Thanks.
... View more
04-21-2015
05:59 AM
|
0
|
18
|
19806
|
|
POST
|
Trying to copy/paste selected features from one layer to another layer in ArcGIS Pro (file geodatabase). I have used Select by Attribute to grab the features of interest, click on Copy, then click Paste. It seems to be just making a copy of the whole layer. It did not copy the selected features and did not paste them into another layer. It seems there is supposed to be a "Paste special" option but that is not activated - only the regular paste. What am I missing? Thanks.
... View more
04-20-2015
08:48 AM
|
5
|
36
|
48214
|
|
POST
|
2. If your layer name in the Table of Contents has has a slash "/". (Fix: remove "/") Thank you! This solved my problem! I also had a slash in one of my coded value domains and got the same error. I removed it and it was working again.
... View more
03-07-2012
11:12 AM
|
0
|
0
|
4080
|
|
POST
|
I have a custom grid polygon that needs to inherit 2010 census population numbers. I have access to the online BO census and I also have the census blocks which I downloaded from the Census directly. I think I need to set up a custom BDS and then do a spatial overlay but I don't think I am doing things in the right order or understanding how the data should be set up. The grid only has a unique ID. I need to know the total population inside each grid polygon. Should my grid or the blocks be the BDS? Or both? Or should I use the online data? Anytime I run the spatial overlay, I get some kind of stack error or wrong key error. Can anyone outline a step by step? Thanks!
... View more
02-09-2012
04:13 AM
|
0
|
1
|
3808
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 08-28-2024 12:18 PM | |
| 2 | 12-22-2022 12:40 PM | |
| 1 | 11-03-2021 07:19 AM | |
| 1 | 12-16-2021 12:02 PM | |
| 3 | 04-22-2015 09:34 AM |