wcs2kml.cc
// Writes a world file describing the bounding box.
Writes a world file describing the bounding box.
Writes a world file describing the bounding box .
void WriteWorldFile(const string &wldfile,
                    const SkyProjection &projection) {
  string wld_string;
  projection.CreateWorldFile(&wld_string);
  FILE *fp = fopen(wldfile.c_str(), "w");
  if (!fp) {
    fprintf(stderr, "Couldn't open file '%s' for writing\n", wldfile.c_str());
    exit(EXIT_FAILURE);
  }
  fprintf(fp, "%s", wld_string.c_str());
  fclose(fp);
}
void WriteWorldFile ( const string & wldfile , const SkyProjection & projection ) { string wld_string ; projection . CreateWorldFile ( & wld_string ) ; FILE * fp = fopen ( wldfile . c_str ( ) , " " ) ; if ( ! fp ) { fprintf ( stderr , " \n " , wldfile . c_str ( ) ) ; exit ( EXIT_FAILURE ) ; } fprintf ( fp , " " , wld_string . c_str ( ) ) ; fclose ( fp ) ; }
Writes a world file describing the bounding box.
Writes a world file describing the bounding box .