Geotoolkit.org demos

These applications and applets demonstrate the functionalities available in the Geotoolkit.org 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 Geotoolkit.org 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 Geotoolkit.org 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"?>
<ivysettings>
  <settings defaultResolver="downloadGrapes"/>
  <resolvers>
    <chain name="downloadGrapes">
      <ibiblio name="local"      root="file:${user.home}/.m2/repository/" m2compatible="true"/>
      <ibiblio name="geotoolkit" root="http://maven.geotoolkit.org"       m2compatible="true"/>
      <ibiblio name="ibiblio"                                             m2compatible="true"/>
      <ibiblio name="java.net2"  root="http://download.java.net/maven/2/" m2compatible="true"/>
    </chain>
  </resolvers>
</ivysettings>
  • Referencing demonstration
    • geo2utm shows how to convert the coordinates in a CSV file from a Geocentric CRS to a UTM zone 10N CRS.