Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: error converting shape file to dataset

From   "Martin Weiss" <>
To   <>
Subject   st: RE: error converting shape file to dataset
Date   Wed, 4 Aug 2010 19:58:08 +0200

Sounds like you have not fully -adoupdate-d your -shp2dta- (user-written
from ssc)? Most of the time, the answer lies in incomplete updates, see,


-----Original Message-----
[] On Behalf Of Amer Hasan
Sent: Mittwoch, 4. August 2010 19:49
Subject: st: error converting shape file to dataset

Dear statalist:

Please forgive any missteps on my part as this is my first post.

I am using Stata SE 10.1 to convert a shape file to a stata dataset. I
have used this command multiple times in the past with very few
problems. I am currently trying two procedures to draw the map I am
interested in:

Procedure 1. I have a shapefile of the world showing level 1
administrative regions and need to draw a map of only south america. I
can convert this shapefile without problems and from the resulting
stata dataset, I can limit myself to the relevant countries. However,
the resulting map takes ages to draw - (even with a machine running
stata 11 - quad core).

Procedure 2. As a result of how slow procedure 1 was, I asked someone
with access to ArcGIS to give me a shapefile only of South America -
again the key thing being the shape file showed the sub-regions of
these countries. When I try and convert this shapefile I receive the
following error:

Stata/SE 10.1 for Windows
Born 10 Jun 2010

. shp2dta using "C:\Users\wb292605\Desktop\Files\Maps
LAC\gadmin_sam\gadmin_sam.shp", replace data(sam-data) coor(sam-coor)
genid(id) genc(center)

             st_addvar():  3300  argument out of range
              read_dbf():     -  function returned error
                 <istmt>:     -  function returned error


Despite the error corresponding data and coordinates datasets do get
produced - but they do not appear complete.

Which leads me to my two questions:

1. Can someone guide me if they have had similar issues when working
with shapefiles. I fear this may be less of a Stata issue and more of
an ArcGIS issue but hopefully someone can set me straight.

2. If I am forced to go with the first procedure is there a way to
make the map drawing faster?

many thanks
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index