Cookbook for the GEOS library for use with PostGIS