gml2postgis

A PHP modul for downloading, parsing and inserting a GML feed in a PostgreSQL/PostGIS database. I use it mainly as a command line (cli) script. The sql inserts are wrapped in a begin/end block and roll back if failure. It creates a new table and inserts a row in 'geomery_tables'. Url's for GML feeds are written in a conf file. The script is part of the AppForMap project at Sourceforge.net

And yes, I know ogr2ogr have support for both GML and PostGIS, but I needed some more control over the parsing which currently supports GML2.