##################################################
#  gm2pgsql V1.0                                 #
#  Simple Geomedia Warehouse to postgis exporter #
#  Copyright (C) 2009 Claudio Rocchini           # 
#  Istituto Geografico Militare Italiano         # 
#  web:   www.igmi.org                           # 
#  email: ad2prod@geomil.esercito.difesa.it      #
################################################## 

* Introduction

  This is a simple command-line tool for exporting Geomedia(*) Warehouse
  (mdb Access(**) database) to Postgres-Postgis SQL file. It works like the
  famous shp2pgsql. 

  The tools uses odb32lib to read mdb file and do not required
  to install Microsoft Access(**); in some cases you must install
  the free downloadable Access Runtime.

* Usage
  gm2pgsql [options] warefile.mdb outfile.sql db_schema_name SRID
  options:
     -p : preserve case of names (tables and attributes)
	 
  db_schema_name may be 'public' or another schema name,
  SRID is the system reference code of PostGIS.

* File List
  - blob4.h blob4.cpp : simple Geomedia(*) blob field codec
  - rodbc2.h rodbc2.inl rodbc2.cpp : simple odbc wrapper
  - gm2pgsql.cpp : main program
  - gm2pgsql_msvcc.mak Visual C++ makefile
  - mingw/makefile: mingw gcc makefile
  
* Building from mingw
  - go to mingw directory and type make
  
* Some notes (for now):
  - text feature are dumped as points plus a text field;
  - oriented point are dumped as points (angle is deleted);
  - no text code conversione are made (es. utf8 );
  - geometry data are dumped as wkt (and not as wkb);
  - arc geometry and rectangle are not supported;
  - picklist and coord systems are not dumped;
  - spatial key field, geometry field of texts and
    primary key field are inferred empirically.

(*)  Geomedia is (C) Intergraph Corporation
(**) Access   is (C) Microsoft

 ************************************************************************
 * This program is free software: you can redistribute it and/or modify *
 * it under the terms of the GNU General Public License as published by *
 * the  Free Software Foundation, either  version 3 of the  License, or *
 * any later version.                                                   *
 *                                                                      *
 *   This program is distributed in the hope that it will be useful,    *
 *   but WITHOUT ANY WARRANTY; without  even the implied warranty of    *
 *   MERCHANTABILITY or  FITNESS  FOR A PARTICULAR PURPOSE.  See the    *
 *   GNU General Public License for more details.                       *
 *                                                                      *
 * You should have received a copy of the GNU General Public License    *
 * along with this program.  If not, see <http://www.gnu.org/licenses/> *
 ************************************************************************
