|
POST
|
Raster Object (ArcMap help) See the example, it uses the code pattern I shared with you. I try to do things the way they demonstrate in the help to avoid problems. Again, raster saved to the gdb are s l o w. It looks like you're using ArcMap because your Calculate Field uses VB syntax. I recommend Python syntax for Calculate Field so it will work in 64 bit and in Pro.
... View more
04-05-2021
09:11 PM
|
1
|
3
|
6958
|
|
POST
|
I haven't seen this workflow in the help, the normal way I do it is one of these patterns: # map algebra normal way to do it (as shown in the help usually)
pp = SnapPourPoint(....)
pp.save("snap_pour_point")
# then later you can re-use the pp variable
# and later delete the raster this way:
arcpy.Delete_management(pp)
# this pattern avoids creating a raster object
arcpy.gp.SnapPourPoint_sa(input1, input2, output) I think your current pattern may be putting some raster objects into "space" - not assigning them to variables -- which could be the source of your file lock issues. Or you are running into some bugs.
... View more
04-05-2021
08:59 PM
|
1
|
0
|
6958
|
|
POST
|
If you return a raster object to a variable, perhaps you can use the delete tool on it too, which should delete the raster and release the lock.
... View more
04-05-2021
07:15 PM
|
1
|
0
|
6961
|
|
POST
|
A raster object lives in memory and creates a lock like a raster layer so you may want to try an explicitly delete it with del. You could then delete the thing using its path after that. It is possible this could release the lock. Maybe.
... View more
04-05-2021
06:20 PM
|
1
|
7
|
6964
|
|
POST
|
There used to be a limit of how many rows to scan to make the list of unique values, to keep performance reasonable. I just looked for the spot to increase this limit in Pro and can't find it, though there is one for raster tables (65536) that you can increase in the Pro app settings. See how your table says *2,000? The * means all the records haven't been scanned. Maybe you could navigate to the end of the table with the move to end button to make all the rows visible to the unique values renderer? Another tack: did you try the count refresh to force it?
... View more
04-05-2021
04:21 PM
|
0
|
2
|
8193
|
|
DOC
|
I believe the installer has other environment variables may take care of your use case. I'm sure Esri Tech support would be happy to help you if you run into issues though.
... View more
04-05-2021
03:39 PM
|
0
|
0
|
7514
|
|
POST
|
At my university environment I have concerns about this so we install using a batch script (shared by OneDrive for students and on a network drive locally for lab machines) that installs a version and disables updates. On our lab computers we do a new install for every academic year, and encourage students to rerun our install script to update to that year's version. In the rare situation (once when AGOL went to HTTPS) where we need to update everyone mid-year, we update our script over winter break and get the word out. Here is a version of our batch script ArcGIS Pro silent install script
... View more
04-05-2021
03:32 PM
|
2
|
0
|
1773
|
|
POST
|
There may be hope because you have identified the items (rasters) that are holding the file lock. Knowing that, I would go through your code and make sure you explicitly delete any layers or raster objects pointing to data before you delete the datasets themselves. It gets stickier if the layers are actually added to a map because then the application itself (not your script) may establish a file lock. I have developed code patterns where I initialize variables (to None) for layers and datasets at the beginning of a script (function) and at the end, if not null, delete them in a finally block. Layers first, then datasets. Finally a suggestion: From your code it looks like you are doing a lot of spatial analyst raster processing. Based on my own experience, if you aren't already, I highly recommend you use .tif files for your rasters instead of file gdb for performance reasons. Good luck chasing down those file locks, you may need it.
... View more
04-05-2021
03:27 PM
|
1
|
0
|
6976
|
|
POST
|
I doubt you can do much in app creation without an org account but this is certainly the kind of thing a $100 personal use non-commercial license would be good for. Better yet, partner with a local university and make it a student project so you can piggyback off their license. There may be an intro to GIS student in your area looking for a useful project as we speak!
... View more
04-02-2021
02:21 PM
|
1
|
0
|
1524
|
|
POST
|
One more thing - as I mentioned up-thread, if straight lines in lat long become curved on your map, you may need to densify your lines (there's a tool for that, and you can also do this in the editor). Though I think the project tool may do that for you (maybe not in ArcMap).
... View more
04-02-2021
12:22 PM
|
0
|
0
|
959
|
|
POST
|
What did you give as the input coord system for project, since the input didn't have one????? Define Projection is used when the feature class has no spatial reference (or it's wrong). Sounds like you didn't provide a spatial reference to the fishnet tool, so you need to run Define Projection on it so Arc knows what the xy coordinates mean (lat lon WGS84). THEN you can project the grid (though I don't think you need to, ArcMap projects these things on the fly AS LONG as the spatial reference is defined. Great book to push on you: Lining Up Data by Maher (Esri Press). It's *fantastic* for a better understanding of coord systems and what to do when things don't draw in the right place. I still think fishnet is a very complicated way to go at this. 🙂
... View more
04-02-2021
12:15 PM
|
1
|
1
|
6532
|
|
POST
|
I do not recommend auto-synching GIS files as you work on them. These are not simple files like word and excel files -- as you do processing hundreds of little files in your file geodatabase get written and read and you will burn a lot of network and CPU keeping things up to date with the cloud. Very easy to mess things up with your data. If you must use one drive only turn on folders for synching only when you are not working. Just my 2c. If you have really large data files you are processing, an external drive makes a lot of sense, or better yet, add an SSD to your computer. I just added a 2T drive to my HP z-15 laptop for only $120.
... View more
04-02-2021
11:36 AM
|
5
|
0
|
14610
|
|
POST
|
It lined up great because .00001 decimal degrees is like 1 m. (1 degree = 112 km at the equator). That's a lot of net to fish, but glad it worked for you. Your lines should be fine in WGS84 - ArcMap projects everything on the fly *as long as* coord systems are properly defined. Sometimes you may have an issue where you need to densify the lines if straight lat long lines become curved in the target projection.
... View more
04-02-2021
11:31 AM
|
1
|
0
|
6538
|
|
POST
|
Yes the URL works for me. here's a picture of it for the good of the thread.
... View more
04-02-2021
10:45 AM
|
1
|
0
|
6544
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-11-2021 01:26 PM | |
| 5 | 12-10-2021 04:58 PM | |
| 1 | 02-27-2017 09:30 AM | |
| 2 | 12-04-2023 01:05 PM | |
| 1 | 04-12-2016 10:17 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-19-2024
12:10 AM
|