![]() Here is a sample code (should be save as. In case you do need only coordinate of the points and their labels do not matter, I suggest that you can write a simple Python script for PhotoScan that will get the path to the kml file and then line by line search for text, if it is in the given line then you can just extract coordinates from the string and even create new marker with applied coordinates. ![]() $array = array("$name", "$longitude", "$latitude", "$altitude") $altitude = $placemark->LookAt->altitude $latitude = $placemark->LookAt->latitude Print_r($inputfile->Document->Folder->Placemark) How do I write this to a CSV? Document->Folder->Placemark This script will enable users to quickly create a CSV file of GCPs (Ground Control Points) for the optimization of models so they can be more accurately overlaid in Google Earth. I am trying to write a script to convert Google Earth KML files to CSV files for use in Agisoft's Photoscan Pro.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |