By Geertjan on Dec 04, 2012
As a follow on to yesterday's blog entry, here's the equivalent starter application for GeoToolkit (also known as Geotk) on the NetBeans Platform, which ends up looking like this:
The above is a border.shp file I found on-line, while here's a USA states shape file rendered in the application:
Note that the navigation bar is also included, though that could later be migrated into the menu bar of the NetBeans Platform.
Download the Maven based NetBeans Platform application with GeoToolkit integration here:
It was quite tricky getting this sample together, parts of it, especially the installer, which creates the database, comes from the Puzzle GIS project, while the files come from on-line locations, with the JAI-related dependencies providing problems of their own. I was able to solve the vendorName==null problem by downloading the jai_imageio.jar JAR found here and replacing the equivalent JAR in my POM with that one.
What you now have above is definitely a starting point giving you the basic Maven structure needed for getting started with GeoToolkit in the context of all the services and components provided by the NetBeans Platform.
Many thanks to Johann Sorel for his patience and help.