TestGeoProjection.cxx 586 Bytes
Newer Older
1
2
#include "vtkGeoProjection.h"

3
int TestGeoProjection(int, char*[])
4
5
6
{
  int np = vtkGeoProjection::GetNumberOfProjections();
  cout << "Supported projections:\n";
7
  for (int i = 0; i < np; ++i)
8
  {
9
10
    cout << "Projection: " << vtkGeoProjection::GetProjectionName(i) << "\n";
    cout << "\t" << vtkGeoProjection::GetProjectionDescription(i) << "\n";
11
  }
12
13
  cout << "-------\n";
  vtkGeoProjection* proj = vtkGeoProjection::New();
14
  const char* projName = "rouss";
15
  proj->SetName(projName);
16
17
18
19
  cout << projName << " is " << proj->GetDescription() << "\n";
  proj->Delete();
  return 0;
}