POST
|
I'm sorry, I get it is a stupid question but who else am i suppose to ask? I don't have a deep knowledge of this but why would it work on one and not the other? There are other values that have numbers and letters that only provide the numbers so why not that one?
... View more
04-28-2020
11:47 AM
|
0
|
1
|
393
|
POST
|
Trying to make a label Expression that just returns any number in a field, doesnt need to be any specfic data type just tying to get the label to only display numbers so I can put that number on a highway shield. My python snippet works in one of my maps, but not the other even though they are the same dataset in the same GDB. Here is my code: int(''.join(filter(str.isdigit, [FULLNAME]))) The error I receive from the non-working map: ValueError: invalid literal for int() with base 10: " The field type is string for both.
... View more
04-21-2020
11:44 AM
|
0
|
3
|
439
|
POST
|
Hi, Trying to replicate the code from this guide: Calculate Field Python examples—Data Management toolbox | Documentation Which is: Expression: Reclass(!WELL_YIELD!) Code Block: def Reclass(WellYield): if (WellYield >= 0 and WellYield <= 10): return 1 elif (WellYield > 10 and WellYield <= 20): return 2 elif (WellYield > 20 and WellYield <= 30): return 3 elif (WellYield > 30): return 4 My Code: Expression: Reclass(!Id!) Code Block def Reclass(Level): if (Id >= 0 and Id <= 10): return 1 elif (Id > 10 and Id <= 20): return 2 elif (Id > 20 and Id <= 30): return 3 elif (Id > 30 and Id <= 40): return 4 elif (Id > 40 and Id <= 50): return 5 elif (Id > 50 and Id <= 60): return 6 elif (Id > 60 and Id <= 70): return 7 elif (Id > 70 and Id <= 80): return 8 elif (Id > 80 and Id <= 90): return 9 elif (Id > 90 and Id <= 100): return 10 This is the error ERROR 000539: Traceback (most recent call last): File "<expression>", line 1, in <module> File "<string>", line 2, in Reclass NameError: name 'Id' is not defined Failed to execute (CalculateField). I don't know what Name Id is not defined means as i defined it just like the example.
... View more
04-06-2020
06:05 PM
|
1
|
7
|
2214
|
POST
|
I have 1,528 facilities (park centroids snapped to the closest edge of the road network) and 6,638 incidents (Bus stops snapped to closest edge of the road network). I'm trying to figure out the average and median distance of each park to it's closest bus stop. But I'm getting tons of these two types of errors even though everything is on the network. Warning: Location "Location 1453" in "Facilities" is unlocated. Warning: No "Facilities" found for "Location 15" in "Incidents". Unsure of how to proceed or really what more information you might need. If you had a better method of generating the mean and median distance along a network without this method I'd be open to that too. Thanks
... View more
08-03-2016
02:28 PM
|
1
|
0
|
531
|
POST
|
I've run into another issue, I added the facilities as XY data (park centroids) but when I go to run the Service Area tool it says that the point is unlocated. I assume this is because most park centroids are not close to a road? Unsure of how to proceed to allow a facility to be a polygon (or an equivalent function). Found this question that you responded too, although it doesn't seem an answer was found. I have the same issue as the original asker that I have thousands of parks and can't really perform anything on a manual basis. Any suggestion would be appreciated.
... View more
07-20-2016
12:28 PM
|
0
|
1
|
659
|
POST
|
Thank you for your response! Sorry It has taken me a while to get back as I was without a computer (or atleast one with ArcGIS) for the last several days. That all makes perfect sense. I've run into a slight problem with the Point to Line tool, it seems to generate lines from within the feature class so should I be merging the two stations into one class and then running the Point to Line? Also I assume it is the line field (Or is it sort?) that I should be selected to force the lines to only be drawn between the same point?
... View more
07-20-2016
09:54 AM
|
0
|
3
|
659
|
POST
|
I have a network dataset that contains streets, bus routes and bus stops. The bus stops are not aligned to the street so many don't have "Edge Source"; is there a way to automate creating hundreds of lines connecting the bus stops to the road? Perhaps a buffer tolerance or something?
... View more
07-13-2016
12:58 PM
|
0
|
6
|
2690
|
Title | Kudos | Posted |
---|---|---|
1 | 08-03-2016 02:28 PM | |
1 | 04-06-2020 06:05 PM |
Online Status |
Offline
|
Date Last Visited |
03-20-2023
02:51 PM
|