|
IDEA
|
This is good news indeed, looking forward to placing break points in my code during debugging! I hope the solution covers the scenario of the code embedded within an atbx as that is how I tend to code.
... View more
06-21-2024
06:46 AM
|
0
|
0
|
4817
|
|
IDEA
|
No one from the entirety of ESRI has any suggestions/comments?
... View more
06-21-2024
06:42 AM
|
0
|
0
|
866
|
|
POST
|
Firstly when posting code please use the syntax button "</>" accessible via the 3 dots button to make your code clearer. No one should be struggling to read your poorly formatted code. You can always go back an improve your question via the edit post button. Your code is flawed, a cursor returns a ROW object and the select layer by location tool takes a Feature Layer as its third parameter, you need to be reading the help file parameter section of a tool to understand what its required inputs are. A great thing about the help file, is the help it gives! Keep scrolling down the page and you will always see a code sample section, study that. So as your cursor is churning out rows and not layers a better solution is what @DavidSolari suggests, do a spatial join and search over that. If you write the output of the spatial join to memory workspace you don't have to worry about cleaning up after yourself.
... View more
06-19-2024
09:14 AM
|
0
|
0
|
1276
|
|
POST
|
If you are talking about the popup that occurs when the script tool is running as a tool, rather than me setting properties of parameters as shown in my first question, then yes the blue circle icon appears but nothing shows in the popup. Normally I set the text for those via the Edit metadata > Syntax >Dialog explanation. What I show in my original question appears to do absolutely nothing, I wonder if it is functionality that they intend to implement in a future version of ArcPro?
... View more
06-19-2024
08:52 AM
|
0
|
0
|
1527
|
|
POST
|
With the recent upgrade to ArcPro 3.3 I have noticed a new button that has appeared when defining parameter labels, what does it do? If I add any text to it, then OK the dialogue it is forgotten and nothing appears to be stored anywhere? Tagging @KoryKramer , @ShitijMehta
... View more
06-19-2024
06:54 AM
|
0
|
3
|
1597
|
|
IDEA
|
To compliment @Bud 's idea. If a network is in a FeatureDataset and you have a BASIC license level I think you can't modify the schema. So first thing I do is drag the Feature Class out of the FeatureDataset or sometimes copy it. I have to save I rarely do this, so I'm currently happy with doing it manually, but @Bud's idea has merit if there is a need to automate things. I guess the challenge is what is lost when you move it out of a Feature Dataset.
... View more
06-06-2024
05:31 AM
|
0
|
0
|
647
|
|
IDEA
|
Are you aware you can control many aspects of how a tool interacts with the application through the Options dialogue?
... View more
06-06-2024
05:22 AM
|
0
|
0
|
771
|
|
IDEA
|
@Bud , sometime when a help page falls short on what it is explaining I have contacted ESRI, I assume their documentation team, through the link which I believe is at the bottom of every help page. Just letting you and anyone else who reads this idea know that there is this method to contact ESRI on a specific page.
... View more
06-06-2024
05:18 AM
|
0
|
0
|
1717
|
|
IDEA
|
I'm with @BillyBuerger on this, if the functionality has not been part of the base install then I should not be seeing it. I'm also unlikely to use it if it was installed. Personally I think the AI in GIS is great for all those deep learning tools, that I choose to use when needed. Having something suggest a tool seems to me a lazy persons option. What it far better and what ESRI has excelled at in the past is to provide well written help files, with good examples and sample code. People new to GIS need that foundation not have some AI suggest something and they don't understand why are doing it. I do hope ESRI continue their fine tradition of providing great help rather than let chatbots and AI take over...
... View more
06-06-2024
05:11 AM
|
0
|
0
|
2646
|
|
POST
|
I had a similar issue same as @compass_cartographic where I was getting the error message TypeError: 'NoneType' object is not callable So I ended up at this thread and the solution was to change tgt_item_md.thumbnailUri(thumb_path) to tgt_item_md.thumbnailUri = thumb_path. I think the issue is a "chicken and egg" scenario. I had a folder with hundreds of datasets I wanted to insert a generic thumbnail into. How can you update something if nothing exists? So when you want to update the thumbnail you need to set it rather than update an existing one when you are creating metadata for the first time. I had a similar problem with update tags and summary. I had to run my code twice, first to import , that gave me something that exists then I ran the code again to update it. Here is my code for people to review. import arcpy
from arcpy import metadata as md
"""
Comment out 3-lines as required to update metadata accordingly.
"""
# Set the standard-format metadata XML file's path
# This dataset I used ArcPro to populate with lots of generic metadata which I want to apply to all other datasets in the same folder.
src_file_path = r"C:\Project\Raster\CHIRPS2_0\AfricaMonthly\chirps-v2.0.1981.01.tif"
# Generic thumbnail image to be applied to all metadata
thumb_path = r'C:\Scratch\chirps.png'
# Set the current workspace
arcpy.env.workspace = r"C:\Project\Raster\CHIRPS2_0\AfricaMonthly"
# Get and print a list of GRIDs from the workspace
rasters = arcpy.ListRasters("*", "TIF")
for raster in rasters:
if raster != "chirps-v2.0.1981.01.tif": # skip self
print(raster)
yr = raster[12:16] # Extract year from file name
mth = raster[17:19] # Extract month from file name
tgt_item_md = md.Metadata(raster)
if not tgt_item_md.isReadOnly:
# These 3 lines import metadata and update thumbnail
#tgt_item_md.importMetadata(src_file_path)
#tgt_item_md.thumbnailUri = thumb_path
#tgt_item_md.save()
# These 3 lines update tags and summary which now EXIST due to the previous run of import.
tgt_item_md.tags = tgt_item_md.tags + "," + yr
tgt_item_md.summary = tgt_item_md.summary + " Year = " + yr + ", Month = " + mth
tgt_item_md.save()
... View more
06-06-2024
04:50 AM
|
0
|
0
|
2691
|
|
POST
|
I can get some way to replicating what you see without any coding but labels may not be the final thing you want as labels are dynamic and move around as you zoom in/out. I suspect if you truly want what you see then you need to convert the labels to annotations and tweak as needed. So this is my test data: Create two label classes, one called first the other called stacked. For first set the label to be field firstval and set its font size to be big. Then set its positional properties Now select your stacked label class and ensure the expression are the 3 fields SPACED separated as shown below. Set your stacked position to fixed and offset. Now set fitting strategy to be stacked splitting at space. This gets you this: It's close to what you desire but I believe you need to convert this to an annotation layer which you can then tweak. Converted to annotations and played around with I now have this. Don't under estimate how much effort that is going to take if you have thousands of polygons to adjust!
... View more
05-17-2024
09:06 AM
|
1
|
0
|
3307
|
|
POST
|
I have found if you have installed the deep learning packages, you need to uninstall those before you clone. Not sure this would solve an upgrade through package manager, every time I have ever used that it fails! So my steps have always been: uninstall deep learning, kill off cloned environment, clone a new one, install packages again. That's about the only thing that ever worked for me.
... View more
05-17-2024
08:02 AM
|
0
|
0
|
910
|
|
POST
|
Just an idea when you run the make raster layer tool may be you should set the band number to what would be the most recent date?
... View more
05-14-2024
08:58 AM
|
0
|
0
|
1169
|
|
POST
|
Have you tried setting the environment setting, may be that's having a influence? Also try a different raster format.
... View more
05-14-2024
08:54 AM
|
0
|
0
|
780
|
|
BLOG
|
@KoryKramer , awesome! let the developers know these improvements are much appreciated!
... View more
05-10-2024
08:36 AM
|
1
|
0
|
7397
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-15-2026 07:35 AM | |
| 1 | 04-14-2026 06:38 AM | |
| 1 | 04-14-2026 04:16 AM | |
| 8 | 03-30-2026 10:12 AM | |
| 2 | 03-18-2026 08:16 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|