Git Product home page Git Product logo

42mapgenerator's Introduction

42MapGenerator (v2)

42MapGenerator is a tiny bash script developed at School 42 (Paris) for downloading and generating maps of the real world, the Earth's moon and the planet Venus for the pedagogical project Fil de Fer (FdF).

It allows you to find by name the coordinates of a country or a city thanks to the Google Geocoding API and to reduce the exported file size by providing 5 different formats (XXL, XL, L, M, S).

It extracts topography data from 4 different providers:

  • IGN (National Institute of Geographic and Forest Information / France), providing horizontal accuracy up to 250 meters of France and Overseas but excluding marine topography.

  • NOAA (National Oceanic and Atmospheric Administration / USA), providing horizontal accuracy up to 1852 meters (1 arc-meter) of any region of the world but with a limited capacity of exported file size.

  • MGDS (Marine Geoscience Data System / USA), providing an exceptional horizontal accuracy up to 100 meters of any region of the world, including marine topography but excluding some continental regions like Europe.

  • USGS (Astrogeology Science Center / USA), providing planetary data with horizontal accuracy up to 100 meters of Earth's moon and Venus, derived from Earth-based & spatial missions photographs.

install

git clone https://github.com/jgigault/42MapGenerator ~/42MapGenerator

usage

sh ~/42MapGenerator/42MapGenerator.sh

At first, you're asked to select an export directory in which to save the computed FdF maps. Then select a data provider and an available region of the world or a planet. Finally, choose a format and a mode of export of the marine's topography between flatten and keep data.

options

--no-update   // Do not check for updates at launch
--no-color    // Do not display color tags
--no-timeout  // Disable time-out for child processes

Add your options as arguments at launch:

sh ./42MapGenerator --no-update --no-timeout

preset maps

##### IGN
  • France Métropolitaine
  • DOM-TOM: Guadeloupe
  • DOM-TOM: Martinique
  • DOM-TOM: Réunion
  • DOM-TOM: Guyane
  • DOM-TOM: Saint Martin - Saint Barthélémy
USGS
  • Earth's moon
  • Venus
NOAA / MGDS
  • Whole world (MGDS only)
  • Antarctic (MGDS only)
  • Arctic (MGDS only)
  • Europe (NOAA only)
  • Alaska-Aleutians (MGDS only)
  • Cascade Range (West Coast USA)
  • Central America
  • East African Rift System
  • Eastern North American Margin
  • Gulf of California
  • Amazonia
  • Cordillera de los Andes
  • Izu-Bonin-Marinia
  • Nankai
  • New Zealand
  • Papua New Guinea
  • Red Sea
  • Himalaya
  • Mid-Ocean Ridges: EPR 8-11 N
  • Mid-Ocean Ridges: JdF Endeavour
  • Mid-Ocean Ridges: Lau Basin

custom maps

Using NOAA or MGDS as data provider allows you to find by name a country or a city (MGDS only). The coordinates are requested through the Google Geocoding API.

Before downloading and generating a custom map, you can request for an online preview image through the MGDS portal which is opened in your default browser.

previews

about FdF format

The pedagogical project Fil de Fer (FdF) consists in creating a C program that displays a graphical representation of a land. The program takes as first argument a path to a file which contains topography data.

A map for the project FdF is a simple text file based on the standard ARC/INFO Grid Format whose headers are removed.

Here is an ARC/INFO Grid sample file (header are the first 6 lines):

ncols         4
nrows         6
xllcorner     0.0
yllcorner     0.0
cellsize      50.0
NODATA_value  -9999
-9999 -9999 5 2
-9999 20 100 36
3 8 35 10
32 42 50 6
88 75 27 9
13 5 1 -9999

This type of topography data is available through GIS Web Services and several open data FTP servers.

credits

42mapgenerator's People

Contributors

jgigault avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

42mapgenerator's Issues

IGN map dl error

on " France Métropolitaine (Download size: 12.7M)" from "IGN (National Institute of Geographic and Forest Information / France)"

Downloading IGN_France_250_ASC_L93.txt.zip from remote server...
http://professionnels.ign.fr/sites/default/files/France_250_ASC_L93.zip

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 [|]
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Done!

Then:

An error occured while downloading file:
http://professionnels.ign.fr/sites/default/files/France_250_ASC_L93.zip

Merci de casser mon projet :)

Bonjour,
(Je risque d'avoir quelque peu de mal à garder mon calme.)
Il serait surement judicieux de vérifier lors de l'update que le git à update est bien celui du 42 generator. Je t'explique: j'ai téléchargé le repo (donc pas clone) et mis dans mes maps sur MON repo de FdF.
Je lance le generator et il demande pour les maj, ok innocemment, je lance la maj.
Mais du coup c'est MON repo qu'il met à jour, j'imagine, et du coup MERCI adieu tous mes commits et tout mon travail de la matinée.
Donc voilà si c'est, comme je le suppose, ton script qui met à jour le repo, ce pourrait être une bonne piste de vérifier avant ça que c'est bien le 42generator, le repo en question...
My bad si le problème vient d'ailleurs, mais vraiment c'est juste apres avoir lancé le map generator et les updates que tout s'est envolé donc si tu as la possibilité de te pencher sur la question et d'éviter que ça se reproduise ce serait cool.
Merci.
Cordialement

Russie

La russie ne fonctionne pas.

Dèrniere ligne génerée: fausse

Salut !
Tout d'abord merci pour ton travail, c'est de la bombe !

Bug:
-La derniere ligne generee est remplie de valeur fausses
Reproduce:
-Find City
-Paris
-XXL
-Keep Data

C'est un exemple, ca me l'a fait pour d'autres villes egalement. Bon debug ;)

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.