Added --wtk_file option

This commit is contained in:
Robert Osfield 2004-04-05 21:27:57 +00:00
parent 9f1fea791f
commit 6ac92bfb07

View File

@ -195,6 +195,21 @@ int main( int argc, char **argv )
currentCS = def; currentCS = def;
std::cout<<"--wkt "<<currentCS<<std::endl; std::cout<<"--wkt "<<currentCS<<std::endl;
} }
else if (arguments.read(pos, "--wkt_file",def))
{
std::ifstream in(def.c_str());
if (in)
{
currentCS = "";
while (!in.eof())
{
std::string line;
in >> line;
currentCS += line;
}
std::cout<<"--wkt_file "<<currentCS<<std::endl;
}
}
else if (arguments.read(pos, "--geocentric")) else if (arguments.read(pos, "--geocentric"))
{ {
dataset->setConvertFromGeographicToGeocentric(true); dataset->setConvertFromGeographicToGeocentric(true);