v1.0.0 Release Candidate 0
Pre-release
Pre-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
orosm_lines
already exist in the db, likely from previous fmtm-splitter versions.
- This prevents conflicts if
- Reduction in sub-dependencies required to install this module.