I created a model that iterates over points in a feature class and creates viewsheds observing different heights. The final output is 3 viewsheds (6ft, 10ft, 15ft) per point in the feature class. This part of the tool works fine.
The next step is to convert the viewsheds into KMZs. I get an error on the ‘Extent to Export’ option of the ‘Layer to KML’ tool. I have tried using the ‘Default’ option, but it just returns null coordinates (See Picture Attachment). I have also tried referencing the layer that is to be converted to a KML. This works for the first iteration (Observer 1), but once the tool starts to iterate over Observer 2, the Extent to Export does not change. It keeps the same extent as the layer for Observer 1.
My last attempt I created a buffer of all the points using the observers maximum range. When I connected the output of the buffer to the ‘Layer to KML’ tool and selected “Extent to Export”, it copied the file path into the coordinate boxes instead of the actual coordinates (See Picture Attachment). If I open up the ‘Layer to KML’ tool and under “Extent to Export” I select the buffer layer, it does work for that entire feature class, BUT if I load a new feature class into the tool in a different part of the world, it keeps the Extent of the first feature class. This is not ideal because I don’t want to manipulate the model each time I need to run viewsheds.
I apologize if my explanation was a bit confusing, I hope the pictures clarify my work. Any help would be much appreciated.