v.in.geonames.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <h2>DESCRIPTION</h2>
  2. <em>v.in.geonames</em> imports Geonames.org country
  3. files (Gazetteer data) into a GRASS vector points map. The country files
  4. can be downloaded from the
  5. <a href="http://download.geonames.org/export/dump/">GeoNames Data Dump Server</a>.
  6. The script generates a vector point map. Only original files can be processed
  7. (unzip compressed file first). These Geonames files are encoded in UTF-8 which
  8. is maintained in the GRASS database.
  9. <h2>NOTES</h2>
  10. The current DB connection is used to write the database table.
  11. <p>If importing into a DBF database, the original column names longer that 10 characters
  12. are shortened to 10 characters to meet the DBF column name restrictions. If this is a
  13. problem consider choosing another database driver with <em>db.connect</em>.
  14. The main 'geoname' table has the following fields
  15. <pre>
  16. geonameid : integer id of record in geonames database
  17. name : name of geographical point (utf8) varchar(200)
  18. asciiname : name of geographical point in plain ascii characters, varchar(200)
  19. alternatenames : alternatenames, comma separated varchar(4000)
  20. latitude : latitude in decimal degrees (wgs84)
  21. longitude : longitude in decimal degrees (wgs84)
  22. feature class : see http://www.geonames.org/export/codes.html, char(1)
  23. feature code : see http://www.geonames.org/export/codes.html, varchar(10)
  24. country code : ISO-3166 2-letter country code, 2 characters
  25. cc2 : alternate country codes, comma separated, ISO-3166 2-letter country code, 60 characters
  26. admin1 code : fipscode (subject to change to iso code), isocode for the us and ch, see file admin1Codes.txt for display names of this code; varchar(20)
  27. admin2 code : code for the second administrative division, a county in the US, see file admin2Codes.txt; varchar(80)
  28. admin3 code : code for third level administrative division, varchar(20)
  29. admin4 code : code for fourth level administrative division, varchar(20)
  30. population : integer
  31. elevation : in meters, integer
  32. gtopo30 : average elevation of 30'x30' (ca 900mx900m) area in meters, integer
  33. timezone : the timezone id (see file http://download.geonames.org/export/dump/timeZones.txt)
  34. modification date : date of last modification in yyyy-MM-dd format
  35. </pre>
  36. <h2>SEE ALSO</h2>
  37. <em>
  38. <a href="db.connect.html">db.connect</a>,
  39. <a href="v.select.html">v.select</a>
  40. </em>
  41. <h2>REFERENCES</h2>
  42. <a href="http://www.geonames.org">GeoNames Web site</a><br>
  43. <a href="http://download.geonames.org/export/dump/">GeoNames Data Dump Server</a>
  44. <h2>AUTHOR</h2>
  45. <a href="http://www.grassbook.org/">Markus Neteler</a>
  46. <p><i>Last changed: $Date$</i>