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?

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

continue;

}

but I don't debug the function DBFReadDeleted…

Change History (6)

comment:1 by mcayland, 16 years ago

Regina/Paul: any comment on this one?

ATB,

Mark.

comment:2 by robe, 16 years ago

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

comment:3 by robe, 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.

comment:4 by robe, 16 years ago

Forgot to switch to testing status

comment:5 by robe, 16 years ago

#118 has been merged into this issue.

comment:6 by pramsey, 16 years ago

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

Note: See TracTickets for help on using tickets.