Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Error in reeding shapefile
From
J F Cust <[email protected]>
To
statalist <[email protected]>
Subject
Re: st: Error in reeding shapefile
Date
Sat, 9 Apr 2011 16:52:19 +0100
As the previous reply mentioned you probably have variables in the dbf
file that exceed the Stata character limit of 244.
You can edit or remove these fields in your GIS software to make sure
they come in under the limit. Alternatively, you can directly alter
the offending .dbf file prior to importing (either editing or removing
the relevant variables). You could try doing this via software such as
the freely available DBF Explorer:
http://www.pablosoftwaresolutions.com/html/dbf_explorer.html
Jim
On 7 April 2011 01:02, Andrew Dyck <[email protected]> wrote:
>
> From the error codes, your problem lies when the read_dbf function
> calls st_addvar() around lines 340 - 360 of the ado file. The '3000
> argument out of range' error which suggests this answer from the
> shp2dta author:
>
> http://www.stata.com/statalist/archive/2010-02/msg01189.html
>
> It seems likely that there are some variable in the shapefile you are
> using that are longer than Stata's limit.
>
> Cheers,
> Andrew
>
> On Wed, Apr 6, 2011 at 11:40 AM, Daniel Marcelino <[email protected]> wrote:
> >
> > Is it a kind of error on stata or on the file? I downloaded this file
> > twice, but I still getting the same error.
> >
> >
> > . shp2dta using "/Users/DM/Data/D2/Maps/55mu2500gsr.shp",
> > data(brazil-d) coor(brazil-c) genid(id) genc(c)
> > st_addvar(): 3300 argument out of range
> > read_dbf(): - function returned error
> > <istmt>: - function returned error
> > r(3300);
> > *
> > * For searches and help try:
> > * http://www.stata.com/help.cgi?search
> > * http://www.stata.com/support/statalist/faq
> > * http://www.ats.ucla.edu/stat/stata/
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/