88 loadModel(modelInputFile, relativeGridPath);
98 loadModel(modelInputFile,
".");
105 : GeoTessModel(attributeFilter)
114 vector<int>& attributeFilter)
115 : GeoTessModel(attributeFilter)
118 loadModel(modelInputFile, relativeGridPath);
125 : GeoTessModel(attributeFilter)
128 loadModel(modelInputFile,
".");
135 : GeoTessModel(gridFileName, metaData)
144 : GeoTessModel(grid, metaData)
156 : GeoTessModel(&baseModel->getGrid(), baseModel->getMetaData().copy())
162 for (
int i=0; i<baseModel->getNVertices(); ++i)
163 for (
int j=0; j<baseModel->getNLayers(); ++j)
164 setProfile(i, j, baseModel->getProfile(i, j)->copy());
189 const string& relGridFilePath)
192 GeoTessModel::loadModelAscii(input, inputDirectory, relGridFilePath);
200 input.readLine(className);
205 os << endl <<
"ERROR in GeoTessModelExtended::loadModelAscii()"<< endl
206 <<
"className loaded from file = " << className << endl
208 throw GeoTessException(os, __FILE__, __LINE__, 12001);
216 input.readInteger(fileFormat);
221 os << endl <<
"ERROR in GeoTessModelExtended::loadModelAscii()"<< endl
222 <<
"File format version " << fileFormat <<
" is not supported." << endl;
223 throw GeoTessException(os, __FILE__, __LINE__, 12002);
241 const string& relGridFilePath)
244 GeoTessModel::loadModelBinary(input, inputDirectory,relGridFilePath);
252 input.readString(className);
257 os << endl <<
"ERROR in GeoTessModelExtended::loadModelBinary()"<< endl
258 <<
"className loaded from file = " << className << endl
260 throw GeoTessException(os, __FILE__, __LINE__, 12003);
267 int fileFormat = input.readInt();
272 os << endl <<
"ERROR in GeoTessModelExtended::loadModelAscii()"<< endl
273 <<
"File format version " << fileFormat <<
" is not supported." << endl;
274 throw GeoTessException(os, __FILE__, __LINE__, 12004);
294 GeoTessModel::writeModelAscii(output, gridFileName);
307 output.writeIntNL(1);
323 GeoTessModel::writeModelBinary(output, gridFileName);