Skip to content

Python script that uses the OGR API to convert GPX files to PostGIS format, and create new layers or append features to existing layers

Notifications You must be signed in to change notification settings

ryankdalton/gpx2postgis.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

gpx2postgis.py

Python script that uses the OGR API to convert GPX files to PostGIS format.

This script will create a blank PostGIS table with the schema imported from the appropriate GPX sublayer ("waypoints", "routes", "route_points", "tracks", "track_points") is found and does not already exist.

Once a new table exists, ne script will loop through all selected GPX files in a folder, and loop through all sublayers in each GPX file, and append features to the correct table.

Requires "osgeo" Python library to be installed.

About

Python script that uses the OGR API to convert GPX files to PostGIS format, and create new layers or append features to existing layers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages