{"id":13687647,"url":"https://github.com/MapServer/basemaps","last_synced_at":"2025-05-01T13:30:45.420Z","repository":{"id":2765333,"uuid":"3763704","full_name":"MapServer/basemaps","owner":"MapServer","description":"Scripts to generate MapServer mapfiles based on OpenStreetMap data. Please submit pull requests to the 'main' branch. ","archived":false,"fork":false,"pushed_at":"2025-03-04T14:56:07.000Z","size":100865,"stargazers_count":63,"open_issues_count":9,"forks_count":46,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-03-04T15:39:10.056Z","etag":null,"topics":["c","imposm","mapserver","openstreetmap","openstreetmap-data","osm","osm2pgsql","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MapServer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2012-03-19T12:46:13.000Z","updated_at":"2025-03-04T14:56:08.000Z","dependencies_parsed_at":"2025-03-04T15:40:50.341Z","dependency_job_id":null,"html_url":"https://github.com/MapServer/basemaps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MapServer%2Fbasemaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MapServer%2Fbasemaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MapServer%2Fbasemaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MapServer%2Fbasemaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MapServer","download_url":"https://codeload.github.com/MapServer/basemaps/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251881594,"owners_count":21659126,"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","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":["c","imposm","mapserver","openstreetmap","openstreetmap-data","osm","osm2pgsql","python"],"created_at":"2024-08-02T15:00:58.025Z","updated_at":"2025-05-01T13:30:45.414Z","avatar_url":"https://github.com/MapServer.png","language":"Python","readme":"# MapServer OSM basemaps\n\n- This package uses a Python script and the C preprocessor to build a\n  complete [MapServer](https://mapserver.org) mapfile from a set of templates and styling information, \n  for [OpenStreetMap](https://www.openstreetmap.org) data.\n\n- Please perform all pull requests into the `main` branch, and \n  inside the pull request mention which branch to backport the changes to; \n  one of the repository managers will then apply the corresponding label, \n  to magically backport to that branch.\n\n  - use branch `main` for all pull requests\n  - other branches to possibly backport to include:\n    - `mapserver-7.6`\n    - `branch-6-2`\n\n- The build process uses the gcc preprocessor extensively, you should have it installed on your\n  system. On linux, check that the `cpp` command is present. On OSX, the provided `cpp` program is a shell\n  wrapper that is not suitable: the Makefile is coded to call `cpp-4.2`, which you can change in case\n  you have another version installed.\n\n- The mapfiles rely on the database schema as created by a recent version of imposm. Until recently\n  imposm did not create the `landusages_gen` and `waterareas_gen` tables. Since 2.3.0 this is not the case anymore.\n  If you do not have the generalized tables, you can change the `landusage_data` and `waterareas_data` entries in\n  `generate_style.py` so that it queries the non-generalized\n  tables on the lower zoom levels (this will be slower for the lower zoom levels).\n\n- The generated mapfile can also be made to query an osm database created with `osm2pgsql` rather than `imposm`.\n  This setup is not recommended as it will be much slower. To use the osm2pgsql schema, you should add the `osm2pgsql`\n  entry to the list of styles for an entry of style_aliases near the end of generate_style.py, e.g:\n  `\"bingosm2pgsql\":\"default,outlined,bing,osm2pgsql\"` then run `make STYLE=bingosm2pgsql` to create the `osm-bingosm2pgsql.map`\n\n- Most configuration and tweaks should be done in `generate_style.py`.\n  Documentation as to how to edit can be found at\n  https://mapserver.org/basemaps/style.html.\n  \n- Windows users can follow the steps at https://github.com/MapServer/MapServer/wiki/RenderingOsmDataWindows\n\n## Docker installation\n\nAfter installing docker and docker compose, run the following command (port 80\nshould not be already used in your local system):\n```\ndocker compose up -d\n```\nThen use your browser to go to:\n```\nhttp://localhost?SERVICE=WMS\u0026VERSION=1.3.0\u0026REQUEST=GetCapabilities\n```\n\n","funding_links":[],"categories":["c"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMapServer%2Fbasemaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMapServer%2Fbasemaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMapServer%2Fbasemaps/lists"}