Go to the source code of this file.
|
void | KMLOverlayx (int *ierror, double *lataxis, double *longaxis, int nimages, char **pimages, FILE *fid) |
|
◆ KMLOverlayx()
void KMLOverlayx |
( |
int * |
ierror, |
|
|
double * |
lataxis, |
|
|
double * |
longaxis, |
|
|
int |
nimages, |
|
|
char ** |
pimages, |
|
|
FILE * |
fid |
|
) |
| |
Definition at line 9 of file KMLOverlayx.cpp.
23 clock_t clock0,clock1;
28 _printf0_(
"\nKMLOverlayx Module -- " << ctime(&time0));
33 kfile->
AddAttrib(
"xmlns",
"http://www.opengis.net/kml/2.2");
38 sprintf(kdoc->
name ,
"Ground Overlays from ISSM");
44 sprintf(kfold->
name ,
"Ground Overlays");
49 for (i=0; i<nimages; i++) {
51 sprintf(kgover->
name ,
"%s",pimages[i]);
55 sprintf(kicon->
href ,
"%s",pimages[i]);
60 kllbox->
north =lataxis[1];
61 kllbox->
south =lataxis[0];
62 kllbox->
east =longaxis[1];
63 kllbox->
west =longaxis[0];
65 kgover->
llbox =kllbox;
81 _printf0_(
"Writing kml document to file.\n");
82 fprintf(fid,
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
83 kfile->
Write(fid,indent);
89 _printf_(
"KMLOverlayx Module -- " << ((
double)(clock1-clock0))/CLOCKS_PER_SEC <<
" CPU seconds; " << difftime(time1,time0) <<
" elapsed seconds.\n\n\n");