#186 closed bug (fixed)
SPIT - Importing shape files always fails with some shapefiles
Reported by: | Owned by: | g_j_m | |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | |
Component: | SPIT | Version: | 0.8 |
Keywords: | Cc: | lami@…, venturato@… | |
Must Fix for Release: | No | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
I haven't been able to import Shape files not even once. I always get the error message:
Problem inserting features from file: <filename>
Attachments (4)
Change History (16)
comment:1 by , 18 years ago
comment:3 by , 18 years ago
I've added more information to the 'Problem inserting from file' message, so if you can try the latest version of qgis from svn and let us know what the error message is now, that'd help...
comment:4 by , 18 years ago
It has been noted in the Qgis forum that some of the problems in using spit may be to do with postgis not being installed in the database. Qgis now checks for this when importing shapefiles.
by , 18 years ago
Attachment: | Attraction.shp added |
---|
comment:5 by , 18 years ago
Must Fix for Release: | → No |
---|
Hey Guys
I have been importing shapefiles into PostGIS using ogr2ogr and shp2pgsql in past 6 months and i works well. Now I've been trying a user friendly way of importing a shapefile into PostGIS by using SPIT but it fails. I used Quantum 0.7.4 and 0.8.0 preview version but all I get is
Problem inserting feature from file: "shapefile path"
Can you guys help me pls
Thanks
Oyz
comment:6 by , 17 years ago
I have the same proble on Windows XP with QGIS version 0.7.4. I can load shapefiles into postgis using shp2psql and display them in qgis. The same shapefiles cannot be loaded using the SPIT plugin.
Has anyone resolved this issue?
Thanks
Murray
comment:7 by , 17 years ago
Milestone: | → Version 0.8.1 Release |
---|---|
Version: | 0.7 → 0.8 |
comment:8 by , 17 years ago
The example files are missing the .shx and .dbf files. Please attache them too. Thanks.
comment:9 by , 17 years ago
Cc: | added |
---|---|
Platform: | Windows → All |
Platform Version: | XP SP2 |
Summary: | SPIT - Importing shape files always fails → SPIT - Importing shape files always fails with some shapefiles |
In fact it fails with some shp, not with others. 2 samples attached. Apparently it depends on some values of the "cat" column missing from the dbf (they are shown as 0 in the good vector, as missing in the bad one)
comment:10 by , 17 years ago
Owner: | changed from | to
---|
comment:11 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Does this still happen with the 0.8 preview release? If so, can you attach an example .shp file that you can't import?