WikiProject Ethiopia/GNS

From OpenStreetMap Wiki
Jump to navigation Jump to search

A GPX file for allover Ethiopia containing names of populated places can be downloaded here: http://self.mestrona.net/files-et/etPPL-080626.gpx and opened in JOSM for orientation. This is data from GEOnet Names Server

Plan

  • convert GNS Data to .GPX file (s) - about 4x4 files for each region
  • every city will get a marker
  • people take a GPX file, loads it into josm, checks the data via yahoo satellite image
  • sets a city-marker in JOSM
  • Format description: http://earth-info.nga.mil/gns/html/gis_countryfiles.htm

Todo

Technical Background

# Format: NGA Country Files
# Author: Alexander Menk
#   Date: 26/06/2008
#

DESCRIPTION Files from http://earth-info.nga.mil/gns/html/namefiles.htm
EXTENSION txt
DATATYPE waypoint

#
# FILE LAYOUT DEFINITIIONS:
#
FIELD_DELIMITER TAB
RECORD_DELIMITER NEWLINE
BADCHARS ,"

PROLOGUE RC	UFI	UNI	LAT	LONG	DMS_LAT	DMS_LONG	MGRS	JOG	FC	DSG	PC	CC1	ADM1	ADM2	POP	ELEV	CC2	NT	LC	SHORT_FORM	GENERIC	SORT_NAME	FULL_NAME	FULL_NAME_ND	MODIFY_DATE

# most of the files are ignored
IFIELD IGNORE,"","%s"  # RC
IFIELD IGNORE,"","%s"  # UFI
IFIELD IGNORE,"","%s"  # UNI
IFIELD LAT_DECIMAL, "", "%f" # Latitude
IFIELD LON_DECIMAL, "", "%f" # Longitude
IFIELD IGNORE,"","%s"  # DMS_LAT
IFIELD IGNORE,"","%s"  # DMS_LONG
IFIELD IGNORE,"","%s"  # MGRS
IFIELD IGNORE,"","%s"  # JOG
IFIELD IGNORE,"","%s"  # FC
IFIELD IGNORE,"","%s"  # DSG
IFIELD IGNORE,"","%s"  # PC
IFIELD IGNORE,"","%s"  # CC1
IFIELD IGNORE,"","%s"  # ADM1
IFIELD IGNORE,"","%s"  # ADM2
IFIELD IGNORE,"","%s"  # POP
IFIELD IGNORE,"","%s"  # ELEV
IFIELD IGNORE,"","%s"  # CC2
IFIELD IGNORE,"","%s"  # NT
IFIELD IGNORE,"","%s"  # LC
IFIELD IGNORE,"","%s"  # SHORT_FORM
IFIELD IGNORE,"","%s"  # GENERIC
IFIELD SHORTNAME,"","%s"  # SORT_NAME
IFIELD IGNORE,"","%s"  # FULL_NAME
IFIELD DESCRIPTION,"","%s"  # FULL_NAME_ND
IFIELD IGNORE,"","%s"  # MODIFY_DATE
  • Then use the command "gpsbabel -i xcsv,style=gns.style -f et.txt -o gpx -F export.gpx"