Skip to content
Back to formatted view

Raw Message

Message-ID: <b440a3f81003181834t4682e64bt9ac96d4f20c3e203@mail.gmail.com>
Date: 2010-03-19T01:34:38Z
From: Michael Denslow
Subject: to many characters in .dbf file?
In-Reply-To: <alpine.LRH.2.00.1003182024490.19560@reclus.nhh.no>

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