#include <KML_Placemark.h>
|
| KML_Placemark () |
|
| ~KML_Placemark () |
|
void | Echo () |
|
void | DeepEcho () |
|
void | DeepEcho (const char *indent) |
|
void | Write (FILE *fid, const char *indent) |
|
void | Read (FILE *fid, char *kstr) |
|
void | WriteExp (FILE *fid, const char *nstr, int sgn, double cm, double sp) |
|
int | Id () |
|
int | ObjectEnum () |
|
Object * | copy () |
|
void | Marshall (char **pmarshalled_data, int *pmarshalled_data_size, int marshall_direction) |
|
| KML_Feature () |
|
| ~KML_Feature () |
|
| KML_Object () |
|
| ~KML_Object () |
|
virtual void | AddAttrib (const char *name, const char *value) |
|
virtual void | WriteAttrib (FILE *fid, const char *indent) |
|
virtual void | AddCommnt (int ncom, char **pcom) |
|
virtual void | AddCommnt (char *value) |
|
virtual void | WriteCommnt (FILE *fid, const char *indent) |
|
virtual | ~Object () |
|
Definition at line 16 of file KML_Placemark.h.
◆ KML_Placemark()
KML_Placemark::KML_Placemark |
( |
| ) |
|
◆ ~KML_Placemark()
KML_Placemark::~KML_Placemark |
( |
| ) |
|
◆ Echo()
void KML_Placemark::Echo |
( |
void |
| ) |
|
|
virtual |
◆ DeepEcho() [1/2]
void KML_Placemark::DeepEcho |
( |
void |
| ) |
|
|
virtual |
◆ DeepEcho() [2/2]
void KML_Placemark::DeepEcho |
( |
const char * |
indent | ) |
|
|
virtual |
Reimplemented from KML_Feature.
Definition at line 63 of file KML_Placemark.cpp.
69 if(flag)
_printf0_(indent <<
"KML_Placemark:\n");
74 memcpy(indent2,indent,(strlen(indent)+1)*
sizeof(
char));
79 if(flag)
_printf0_(indent <<
" geometry: -------- begin [" << i <<
"] --------\n");
81 if(flag)
_printf0_(indent <<
" geometry: -------- end [" << i <<
"] --------\n");
84 if(flag)
_printf0_(indent <<
" geometry: [empty]\n");
◆ Write()
void KML_Placemark::Write |
( |
FILE * |
fid, |
|
|
const char * |
indent |
|
) |
| |
|
virtual |
Reimplemented from KML_Feature.
Definition at line 89 of file KML_Placemark.cpp.
94 fprintf(filout,
"%s<Placemark",indent);
96 fprintf(filout,
">\n");
103 memcpy(indent2,indent,(strlen(indent)+1)*
sizeof(
char));
110 fprintf(filout,
"%s</Placemark>\n",indent);
◆ Read()
void KML_Placemark::Read |
( |
FILE * |
fid, |
|
|
char * |
kstr |
|
) |
| |
|
virtual |
Reimplemented from KML_Feature.
Definition at line 115 of file KML_Placemark.cpp.
131 if (!strncmp(kstri,
"</Placemark",11)) {
132 xDelete<char>(kstri);
135 else if (!strncmp(kstri,
"</",2))
136 {
_error_(
"KML_Placemark::Read -- Unexpected closing tag " << kstri <<
".\n");}
137 else if (strncmp(kstri,
"<",1))
138 {
_error_(
"KML_Placemark::Read -- Unexpected field \"" << kstri <<
"\".\n");}
140 else if (!strncmp(kstri,
"<Point", 6)) {
142 kobj->
Read(fid,kstri);
146 else if (!strncmp(kstri,
"<LineString",11)) {
148 kobj->
Read(fid,kstri);
152 else if (!strncmp(kstri,
"<LinearRing",11)) {
154 kobj->
Read(fid,kstri);
158 else if (!strncmp(kstri,
"<Polygon", 8)) {
160 kobj->
Read(fid,kstri);
164 else if (!strncmp(kstri,
"<MultiGeometry",14)) {
166 kobj->
Read(fid,kstri);
170 else if (!strncmp(kstri,
"<",1))
173 xDelete<char>(kstri);
178 for(ncom=ncom; ncom>0; ncom--)
179 xDelete<char>(pcom[ncom-1]);
180 xDelete<char*>(pcom);
◆ WriteExp()
void KML_Placemark::WriteExp |
( |
FILE * |
fid, |
|
|
const char * |
nstr, |
|
|
int |
sgn, |
|
|
double |
cm, |
|
|
double |
sp |
|
) |
| |
|
virtual |
◆ Id()
int KML_Placemark::Id |
( |
void |
| ) |
|
|
inlinevirtual |
◆ ObjectEnum()
int KML_Placemark::ObjectEnum |
( |
void |
| ) |
|
|
inlinevirtual |
◆ copy()
Object* KML_Placemark::copy |
( |
void |
| ) |
|
|
inlinevirtual |
◆ Marshall()
void KML_Placemark::Marshall |
( |
char ** |
pmarshalled_data, |
|
|
int * |
pmarshalled_data_size, |
|
|
int |
marshall_direction |
|
) |
| |
|
inlinevirtual |
◆ geometry
The documentation for this class was generated from the following files: