wcs2kml.cc
// Writes a KML GroundOverlay describing this image on the sky.
Writes a KML GroundOverlay describing this image on the sky.
Writes a KML GroundOverlay describing this image on the sky .
void WriteKmlBox(const string &kmlfile, const string &imagefile,
                 const string &ground_overlay_name,
                 const SkyProjection &projection) {
  string kml_string;
  projection.CreateKmlGroundOverlay(imagefile, ground_overlay_name,
                                    &kml_string);
  FILE *fp = fopen(kmlfile.c_str(), "w");
  if (!fp) {
    fprintf(stderr, "Couldn't open file '%s' for writing\n", kmlfile.c_str());
    exit(EXIT_FAILURE);
  }
  fprintf(fp, "%s", kml_string.c_str());
  fclose(fp);
}
void WriteKmlBox ( const string & kmlfile , const string & imagefile , const string & ground_overlay_name , const SkyProjection & projection ) { string kml_string ; projection . CreateKmlGroundOverlay ( imagefile , ground_overlay_name , & kml_string ) ; FILE * fp = fopen ( kmlfile . c_str ( ) , " " ) ; if ( ! fp ) { fprintf ( stderr , " \n " , kmlfile . c_str ( ) ) ; exit ( EXIT_FAILURE ) ; } fprintf ( fp , " " , kml_string . c_str ( ) ) ; fclose ( fp ) ; }
Writes a KML GroundOverlay describing this image on the sky.
Writes a KML GroundOverlay describing this image on the sky .