Opened 12 years ago

Last modified 12 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:


What steps will reproduce the problem?

  1. 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)) {



but I don't debug the function DBFReadDeleted...

Change History (6)

comment:1 Changed 12 years ago by mcayland

Regina/Paul?: any comment on this one?



comment:2 Changed 12 years ago by robe

I haven't looked at it. I can take a look later today

comment:3 Changed 12 years ago by robe

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?.

comment:4 Changed 12 years ago by robe

Forgot to switch to testing status

comment:5 Changed 12 years ago by robe

#118 has been merged into this issue.

comment:6 Changed 12 years ago by pramsey

<i>(No comment was entered for this change.)</i>

Note: See TracTickets for help on using tickets.