Opened 16 years ago

Closed 15 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 16 years ago.
Patch from Bruno Scott
postgis_trunk_338_2.patch (585 bytes ) - added by bscott 16 years ago.
second patch for ticket 338 reopened

Download all attachments as: .zip

Change History (10)

by mloskot, 16 years ago

Attachment: postgis_trunk_338.patch added

Patch from Bruno Scott

comment:1 by mloskot, 16 years ago

Keywords: srid srs epsg added
Status: newassigned

comment:2 by mloskot, 16 years ago

Resolution: fixed
Status: assignedclosed

Fixed in trunk (r3949). Thanks Bruno!

comment:3 by bscott, 16 years ago

Resolution: fixed
Status: closedreopened

comment:4 by bscott, 16 years ago

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

by bscott, 16 years ago

Attachment: postgis_trunk_338_2.patch added

second patch for ticket 338 reopened

comment:5 by bscott, 15 years ago

Resolution: fixed
Status: reopenedclosed

comment:6 by mloskot, 15 years ago

Resolution: fixed
Status: closedreopened

comment:7 by mloskot, 15 years ago

Owner: mloskot removed
Status: reopenednew

comment:8 by mloskot, 15 years ago

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