Select to view content in your preferred language

Attaching a field to a image name

576
2
10-28-2021 06:33 AM
SLouq
by MVP Regular Contributor
MVP Regular Contributor

Hi all,

I have a table of images from a shared hosted feature service which I was able to extract to a folder locally through a script available online. However, this script just extracted the images with the image title

ie. image0-20210902-154626 and so forth

I also have a related point feature class for this table where each point has an image attached to it. What I would like to do is extract the images but use a field in the feature class as a name for each image instead of 

image0-20210902-154626 or

field name + image0-20210902-154626

Is there a way to do this?

Tags (2)
0 Kudos
2 Replies
DuncanHornby
MVP Notable Contributor

Did you actually mean for 1 field (lets call it ImgName for example) you want to store the image name for its point, so names are stored in rows, a spoofed example below?

ObjectIDShapeImgName
1pointimage0-20210902-154626
2pointimage0-20210902-154627
3pointimage0-20210902-154628

 

Do your points already exist or do they need creating? If they exist what is their relationship with the image, are they centroids for example?

0 Kudos
SLouq
by MVP Regular Contributor
MVP Regular Contributor

Thank you for your reply. 

I was able to use the Join and Relates tool to join my point feature table to the attachments table, then I was able to copy the field to my attachment table. This allowed me to modify that script to extract the field I needed along with the attachments. Mission accomplished!

 

0 Kudos