Adding a string of text automatically?

489
2
Jump to solution
06-07-2017 08:37 PM
PatrickGrady
New Contributor II

I have 50 features with a field that I want to use to hold the URLs of the images that correspond to the features. What I want to do is simple, the first half of the URL is the same for all features (ie gisdata.com/images/tree.jpg), the only thing that differs is the unique name of the image (ie - tree.jpg). Using the field calculator, what would my syntax need to read?

THANK YOU!

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
mfcallahan
Occasional Contributor

If you have the name of the image in the table already, you can set the new column like this (Python syntax):

 'https://gisdata.com/images/' + !COL_NAME!

where COL_NAME is the column that contains the file name text.

View solution in original post

2 Replies
mfcallahan
Occasional Contributor

If you have the name of the image in the table already, you can set the new column like this (Python syntax):

 'https://gisdata.com/images/' + !COL_NAME!

where COL_NAME is the column that contains the file name text.

View solution in original post

PatrickGrady
New Contributor II

Thanks Matthew, I greatly appreciate your help as it worked perfectly.

Reply
0 Kudos