36 #ifndef POLYGONFACTORY_H_
37 #define POLYGONFACTORY_H_
78 if (inputFileName.find(
".kmz", inputFileName.length() - 4) != string::npos
79 || inputFileName.find(
".kml", inputFileName.length() - 4) != string::npos)
82 os << endl <<
"ERROR in Polygon::constructor" << endl
83 <<
"Cannot read files in kml or kmz format (Google Earth)." << endl
84 <<
"GeoTessExplorer has a utility to translate to ascii." << endl;
90 vector<string> records;
97 line = CPPUtils::uppercase_string(CPPUtils::trim(line));
98 if (line.length() > 0 && line.find(
'#') != 0)
99 records.push_back(line);
103 if (records[0].find(
"POLYGON3D") == 0)
106 polygon->loadAscii(records);
111 polygon->loadAscii(records);