Git Product home page Git Product logo

geodata's Introduction

webtrees-geodata

Geographic data for genealogists.

Identifiers and place names

Identifiers, file and folder names should be the English name of a place, written in ASCII characters. There are two reasons for this. Firstly, some filesystems do not support non-latin characters. Secondly, some countries have multiple official languages and place names.

Where the local name of a place is different to the English/ASCII name, then the translated version is stored as a property of the data.geojson file.

Where there are several places with the same name, include disambiguation in parentheses.

  • England/Northamptonshire/Ashton (near Oundle)
  • England/Northamptonshire/Ashton (near Roade)

Places, regions and hierarchy

The hierarchy of places should be the one prefered by the majority of genealogists. For example, British genealogists tend to use the traditional counties in preference to the modern administrative regions.

However, genealogical data often refers to regions that no longer exist, or that are not part of the preferred geographical hierarchy. We may know that someone was born in "Ireland" - without knowing if the birthplace was in Northern Ireland or the Replublic of Ireland.

Therefore, we include details of such regions, as an aid to locating them on a map.

Coordinates

Coordinates should use a maximum of 5 decimal places. This is a resolution of approximately one metre.

Which flag

Many countries have different state flags and civil flags. Here we use the civil flag.

Many territories have disputed ownership or have no official flag. For example, Northern Ireland. Here we use the flag that, according to Wikipedia, has the widest recognition.

Image format

Images must be in SVG format. Tools exist to convert bitmaps such as PNG into SVG.

geojson format

You can validate geojson files using geojsonlint.com

Licences

This project can only accept contributions that are in the public domain or that have a free redistribution licence. Wikipedia and Wikimedia Commons are a great source of such data!

geodata's People

Contributors

fisharebest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

geodata's Issues

tools/wiki-place: Extract geocoordinates from Wikipedia article

Most en.WP place articles include coordinates in a machine-readable format:

<span id="coordinates">
    <a href="/wiki/Geographic_coordinate_system" title="Geographic coordinate system">Coordinates</a>: <span class="plainlinks nourlexpansion"><a class="external text" href="//tools.wmflabs.org/geohack/geohack.php?pagename=%C3%98stfold&amp;params=59_20_00_N_11_20_00_E_source:itwiki_region:NO_type:adm1st">
        <span class="geo-default">
            <span class="geo-dms" title="Maps, aerial photos, and other data for this location">
                <span class="latitude">59°20′00″N</span> 
                <span class="longitude">11°20′00″E</span>
            </span>
        </span>
        <span class="geo-multi-punct"> / </span>
        <span class="geo-nondefault">
            <span class="geo-dec" title="Maps, aerial photos, and other data for this location">59.33333°N 11.33333°E</span>
            <span style="display:none"> / 
                <span class="geo">59.33333; 11.33333</span>
            </span>
        </span>
    </a>
</span>

These are added using the {{coord}} template if you are parsing the wikitax. In this example: {{coord|59|20|00|N|11|20|00|E|source:itwiki_region:NO_type:adm1st|display=title}} from https://en.wikipedia.org/wiki/%C3%98stfold

tools/export: Undefined index notices

$ tools/export -vvv
PHP Notice:  Undefined index: Norway/Østfold/Våler in /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/src/ExportCommand.php on line 129
PHP Stack trace:
PHP   1. {main}() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/tools/export:0
PHP   2. Symfony\Component\Console\Application->run() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/tools/export:13
PHP   3. Symfony\Component\Console\Application->doRun() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:143
PHP   4. Symfony\Component\Console\Application->doRunCommand() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:241
PHP   5. Webtrees\Geodata\ExportCommand->run() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:865
PHP   6. Webtrees\Geodata\ExportCommand->execute() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Command/Command.php:252
PHP   7. Webtrees\Geodata\ExportCommand->exportData() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/src/ExportCommand.php:68

Notice: Undefined index: Norway/Østfold/Våler in /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/src/ExportCommand.php on line 129

Call Stack:
    0.0008     390336   1. {main}() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/tools/export:0
    0.8486    1440912   2. Symfony\Component\Console\Application->run() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/tools/export:13
    0.8675    1823264   3. Symfony\Component\Console\Application->doRun() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:143
    0.8676    1823264   4. Symfony\Component\Console\Application->doRunCommand() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:241
    0.8681    1823264   5. Webtrees\Geodata\ExportCommand->run() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:865
    0.8693    1828152   6. Webtrees\Geodata\ExportCommand->execute() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Command/Command.php:252
    0.9219    2068296   7. Webtrees\Geodata\ExportCommand->exportData() /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/src/ExportCommand.php:68

This may be related to the depth of administrative index?

tools/export: League\Flysystem\FileExistsException

In Filesystem.php line 402:
                                                  
  [League\Flysystem\FileExistsException]          
  File already exists at path: places/flags/.png  
                                                  

Exception trace:
 League\Flysystem\Filesystem->assertAbsent() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/league/flysystem/src/Filesystem.php:66
 League\Flysystem\Filesystem->write() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/src/ExportCommand.php:146
 Webtrees\Geodata\ExportCommand->exportData() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/src/ExportCommand.php:68
 Webtrees\Geodata\ExportCommand->execute() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Command/Command.php:252
 Symfony\Component\Console\Command\Command->run() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:865
 Symfony\Component\Console\Application->doRunCommand() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:241
 Symfony\Component\Console\Application->doRun() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/vendor/symfony/console/Application.php:143
 Symfony\Component\Console\Application->run() at /Volumes/Seagate_HFS/Amgine/ownCloud/Code/webtrees/geodata2/tools/export:13

export [--language LANGUAGE] [--prefix [PREFIX]]

Exporting after adding flags and places for Norway/Østfeldt/[all municipalities]/[some villages] using tools/wiki-place and tools/wiki-flag.

Canada - wip

Why do I see the word "wip" besides Canada?
All the others have the word "webtrees-geodata"

Yukon Territory

The name "Yukon" should be updated to "Yukon Territory". Tks.
I started to search coordinates of places in YT. I added them to the GM module of my website.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.