![]() ![]() In the general tab, check “Show web results in external browser” under display and check “Allow access to local files and personal data” in Placemark balloons. In the google earth (GE) menu bar go Tools>Options. If you click one of the features to open the pop up window, note that the hyperlink does not work. The license key for google earth pro is GEPFREE if you don’t already have it, go get it. They are relative as will be looking inside the compressed. Even if the output kmz was saved to the same directory as the pdf folder at this point, the hyperlinks would not work. ![]() This can go in a temporary location, because with the relative link in the hyperlink the output kmz must be opened and saved as kml in the same location as the pdf folder. The tool is called layer to kml, but it only exports kmz, go figure. Now use the layer to kml tool in arcmap to export the layer with hyperlinks to a kmz. This link can be an absolute path as well, or a url, just replace the path within the single quotes with an absolute path (pro tip – this can be a network location) or valid url. The Hyperlink attribute now reflects a valid html hyperlink. In other words the final kml containing these hyperlinks should be in the same folder as the folder named “pdf” which contains the document that will be opend via the hyperlink. This is a realative link, the hyperlink will look for the pdf within the pdf folder “pdf\Clayton.pdf” in the same location as the kml file. The hyperlink field should look like this now. Between the opening and closing tag is the attribute from the QUAD_NAME field, this is what will be displayed as the text of the hyperlink. Also note the double backslashes and the syntax to replace spaces in the existing QUAD_NAME attribute with underscores, to match the pdf filenaming, and add the. Note that I’ve used single quotes around the path. The “QUAD_NAME” field can be substituted for both the href and hyperlink text portion of this string. The string in the hyperlink field needs to be formatted similar to: Now create html hyperlinks to the pdf’s stored in my project folder. ![]() Right-click the hyperlink field heading and choose calculate field. Now add a new string field named “Hyperlink” 250 characters long. In arcmap, I hide all the fields except the quad name – well, I usually keep the FID and shape field on as well because I’ve seen some strange behaviour when turning these fields off. My goal is to have a kml of the boundaries of these quads, each with a popup containing a hyperlink that will open the correct pdf. I also have the corresponding quad pdfs saved within my project folder in a folder named pdf. In arcmap, I have 4 USGS quad boundaries. I can’t show what I was working on but I’ve recreated it with some public data. Yesterday, I set up a kml with hyperlinks to local pdf’s via a relative link. As you should know google earth pro is now free. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |