Changeset 913
- Timestamp:
- 05/27/08 19:16:39
- Files:
-
- trunk/src/vpb/BuildOptions.cpp (modified) (2 diffs)
- trunk/src/vpb/Commandline.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/vpb/BuildOptions.cpp
r890 r913 197 197 void BuildOptions::setDestinationCoordinateSystemNode(osg::CoordinateSystemNode* cs) 198 198 { 199 // Keep any settings from the already configured ellipsoid model 200 osg::ref_ptr<osg::EllipsoidModel> configuredEllipsoid = _destinationCoordinateSystem->getEllipsoidModel(); 201 199 202 _destinationCoordinateSystem = cs; 200 203 … … 203 206 if (_destinationCoordinateSystem->getEllipsoidModel()==0) 204 207 { 205 _destinationCoordinateSystem->setEllipsoidModel( new osg::EllipsoidModel);208 _destinationCoordinateSystem->setEllipsoidModel( configuredEllipsoid.get() ? configuredEllipsoid.get() : new osg::EllipsoidModel); 206 209 } 207 210 trunk/src/vpb/Commandline.cpp
r909 r913 460 460 usage.addCommandLineOption("--whole-globe","Set the coordinates system for next texture or dem to represent the whole hemisphere of the earth."); 461 461 usage.addCommandLineOption("--geocentric","Build a database in geocentric (i.e. whole earth) database."); 462 usage.addCommandLineOption("--radius-polar","Set the polar radius of the ellipsoid model when building a geocentric database." );463 usage.addCommandLineOption("--radius-equator","Set the polar radius of the ellipsoid model when building a geocentric database." );462 usage.addCommandLineOption("--radius-polar","Set the polar radius of the ellipsoid model when building a geocentric database.", "6356752.3142"); 463 usage.addCommandLineOption("--radius-equator","Set the polar radius of the ellipsoid model when building a geocentric database.", "6378137"); 464 464 usage.addCommandLineOption("--spherical","Set the polar and equator radius both to the average of the two."); 465 465 usage.addCommandLineOption("--range","");
