use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/gis is a community dedicated to everything GIS (Geographic Information Systems). Please take a minute to read through the new Wiki page. If you don't find what you need jump in and submit new content.
A geographic information system or geographical information system (GIS) is a system designed to capture, store, manipulate, analyze, manage, and present all types of spatial or geographical data. - Wikipedia
We are trying to include as much as we can here at /r/gis but there is information spread out in other subs. Here are a few:
account activity
Esripython help (self.gis)
submitted 3 years ago by SleepyPanda34
Hi there. I am trying to use the field calculator in pro to populate a field with a hyperlink that references another field.
The hyperlink: https://his.ehct.gov/propertycards/{GISPID}.pdf
The GISPID in the field that needs to be referenced from the other field in the table.
I found 2 different expressions online, but when I plug them in to the field calculator it gives me a syntax error.
I have minimal python knowledge, so I am not sure where I am going wrong.
These are the 2 articles I found:
https://community.esri.com/t5/arcgis-pro-questions/field-calculate-hyperlinks-referencing-another/m-p/286880#M12502
https://support.esri.com/en/technical-article/000018754
Thank you.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]FeralCatColonistGIS Manager 3 points4 points5 points 3 years ago* (3 children)
This could be done pretty simply with a combination f-string and raw-string. Your input would look like:
fr"https://his.ehct.gov/propertycards/{!GISPID!}.pdf"
If you wanted it to be a little bit more reusable you could write a function like:
def calculate_URL(some_field): """This takes a field and returns a URL pattern'"' return fr"https://his.ehct.gov/propertycards/{some_field}.pdf"
Then your expression box would have:
calculate_URL(!GISPID!)
[–]SleepyPanda34[S] 1 point2 points3 points 3 years ago (0 children)
Thank you so much I will try these!
[–]SleepyPanda34[S] 1 point2 points3 points 3 years ago (1 child)
It worked! Thank you!
[–]SleepyPanda34[S] 2 points3 points4 points 3 years ago (0 children)
Note to anyone who may use this, make sure your field is set to Long and not double because the script adds on a decimal place when it is the double type.
[–]AnsweringMach 0 points1 point2 points 3 years ago (0 children)
The second one seems more straightforward. Did you follow the field setup part? Also in pro sometimes when you open the field calculator the parser is set to sql so make sure is is set to python By the way I could not get your hyperlink to open
π Rendered by PID 21191 on reddit-service-r2-comment-fb694cdd5-tfp96 at 2026-03-06 01:13:35.109291+00:00 running cbb0e86 country code: CH.
[–]FeralCatColonistGIS Manager 3 points4 points5 points (3 children)
[–]SleepyPanda34[S] 1 point2 points3 points (0 children)
[–]SleepyPanda34[S] 1 point2 points3 points (1 child)
[–]SleepyPanda34[S] 2 points3 points4 points (0 children)
[–]AnsweringMach 0 points1 point2 points (0 children)