Ticket #338 (reopened defect)

Opened 4 months ago

Last modified 4 months ago

PostGIS defect : insert with srid -1 failed

Reported by: bscott Assigned to: mloskot
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

postgis_trunk_338.patch (1.3 kB) - added by mloskot on 04/30/08 21:24:31.
Patch from Bruno Scott
postgis_trunk_338_2.patch (0.6 kB) - added by bscott on 05/07/08 05:06:56.
second patch for ticket 338 reopened

Change History

04/30/08 21:24:31 changed by mloskot

  • attachment postgis_trunk_338.patch added.

Patch from Bruno Scott

04/30/08 21:25:00 changed by mloskot

  • keywords set to srid srs epsg.
  • status changed from new to assigned.

05/02/08 11:22:14 changed by mloskot

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in trunk (r3949). Thanks Bruno!

05/07/08 05:02:18 changed by bscott

  • status changed from closed to reopened.
  • resolution deleted.

05/07/08 05:04:54 changed 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 (FdoInt?32 i = 0; !currentSrid && i < propsDef->GetCount?()); i++)

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

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

05/07/08 05:06:56 changed by bscott

  • attachment postgis_trunk_338_2.patch added.

second patch for ticket 338 reopened