skyprojection.cc
// Writes a KML representation of the bounding box to string kml_string.  The
// filename imagefile points to the image to include in the <GroundOverlay>
// element and ground_overlay_name gives the <name> element of the overlay.
Writes a KML representation of the bounding box to string kml_string.  The
filename imagefile points to the image to include in the 
element and ground_overlay_name gives the  element of the overlay.
Writes a KML representation of the bounding box to string kml_string . The filename imagefile points to the image to include in the element and ground_overlay_name gives the element of the overlay .
void SkyProjection::CreateKmlGroundOverlay(
    const string &imagefile,
    const string &ground_overlay_name,
    string *kml_string) const {
  KmlIcon icon;
  icon.href.set(imagefile);
  KmlGroundOverlay ground_overlay;
  ground_overlay.FromBoundingBox(bounding_box_);
  ground_overlay.name.set(ground_overlay_name);
  ground_overlay.icon.set(icon);
  Kml kml;
  kml.AddGroundOverlay(ground_overlay);
  *kml_string = kml.ToString();
}
void SkyProjection :: CreateKmlGroundOverlay ( const string & imagefile , const string & ground_overlay_name , string * kml_string ) const { KmlIcon icon ; icon . href . set ( imagefile ) ; KmlGroundOverlay ground_overlay ; ground_overlay . FromBoundingBox ( bounding_box_ ) ; ground_overlay . name . set ( ground_overlay_name ) ; ground_overlay . icon . set ( icon ) ; Kml kml ; kml . AddGroundOverlay ( ground_overlay ) ; * kml_string = kml . ToString ( ) ; }
Writes a KML representation of the bounding box to string kml_string.
Writes a KML representation of the bounding box to string kml_string .