[GRASS-user] v.in.geonames not importing txt file in GRASS 7.0.0beta3 Windows

Martial Duguay martialdug at yahoo.fr
Wed Oct 15 02:04:43 PDT 2014


Please, remove me from the list.

Thank you
Den 15.10.2014 10:34, Helmut Kudrnovsky skrev:
> Markus Neteler wrote
>> On Fri, Oct 10, 2014 at 11:53 AM, RichardCooper <
>> richtcooper@
>> > wrote:
>>> Hi,
>>>
>>> I'm getting the following error on attempting to import geonames into
>>> GRASS
>>> 7.0.0beta3 on Windows7.
>>>
>>> I've tried to import via the GUI and command console without success.
>>> However, it does import with GRASS 7svn[57721] on Linux.
>>>
>>> Richard
>>>
>>> (Fri Oct 10 16:47:43 2014)
>>> v.in.geonames input=C:\Users\rcooper\Desktop\TH.txt output=geonames_th
>>> Converting 171472 place names...
>>> cat: =0: No such file or directory
>>> cat: output=geonames_th: No such file or directory
>>> cat: y=5: No such file or directory
>>> cat: input=C:\Users\rcooper\grassdata7/chula_4326/asiapoptha
>>> i/.tmp/unknown/408.0: No such file or directory
>>> cat: columns=geonameid integer,name varchar(200),asciiname
>> ...
>>
>> I have tried with current 7.0.svn using
>> http://download.geonames.org/export/dump/TH.zip
>>
>> and did not face any problems (on Linux). The Python indentation was
>> probably not right (fixed in SVN) but I think that this won't matter.
>>
>> I wonder if the internally used separator "|" may cause the issue?
>> Perhaps the internal v.in.ascii call should simply be done with the
>> existing tabs?
>>
>> A Windows user is needed to explore that...
>>
>> Markus
>> _______________________________________________
>> grass-user mailing list
>> grass-user at .osgeo
>> http://lists.osgeo.org/mailman/listinfo/grass-user
> tested here with
>
> GRASS Version: 7.1.svn
> GRASS SVN Revision: 62255
> Erstellungsdatum: 2014-10-15
> Build Platform: i686-pc-mingw32
> GDAL/OGR: 1.11.0
> PROJ.4: 4.8.0
> GEOS: 3.4.2
> SQLite: 3.7.17
> Python: 2.7.4
> wxPython: 2.8.12.1
> Platform: Windows-7-6.1.7601-SP1 (OSGeo4W)
>
> v.in.geonames --verbose input=C:\tmp\TH\TH.txt output=th
> Converting 236734 place names...
> Using native format
> Scanne die Eingabe zur Ermittelung der Spaltentypen...
> Maximale Länge der Inputzeile: 1998
> Number of columns: 19
> Column: 1  type: integer
> Column: 2  type: string length: 114
> Column: 3  type: string length: 102
> Column: 4  type: string length: 1885
> Column: 5  type: double
> Column: 6  type: double
> Column: 7  type: string length: 1
> Column: 8  type: string length: 5
> Column: 9  type: string length: 2
> Column: 10  type: string length: 2
> Column: 11  type: integer
> Column: 12  type: integer
> Column: 13  type: integer
> Column: 14  type: integer
> Column: 15  type: integer
> Column: 16  type: integer
> Column: 17  type: integer
> Column: 18  type: string length: 14
> Column: 19  type: string length: 10
> WARNING: Spalte Nummer 11 <admin1code> ist als string definiert und hat nur
> Integer-Werte.
> WARNING: Spalte Nummer 12 <admin2code> ist als string definiert und hat nur
> Integer-Werte.
> WARNING: Spalte Nummer 13 <admin3code> ist als string definiert und hat nur
> Integer-Werte.
> WARNING: Spalte Nummer 14 <admin4code> ist als string definiert und hat nur
> Integer-Werte.
> WARNING: Spalte Nummer 16 <elevation> ist als string definiert und hat nur
> Integer-Werte.
> Importiere Punkte...
> Fülle Tabelle...
> Erstelle Topologie für die Vektorkarte <th at test>...
> Registriere Primitive...
> 236734 primitives registered
> 236734 Vertices registriert
> Erzeuge Flächen...
> 0 areas built
> 0 isles built
> Füge Inseln hinzu...
> Füge Zentroide hinzu...
> Die Topologie wurde erstellt.
> Anzahl der Knoten: 0
> Anzahl der Primitive: 236734
> Anzahl der Punkte: 236734
> Anzahl der Linien: 0
> Anzahl der Grenzen: 0
> Anzahl der Zentroide: 0
> Anzahl der Flächen: 0
> Anzahl der Inseln: 0
>
> seems to work here.
>
>
>
> -----
> best regards
> Helmut
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/v-in-geonames-not-importing-txt-file-in-GRASS-7-0-0beta3-Windows-tp5166832p5167599.html
> Sent from the Grass - Users mailing list archive at Nabble.com.
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user



More information about the grass-user mailing list