Showing posts with label GIS. Show all posts
Showing posts with label GIS. Show all posts

Thursday, January 10, 2013

How to using the WorldWind Java 0.2 SDK in Netbeans IDE 7.2.1


  • Visit http://goworldwind.org/ and do some research about what WW really is and why you should use it.
  • Follow the getting started tutorial to get familiar with the examples.
  • Open NetBeans and create a New Project using the "Java Application" template. Fill in the required details but uncheck the 'Create Main class' box. Your new project should reside in a clean directory.

  • In the src you downloaded from the release site and extracted, rename WorldWind's'build.xml' to something else (build_ww.xml) and copy all the WorldWind's unzipped content to your NetBeans project folder so that the src folders overlap. You should end up with a folder structure very similar to the WorldWind unzipped folder, plus a'nbproject' and a 'test' folders. The 'build.xml' file is the one created by NetBeans, not the one that came with the zip (which is why we renamed it earlier).
  • From NetBeans, you will notice that some folders/classes are marked with a red exclamation mark. We now need to tell the project about the required libraries. Right-click your project's node and select 'Properties' (typically the last menu item). Select the 'Libraries' node from the Categories tree and press the 'Add JAR/folder' button on the right. Keeping CTRL down, select the 'gluegen-rt.jar','jogl.jar', 'gdal.jar' and 'plugin.jar' that are now inside your project folder. Click 'ok'.

                                             
  • You can now run any of the examples by right-clicking them and selecting 'Run File' from the contextual menu.


Thanks. ;) http://forum.worldwindcentral.com/showthread.php?t=32347

Tuesday, January 8, 2013

How to using the WorldWind Java 0.2 SDK in Eclipse


Step 1: Download and unzip

Grab the code from sourceforge, it's a zip. Unzip it someplace. I unzipped it to c:\software\dev\worldwind.release You'll see that path later.

[edit]Step 2: Start Eclipse and create a New Java Project

Start Eclipse and to to File -> New -> Project. Choose a Java Project.



[edit]Step 3: Point to the existing source code

In the new project wizard, make sure to select "Create project from existing source" and point to the unzipped directory. Then press "Finish."


Done! That was easy. Not like the steps needed for the 0.1 code! Major kudos to the NASA Java team for including JOGL and having a nice directory structure that allows Eclipse to interpret where things are.
Checking the project's settings, we see the libraries have been included:


Here's a shot of Eclipse, running the two demo apps that come with it, worldwinddemo.AWT1Up in the foreground, worldwinddemo.BasicDemo in the background.
To run one of these apps, navigate to src/worldwinddemo/ on the right hand Package Explorer and right click on one of the java classes. In the context menu that appears, go to Run As... and choose Java Application.
There're some interesting things here, first there's a floating placemark (neat), second there's a GML line (also neat) in AWT1Up, and third zooming is all shaky and wierd (bad).


Here's the snippet that produces the icons along the equator, with a 2m meter ones at every 90.
private IconLayer buildIconLayer()
{
   IconLayer layer = new IconLayer();

   for (double lat = 0; lat < 10; lat += 10)
   {
       for (double lon = -180; lon < 180; lon += 10)
       {
           double alt = 0;
           if (lon % 90 == 0)
               alt = 2000000;
           WWIcon icon = new UserFacingIcon("images/32x32-icon-nasa.png",
               new Position(Angle.fromDegrees(lat), Angle.fromDegrees(lon), alt));
           icon.setHighlightScale(1.5);
           icon.setToolTipFont(this.makeToolTipFont());
           icon.setToolTipText(icon.getPath());
           icon.setToolTipTextColor(java.awt.Color.YELLOW);
           layer.addIcon(icon);
       }
   }

   return layer;
}


Thanks http://www.worldwindcentral.com/wiki/WWJava_in_Eclipse

Wednesday, November 10, 2010

How to FWTools / GDAL for free and easy file conversion

