Skip to content

Commit

Permalink
Merge branch 'release/2.3.1' into main
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
georgique committed Jul 18, 2022
2 parents 45758da + 7b0f791 commit c22ac4b
Show file tree
Hide file tree
Showing 6 changed files with 294 additions and 4 deletions.
200 changes: 200 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
## GITATTRIBUTES FOR WEB PROJECTS
#
# These settings are for any web project.
#
# Details per file setting:
# text These files should be normalized (i.e. convert CRLF to LF).
# binary These files are binary and should be left untouched.
#
# Note that binary is a macro for -text -diff.
######################################################################

# Auto detect
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text=auto

# Source code
*.bash text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf
*.coffee text
*.css text
*.htm text diff=html
*.html text diff=html
*.inc text
*.ini text
*.js text
*.json text
*.geojson text
*.jsx text
*.less text
*.ls text
*.map text -diff
*.od text
*.onlydata text
*.php text diff=php
*.pl text
*.ps1 text eol=crlf
*.py text diff=python
*.rb text diff=ruby
*.sass text
*.scm text
*.scss text diff=css
*.sh text eol=lf
*.sql text
*.styl text
*.tag text
*.ts text
*.tsx text
*.xml text
*.xhtml text diff=html

# Docker
Dockerfile text

# Documentation
*.ipynb text
*.markdown text
*.md text
*.mdwn text
*.mdown text
*.mkd text
*.mkdn text
*.mdtxt text
*.mdtext text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text

# Templates
*.dot text
*.ejs text
*.haml text
*.handlebars text
*.hbs text
*.hbt text
*.jade text
*.latte text
*.mustache text
*.njk text
*.phtml text
*.tmpl text
*.tpl text
*.twig text
*.vue text

# Configs
*.cnf text
*.conf text
*.config text
.editorconfig text
.env text
.gitattributes text
.gitconfig text
.htaccess text
*.lock text -diff
package-lock.json text -diff
*.toml text
*.yaml text
*.yml text
browserslist text
Makefile text
makefile text

# Heroku
Procfile text

# Graphics
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.gifv binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
# SVG treated as an asset (binary) by default.
*.svg text
# If you want to treat it as binary,
# use the following line instead.
# *.svg binary
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary

# Audio
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary

# Video
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.ogv binary
*.swc binary
*.swf binary
*.webm binary

# Archives
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary

# Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary

# Executables
*.exe binary
*.pyc binary

# RC files (like .babelrc or .eslintrc)
*.*rc text

# Ignore files (like .npmignore or .gitignore)
*.*ignore text
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build

on:
push:
tags:
- 'main'

jobs:
build:
runs-on: ubuntu-latest

steps:
# Checkout code
- uses: actions/checkout@v2

- name: Set tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: 'https://npm.pkg.github.com'

- name: Prepare authentication and NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
npm install
- name: Publish NPM package on GitHub
env:
NODE_AUTH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
npm publish
- uses: montudor/action-zip@v0.1.0
if: (!startsWith(github.ref, 'refs/heads/release') && !startsWith(github.ref, 'refs/heads/hotfix'))
with:
args: zip -qq -r /tmp/dist.zip .

- uses: marvinpinto/action-automatic-releases@v1.2.1
if: (success() && (!startsWith(github.ref, 'refs/heads/release') && !startsWith(github.ref, 'refs/heads/hotfix')))
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ env.RELEASE_VERSION }}
prerelease: false
title: Release ${{ env.RELEASE_VERSION }}
files: /tmp/dist.zip
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
package-lock.json
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# CHANGELOG

## 1.0.0
* New: countries boundaries

## 2.0.0
* New: areas boundaries

# 2.2.0
* New: US and AU boundaries

## 2.3.0
* New: Canada provinces and territories boundaries (OSM / low quality)

## 2.3.1
* Fix: added missing Greek islands of Pitta and Kastellorizo
* Fix: fixed country file names for Mauritius, North Macedonia and Saint Vincent and the Grenadines;
* Fix: Bouvet Island moved out of Svalbard;
* * Fix: normalized countries coordinates (from -180 to 180);


8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
This repository contains GeoJSON data for all the countries boundaries including boundaries for states of bigger
countries (note that this repository is currently filling).
Detalization is good for using this data on scales up to 1:10000000 / gmaps zoom 6-7 (it's the best quality in combination with free-to-use license).
Data is created using [geojson.io](http://geojson.io/) tool.

![Quality example](http://httphobo.com/pictures/map.png)
![Quality example](https://user-images.githubusercontent.com/15987211/179500121-a3dd509b-dc05-43b4-8f2c-40d42b4741da.png)

## Countries (release 1.0)
Contries boundaries besides mainlands include all the geographically separated, but de jure dependent, associated and managed territories. Separated mainland and all the territories mentioned are added in release 2. Countries states are to be added in release 3.
Expand All @@ -24,14 +25,14 @@ Countries split into areas are:
* Portugal (3): Mainland/Azores/Madeira
* Spain (3): Mailand/Canary Islands/Balearic Islands
* United Kingdom (21): United Kingdom/England/Scotland/Wales/Northern Ireland/Isle of Man/Guernsey/Jersey/Gibraltar/Akrotiri and Dhekelia/Bermuda/Turks and Caicos Islands/British Virgin Islands/Anguilla/Cayman Islands/Montserrat/Pitcairn Islands/Saint Helena, Ascension and Tristan de Cunha/British Indian Ocean Territory/Falkland Islands/South Georgia and the South Sandwich Islands
* USA (17): Mainland (to be splitted to states)/Palmyra Atoll/Guam/Northern Mariana Islands/Puerto Rico/United States Virgin Islands/American Samoa/Baker Island/Howland Island/Jarvis Island/Johnston Atoll/Kingman Reef/Wake Island/Midway Atoll/Navassa Island/Serranilla Bank/Bajo Nuevo Bank
* USA (17): Mainland (to be split to states in v3)/Palmyra Atoll/Guam/Northern Mariana Islands/Puerto Rico/United States Virgin Islands/American Samoa/Baker Island/Howland Island/Jarvis Island/Johnston Atoll/Kingman Reef/Wake Island/Midway Atoll/Navassa Island/Serranilla Bank/Bajo Nuevo Bank

## States boundaries (in progress)
Countries which we are going to provide state boundaries for:
* Australia (ready)
* Argentina (pending: 24)
* Brazil (pending: 26)
* Canada (ready, OSM data)
* Canada (ready / OSM / low quality)
* China (pending: 33)
* India (pending: 29)
* Indonesia (pending: 34)
Expand All @@ -52,4 +53,3 @@ Future planned changes and improvements are:
* [geojson.io](http://geojson.io/)
* [OpenStreetMap](https://www.openstreetmap.org)

Sponsored by [Mapkeen](https://mapkeen.com)
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@georgique/world-geojson",
"license": "proprietary",
"repository": "git://github.com/georgique/world-geojson.git",
"version": "2.3.1",
"files": [
"areas",
"countries",
"states",
"CHANGELOG.md",
"README.md",
"LICENSE"
],
"dependencies": {},
"devDependencies": {},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
}
}

0 comments on commit c22ac4b

Please sign in to comment.