38 #ifndef POLYGONFACTORY_H_
39 #define POLYGONFACTORY_H_
80 if (inputFileName.find(
".kmz", inputFileName.length() - 4) != string::npos
81 || inputFileName.find(
".kml", inputFileName.length() - 4) != string::npos)
84 os << endl <<
"ERROR in Polygon::constructor" << endl
85 <<
"Cannot read files in kml or kmz format (Google Earth)." << endl
86 <<
"GeoTessExplorer has a utility to translate to ascii." << endl;
92 vector<string> records;
99 line = CPPUtils::uppercase_string(CPPUtils::trim(line));
100 if (line.length() > 0 && line.find(
'#') != 0)
101 records.push_back(line);
105 if (records[0].find(
"POLYGON3D") == 0)
108 polygon->loadAscii(records);
113 polygon->loadAscii(records);