[R-sig-Geo] to many characters in .dbf file?

Michael Denslow michael.denslow at gmail.com
Fri Mar 19 02:34:38 CET 2010


Hi Roger!

<SNIP>

>
> The OGR driver truncates (I think to 254 characters), so use
> writeSpatialShape() in maptools instead, passing your large number through
> the max_nchar= argument. Please read the details in ?write.dbf - field
> widths above 254 are not portable.

writeSpatialShape() worked for me. The file was read by Geoserver with
the extra text as well.

Thanks!
Michael



> Roger
>
>>
>> Any advice?
>>
>> Thanks in advance,
>> Michael
>>
>>
>>
>
> --
> Roger Bivand
> Economic Geography Section, Department of Economics, Norwegian School of
> Economics and Business Administration, Helleveien 30, N-5045 Bergen,
> Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
> e-mail: Roger.Bivand at nhh.no
>
>



-- 
Michael Denslow

I.W. Carpenter Jr. Herbarium [BOON]
Department of Biology
Appalachian State University
Boone, North Carolina U.S.A.
-- AND --
Communications Manager
Southeast Regional Network of Expertise and Collections
sernec.org

36.214177, -81.681480 +/- 3103 meters



More information about the R-sig-Geo mailing list