Quantcast
Channel: Oracle Bloggers
Viewing all articles
Browse latest Browse all 19780

GeoToolkit Demo Embedded in an Application Framework via Maven

$
0
0

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. But it's definitely a starting point and you now have 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. 


Viewing all articles
Browse latest Browse all 19780

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>