Skip to content

v1.0.0 Release Candidate 0

Pre-release
Pre-release
Compare
Choose a tag to compare
@spwoodcock spwoodcock released this 21 Jan 13:27
· 158 commits to main since this release
  • Removed SQLAlchemy and GeoAlchemy dependencies.
  • Usage of the splitBySQL method now requires either a connection string, or psycopg2 connection.
  • SQLAlchemy Session objects are no longer accepted.

To get the psycopg2 driver connection from an SQLAlchemy Session, it's as simple as using:

psycopg2_connection = sqlalchemy_session.connection()
# Then pass psycopg2_connection as the db variable

Advantages

  • The updated code uses a single database transaction instead of three.
  • The tables will be dropped with the CASCADE option at the start of the script:
    • This prevents conflicts if osm_ways or osm_lines already exist in the db, likely from previous fmtm-splitter versions.
  • Reduction in sub-dependencies required to install this module.