POST
|
Hi Joshua, yes the join is static once it has been completed. In the real world scenario this may not be the case but from what I want to achieve here then it is more than appropriate. I had thought I was going a bit over complicated and that is why I was struggling to find examples. I will be trying to implement this further, thank you for the link you provided too, gives me more to read up on and work out from there. Thank you for your help. I will update with what is working best once I have adapted the changes.
... View more
03-28-2019
10:54 AM
|
0
|
0
|
1755
|
POST
|
I had not thought about deleting data as I wanted to keep the original dataset complete but this could be the option I need. So with the print row.FILE_NAME I can take the selected area and then export it as I wish, then as it deletes that row from the table the next time it runs it will just start from the next available row. Thank you, I will give this a try.
... View more
03-28-2019
10:50 AM
|
0
|
0
|
1755
|
POST
|
Hi Joshua and Rhett Zufelt, sorry I have had a really busy day in school. Thank you for looking over at my question. To clarify some more of what it is I am trying to do. I have a feature class, named TWP_Messages which is a spatial join of GPS points and the ATS grid system in Alberta. I have sorted this feature class by a count field for the amount of GPS messages in each township. I then want to take the top result of that join and export it into a GeoJSON file which I will then use, incorporated with a script I have written to download satellite imagery from Planet Labs. I however only want to do this one township (1 cell of the ATS grid) at a time so not to be overloaded. To achieve this I was hoping to find a way that a search cursor, or similar will take the first area from the spatial join, but as it exports this area it writes the area name in to a text file. I then ideally would like that text file to be used as a check list so when I next run the script it will then look at the text file, know that it has taken the top ranked area from the sorted join feature class and then move on to the next area in the list. So in this feature class the first time it runs it will select the row for object ID 1520, the second time the script runs I would like for it to be able to check which areas have already been selected, so the first row in the table, ignore that and then move on to the second row so it can be exported. I hope that is easier to understand. I am sure it can be done but I cant seem to find a similar instance where something similar has been done before. Again, thank you for all your help. I hope I have described the situation better.
... View more
03-27-2019
04:46 PM
|
0
|
4
|
1755
|
POST
|
Looking for a way to return the next unique result with a searchcursor in arcpy. The table is from a spatial join of areas and has been sorted through python already. However, I would like a way to have the name of the result recorded to a text file (or other dictionary) and to only take the next result each time the script runs and to check the dictionary to determine the next row to take. Therefore allowing me to work row by row, one at a time, where they will be exported to a GeoJSON file through quick export. I am struggling to find a way to make this executable.
... View more
03-26-2019
04:16 PM
|
0
|
9
|
1955
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|