{"id":27172144,"url":"https://github.com/pacificcommunity/geonode_offlineosm","last_synced_at":"2026-02-12T10:03:30.633Z","repository":{"id":80837255,"uuid":"116604407","full_name":"PacificCommunity/geonode_offlineosm","owner":"PacificCommunity","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-12T01:04:36.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-09T09:42:00.516Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scheme","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PacificCommunity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-07T22:33:35.000Z","updated_at":"2018-01-07T22:35:18.000Z","dependencies_parsed_at":"2023-03-12T12:18:01.183Z","dependency_job_id":null,"html_url":"https://github.com/PacificCommunity/geonode_offlineosm","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/PacificCommunity/geonode_offlineosm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacificCommunity%2Fgeonode_offlineosm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacificCommunity%2Fgeonode_offlineosm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacificCommunity%2Fgeonode_offlineosm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacificCommunity%2Fgeonode_offlineosm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PacificCommunity","download_url":"https://codeload.github.com/PacificCommunity/geonode_offlineosm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacificCommunity%2Fgeonode_offlineosm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270885974,"owners_count":24662538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-09T09:35:27.756Z","updated_at":"2026-02-12T10:03:25.571Z","avatar_url":"https://github.com/PacificCommunity.png","language":"Scheme","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Offline OSM for Geonode\r\n\r\n**THIS IS CURRENT WORK IN PROGRESS, DO NOT USE !!!**\r\n\r\nTested with Geonode 2.6 / Django 1.8 / Python 2 / Postgres 9.6\r\n\r\nThis is an app to create offline OSM layers for geonode.\r\n\r\n## Quickstart\r\n\r\n1. Pip install the library\r\n\r\n`pip install git+https://github.com/PacificCommunity/geonode_offlineosm@master`\r\n\r\n2. Add \"geonode_offlineosm\" to your INSTALLED_APPS setting like this::\r\n```python\r\n    INSTALLED_APPS = [\r\n        ...\r\n        'geonode_offlineosm',\r\n        ...\r\n    ]\r\n```\r\n\r\n3. Run `python manage.py migrate` to pull the data from OpenStreetMaps.\r\n\r\n## Settings\r\n\r\n```python\r\n# Extents of OSM data to be downloaded\r\nOFFLINE_OSM_BBOX = [\r\n    [176.8, -18.6], # BOTTOMLEFT\r\n    [179.3, -17.1], # TOPRIGHT\r\n]\r\n\r\n# Whether Offline OSM should be made available as base layers\r\nOFFLINE_OSM_AS_BASE_LAYER = True\r\n\r\n# Update period for the Celery worker (in minutes)\r\nOFFLINE_OSM_UPDATE_INTERVAL = 60*24 # 1 day\r\n\r\n# Name of the postgres schema where the OSM data is stored\r\nOFFLINE_OSM_SCHEMA_NAME = \"offline_osm\"\r\n\r\n# Name of the folder where OSM data is downloaded\r\nOFFLINE_OSM_DATA_DIR = \"/temp/offline_osm\"\r\n\r\n# Name of the geoserver datastore name for PostGIS (will be created if it doesn't exist)\r\nOFFLINE_OSM_DATASTORE_NAME = \"offline_osm\"\r\n```\r\n\r\n## Management command\r\n\r\nTo update the data, run the following management command. Be aware that will download a lot of data and require some heavy queries.  # TODO : describe options\r\n\r\n```shell\r\npython manage.py updateofflineosm\r\n```\r\n\r\n## Celery tasks\r\n\r\nAdd this so that Celery runs updateofflineosm on a regular basis\r\n\r\n```\r\nCELERY_IMPORTS = CELERY_IMPORTS + ('geonode_offlineosm.tasks',)\r\nCELERY_ALWAYS_EAGER = False # is this needed ?\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacificcommunity%2Fgeonode_offlineosm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacificcommunity%2Fgeonode_offlineosm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacificcommunity%2Fgeonode_offlineosm/lists"}