gns2shp (Re: Extension hacking)
Anthony Lenton
antoniolenton at gmail.com
Wed Jun 11 05:45:30 CEST 2008
On Mon, Jun 9, 2008 at 11:15 AM, Bernhard Reiter <bernhard at intevation.de> wrote:
>> Also, I don't know if it would be better to update to the new file
>> format, or to make it flexible so that the user can select the lat/lon
>> columns, and the other columns are taken as data, or something.
>
> I can't tell. If there is a gns file format documentation, this would help us
> to answer this question. :) I would make it flexible only if the
> specification demands it.
>
The closest to a documentation for the format that I could find was here:
http://earth-info.nga.mil/gns/html/gis_countryfiles.htm
So I patched the extension a bit and pasted the file description in to
a readme file. I also fixed the test and replaced the ls.txt test
file for the new format (that's what most of the patch is :-/ ).
Kind regards,
--
Anthony Lenton
Except - The good guys in software development
http://except.com.ar
Index: Extensions/gns2shp/test/test_gns2shp.py
===================================================================
--- Extensions/gns2shp/test/test_gns2shp.py (revision 2841)
+++ Extensions/gns2shp/test/test_gns2shp.py (working copy)
@@ -48,7 +48,7 @@
n = gns2shp(filename, dest_filename)
# is the number of shapes correct?
- eq(n, 88) # what gns2shp reports
+ eq(n, 109) # what gns2shp reports
# and now the actually written ones
shp = shapelib.ShapeFile(dest_filename)
numshapes, shapetype, mins, maxs = shp.info()
@@ -61,7 +61,7 @@
field_types = { 'RC': FTInteger,
'UFI': FTInteger,
'UNI': FTInteger,
- 'UTM': FTString,
+ 'MGRS': FTString,
'JOG': FTString,
'FC': FTString,
'DSG': FTString,
@@ -69,7 +69,8 @@
'CC1': FTString,
'ADM1': FTString,
'ADM2': FTString,
- 'DIM': FTInteger,
+ 'POP': FTInteger,
+ 'ELEV': FTInteger,
'CC2': FTString,
'NT': FTString,
'LC': FTString,
Index: Extensions/gns2shp/test/ls.txt
===================================================================
--- Extensions/gns2shp/test/ls.txt (revision 2841)
+++ Extensions/gns2shp/test/ls.txt (working copy)
@@ -1,89 +1,110 @@
-RC UFI UNI DD_LAT DD_LONG DMS_LAT DMS_LONG UTM JOG FC DSG PC CC1 ADM1 ADM2 DIM CC2 NT LC SHORT_FORM GENERIC SORT_NAME FULL_NAME FULL_NAME_ND MODIFY_DATE
-1 -1187145 -1749126 47.0666667 9.5000000 470400 93000 NT31 NL32-02 A ADM1
LS 00 N BALZERS Balzers Balzers 1993-12-22
-1 -1187146 -1749127 47.0666667 9.5000000 470400 93000 NT31 NL32-02 P PPL LS 00 N BALZERS Balzers Balzers 1993-12-22
-1 -1187147 -1749128 47.2166667 9.5000000 471300 93000 NT32 NL32-02 P PPL LS 00 N BENDERN Bendern Bendern 1993-12-22
-1 -1187148 -1749129 47.0666667 9.6166667 470400 93700 NT41 NL32-02 T PASS
LS 00 N BETTLERJOCH Bettlerjoch Bettlerjoch 1993-12-22
-1 -1187170 -1749130 47.1833333 9.5333333 471100 93200 NT42 NL32-02 P PPL LS 00 V BLANKEN Blanken Blanken 1993-12-22
-1 -1187149 -1749131 47.1666667 9.5500000 471000 93300 NT42 NL32-02 T MTS LS 00 N DREISCHWESTERN Drei
Schwestern Drei Schwestern 1993-12-22
-1 -1187149 -1749132 47.1666667 9.5500000 471000 93300 NT42 NL32-02 T MTS LS 00 V DREYSCHWESTERN Drey
Schwestern Drey Schwestern 1993-12-22
-1 419575 535546 47.1500000 9.5166667 470900 93100 NT32 NL32-02 P PPL LS 00 V EBAHOLZ Ebaholz Ebaholz 1999-01-26
-1 419575 535575 47.1500000 9.5166667 470900 93100 NT32 NL32-02 P PPL LS 00 N EBENHOLZ Ebenholz Ebenholz 1999-01-26
-1 -1187152 -1749133 47.0500000 9.5666667 470300 93400 NT41 NL32-02 T MT LS 00 V ENDERLINHORN Enderlin
Horn Enderlin Horn 1993-12-22
-1 -1187150 -1749134 47.2166667 9.5166667 471300 93100 NT32 NL32-02 A ADM1
LS 00 N ESCHEN Eschen Eschen 1993-12-22
-1 -1187151 -1749135 47.2166667 9.5166667 471300 93100 NT32 NL32-02 P PPL LS 00 N ESCHEN Eschen Eschen 1993-12-22
-1 -1187150 -1749136 47.2166667 9.5166667 471300 93100 NT32 NL32-02 A ADM1
LS 00 V ESCHENNEDELN Eschen-Nedeln Eschen-Nedeln 1993-12-22
-1 -1187152 -1749137 47.0500000 9.5666667 470300 93400 NT41 NL32-02 T MT LS 00 N FALKNIS Falknis Falknis 1993-12-22
-1 -1187152 -1749138 47.0500000 9.5666667 470300 93400 NT41 NL32-02 T MT LS 00 V FALKNISHORN Falknis
Horn Falknis Horn 1993-12-22
-1 -1187153 -1749139 47.2000000 9.5833333 471200 93500 NT42 NL32-02 T MT LS 00 N FRASTANZERSAND Frastanzer
Sand Frastanzer Sand 1993-12-22
-1 -1187154 -1749140 47.1333333 9.5500000 470800 93300 NT42 NL32-02 T MT LS 00 N FURSTENSTEIG Fürstensteig Furstensteig 1993-12-22
-1 419573 535544 47.1333333 9.5333333 470800 93200 NT42 NL32-02 P PPL LS 00 N GAFLEI Gaflei Gaflei 1999-01-26
-1 -1187155 -1749141 47.1500000 9.6166667 470900 93700 NT42 NL32-02 T MT LS 00 N GALLINAKOPF Gallinakopf Gallinakopf 1993-12-22
-1 -1187157 -1749142 47.2166667 9.5000000 471300 93000 NT32 NL32-02 P PPL LS 00 V GAMBRIN Gambrin Gambrin 1993-12-22
-1 -1187156 -1749143 47.2166667 9.5000000 471300 93000 NT32 NL32-02 A ADM1
LS 00 N GAMPRIN Gamprin Gamprin 1993-12-22
-1 -1187157 -1749144 47.2166667 9.5000000 471300 93000 NT32 NL32-02 P PPL LS 00 N GAMPRIN Gamprin Gamprin 1993-12-22
-1 -1187156 -1749145 47.2166667 9.5000000 471300 93000 NT32 NL32-02 A ADM1
LS 00 V GAMPRINBENDERN Gamprin-Bendern Gamprin-Bendern 1993-12-22
-1 -1187158 -1749146 47.1666667 9.5666667 471000 93400 NT42 NL32-02 T MT LS 00 N GARSELLAKOPF Garsellakopf Garsellakopf 1993-12-22
-1 -1187160 -1749147 47.0500000 9.5833333 470300 93500 NT41 NL32-02 T PK LS 00 V GRAUSPITZ Grauspitz Grauspitz 1993-12-22
-1 -1187192 -1749148 47.0500000 9.5833333 470300 93500 NT41 NL32-02 T PK LS 00 V GRAUSPITZ Grauspitz Grauspitz 1993-12-22
-1 -1187159 -1749149 47.2333333 9.5333333 471400 93200 NT43 NL32-02 P PPLX
LS 00 N HINTERERSCHELLENBERG Hinterer Schellenberg Hinterer
Schellenberg 1993-12-22
-1 -1187160 -1749150 47.0500000 9.5833333 470300 93500 NT41 NL32-02 T PK LS 00 N HINTERGRAUSPITZ Hinter-Grauspitz Hinter-Grauspitz 1993-12-22
-1 419566 535536 47.0500000 9.5500000 470300 93300 NT41 NL32-02 T VAL LS 00 N LAWENA Lawena Lawena 1999-01-26
-1 -1187161 -1749151 47.1666667 9.5333333 471000 93200 NT42 NL32-02 A PCLI
LS 00 V LICHTENSTEIN Lichtenstein Lichtenstein 1996-11-29
-1 -1187161 -1749152 47.1666667 9.5333333 471000 93200 NT42 NL32-02 A PCLI
LS 00 V LIECHTENSTEIN Liechtenstein Liechtenstein 1996-11-29
-1 -1187161 -1749154 47.1666667 9.5333333 471000 93200 NT42 NL32-02 A PCLI
LS 00 N GM Liechtenstein Fürstentum LIECHTENSTEIN
FURSTENTUM Fürstentum Liechtenstein Furstentum
Liechtenstein 1996-11-29
-1 -1187161 -1749153 47.1666667 9.5333333 471000 93200 NT42 NL32-02 A PCLI
LS 00 C Liechtenstein LIECHTENSTEIN PRINCIPALITYOF Principality
of Liechtenstein Principality of Liechtenstein 1996-11-29
-1 419565 535533 47.0500000 9.5000000 470300 93000 NT31 NL32-02 P PPL LS 00 N MALS Mäls Mals 1999-01-26
-1 419572 535543 47.1333333 9.5333333 470800 93200 NT42 NL32-02 P PPL LS 00 N MASESCHA Masescha Masescha 1999-01-26
-1 -1187162 -1749155 47.1333333 9.6166667 470800 93700 NT42 NL32-02 T PASS
LS 00 V MATLAJOCH Matla Joch Matla Joch 1994-04-28
-1 -1187162 -1749159 47.1333333 9.6166667 470800 93700 NT42 NL32-02 T PASS
LS 00 AU N MATLERJOCH Matlerjoch Matlerjoch 1994-04-28
-1 -1187181 -1749157 47.1333333 9.6333333 470800 93800 NT42 NL32-02 T MT LS 00 V MATLERKOPF Matler
Kopf Matler Kopf 1993-12-22
-1 -1187162 -1749158 47.1333333 9.6166667 470800 93700 NT42 NL32-02 T PASS
LS 00 LS N MATTAJOCH Mattajoch Mattajoch 1994-04-28
-1 -1187164 -1749160 47.2166667 9.5333333 471300 93200 NT42 NL32-02 P PPL LS 00 V MAUERN Mauern Mauern 1993-12-22
-1 -1187163 -1749161 47.2166667 9.5333333 471300 93200 NT42 NL32-02 A ADM1
LS 00 N MAUREN Mauren Mauren 1993-12-22
-1 -1187164 -1749162 47.2166667 9.5333333 471300 93200 NT42 NL32-02 P PPL LS 00 N MAUREN Mauren Mauren 1993-12-22
-1 -1187163 -1749163 47.2166667 9.5333333 471300 93200 NT42 NL32-02 A ADM1
LS 00 V MAURENSCHAANWALD Mauren-Schaanwald Mauren-Schaanwald 1993-12-22
-1 -1187165 -1749164 47.2333333 9.5333333 471400 93200 NT43 NL32-02 P PPLX
LS 00 N MITTLERERSCHELLENBERG Mittlerer Schellenberg Mittlerer
Schellenberg 1993-12-22
-1 419574 535545 47.1500000 9.5000000 470900 93000 NT32 NL32-02 P PPL LS 00 V MOLIHOLZ Möliholz Moliholz 1999-01-26
-1 419574 535574 47.1500000 9.5000000 470900 93000 NT32 NL32-02 P PPL LS 00 N MUHLEHOLZ Mühleholz Muhleholz 1999-01-26
-1 -1187166 -1749165 47.0500000 9.6000000 470300 93600 NT41 NL32-02 T MT LS 00 N NAAFKOPF Naafkopf Naafkopf 1993-12-22
-1 -1187166 -1749166 47.0500000 9.6000000 470300 93600 NT41 NL32-02 T MT LS 00 V NAUFKOPF Nauf
Kopf Nauf Kopf 1993-12-22
-1 -1187167 -1749167 47.2000000 9.5500000 471200 93300 NT42 NL32-02 P PPL LS 00 N NENDELN Nendeln Nendeln 1993-12-22
-1 -1187168 -1749168 47.1166667 9.6333333 470700 93800 NT41 NL32-02 T MT LS 00 V OCHSENBERG Ochsenberg Ochsenberg 1993-12-22
-1 -1187168 -1749169 47.1166667 9.6333333 470700 93800 NT41 NL32-02 T MT LS 00 N OCHSENKOPF Ochsenkopf Ochsenkopf 1993-12-22
-1 -1187169 -1749170 47.1833333 9.5333333 471100 93200 NT42 NL32-02 A ADM1
LS 00 N PLANKEN Planken Planken 1993-12-22
-1 -1187170 -1749171 47.1833333 9.5333333 471100 93200 NT42 NL32-02 P PPL LS 00 N PLANKEN Planken Planken 1993-12-22
-1 -1187171 -1749172 47.0500000 9.7500000 470300 94500 NT51 NL32-02 T MTS LS 00 V RATIKON Rätikon Ratikon 1993-12-22
-1 -1187171 -1749174 47.0500000 9.7500000 470300 94500 NT51 NL32-02 T MTS LS 00 V RHAETIKON Rhaetikon Rhaetikon 1993-12-22
-1 -1187171 -1749175 47.0500000 9.7500000 470300 94500 NT51 NL32-02 T MTS LS 00 N RHATIKON Rhätikon Rhatikon 1993-12-22
-1 -1187171 -1749176 47.0500000 9.7500000 470300 94500 NT51 NL32-02 T MTS LS 00 V RHATIKONMOUNTAINS Rhätikon
Mountains Rhatikon Mountains 1993-12-22
-1 419569 535539 47.1166667 9.5500000 470700 93300 NT41 NL32-02 P PPL LS 00 V ROTABODA Rotaboda Rotaboda 1999-01-26
-1 419569 535573 47.1166667 9.5500000 470700 93300 NT41 NL32-02 P PPL LS 00 N ROTENBODEN Rotenboden Rotenboden 1999-01-26
-1 -1187174 -1749189 47.2333333 9.5166667 471400 93100 NT33 NL32-02 P PPL LS 00 V RUGELL Rugell Rugell 1993-12-22
-1 -1187173 -1749190 47.2333333 9.5166667 471400 93100 NT33 NL32-02 A ADM1
LS 00 N RUGGELL Ruggell Ruggell 1993-12-22
-1 -1187174 -1749191 47.2333333 9.5166667 471400 93100 NT33 NL32-02 P PPL LS 00 N RUGGELL Ruggell Ruggell 1993-12-22
-1 -1187175 -1749192 47.2333333 9.6333333 471400 93800 NT43 NL32-02 H STM LS 00 N SAMINA Samina Samina 1993-12-22
-1 -1187176 -1749193 47.1666667 9.5833333 471000 93500 NT42 NL32-02 T VAL LS 00 N SAMINATAL Saminatal Saminatal 1993-12-22
-1 -1187176 -1749194 47.1666667 9.5833333 471000 93500 NT42 NL32-02 T VAL LS 00 V SAMINATHAL Samina
Thal Samina Thal 1993-12-22
-1 -1187177 -1749195 47.1000000 9.6333333 470600 93800 NT41 NL32-02 T PASS
LS 00 N SAREISERJOCH Sareiser Joch Sareiser Joch 1993-12-22
-1 -1187178 -1749196 47.1666667 9.5000000 471000 93000 NT32 NL32-02 A ADM1
LS 00 N SCHAAN Schaan Schaan 1993-12-22
-1 -1187179 -1749197 47.1666667 9.5000000 471000 93000 NT32 NL32-02 P PPL LS 00 N SCHAAN Schaan Schaan 1993-12-22
-1 -1187180 -1749198 47.2166667 9.5666667 471300 93400 NT42 NL32-02 P PPL LS 00 N SCHAANWALD Schaanwald Schaanwald 1993-12-22
-1 -1187179 -1749199 47.1666667 9.5000000 471000 93000 NT32 NL32-02 P PPL LS 00 V SCHAN Schan Schan 1993-12-22
-1 -1187181 -1749200 47.1333333 9.6333333 470800 93800 NT42 NL32-02 T MT LS 00 N SCHEIENKOPF Scheienkopf Scheienkopf 1993-12-22
-1 -1187182 -1749201 47.2333333 9.5333333 471400 93200 NT43 NL32-02 A ADM1
LS 00 N SCHELLENBERG Schellenberg Schellenberg 1993-12-22
-1 -1187183 -1749202 47.2333333 9.5333333 471400 93200 NT43 NL32-02 P PPL LS 00 N SCHELLENBERG Schellenberg Schellenberg 1993-12-22
-1 -1187181 -1749203 47.1333333 9.6333333 470800 93800 NT42 NL32-02 T MT LS 00 V SCHEUENKOPF Scheuenkopf Scheuenkopf 1993-12-22
-1 419570 535541 47.1333333 9.5500000 470800 93300 NT42 NL32-02 P PPL LS 00 N SILUM Silum Silum 1999-01-26
-1 419568 535538 47.1166667 9.5666667 470700 93400 NT41 NL32-02 P PPL LS 00 N SUCKA Sücka Sucka 1999-01-26
-1 -1187184 -1749204 47.1000000 9.5333333 470600 93200 NT41 NL32-02 A ADM1
LS 00 N TRIESEN Triesen Triesen 1993-12-22
-1 -1187185 -1749205 47.1000000 9.5333333 470600 93200 NT41 NL32-02 P PPL LS 00 N TRIESEN Triesen Triesen 1993-12-22
-1 -1187186 -1749206 47.1166667 9.5333333 470700 93200 NT41 NL32-02 A ADM1
LS 00 N TRIESENBERG Triesenberg Triesenberg 1993-12-22
-1 -1187187 -1749207 47.1166667 9.5333333 470700 93200 NT41 NL32-02 P PPL LS 00 N TRIESENBERG Triesenberg Triesenberg 1993-12-22
-1 -1187188 -1749208 47.2500000 9.5333333 471500 93200 NT43 NL32-02 H MRSH
LS 00 N UNTERESRIET Unteres Riet Unteres Riet 1993-12-22
-1 -1187189 -1749209 47.1333333 9.5166667 470800 93100 NT32 NL32-02 A ADM1
LS 00 N VADUZ Vaduz Vaduz 1993-12-22
-1 -1187190 -1749210 47.1333333 9.5166667 470800 93100 NT32 NL32-02 P PPLC
LS 00 N VADUZ Vaduz Vaduz 1995-04-26
-1 419571 535542 47.0833333 9.5833333 470500 93500 NT41 NL32-02 T VAL LS 00 N VALUNA Valüna Valuna 1999-01-26
-1 -1187191 -1749211 47.2333333 9.5333333 471400 93200 NT43 NL32-02 P PPLX
LS 00 N VORDERERSCHELLENBERG Vorderer Schellenberg Vorderer
Schellenberg 1993-12-22
-1 -1187192 -1749212 47.0500000 9.5833333 470300 93500 NT41 NL32-02 T PK LS 00 N VORDERGRAUSPITZ Vorder-Grauspitz Vorder-Grauspitz 1993-12-22
-1 419567 535537 47.1000000 9.5333333 470600 93200 NT41 NL32-02 P PPL LS 00 V WANGERBARG Wangerbärg Wangerbarg 1999-01-26
-1 419567 535572 47.1000000 9.5333333 470600 93200 NT41 NL32-02 P PPL LS 00 N WANGERBERG Wangerberg Wangerberg 1999-01-26
+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
+1 -1187145 -1749126 47.066667 9.5 470400 93000 32TNT3796512694 NL32-02 A ADM1 LS 01 V BALZERS Balzers Balzers 2004-10-27
+1 -1187145 9224799 47.066667 9.5 470400 93000 32TNT3796512694 NL32-02 A ADM1 LS 01 N Balzers Gemeinde GEMEINDEBALZERS Gemeinde
Balzers Gemeinde Balzers 2004-10-27
+1 -1187145 9224888 47.066667 9.5 470400 93000 32TNT3796512694 NL32-02 A ADM1 LS 01 V BALZERSMALS Balzers
/ Mäls Balzers / Mals 2004-10-27
+1 -1187146 -1749127 47.066667 9.5 470400 93000 32TNT3796512694 NL32-02 P PPLA LS 01 N BALZERS Balzers Balzers 2004-10-27
+1 -1187147 -1749128 47.216667 9.5 471300 93000 32TNT3785929363 NL32-02 P PPL LS 03 N BENDERN Bendern Bendern 2004-10-27
+1 -1187148 -1749129 47.066667 9.616667 470400 93700 32TNT4682412757 NL32-02 T PASS LS 00 N BETTLERJOCH Bettlerjoch Bettlerjoch 1993-12-22
+1 -1187149 -1749131 47.166667 9.55 471000 93300 32TNT4168423832 NL32-02 T MTS LS 00 N DREISCHWESTERN Drei
Schwestern Drei Schwestern 1993-12-22
+1 -1187149 -1749132 47.166667 9.55 471000 93300 32TNT4168423832 NL32-02 T MTS LS 00 V DREYSCHWESTERN Drey
Schwestern Drey Schwestern 1993-12-22
+1 -1187150 -1749134 47.216667 9.516667 471300 93100 32TNT3912129371 NL32-02 A ADM1 LS 02 V ESCHEN Eschen Eschen 2004-10-27
+1 -1187150 -1749136 47.216667 9.516667 471300 93100 32TNT3912129371 NL32-02 A ADM1 LS 02 V ESCHENNEDELN Eschen-Nedeln Eschen-Nedeln 2004-10-27
+1 -1187150 9224821 47.216667 9.516667 471300 93100 32TNT3912129371 NL32-02 A ADM1 LS 02 N Eschen Gemeinde GEMEINDEESCHEN Gemeinde
Eschen Gemeinde Eschen 2004-10-27
+1 -1187150 9224897 47.216667 9.516667 471300 93100 32TNT3912129371 NL32-02 A ADM1 LS 02 V ESCHENNENDELN Eschen
/ Nendeln Eschen / Nendeln 2004-10-27
+1 -1187151 -1749135 47.216667 9.516667 471300 93100 32TNT3912129371 NL32-02 P PPLA LS 02 N ESCHEN Eschen Eschen 2004-10-27
+1 -1187152 -1749133 47.05 9.566667 470300 93400 32TNT4304110876 NL32-02 T MT LS 00 V ENDERLINHORN Enderlin
Horn Enderlin Horn 1993-12-22
+1 -1187152 -1749137 47.05 9.566667 470300 93400 32TNT4304110876 NL32-02 T MT LS 00 N FALKNIS Falknis Falknis 1993-12-22
+1 -1187152 -1749138 47.05 9.566667 470300 93400 32TNT4304110876 NL32-02 T MT LS 00 V FALKNISHORN Falknis
Horn Falknis Horn 1993-12-22
+1 -1187153 -1749139 47.2 9.583333 471200 93500 32TNT4418227555 NL32-02 T MT LS 00 N FRASTANZERSAND Frastanzer
Sand Frastanzer Sand 1993-12-22
+1 -1187154 -1749140 47.133333 9.55 470800 93300 32TNT4171020128 NL32-02 T MT LS 00 N FURSTENSTEIG Fürstensteig Furstensteig 1993-12-22
+1 -1187155 -1749141 47.15 9.616667 470900 93700 32TNT4675122018 NL32-02 T MT LS 00 N GALLINAKOPF Gallinakopf Gallinakopf 1993-12-22
+1 -1187156 -1749143 47.216667 9.5 471300 93000 32TNT3785929363 NL32-02 A ADM1 LS 03 V GAMPRIN Gamprin Gamprin 2004-10-27
+1 -1187156 -1749145 47.216667 9.5 471300 93000 32TNT3785929363 NL32-02 A ADM1 LS 03 V GAMPRINBENDERN Gamprin-Bendern Gamprin-Bendern 2004-10-27
+1 -1187156 9224845 47.216667 9.5 471300 93000 32TNT3785929363 NL32-02 A ADM1 LS 03 V GEMEINDEGAMPRINBENDERN Gemeinde
Gamprin-Bendern Gemeinde Gamprin-Bendern 2004-10-27
+1 -1187156 9224847 47.216667 9.5 471300 93000 32TNT3785929363 NL32-02 A ADM1 LS 03 N Gamprin Gemeinde GEMEINDEGAMPRIN Gemeinde
Gamprin Gemeinde Gamprin 2004-10-27
+1 -1187157 -1749142 47.216667 9.5 471300 93000 32TNT3785929363 NL32-02 P PPLA LS 03 V GAMBRIN Gambrin Gambrin 2004-10-27
+1 -1187157 -1749144 47.216667 9.5 471300 93000 32TNT3785929363 NL32-02 P PPLA LS 03 N GAMPRIN Gamprin Gamprin 2004-10-27
+1 -1187157 9224858 47.216667 9.5 471300 93000 32TNT3785929363 NL32-02 P PPLA LS 03 V GAMPRINBENDERN Gamprin-Bendern Gamprin-Bendern 2004-10-27
+1 -1187158 -1749146 47.166667 9.566667 471000 93400 32TNT4294723841 NL32-02 T MT LS 00 N GARSELLAKOPF Garsellakopf Garsellakopf 1993-12-22
+1 -1187159 -1749149 47.233333 9.533333 471400 93200 32TNT4037031232 NL32-02 P PPLX LS 08 V HINTERERSCHELLENBERG Hinterer
Schellenberg Hinterer Schellenberg 2004-10-27
+1 -1187159 9246078 47.233333 9.533333 471400 93200 32TNT4037031232 NL32-02 P PPLX LS 08 V HINTERSCHELLENBERG Hinter-Schellenberg Hinter-Schellenberg 2004-10-27
+1 -1187159 9246168 47.233333 9.533333 471400 93200 32TNT4037031232 NL32-02 P PPLX LS 08 N HINTERSCHELLENBERG Hinterschellenberg Hinterschellenberg 2004-10-27
+1 -1187160 -1749147 47.05 9.583333 470300 93500 32TNT4430710886 NL32-02 T PK LS 00 V GRAUSPITZ Grauspitz Grauspitz 1993-12-22
+1 -1187160 -1749150 47.05 9.583333 470300 93500 32TNT4430710886 NL32-02 T PK LS 00 N HINTERGRAUSPITZ Hinter-Grauspitz Hinter-Grauspitz 1993-12-22
+1 -1187161 -1749151 47.166667 9.533333 471000 93200 32TNT4042123823 NL32-02 A PCLI LS 00 V LICHTENSTEIN Lichtenstein Lichtenstein 2007-02-28
+1 -1187161 -1749153 47.166667 9.533333 471000 93200 32TNT4042123823 NL32-02 A PCLI LS 00 C eng PRINCIPALITYOFLIECHTENSTEIN Principality
of Liechtenstein Principality of Liechtenstein 2007-02-28
+1 -1187161 -1749154 47.166667 9.533333 471000 93200 32TNT4042123823 NL32-02 A PCLI LS 00 N deu Liechtenstein Fürstentum FURSTENTUMLIECHTENSTEIN Fürstentum
Liechtenstein Furstentum Liechtenstein 2007-02-28
+1 -1187162 -1749155 47.133333 9.616667 470800 93700 32TNT4676620166 NL32-02 T PASS LS 00 V MATLAJOCH Matla
Joch Matla Joch 1994-04-28
+1 -1187162 -1749158 47.133333 9.616667 470800 93700 32TNT4676620166 NL32-02 T PASS LS 00 LS N MATTAJOCH Mattajoch Mattajoch 1994-04-28
+1 -1187162 -1749159 47.133333 9.616667 470800 93700 32TNT4676620166 NL32-02 T PASS LS 00 AU N MATLERJOCH Matlerjoch Matlerjoch 1994-04-28
+1 -1187163 -1749161 47.216667 9.533333 471300 93200 32TNT4038329380 NL32-02 A ADM1 LS 04 V MAUREN Mauren Mauren 2004-10-27
+1 -1187163 -1749163 47.216667 9.533333 471300 93200 32TNT4038329380 NL32-02 A ADM1 LS 04 V MAURENSCHAANWALD Mauren-Schaanwald Mauren-Schaanwald 2004-10-27
+1 -1187163 9224862 47.216667 9.533333 471300 93200 32TNT4038329380 NL32-02 A ADM1 LS 04 N Mauren Gemeinde GEMEINDEMAUREN Gemeinde
Mauren Gemeinde Mauren 2004-10-27
+1 -1187164 -1749160 47.216667 9.533333 471300 93200 32TNT4038329380 NL32-02 P PPLA LS 04 V MAUERN Mauern Mauern 2004-10-27
+1 -1187164 -1749162 47.216667 9.533333 471300 93200 32TNT4038329380 NL32-02 P PPLA LS 04 N MAUREN Mauren Mauren 2004-10-27
+1 -1187165 -1749164 47.233333 9.533333 471400 93200 32TNT4037031232 NL32-02 P PPLX LS 08 V MITTLERERSCHELLENBERG Mittlerer
Schellenberg Mittlerer Schellenberg 2004-10-27
+1 -1187165 9246077 47.233333 9.533333 471400 93200 32TNT4037031232 NL32-02 P PPLX LS 08 V MITTLERSCHELLENBERG Mittler-Schellenberg Mittler-Schellenberg 2004-10-27
+1 -1187165 9246167 47.233333 9.533333 471400 93200 32TNT4037031232 NL32-02 P PPLX LS 08 N MITTLERSCHELLENBERG Mittlerschellenberg Mittlerschellenberg 2004-10-27
+1 -1187166 -1749165 47.05 9.6 470300 93600 32TNT4557310895 NL32-02 T MT LS 00 N NAAFKOPF Naafkopf Naafkopf 1993-12-22
+1 -1187166 -1749166 47.05 9.6 470300 93600 32TNT4557310895 NL32-02 T MT LS 00 V NAUFKOPF Nauf
Kopf Nauf Kopf 1993-12-22
+1 -1187167 -1749167 47.2 9.55 471200 93300 32TNT4165827536 NL32-02 P PPL LS 02 N NENDELN Nendeln Nendeln 2004-10-27
+1 -1187168 -1749168 47.116667 9.633333 470700 93800 32TNT4804518324 NL32-02 T MT LS 00 V OCHSENBERG Ochsenberg Ochsenberg 1993-12-22
+1 -1187168 -1749169 47.116667 9.633333 470700 93800 32TNT4804518324 NL32-02 T MT LS 00 N OCHSENKOPF Ochsenkopf Ochsenkopf 1993-12-22
+1 -1187169 -1749170 47.183333 9.533333 471100 93200 32TNT4040825676 NL32-02 A ADM1 LS 05 V PLANKEN Planken Planken 2004-10-27
+1 -1187169 9224865 47.183333 9.533333 471100 93200 32TNT4040825676 NL32-02 A ADM1 LS 05 N Planken Gemeinde GEMEINDEPLANKEN Gemeinde
Planken Gemeinde Planken 2004-10-27
+1 -1187170 -1749130 47.183333 9.533333 471100 93200 32TNT4040825676 NL32-02 P PPLA LS 05 V BLANKEN Blanken Blanken 2004-10-27
+1 -1187170 -1749171 47.183333 9.533333 471100 93200 32TNT4040825676 NL32-02 P PPLA LS 05 N PLANKEN Planken Planken 2004-10-27
+1 -1187171 -1749172 47.05 9.75 470300 94500 32TNT5696610993 NL32-02 T MTS LS 00 V RATIKON Rätikon Ratikon 1993-12-22
+1 -1187171 -1749174 47.05 9.75 470300 94500 32TNT5696610993 NL32-02 T MTS LS 00 V RHAETIKON Rhaetikon Rhaetikon 1993-12-22
+1 -1187171 -1749175 47.05 9.75 470300 94500 32TNT5696610993 NL32-02 T MTS LS 00 N RHATIKON Rhätikon Rhatikon 1993-12-22
+1 -1187171 -1749176 47.05 9.75 470300 94500 32TNT5696610993 NL32-02 T MTS LS 00 V RHATIKONMOUNTAINS Rhätikon
Mountains Rhatikon Mountains 1993-12-22
+1 -1187173 -1749190 47.233333 9.516667 471400 93100 32TNT3910931224 NL32-02 A ADM1 LS 06 V RUGGELL Ruggell Ruggell 2004-10-27
+1 -1187173 9224866 47.233333 9.516667 471400 93100 32TNT3910931224 NL32-02 A ADM1 LS 06 N Ruggell Gemeinde GEMEINDERUGGELL Gemeinde
Ruggell Gemeinde Ruggell 2004-10-27
+1 -1187174 -1749189 47.233333 9.516667 471400 93100 32TNT3910931224 NL32-02 P PPLA LS 06 V RUGELL Rugell Rugell 2004-10-27
+1 -1187174 -1749191 47.233333 9.516667 471400 93100 32TNT3910931224 NL32-02 P PPLA LS 06 N RUGGELL Ruggell Ruggell 2004-10-27
+1 -1187175 -1749192 47.233333 9.633333 471400 93800 32TNT4793931289 NL32-02 H STM LS 00 N SAMINA Samina Samina 1993-12-22
+1 -1187176 -1749193 47.166667 9.583333 471000 93500 32TNT4421023851 NL32-02 T VAL LS 00 N SAMINATAL Saminatal Saminatal 1993-12-22
+1 -1187176 -1749194 47.166667 9.583333 471000 93500 32TNT4421023851 NL32-02 T VAL LS 00 V SAMINATHAL Samina
Thal Samina Thal 1993-12-22
+1 -1187177 -1749195 47.1 9.633333 470600 93800 32TNT4806016471 NL32-02 T PASS LS 00 N SAREISERJOCH Sareiser
Joch Sareiser Joch 1993-12-22
+1 -1187178 -1749196 47.166667 9.5 471000 93000 32TNT3789423807 NL32-02 A ADM1 LS 07 V SCHAAN Schaan Schaan 2004-10-27
+1 -1187178 9224868 47.166667 9.5 471000 93000 32TNT3789423807 NL32-02 A ADM1 LS 07 N Schaan Gemeinde GEMEINDESCHAAN Gemeinde
Schaan Gemeinde Schaan 2004-10-27
+1 -1187179 -1749197 47.166667 9.5 471000 93000 32TNT3789423807 NL32-02 P PPLA LS 07 N SCHAAN Schaan Schaan 2004-10-27
+1 -1187179 -1749199 47.166667 9.5 471000 93000 32TNT3789423807 NL32-02 P PPLA LS 07 V SCHAN Schan Schan 2004-10-27
+1 -1187180 -1749198 47.216667 9.566667 471300 93400 32TNT4290729398 NL32-02 P PPL LS 04 N SCHAANWALD Schaanwald Schaanwald 2004-10-27
+1 -1187181 -1749157 47.133333 9.633333 470800 93800 32TNT4803020176 NL32-02 T MT LS 00 V MATLERKOPF Matler
Kopf Matler Kopf 1993-12-22
+1 -1187181 -1749200 47.133333 9.633333 470800 93800 32TNT4803020176 NL32-02 T MT LS 00 N SCHEIENKOPF Scheienkopf Scheienkopf 1993-12-22
+1 -1187181 -1749203 47.133333 9.633333 470800 93800 32TNT4803020176 NL32-02 T MT LS 00 V SCHEUENKOPF Scheuenkopf Scheuenkopf 1993-12-22
+1 -1187182 -1749201 47.233333 9.533333 471400 93200 32TNT4037031232 NL32-02 A ADM1 LS 08 V SCHELLENBERG Schellenberg Schellenberg 2004-10-27
+1 -1187182 9224871 47.233333 9.533333 471400 93200 32TNT4037031232 NL32-02 A ADM1 LS 08 N Schellenberg Gemeinde GEMEINDESCHELLENBERG Gemeinde
Schellenberg Gemeinde Schellenberg 2004-10-27
+1 -1187183 -1749202 47.233333 9.533333 471400 93200 32TNT4037031232 NL32-02 P PPLA LS 08 N SCHELLENBERG Schellenberg Schellenberg 2004-10-27
+1 -1187184 -1749204 47.1 9.533333 470600 93200 32TNT4047116415 NL32-02 A ADM1 LS 09 V TRIESEN Triesen Triesen 2004-10-27
+1 -1187184 9224876 47.1 9.533333 470600 93200 32TNT4047116415 NL32-02 A ADM1 LS 09 N Triesen Gemeinde GEMEINDETRIESEN Gemeinde
Triesen Gemeinde Triesen 2004-10-27
+1 -1187185 -1749205 47.1 9.533333 470600 93200 32TNT4047116415 NL32-02 P PPLA LS 09 N TRIESEN Triesen Triesen 2004-10-27
+1 -1187186 -1749206 47.116667 9.533333 470700 93200 32TNT4045918267 NL32-02 A ADM1 LS 10 V TRIESENBERG Triesenberg Triesenberg 2004-10-27
+1 -1187186 9224880 47.116667 9.533333 470700 93200 32TNT4045918267 NL32-02 A ADM1 LS 10 N Triesenberg Gemeinde GEMEINDETRIESENBERG Gemeinde
Triesenberg Gemeinde Triesenberg 2004-10-27
+1 -1187186 9224895 47.116667 9.533333 470700 93200 32TNT4045918267 NL32-02 A ADM1 LS 10 V TRIESENBERGSTEGMALBUN Triesenberg
/ Steg / Malbun Triesenberg / Steg / Malbun 2004-10-27
+1 -1187187 -1749207 47.116667 9.533333 470700 93200 32TNT4045918267 NL32-02 P PPLA LS 10 N TRIESENBERG Triesenberg Triesenberg 2004-10-27
+1 -1187188 -1749208 47.25 9.533333 471500 93200 32TNT4035733084 NL32-02 H MRSH LS 00 N UNTERESRIET Unteres
Riet Unteres Riet 1993-12-22
+1 -1187189 -1749209 47.133333 9.516667 470800 93100 32TNT3918220111 NL32-02 A ADM1 LS 11 V VADUZ Vaduz Vaduz 2004-10-27
+1 -1187189 9224884 47.133333 9.516667 470800 93100 32TNT3918220111 NL32-02 A ADM1 LS 11 N Vaduz Gemeinde GEMEINDEVADUZ Gemeinde
Vaduz Gemeinde Vaduz 2004-10-27
+1 -1187190 -1749210 47.133333 9.516667 470800 93100 32TNT3918220111 NL32-02 P PPLC LS 11 N VADUZ Vaduz Vaduz 2004-10-27
+1 -1187191 -1749211 47.233333 9.533333 471400 93200 32TNT4037031232 NL32-02 P PPLX LS 08 V VORDERERSCHELLENBERG Vorderer
Schellenberg Vorderer Schellenberg 2004-10-27
+1 -1187191 9246076 47.233333 9.533333 471400 93200 32TNT4037031232 NL32-02 P PPLX LS 08 V VORDERSCHELLENBERG Vorder-Schellenberg Vorder-Schellenberg 2004-10-27
+1 -1187191 9246166 47.233333 9.533333 471400 93200 32TNT4037031232 NL32-02 P PPLX LS 08 N VORDERSCHELLENBERG Vorderschellenberg Vorderschellenberg 2004-10-27
+1 -1187192 -1749148 47.05 9.583333 470300 93500 32TNT4430710886 NL32-02 T PK LS 00 V GRAUSPITZ Grauspitz Grauspitz 1993-12-22
+1 -1187192 -1749212 47.05 9.583333 470300 93500 32TNT4430710886 NL32-02 T PK LS 00 N VORDERGRAUSPITZ Vorder-Grauspitz Vorder-Grauspitz 1993-12-22
+1 419565 535533 47.05 9.5 470300 93000 32TNT3797710842 NL32-02 P PPL LS 01 N MALS Mäls Mals 2004-10-27
+1 419566 535536 47.05 9.55 470300 93300 32TNT4177510867 NL32-02 T VAL LS 00 N LAWENA Lawena Lawena 1999-01-26
+1 419567 535537 47.1 9.533333 470600 93200 32TNT4047116415 NL32-02 P PPL LS 10 V WANGERBARG Wangerbärg Wangerbarg 2004-10-27
+1 419567 535572 47.1 9.533333 470600 93200 32TNT4047116415 NL32-02 P PPL LS 10 N WANGERBERG Wangerberg Wangerberg 2004-10-27
+1 419568 535538 47.116667 9.566667 470700 93400 32TNT4298718285 NL32-02 P PPL LS 10 N SUCKA Sücka Sucka 2004-10-27
+1 419569 535539 47.125 9.533333 470730 93200 32TNT4045219193 NL32-02 P PPL LS 10 V ROTABODA Rotaboda Rotaboda 2004-10-27
+1 419569 535573 47.125 9.533333 470730 93200 32TNT4045219193 NL32-02 P PPL LS 10 N ROTENBODEN Rotenboden Rotenboden 2004-10-27
+1 419570 535541 47.133333 9.55 470800 93300 32TNT4171020128 NL32-02 P PPL LS 10 N SILUM Silum Silum 2004-10-27
+1 419571 535542 47.083333 9.583333 470500 93500 32TNT4427914590 NL32-02 T VAL LS 00 N VALUNA Valüna Valuna 1999-01-26
+1 419572 535543 47.133333 9.533333 470800 93200 32TNT4044620119 NL32-02 P PPL LS 10 N MASESCHA Masescha Masescha 2004-10-27
+1 419573 535544 47.133333 9.533333 470800 93200 32TNT4044620119 NL32-02 P PPL LS 10 N GAFLEI Gaflei Gaflei 2004-10-27
+1 419574 535545 47.15 9.5 470900 93000 32TNT3790621955 NL32-02 P PPL LS 11 V MOLIHOLZ Möliholz Moliholz 2004-10-27
+1 419574 535574 47.15 9.5 470900 93000 32TNT3790621955 NL32-02 P PPL LS 11 N MUHLEHOLZ Mühleholz Muhleholz 2004-10-27
+1 419575 535546 47.15 9.516667 470900 93100 32TNT3917021963 NL32-02 P PPL LS 11 V EBAHOLZ Ebaholz Ebaholz 2004-10-27
+1 419575 535575 47.15 9.516667 470900 93100 32TNT3917021963 NL32-02 P PPL LS 11 N EBENHOLZ Ebenholz Ebenholz 2004-10-27
Index: Extensions/gns2shp/test/README
===================================================================
--- Extensions/gns2shp/test/README (revision 2841)
+++ Extensions/gns2shp/test/README (working copy)
@@ -1,4 +1,4 @@
-This directory contains tests of the gns2shl extension.
+This directory contains tests of the gns2shp extension.
About file "ls.txt":
Index: Extensions/gns2shp/gns2shp.py
===================================================================
--- Extensions/gns2shp/gns2shp.py (revision 2841)
+++ Extensions/gns2shp/gns2shp.py (working copy)
@@ -58,10 +58,11 @@
shp = shapelib.create(shp_filename, shapelib.SHPT_POINT)
dbf = dbflib.create(dbf_filename)
+
dbf.add_field('RC', dbflib.FTInteger, 1, 0)
dbf.add_field('UFI', dbflib.FTInteger, 10, 0)
dbf.add_field('UNI', dbflib.FTInteger, 10, 0)
- dbf.add_field('UTM', dbflib.FTString, 4, 0)
+ dbf.add_field('MGRS', dbflib.FTString, 15, 0)
dbf.add_field('JOG', dbflib.FTString, 7, 0)
dbf.add_field('FC', dbflib.FTString, 1, 0)
dbf.add_field('DSG', dbflib.FTString, 5, 0)
@@ -69,10 +70,11 @@
dbf.add_field('CC1', dbflib.FTString, 2, 0)
dbf.add_field('ADM1', dbflib.FTString, 2, 0)
dbf.add_field('ADM2', dbflib.FTString, 200, 0)
- dbf.add_field('DIM', dbflib.FTInteger, 10, 0)
+ dbf.add_field('POP', dbflib.FTInteger, 10, 0)
+ dbf.add_field('ELEV', dbflib.FTInteger, 10, 0)
dbf.add_field('CC2', dbflib.FTString, 2, 0)
- dbf.add_field('NT', dbflib.FTString, 1, 0)
- dbf.add_field('LC', dbflib.FTString, 2, 0)
+ dbf.add_field('NT', dbflib.FTString, 2, 0)
+ dbf.add_field('LC', dbflib.FTString, 3, 0)
dbf.add_field('SHORT_FORM', dbflib.FTString, 128, 0)
dbf.add_field('GENERIC', dbflib.FTString, 128, 0)
dbf.add_field('SORT_NAME', dbflib.FTString, 200, 0)
@@ -87,30 +89,33 @@
i = 0
for line in gns:
if line[0] == '#': continue
- RC, UFI, UNI, DD_LAT, DD_LONG, DMS_LAT, DMS_LONG, UTM, \
- JOG, FC, DSG, PC, CC1, ADM1, ADM2, DIM, CC2, NT, LC, \
- SHORT_FORM, GENERIC, SORT_NAME, FULL_NAME, FULL_NAME_ND, \
- MODIFY_DATE = line.split('\t')
- RC = int(RC)
+ 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 = line.split('\t')
+ try: RC = int(RC)
+ except ValueError: RC = None
UFI = int(UFI)
UNI = int(UNI)
- DD_LAT = float(DD_LAT)
- DD_LONG = float(DD_LONG)
+ LAT = float(LAT)
+ LONG = float(LONG)
try: PC = int(PC)
- except: PC = None
- try: DIM = int(DIM)
- except: DIM = None
+ except ValueError: PC = None
+ try: POP = int(POP)
+ except ValueError: POP = None
+ try: ELEV = int(ELEV)
+ except ValueError: ELEV = None
MODIFY_DATE = MODIFY_DATE[0:10] # kill trailing "\n" or "\r\n"
- obj = shapelib.SHPObject(shapelib.SHPT_POINT, i, [[(DD_LONG, DD_LAT)]])
+ obj = shapelib.SHPObject(shapelib.SHPT_POINT, i, [[(LONG, LAT)]])
shp.write_object(-1, obj)
- dbf.write_record(i, { 'RC': RC, 'UFI': UFI, 'UNI': UNI, 'UTM': UTM,
- 'JOG': JOG, 'FC': FC, 'DSG': DSG, 'PC': PC,
- 'CC1': CC1, 'ADM1': ADM1, 'ADM2': ADM2,
- 'DIM': DIM, 'CC2': CC2, 'NT': NT, 'LC': LC,
- 'SHORT_FORM': SHORT_FORM, 'GENERIC': GENERIC,
- 'SORT_NAME': SORT_NAME, 'FULL_NAME': FULL_NAME,
- 'FULL_ND': FULL_NAME_ND,
- 'MODIFY_DAT': MODIFY_DATE})
+
+ vals = {'RC': RC, 'UFI': UFI, 'UNI': UNI, 'MGRS':MGRS, 'JOG': JOG,
+ 'FC': FC, 'DSG': DSG, 'PC': PC, 'CC1': CC1, 'ADM1': ADM1,
+ 'ADM2': ADM2, 'POP': POP, 'ELEV': ELEV, 'CC2': CC2, 'NT': NT,
+ 'LC': LC, 'SHORT_FORM': SHORT_FORM, 'GENERIC': GENERIC,
+ 'SORT_NAME': SORT_NAME, 'FULL_NAME': FULL_NAME,
+ 'FULL_ND': FULL_NAME_ND, 'MODIFY_DAT': MODIFY_DATE}
+ print vals
+ dbf.write_record(i, vals)
i += 1
del shp
Index: Extensions/gns2shp/README
===================================================================
--- Extensions/gns2shp/README (revision 0)
+++ Extensions/gns2shp/README (revision 0)
@@ -0,0 +1,200 @@
+This extension converts Files of Geographic Names for Geopolitical Areas
+from GNS to Shapefile format.
+
+These files can be downloaded from
+http://earth-info.nga.mil/gns/html/cntry_files.html
+They are simple tab-separated value files, and what follows is a description
+of the current format, taken from
+http://earth-info.nga.mil/gns/html/gis_countryfiles.htm
+
+------------------
+Description of Names Files for Countries and Territories Format
+
+Note:
+
+ * The data format is tab-delimited text.
+ * The names in the country files are sorted alphabetically and are displayed
+ in Reading Order (used in mapping applications; e.g. Mount Everest)
+
+RC: Region Font Code. A code that determines the character mapping used in the
+ SHORT_FORM, Generic, and Full_Name fields (see Character Set Conversion
+ Table[1]):
+ 1 = Americas/Western Europe;
+ 2 = Eastern Europe;
+ 3 = Africa/Middle East;
+ 4 = Russia/ Central Asia;
+ 5 = Asia/Pacific;
+ 6 = Vietnam.
+ Type: number
+ Default Selection: Y
+
+UFI: Unique Feature Identifier. A number which uniquely identifies a Geoname
+ feature.
+ Type: number
+ Default Selection: Y
+
+UNI: Unique Name Identifier. A number which uniquely identifies a name.
+ Type: number
+ Default Selection: Y
+
+LAT: Latitude of the Geoname feature in +- decimal degrees; DD; (+- dd.dd...):
+ no sign (+) = North;
+ 05°03'09''E >> 5.0525
+ negative sign (-) = South;
+ 05°03'09''S >> -5.0525
+ Type: number
+ Default Selection: Y
+
+LONG: Longitude of the feature in +- decimal degrees; DD; (+- dd.dd...):
+ no sign (+) = East;
+ negative sign (-) = West.
+ Type: number
+ Default Selection: Y
+
+DMS_LAT: Latitude of the Geoname feature in +-degrees, minutes, and seconds;
+ DMS; (+-ddmmss):
+ no sign (+) = North;
+ negative sign (-) = South.
+ Type: number
+ Default Selection: Y
+
+DMS_LONG: Longitude of the Geoname feature in +-degrees, minutes, and seconds;
+ DMS; (+-dddmmss):
+ no sign (+) = East;
+ negative sign (-) = West.
+ Type: number
+ Default Selection: Y
+
+MGRS: Military Grid Reference System coordinates
+ Type: character
+ Default Selection: Y
+
+JOG: Joint Operations Graphic reference.
+ Type: character
+ Default Selection: Y
+
+FC: Feature Classification: Nine (9) major Geoname feature categories into
+ which similar feature designations are grouped.
+ A = Administrative region type feature
+ P = Populated place type feature
+ V = Vegetation type feature
+ L = Locality or area type feature
+ U = Undersea type feature
+ R = Streets, highways, roads, or railroad type feature
+ T = Hypsographic type feature
+ H = Hydrographic type feature
+ S = Spot type feature
+ Type: character
+ Default Selection: Y
+
+DSG: Feature Designation Code. A two to five-character code used to identify
+ the type of Geoname feature a name is applied to.
+ Type: character
+ Default Selection: Y
+
+PC: Populated Place Classification. A graduated numerical scale denoting the
+ relative importance of a populated place. The scale ranges from
+ 1, relatively high, to 5, relatively low. The scale could also include
+ NULL (no value) as a value for populated places with unknown or
+ undetermined classification.
+ Type: number
+ Default Selection: Y
+
+CC1: Primary Country Code. A two alphabetic character code from the FIPS 10-4
+ Standard that uniquely identify a geopolitical entity (countries,
+ dependencies, and areas of special sovereignty).
+ Type: character
+ Default Selection: Y
+
+ADM1: First-order administrative division code. A two alpha-numeric code from
+ the FIPS 10-4 Standard describing a primary administrative division of a
+ geopolitical entity, such as a state in the United States.
+ Type: character
+ Default Selection: Y
+
+ADM2: Second-order administrative division. The name of a subdivision of a
+ first-order administrative division, such as a county in the
+ United States.
+ Type: variable character
+ Default Selection: Y
+
+POP: Population figures.
+ Type: number
+ Default Selection: Y
+
+ELEV: Elevation in meters.
+ Type: number
+ Default Selection: Y
+
+CC2: Secondary Country Code. A two alphabetic character code from the
+ FIPS 10-4 Standard uniquely identifying the country code of a particular
+ Geoname feature name if different than that of the primary country code
+ of that Geoname feature (International features).
+ Type: character
+ Default Selection: Y
+
+NT: Name Type:
+ C = Conventional name
+ N = BGN Standard name
+ NS = BGN Standard name in non-Roman script
+ P = Provisional name
+ PS = Provisional name in non-Roman script
+ H = Historic name
+ HS = Historic name in non-Roman script
+ D = Not verified or daggered name
+ DS = Not verified name in non-Roman script
+ V = Variant or alternate name
+ VS = Variant name in non-Roman script
+ Type: character
+ Default Selection: Y
+
+LC: Language Code. A three alphabetic character code (ISO 639-3) uniquely
+ identifying the language assigned to a Geoname feature name.
+ Type: character
+ Default Selection: Y
+
+SHORT_FORM: A part of the full name that could substitute for the full name.
+ Type: variable character
+ Default Selection: Y
+
+GENERIC: The descriptive part of the full name such as Mount, River, or Sea
+ (generally does not apply to populated place names).
+ Type: variable character
+ Default Selection: Y
+
+SORT_NAME: A form of the full name that allows for alphabetical sorting of the
+ file into gazetteer sequence. All character/diacritic combinations
+ and special characters are substituted with QWERTY
+ (visible U.S. English keyboard) characters, all characters are
+ upper-cased, numerals are converted to lower-case characters
+ (0-9 = a-j), spaces are stripped out, and commas replaced
with space.
+ The substitution is done according to a character mapping table that
+ is Region Font Code specific (see Character Set Conversion
Table[1]).
+ This field is included for the benefit of the end user of the data
+ to aid in the sorting of names if required.
+ Type: variable character
+ Default Selection: Y
+
+FULL_NAME: The full name is the complete name that identifies a named feature.
+ The full name is output in reading order, "Mount Everest", vs.
+ reversed generic, "Everest, Mount", as stored in the database.
+ Type: variable character
+ Default Selection: Y
+
+FULL_NAME_ND: Same as the full name but the character/diacritic combinations
+ and special characters are substituted with QWERTY
+ (visible U.S. English keyboard) characters while still
+ maintaining casing and spaces. The substitution is done according
+ to a character mapping table that is Region Font Code specific
+ (see Character Set Conversion Table[1]).
+ ND = No Diacritics / Stripped Diacritics.
+ Type: variable character
+ Default Selection: Y
+
+MODIFY DATE: The date a new feature was added or any part of an
existing feature
+ was modified (YYYY-MM-DD).
+ Type: date-time
+ Default Selection: Y
+
+[1]: http://earth-info.nga.mil/gns/html/Char_sets_20060703.pdf
+
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)