Ticket #338 (closed defect: fixed)

Opened 2 years ago

Last modified 10 months ago

PostGIS defect : insert with srid -1 failed

Reported by: bscott Assigned to:
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/2008 09:24:31 PM.
Patch from Bruno Scott
postgis_trunk_338_2.patch (0.6 kB) - added by bscott on 05/07/2008 05:06:56 AM.
second patch for ticket 338 reopened

Change History

04/30/2008 09:24:31 PM changed by mloskot

  • attachment postgis_trunk_338.patch added.

Patch from Bruno Scott

04/30/2008 09:25:00 PM changed by mloskot

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

05/02/2008 11:22:14 AM changed by mloskot

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

Fixed in trunk (r3949). Thanks Bruno!

05/07/2008 05:02:18 AM changed by bscott

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

05/07/2008 05:04:54 AM 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/2008 05:06:56 AM changed by bscott

  • attachment postgis_trunk_338_2.patch added.

second patch for ticket 338 reopened

04/29/2009 05:38:21 AM changed by bscott

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

04/29/2009 06:21:52 AM changed by mloskot

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

04/29/2009 06:21:58 AM changed by mloskot

  • owner deleted.
  • status changed from reopened to new.

04/29/2009 06:22:20 AM changed by mloskot

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