Geographic Information Systems Asked by Geoarc on February 28, 2021
I have been trying to find a way to make it possible to import a file from my computer to the table of contents via a hyper link.
For example: We have organized a grid, so when I identify I get information of the file path to the Orthophoto for that grid square. When I manually have to go and find that folder and file among thousands of others. So instead of having to find the file and import it I would like to identify the grid square and that grid square should have a hyperlink as a field that, when clicked adds corresponding file to my table of contents.
I have quite a limited knowledge of scripting, but I have spent hours of googling and have not found any way to do it, the only thing I find is examples of scripts for opening files in web-browser and in external softwares as windows image viewer.
I would recommend firstly you read through the ArcMap guidance on hyperlinks to understand your options.
https://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/using-hyperlinks.htm
In this case, I believe you will require the 'Document' option and point it to the field containing your file paths (ensure these are full paths with the extension too).
Also take note of the information in this related question which was in reference to ArcMap 10.2 (unclear if issue still remains):
If the default Windows application for an image file is Windows Image Viewer, the link opens correctly in ArcMap
If the default Windows application for an image file is Paint, the link doesn't work
I tested myself in ArcMap 10.6 and this behaviour worked as expected. If you need more advanced behaviour then you will need to use the 'Script' option, but for what you are asking the 'Document' function should be sufficient and therefore require no scripting!
Answered by JClarkson on February 28, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP