These applications and applets demonstrate the functionalities available in the library.

All this code is hereby placed into the Public Domain. This means anyone is free to do whatever they wish with these files.

Real applications

Geotk is a library and does not provide application on its own. One way to get some feeling of what Geotk can do is to look at some applications that use it.

Demonstration applets

These applets demonstrate specific functionality in the library. Each applet typically demonstrates a single class from the geotk-widgets-swing module.

CoordinateChooser Specify a spatial bounding box, a temporal extent and optionally a spatial resolution.
GradientKernelEditor Select the kernels to use for computing gradient magnitudes in a raster.
IIOMetadataPanel Display the structure of Geotk Image I/O metadata (subsets of ISO 19115-2).
Plot2D Display a graph.
RegisteredOperationBrowser Display the JAI operations registered on the host machine.
ZoomPane Display a component providing zoom and rotation capabilities.

Demonstration code in Java

These are small standalone classes that could be compiled and run from the command line.

  • Metadata demonstration
    • HelloWorld shows how to create a simple metadata object and marshal it to ISO 19139 compliant XML.
  • Referencing demonstration
    • CoordinateConversion shows how to convert a coordinate from a Geocentric CRS to a Projected CRS (a World Mercator projection).
  • Coverage demonstration
    • FloatRaster shows how to create an image from a matrix of floating point values.

Demonstration code in Groovy

These are small standalone classes that could be run from the command line as Groovy scripts. In order for Grape (Groovy Advanced Packaging Engine) to find the maven repository, a user needs to edit $HOME/.groovy/grapeConfig.xml and add the Geotk repository. Here's an example grapeConfig.xml:

<?xml version="1.0"?>
  <settings defaultResolver="downloadGrapes"/>
    <chain name="downloadGrapes">
      <ibiblio name="local"      root="file:${user.home}/.m2/repository/" m2compatible="true"/>
      <ibiblio name="geotoolkit" root=""       m2compatible="true"/>
      <ibiblio name="ibiblio"                                             m2compatible="true"/>
      <ibiblio name="java.net2"  root="" m2compatible="true"/>
  • Referencing demonstration
    • geo2utm shows how to convert the coordinates in a CSV file from a Geocentric CRS to a UTM zone 10N CRS.