Opened 16 years ago
Last modified 16 years ago
#99 closed defect (fixed)
shp2pgsql 'Only import DBF' error.
Reported by: | brunocaponi | Owned by: | robe |
---|---|---|---|
Priority: | critical | Milestone: | PostGIS 1.3.6 |
Component: | postgis | Version: | 1.3.X |
Keywords: | Cc: |
Description
What steps will reproduce the problem?
- shp2pgsql -n input
What is the expected output? What do you see instead? Must return all queries to insert only content of .DBF file, but that returned empty (or only BEGIN;END;) queries.
What version of the product are you using? On what operating system? postgis 1.3.5, linux - fedora 8.
Please provide any additional information below. Inthe version 1.3.3 shp2pgsql -n works perfectly. Only change in the file shp2pgsql.c is in:
if(readshape != 1 && DBFReadDeleted(hDBFHandle, j)) {
continue;
}
but I don't debug the function DBFReadDeleted…
Change History (6)
comment:1 by , 16 years ago
comment:3 by , 16 years ago
Problem I think was with the DBFReadDeleted. I think it was doing the reverse of what it was intended to do pulling in deleted records and leaving out non-deleted records. Paul can you verify my logic. Unfortunately I don't have FoxPro loaded and I only know how to mark dbf records deleted with FoxPro.
Regina/Paul: any comment on this one?
ATB,
Mark.