forked from TrueCloudLab/frostfs-locode-db
[#2] Update DB
Update to version 2022-2 Signed-off-by: Stanislav Bogatyrev <s.bogatyrev@yadro.com>
This commit is contained in:
parent
d0c5310ec2
commit
87d9df1de1
1 changed files with 4 additions and 4 deletions
8
Makefile
8
Makefile
|
@ -31,16 +31,16 @@ in/continents.geojson: $(DIRS)
|
||||||
zcat continents.geojson.gz > in/continents.geojson
|
zcat continents.geojson.gz > in/continents.geojson
|
||||||
|
|
||||||
unlocode:
|
unlocode:
|
||||||
wget -c https://service.unece.org/trade/locode/loc221csv.zip -O tmp/loc221csv.zip
|
wget -c https://service.unece.org/trade/locode/loc222csv.zip -O tmp/loc222csv.zip
|
||||||
unzip -u tmp/loc221csv.zip -d in/
|
unzip -u tmp/loc222csv.zip -d in/
|
||||||
|
|
||||||
locode_db: unlocode in/continents.geojson in/airports.dat in/countries.dat
|
locode_db: unlocode in/continents.geojson in/airports.dat in/countries.dat
|
||||||
$(FROST) util locode generate \
|
$(FROST) util locode generate \
|
||||||
--airports in/airports.dat \
|
--airports in/airports.dat \
|
||||||
--continents in/continents.geojson \
|
--continents in/continents.geojson \
|
||||||
--countries in/countries.dat \
|
--countries in/countries.dat \
|
||||||
--in in/2022-1\ UNLOCODE\ CodeListPart1.csv,in/2022-1\ UNLOCODE\ CodeListPart2.csv,in/2022-1\ UNLOCODE\ CodeListPart3.csv \
|
--in in/2022-2\ UNLOCODE\ CodeListPart1.csv,in/2022-2\ UNLOCODE\ CodeListPart2.csv,in/2022-2\ UNLOCODE\ CodeListPart3.csv \
|
||||||
--subdiv in/2022-1\ SubdivisionCodes.csv \
|
--subdiv in/2022-2\ SubdivisionCodes.csv \
|
||||||
--out locode_db
|
--out locode_db
|
||||||
chmod 644 locode_db
|
chmod 644 locode_db
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue