PostgresOSM.url
- property PostgresOSM.url[source]
Homepage URL of data resource for current property
downloader
.Examples:
>>> from pydriosm.ios import PostgresOSM >>> osmdb = PostgresOSM(database_name='osmdb_test') Password (postgres@localhost:5432): *** Creating a database: "osmdb_test" ... Done. Connecting postgres:***@localhost:5432/osmdb_test ... Successfully. >>> osmdb.url 'https://download.geofabrik.de/' >>> # Change the data source >>> osmdb.data_source = 'BBBike' >>> osmdb.url 'https://download.bbbike.org/osm/bbbike/' >>> # Delete the database 'osmdb_test' >>> osmdb.drop_database(verbose=True) To drop the database "osmdb_test" from postgres:***@localhost:5432 ? [No]|Yes: yes Dropping "osmdb_test" ... Done.