[R-sig-Geo] trouble readOGR

Thomas Hoffmann tomte.tumetot at gmx.ch
Mon Mar 12 18:34:49 CET 2012


Dear all,

I try to import an Mapinfo file to R and get following error message:

> tmp = readOGR(fi.tab[k],layer=fi[k])
OGR data source with driver: MapInfo File 
Source: "25545700.TAB", layer: "25545700"
with 40401 features and 3 fields
Fehler in make.names(fldnms, unique = TRUE) : 
  ungültige multibyte Zeichenkette 3

however ogrInfo obtains:

> ogrInfo(fi.tab[k], layer=fi[k])
Source: "25545700.TAB", layer: "25545700"
Driver: MapInfo File number of rows 40401 
Feature type: wkbPoint with 2 dimensions
+proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0 +ellps=bessel +towgs84=582,105,414,1.04,0.35,-3.08,8.3 +units=m +no_defs  
Number of fields: 3 
     name type length typeName
1  Rechts    2      0     Real
2    Hoch    2      0     Real
3 H\xf6he    2      0     Real

Any advice how to handle the problem?

Thanks
Thomas

-- 

Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a



More information about the R-sig-Geo mailing list