@@ -0,0 +1,2317 @@
+import vtk.vtkNativeLibrary;%0Aimport vtk.vtkRenderWindow;%0Aimport vtk.vtkRenderWindowInteractor;%0Aimport vtk.vtkRenderer;%0Aimport vtk.vtkActor;%0Aimport vtk.vtkMutableDirectedGraph;%0Aimport vtk.vtkDoubleArray;%0Aimport vtk.vtkGeoAssignCoordinates;%0Aimport vtk.vtkGraphMapper;%0A%0Apublic class GeoAssignCoordinates %0A%7B%0A  // -----------------------------------------------------------------%0A  // Load VTK library and print which library was not properly loaded%0A  static %0A  %7B%0A    if (!vtkNativeLibrary.LoadAllNativeLibraries()) %0A    %7B%0A      for (vtkNativeLibrary lib : vtkNativeLibrary.values()) %0A      %7B%0A        if (!lib.IsLoaded()) %0A        %7B%0A          System.out.println(lib.GetLibraryName() + %22 not loaded%22);%0A        %7D%0A      %7D%0A    %7D%0A    vtkNativeLibrary.DisableOutputWindow(null);%0A  %7D%0A  // -----------------------------------------------------------------%0A  %0A  public static void main(String args%5B%5D) %0A  %7B   %0A    vtkMutableDirectedGraph g = new vtkMutableDirectedGraph();%0A    vtkDoubleArray latitude = new vtkDoubleArray();%0A    latitude.SetName(%22latitude%22);%0A%0A    vtkDoubleArray longitude = new vtkDoubleArray();%0A    longitude.SetName(%22longitude%22);%0A    %0A    for(int lat = -90; lat %3C= 90; lat += 10)%0A    %7B%0A      for(int lon = -180; lon %3C= 180; lon += 20)%0A      %7B%0A        g.AddVertex();%0A        latitude.InsertNextValue(lat);%0A        longitude.InsertNextValue(lon);%0A      %7D%0A    %7D%0A    %0A    g.GetVertexData().AddArray(latitude);%0A    g.GetVertexData().AddArray(longitude);%0A%0A    vtkGeoAssignCoordinates assign = new vtkGeoAssignCoordinates();%0A    assign.SetInputData(g);%0A    assign.SetLatitudeArrayName(%22latitude%22);%0A    assign.SetLongitudeArrayName(%22longitude%22);%0A    assign.SetGlobeRadius(1.0);%0A    assign.Update();%0A%0A    vtkGraphMapper mapper = new vtkGraphMapper();%0A    mapper.SetInputConnection(assign.GetOutputPort());%0A    %0A    vtkActor actor = new vtkActor();%0A    actor.SetMapper(mapper);%0A    %0A    // Create the renderer, render window and interactor.%0A    vtkRenderer ren = new vtkRenderer();%0A    vtkRenderWindow renWin = new vtkRenderWindow();%0A    renWin.AddRenderer(ren);%0A    vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();%0A    iren.SetRenderWindow(renWin);%0A    %0A    ren.AddActor(actor);%0A    ren.ResetCamera();%0A    %0A    renWin.SetSize(300,300);%0A    renWin.Render();%0A%0A    iren.Initialize();%0A    iren.Start();%0A  %7D%0A%7D%0A

Create GeoAssignCoordinates.java