[Qgis-user] shapefile only shows one feature
Richard Duivenvoorde
rdmailings at duif.net
Mon Jul 6 04:20:54 PDT 2015
On 06-07-15 13:03, Reginald Carlier wrote:
> Hello,
>
> I’ve been working on a bike trajectory on both Arcmap and QGIS.
>
> Last week the shape was allright but when I opened it today in ArcMap
> there was a warning about an error and that the shapefile could not be
> drawn correctly. In the attribute table ArcMap shows 5 features.
>
> When I open the shapefile in QGIS only one feature is drawn. The
> attribute table shows 3 features.
>
> How can I repair this shapefile?
Hi Reginald,
I hope you have a backup :-(
it's hard to 'repair' a shapefile, from what I see with QGIS there is
just one geometry in the shp file...
When I open the dbf file with libreoffice, it appears that there have
been 3(?) objects in it? There are three records in there.
Falling back to the command line:
ogrinfo -al fietstochten.shp
shows me:
INFO: Open of `fietstochten.shp'
using driver `ESRI Shapefile' successful.
Layer name: fietstochten
Geometry: Line String
Feature Count: 5
Extent: (66284.642494, 177484.494947) - (78108.899368, 183125.298964)
Layer SRS WKT:
PROJCS["Belge_Lambert_1972",
GEOGCS["GCS_Belge_1972",
DATUM["Reseau_National_Belge_1972",
SPHEROID["International_1924",6378388.0,297.0]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],
PROJECTION["Lambert_Conformal_Conic_2SP"],
PARAMETER["False_Easting",150000.01256],
PARAMETER["False_Northing",5400088.4378],
PARAMETER["Central_Meridian",4.367486666666666],
PARAMETER["Standard_Parallel_1",49.8333339],
PARAMETER["Standard_Parallel_2",51.16666723333333],
PARAMETER["Latitude_Of_Origin",90.0],
UNIT["Meter",1.0]]
Id: Integer (6.0)
Lengte: Integer (9.0)
OGRFeature(fietstochten):0
Id (Integer) = 0
Lengte (Integer) = 7136
LINESTRING (71591.985401928424835
179453.164495777338743,71570.395358748733997
.......
182574.696771483868361)
ERROR 1: Corrupted .shp file : shape 1, nPoints=1027, nParts=8,
nEntitySize=9076.
OGRFeature(fietstochten):1
Id (Integer) = 0
Lengte (Integer) = 40458
OGRFeature(fietstochten):2
Id (Integer) = 0
Lengte (Integer) = 11239
ERROR 1: fread(16) failed on DBF file
So it looks like something has damaged the dbf file?
I'm not aware of a way to repair such problems, I hope somebody else can
help you...
Regards,
Richard Duivenvoorde
More information about the Qgis-user
mailing list