-
Get the CSV from geodatasource, contains the following:
GEODATASOURCE-CITIES-FREE.TXT GEODATASOURCE-COUNTRY.TXT GEODATASOURCE_LICENSE_AGREEMENT.PDF GEODATASOURCE-REGION.TXT GEODATASOURCE-SUBREGION.TXT README.HTML
-
Check
GEODATASOURCE-CITIES-FREE.TXT
. if it contains multiple line endings: resolve withdos2unix GEODATASOURCE-CITIES-FREE.TXT
-
Import the
city
CSV with:LOAD DATA LOCAL INFILE 'D:/Users/ZiriusPH/Desktop/New folder/GEODATASOURCE-CITIES-FREE.TXT' INTO TABLE `city` FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\r\n' IGNORE 1 LINES (cc_fips,full_name_nd);
-
Import the
country
csv with:LOAD DATA LOCAL INFILE 'D:/Users/ZiriusPH/Desktop/New folder/GEODATASOURCE-COUNTRY.TXT' INTO TABLE `country` FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\r\n' IGNORE 1 LINES (cc_fips,cc_iso,tld,country_name);
-
Notifications
You must be signed in to change notification settings - Fork 0
arvilmena/sf4-geodatasource-api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published