Tuesday, March 2, 2010

Make your own map-based mashup

IBM produced a nice tutorial making use of GeoTools, JTS and SkateKML with the ever present OpenLayers and PostGIS database.

The tutorial mostly uses the MathTransform services to handle coordinates. You can actually use GeoTools DataStore to perform the SQL query for you resulting in a FeatureCollection. The IBM tutorial performs these steps by hand (Constructing the SQL and translating Well Known Binary into a JTS Geometry etc...).

For more information on using GeoTools FeatureCollection please review QueryLab (java).