PostgresOSM.URL¶
- property PostgresOSM.URL[source]¶
Homepage URL of data resource for current property
downloader.Examples:
>>> from pydriosm.ios._base import BaseIOS >>> osmdb = BaseIOS(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.