10.04.2010, 13:22
(This post was last modified: 10.04.2010, 13:24 by routeconverter.)
(10.04.2010, 10:05)womisa Wrote: Eventuell kannst du das mal im GTA anschauen, wie das dort gehandelt wird.
So wie es aussieht sind die hgt-Dateien die Basis für den Geonames SRTM3 Webservice (Beispiel: http://ws.geonames.org/srtm3?lat=50.01&lng=10.2)
Leider habe ich keine freie Java Bibliothek gefunden, die *.hgt-Dateien lesen kann. Geonames selbst bietet für jeden Ländercode eine Datei an mit folgendem Format:
Quote:The main 'geoname' table has the following fields :
---------------------------------------------------
geonameid : integer id of record in geonames database
name : name of geographical point (utf8) varchar(200)
asciiname : name of geographical point in plain ascii characters, varchar(200)
alternatenames : alternatenames, comma separated varchar(5000)
latitude : latitude in decimal degrees (wgs84)
longitude : longitude in decimal degrees (wgs84)
feature class : see http://www.geonames.org/export/codes.html, char(1)
feature code : see http://www.geonames.org/export/codes.html, varchar(10)
country code : ISO-3166 2-letter country code, 2 characters
cc2 : alternate country codes, comma separated, ISO-3166 2-letter country code, 60 characters
admin1 code : fipscode (subject to change to iso code), see exceptions below, see file admin1Codes.txt for display names of this code; varchar(20)
admin2 code : code for the second administrative division, a county in the US, see file admin2Codes.txt; varchar(80)
admin3 code : code for third level administrative division, varchar(20)
admin4 code : code for fourth level administrative division, varchar(20)
population : bigint (4 byte int)
elevation : in meters, integer
gtopo30 : average elevation of 30'x30' (ca 900mx900m) area in meters, integer
timezone : the timezone id (see file timeZone.txt)
modification date : date of last modification in yyyy-MM-dd format
Für EG (ich nehme an Ägypten) steht da z.B. drin
Quote:6413066 Khosh el-Daba Khosh el-Daba 28.61778 34.08028 L AREA EG 26 0 1290 Africa/Cairo 2007-03-19
Irgendwie sehe ich jedoch nicht wie man damit dem Webservice emulieren kann, ohne eine Datenbank aufzubauen, da die Höhendaten natürlich nicht für jede Lon/Lat-Kombination zur Verfügung stehen.
--
Christian
Christian