GDAL is a translator library for raster geospatial data formats that is released under an X/MIT style Open Source license by the Open Source Geospatial Foundation. This tool can be accessed for free and easy file type translation between software through the FWTools package, downloadable at http://fwtools.maptools.org/. Its command line format so you can refer to the note below as a quick tutorial; this is specific to conversion between Tif and Idrisi raster, however in FWTools you can type ‘gdal_translate help’ to view a list of the file formats that you can work between.

To import GeoTiff to Idrisi using GDAL

You’ll need to be logged in as an administrator to both download and install, and then run this program.

1. Download and install FWTools from: http://fwtools.maptools.org/

The GDAL (command line utilities) is one of the tools included.

2. Open the “Start\All Programs\FWTools x.x.x\FWTools Shell”

3. In the DOS prompt type:
DOS SHELL SAYS –> C:Program Files/FWToolsx.x.x>
TYPE THIS –> gdal_translate -of rst -b 1 input.tif output.rst

‘-of’ means ‘output format’.

The part that says ‘-b’ means that there are multiple bands. For example, if there are
4 bands for this file so you’ll need to type into this DOS prompt 4 times. -b 1, -b 2, etc…

Where it says input.tif, type in the name of your tif file with .tif extension. Where it says output, type the name you’d like the output raster file to have with the .rst extension. Be sure to type in full path names otherwise the default will be for gdal to look in the ‘C:Program Files/FWTools Shell’ folder.

4. Check projection, data type, size, etc:

E:\Data\> gdalinfo output.rst

5. Reproject if necessary:

E:\Data\> gdalwarp -t_srs ‘EPSG:4296′ output.rst output2.rst

FWTools example

…a quick sidenote. FWTools runs in a DOS prompt wich initially begins in the FWTools directory; from here you can run the translation and enter full path and file names for your data, or use the typical change directories command (cd) to run the translation from the directory already containing your data, in which simple file names will work.


Enjoy ubuntu... ;)

Tq http://dgsg.wordpress.com

Tuesday, November 9, 2010

How to Uninstall 9.x License Manager

Unlike other ESRI components which are mostly Microsoft Installer packages, ESRI's ArcGIS 9.x LM installation was configured and packaged with the WISE Solutions (--> Altiris --> Symantec) Wise Installation System. Normally the uninstaller for all Wise based deployments will be an "unwise32.exe" coupled with a log file of the installation located somewhere in the installation directory.

So, the typical ArcGIS 9.x LM uninstall string would be:

C:\Program Files\ESRI\License\arcgis9x\UNWISE32.EXE C:\Program Files\ESRI\License\arcgis9x\ARCGIS_LM.LOG "License Manager"

The Wise uninstaller is dependent on details laid down in the log file during installation, if the file is moved, deleted, or corrupt the automated Wise uninstall will abort. If still intact, open the license file to see what path changes have occurred since the install--you might edit the log back to correct paths and retry the Wise uninstaller.

If that fails, or you don't want to try it, ESRI's FlexNet license manager installation is pretty simple, so manual removal is a snap. Before starting, if your concurrent license entitlement for the license server is permanent, locate and save the current license file (.efl9 extension) to a safe location--so you can reuse it.

Use the lmtools.exe GUI to stop the license service.

1) lauch lmtools.exe and select the ArcGIS license pool

2) on the Start/Stop/Reread tab -- "Stop Server"

3) on the Config Services tab -- uncheck "Start server at power up" and "Use Services", and then click on the "Save Service" and then exit the GUI.

Note: These manipulations of the FlexNet license service can all be done from the command line using lmutil commands, but is more convenient using the lmtools GUI.

4) either reboot, or run "services.msc" and stop the ArcGIS license service if still running.

5) now should just be able to delete the folder "C:\Program Files\ESRI\license" and all sub-folders.

There will be a remaining file association for .efl9 that is now broken--it was tied to UpdateLicense.exe that is now gone, but you can clear that out with Piriform's ccleaner.exe or similar, or just edit it out of the registry directly.

