Opened 9 years ago

Closed 8 years ago

#338 closed defect (fixed)

PostGIS defect : insert with srid -1 failed

Reported by: bscott Owned by:
Priority: blocker Milestone: 3.4.0
Component: PostGIS Provider Version: 3.3.0
Severity: 1 Keywords: srid srs epsg
Cc: External ID:

Description

While i have fixed the insert with srid != -1 i discover that the default srid in the GetSRID() function was 0. So it need to be changed to -1

Attachments (2)

postgis_trunk_338.patch (1.3 KB) - added by mloskot 9 years ago.
Patch from Bruno Scott
postgis_trunk_338_2.patch (585 bytes) - added by bscott 9 years ago.
second patch for ticket 338 reopened

Download all attachments as: .zip

Change History (10)

Changed 9 years ago by mloskot

Attachment: postgis_trunk_338.patch added

Patch from Bruno Scott

comment:1 Changed 9 years ago by mloskot

Keywords: srid srs epsg added
Status: newassigned

comment:2 Changed 9 years ago by mloskot

Resolution: fixed
Status: assignedclosed

Fixed in trunk (r3949). Thanks Bruno!

comment:3 Changed 9 years ago by bscott

Resolution: fixed
Status: closedreopened

comment:4 Changed 9 years ago by bscott

The fix has broken something, it does not find srid if it's not -1 As currentSrid was defaulted to 0 this line was ok

for (FdoInt32 i = 0; !currentSrid && i < propsDef->GetCount?()); i++)

Now that the default srid is -1 we need to update the for loop as this :

for (FdoInt32 i = 0; ((currentSrid == -1) && i < propsDef->GetCount?()); i++)

Changed 9 years ago by bscott

Attachment: postgis_trunk_338_2.patch added

second patch for ticket 338 reopened

comment:5 Changed 8 years ago by bscott

Resolution: fixed
Status: reopenedclosed

comment:6 Changed 8 years ago by mloskot

Resolution: fixed
Status: closedreopened

comment:7 Changed 8 years ago by mloskot

Owner: mloskot deleted
Status: reopenednew

comment:8 Changed 8 years ago by mloskot

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.