|
POST
|
I am having this issue too. I want to generate thumbnails for feature classes' metadata in the Catalog, not just for a particular map. This was easy to do in ArcMap but I have not yet found out if it is possible in Pro. Regarding the previous post that mentions "generate thumbnail" is grayed out: This appears to be the case if, in your map/contents, the layer's metadata is set to "show metadata from data source (read-only)." But if you switch it to "layer has its own metadata," then the "generate thumbnail" button will be useable. However, I assume this thumbnail will only be for this one layer in this particular map, not for the source layer in the database. So that doesn't help me personally. I'll keep researching...
... View more
02-07-2024
11:16 AM
|
0
|
1
|
1410
|
|
POST
|
Hello! Welcome to the world of Python and arcpy! I learned Python by taking a Python classes at a community college; it was an online course. I took one course with a bad professor and was so discouraged, but then I took a class with a great professor and learned a lot and got confident. I'm so thankful for that class; I constantly use skills I got there. I feel it's super important to have a foundation in plain, non-GIS Python in order to do GIS/arcpy scripting - I could not have gotten far at all without learning about basic Python stuff like string manipulation, lists, slicing and indexes, creating and accessing dictionaries, creating functions, and writing loops (if loops, for loops). So I would highly recommend learning and practicing these things. In terms of self-paced learning and resources on general Python, I often end up looking at W3Schools Python websites... I know nothing about this organization, but I find their Python resources helpful. https://www.w3schools.com/python/ I also often find myself using Geeks for Geeks: https://www.geeksforgeeks.org/python-programming-language/ The website asks you sign in, but just close that pop-up; you don't have to sign in. Good luck!
... View more
02-05-2024
10:22 AM
|
0
|
0
|
5223
|
|
POST
|
Thank you very much, @JesseCloutier ! That definitely makes sense. 😊
... View more
01-30-2024
01:35 PM
|
1
|
0
|
1623
|
|
POST
|
Hi again @Jill_Saligoe-Simmel , The video was super helpful - thank you for suggesting it. It gave me a whole new understanding of metadata in ArcGIS, which helps in various ways with the metadata improvement project I'm working on at my organization. It would be very cool if there was an in-depth metadata training offered, as part of Esri's online self-paced tutorials. I see the main one available currently is for ArcMap. I might still do that one, though, just to beef up my knowledge in case some parts are relevant to Pro. Anyway, thanks again! I don't suppose you, or another metadata authority, will be at the 2024 Dev Summit?
... View more
01-30-2024
12:17 PM
|
0
|
0
|
2042
|
|
POST
|
I have a question about Esri Community; the question was sparked when I was looking at my badges. I thought I should have another badge for posting questions. So I found my "private stats," (see below) and it says I have posted zero questions. I guess when I post questions in communities like ArcGIS Pro Questions, it actually counts as starting a topic (?). This feels confusing because the discussion board is called "Questions." Yet in stats, it is "topics." That leads me to the question, if that doesn't count as questions, then what does? In what part of Esri Community are true "questions" posted?
... View more
01-29-2024
10:02 AM
|
0
|
4
|
1804
|
|
POST
|
I would be interested in hearing any suggestions for this task, too! My organization has a script that does basically the same workflow (but with only one geocoder), plus publishing a map service that's used in an app. I inherited the script from a past employee, and it's in Python 2. So now I have to rewrite it to work in Python 3 and ArcGIS Pro rather than ArcMap. The script is hundreds of lines, and I already know that simple one-to-one substitutions of Pro functions for ArcMap functions is not possible in this particular workflow. So I'd love to hear anything people have to share on this topic.
... View more
01-29-2024
09:48 AM
|
1
|
3
|
2424
|
|
POST
|
I figured out a way to do it! I wanted to share my solution here, in case it can help anyone else in the future. I wrote a Python script that used the Metadata class to access the xml file, and I read through the xml to determine what wording was used to indicate the metadata standard ("ArcGISProfile"). I did some string manipulation to grab the metadata standard (as well as the date the metadata was last updated), and I wrote all the feature class names and their metadata standard, date, and other metadata elements to a csv file, for easy sorting and examination. Here is the script; the part that gets the metadata standard is lines 41-55: """ Writes enterprise databases' feature classes' metadata elements, including metadata standard, to a csv file for use in determining which feature classes' metadata needs to be updated or put
into a different standard.
Python 3 / ArcGIS Pro
Allen Dailey
1/25/24
"""
import arcpy
from arcpy import metadata as md
import csv
# Desired file name for csv file. File can already exist, or not. If exists, will overwrite.
filename = r"\\path\to\csv_file.csv"
# Column names to use in csv file
columns = ["Database", "Dataset", "FeatureClass", "DateUpdated", "Standard", "Title", "Tags", "Summary", "Description",
"UseLimitations", "Credits"]
# List of enterprise database sde connections. Metadata elements will be obtained for each fc in each db.
db_sde_list = [r"List\of\my\ArcGISPro\database\sde\connections.sde"]
def get_metadata(db, dataset, fc_list, csv_writer):
""" Gets metadata elements for each feature class in a list and writes the metadata elements to a csv.
:param db: String, name of database, gotten from sde file path string
:param dataset: Name of dataset within the db, gotten from arcpy.ListDatasets()
:param fc_list: List, feature classes, generated by arcpy.ListFeatureClasses()
:param csv_writer: CSV writer
:return: None
"""
# For each feature class that has been passed into this function:
for fc in fc_list:
# Instantiate it as a metadata object
m = md.Metadata(fc)
# Get each of the usual metadata elements from the feature class's metadata
tt = m.title
tg = m.tags
s = m.summary
d = m.description
u = m.accessConstraints
c = m.credits
# Get the metadata standard from the xml file. First, access the xml.
x = m.xml
# Break the xml into a list of parts, in order to find the part that says the metadata standard
chunklist = x.split(">")
# Standard and date = empty string, to avoid error in case the next block doesn't work out in a particular case.
standard = ""
date = ""
# Go through each item in the list of parts of the xml file to find the standard
for i in range(len(chunklist)):
# "ArcGISProfile" is the field name for the metadata standard
if "ArcGISProfile" in chunklist[i]:
# The standard comes right after "ArcGISProfile."
standard = chunklist[i + 1].split("<")[0]
# Exit the loop to keep the correct content for the "standard" variable.
break
# Go through the xml to get the date metadata was last updated
for i in range(len(chunklist)):
if "mdDateSt" in chunklist[i]:
date = chunklist[i+1].split("<")[0]
break
# List containing all the data to be written to a row of the csv file
row = [db, dataset, fc, date, standard, tt, tg, s, d, u, c]
# Write the row to the file
csv_writer.writerow(row)
# Establish the csv file and csv writer
with open(filename, 'w', encoding="utf-8") as csvfile:
writer = csv.writer(csvfile)
# Write the column names to the csv file
writer.writerow(columns)
# For each database in the list, write its metadata elements to the csv file
for db in db_sde_list:
# Establish the database as the workspace in order to next access its datasets
arcpy.env.workspace = db
dbname = (db.split("\\")[-1]).split(".")[0]
datasets = arcpy.ListDatasets()
# If there are any standalone feature classes not inside datasets, get their names and their metadata
try:
lone_fcs = arcpy.ListFeatureClasses()
get_metadata(dbname, "", lone_fcs, writer)
except:
print(f"Has no standalone fc's: {db}")
for dataset in datasets:
ds_fcs = arcpy.ListFeatureClasses(feature_dataset=dataset)
get_metadata(dbname, dataset, ds_fcs, writer)
... View more
01-29-2024
09:39 AM
|
1
|
0
|
2526
|
|
POST
|
Hello Jill, Thank you so much for your informative reply. I really appreciate it. The clarification is helpful - I think I get the gist of it. I will definitely check out that video. Thanks for your help! Allen
... View more
01-25-2024
04:39 PM
|
0
|
0
|
2071
|
|
POST
|
Could anyone provide some clarification on the following issue? I'm trying to develop metadata guidance for my colleagues in my organization, but I don't know what to tell them about FGDC format in Pro. In the ArcGIS Pro documentation online, the article "Create FGDC CSDGM metadata" describes how to edit or create FGDC metadata in Pro. Yet, in the same article, there is the warning, "The ArcGIS platform only works with metadata in the ArcGIS metadata format. If you have metadata content stored in the FGDC CSDGM XML format, it can't be used directly in ArcGIS Pro. When you try to view it, a message appears indicating the metadata content must be upgraded before the metadata can be viewed or edited." I have experienced both this (not being able to view/edit the metadata) and also being able to view/edit FGDC metadata in Pro (even though the Upgrade button's options have been grayed out so I never upgraded the metadata). I know you can change the metadata viewing format in Pro's "Options," and I have done that. But the bottom line for me is that the documentation sounds contradictory and confusing. Why can you sometimes view/edit it in Pro and sometimes not?? I don't get it.
... View more
01-24-2024
11:09 AM
|
1
|
3
|
2117
|
|
POST
|
Is there a quick and easy way to list or determine which metadata standard, style, or format is being used by many feature classes at once? A tool, Python code, arcpy, etc.? I want to see a list of all of my organizations 200+ feature classes' metadata styles; I want to see which ones need to be converted to Esri's Item Description metadata format. For example: ALL_ROADS: Esri style, ADDRESS_POINTS: FGDC style, PRECINCTS: Esri style, and so forth. I did some searching but couldn't find any good methods for doing this. I have used the arcpy Metadata class but it doesn't seem to have a way to tell you the feature class's metadata format. My situation is that I've discovered that one old feature class in our enterprise database is in FGDC metadata style, and it's a problem because it contains metadata fields that are not exposed when viewing and editing metadata in ArcGIS, and those fields contain outdated info. I want to re-do the metadata for any feature classes that have non-Esri style metadata, so I need to identify which feature classes need this work done. I did read about the "upgrade" button for metadata, but it was grayed out for me. And this wouldn't solve the problem anyway, because documentation says that parts of the old metadata will still be retained. I definitely do not want that. Thank you for reading!
... View more
01-11-2024
05:16 PM
|
1
|
7
|
2759
|
|
IDEA
|
I think this is a great idea! I don't understand all those layers, either.
... View more
01-10-2024
05:25 PM
|
0
|
0
|
819
|
|
POST
|
I had a similar problem a while ago. Are you trying to use geoprocessing tools, and do you use Concurrent Use licenses for Pro? Do you have a License Manager? Through working with Esri, with a LOT of calls and back-and-forth, I learned that arcpy geoprocessing tools require that you're connected to the license manager in Pro. It sounded like it's not possible to use arcpy geoprocessing tools via ArcGIS Server python... which just doesn't make any sense to me... I don't know if any of that is relevant to your situation, but I thought I'd mention it just in case.
... View more
01-10-2024
09:41 AM
|
0
|
0
|
3475
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-30-2025 03:01 PM | |
| 1 | 09-30-2025 05:42 PM | |
| 1 | 11-01-2023 11:39 AM | |
| 1 | 11-21-2024 04:21 PM | |
| 1 | 08-05-2025 12:29 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-18-2025
12:06 PM
|