Monday, November 8, 2010

List of geographic information systems software

Desktop GIS

The following open source desktop GIS projects are reviewed in Steiniger and Bocher (2008/9)[3]:

gvSIG 1.0
GRASS GIS 6.4
Capaware rc1 0.1
SAGA-GIS v. 2.0.3
Whitebox GAT 1.0.2
IDRISI Taiga 16.05
  • GRASS GIS – Originally developed by the U.S. Army Corps of Engineers, open source: a complete GIS
  • SAGA GIS – System for Automated Geoscientific Analysis- a hybrid GIS software. SAGA has a unique Application Programming Interface (API) and a fast growing set of geoscientific methods, bundled in exchangeable Module Libraries.
  • Quantum GIS – QGIS is an Open Source GIS that runs on Linux, Unix, Mac OS X, and Windows.
  • MapWindow GIS – Free, open source GIS desktop application and programming component.
  • ILWIS – ILWIS (Integrated Land and Water Information System) integrates image, vector and thematic data.
  • uDig
  • gvSIG – Open source GIS written in Java.
  • JUMP GIS / OpenJUMP – (Open) Java Unified Mapping Platform (the desktop GIS OpenJUMP, SkyJUMP, deeJUMP and Kosmo emerged from JUMP; see [3])


other:

  • Whitebox GAT – Open source and transparent GIS software
  • Kalypso (software) – Kalypso is an Open Source GIS (Java, GML3) and focuses mainly on numerical simulations in water management.
  • TerraView – GIS desktop that handles vector and raster data stored in a relational or geo-relational database, i.e. a frontend for TerraLib.
  • Capaware – Capaware is also an Open Source GIS, an incredible fast C++ 3D GIS Framework with a multiple plugin architecture for geographic graphical analysis and visualization.
  • FalconView – FalconView is a mapping system created by the Georgia Tech Research Institute for the Windows family of operating systems. A free, open source version is available.

[edit]Other GIS tools - classified

Note, for different categories of GIS tools see GIS software and [1].

WebMap Server

Spatial Database Management Systems

  • PostGIS – Spatial extensions for the open source PostgreSQL database, allowing geospatial queries.
  • MySQL Spatial
  • TerraLib is a spatial DBMS and also provides advanced functions for GIS analysis.
  • Spatialite – Spatial extensions for the open source SQLite database, allowing geospatial queries.

Software Development Frameworks and Libraries (non-web)

Software Development Frameworks and Libraries (for web applications)

Cataloging application for spatially referenced resources

[edit]Other GIS tools - unclassified

  • Chameleon – Environments for building applications with MapServer.
  • MapPoint, a technology ("MapPoint Web Service," previously known as MapPoint .NET) and a specific software program created by Microsoft that allows users to view, edit and integrate maps.

[edit]Notable commercial or proprietary GIS software

[edit]Desktop GIS provider

Note: Almost all of the below companies offer Desktop GIS and WebMap Server products. Some offer Spatial DBMS products as well. ToDo: rewrite, so that not products are mentioned but the product user groups i.e. application fields

[edit]Companies with High Market Share

[edit]Companies with Minor but Notable Market Share

[edit]Spatial DBMS

  • Boeing's Spatial Query Server spatially enables Sybase ASE.
  • DB2 – Allows spatial querying and storing of most spatial data types.
  • Informix – Allows spatial querying and storing of most spatial data types.
  • Microsoft SQL Server 2008 – The latest player in the market of storing and querying spatial data. At this stage only some GIS products such as MapInfo and Cadcorp SIS can read and edit this data while ESRI and others are expected to be able to read and edit this data within the next few months
  • Oracle Spatial – Product allows users to perform complex geographic operations and store common spatial data types in a native Oracle environment. Most commercial GIS packages can read and edit spatial data stored in this way.
  • PostGIS – a spatial database based on the free PostgreSQL database

[edit]Spatial ETL Tools


Enjoy ubuntu... ;)

kunkun-laptop .... ;)