Problem parsing relative links in KML files

350
1
08-09-2021 01:27 PM
KennSebesta
New Contributor III

Through a lot of trial and error, I discovered that

<href>./../foo.kml</href>

works but

<href>../foo.kml</href>

 does not.

I finally realized what was going on when I saw the debug output in the Qt Creator console and realized that the plugin was discarding the relative path when it began with `..`. After a little guesswork, I hit upon `./` as workaround.

I saw this on Icon objects, but presumably it's elsewhere as well.

This is using SDK v100.11.2 on macOS.

0 Kudos
1 Reply
GuillaumeBelz
Esri Contributor

Hi Kenn,

Sorry for late answer.

It should work without `./`, depending of the paths. How are you creating the KML file? What is the structure of your files?

Can you provide a file to try to reproduce the issue?

Thank you

0 Kudos