GeoToolkit Demo Embedded in an Application Framework via Maven

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:

http://java.net/projects/nb-api-samples/sources/api-samples/show/versions/7.3/tutorials/geospatial/geotoolkit/MyGeospatialSystem

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. 

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
23
24
25
26
27
28
29
30
   
       
Today