#!/usr/bin/env ruby require File.expand_path(File.dirname(__FILE__) + '/../config/boot') require 'druid-tools' require 'fileutils' require 'optparse' # __MAIN__ begin File.umask(002) flags = { :overwrite_prj => true, :verbose => false, :workspacedir => GeoHydra::Config.geohydra.workspace || 'workspace', :tmpdir => GeoHydra::Config.geohydra.tmpdir || 'tmp', # ogr2ogr is using a different WKT than GeoServer -- this one is from GeoServer 2.3.1. # As implemented by EPSG database on HSQL: # http://docs.geotools.org/latest/userguide/library/referencing/hsql.html # Also see: # http://spatialreference.org/ref/epsg/4326/prettywkt/ :wkt => { '4326' => %Q{ GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.01745329251994328, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4326"]] }.split.join.freeze } } OptionParser.new do |opts| opts.banner = < e $stderr.puts "ERROR: #{e.message}" exit(-1) end