Ticket #338 (closed defect: fixed)

Opened 7 years ago

Last modified 6 years ago

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

postgis_trunk_338.patch Download (1.3 KB) - added by mloskot 7 years ago.
Patch from Bruno Scott
postgis_trunk_338_2.patch Download (0.6 KB) - added by bscott 6 years ago.
second patch for ticket 338 reopened

Change History

Changed 7 years ago by mloskot

Patch from Bruno Scott

Changed 7 years ago by mloskot

  • keywords srid srs epsg added
  • status changed from new to assigned

Changed 7 years ago by mloskot

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

Fixed in trunk (r3949). Thanks Bruno!

Changed 6 years ago by bscott

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 6 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 (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++)

Changed 6 years ago by bscott

second patch for ticket 338 reopened

Changed 6 years ago by bscott

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

Changed 6 years ago by mloskot

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 6 years ago by mloskot

  • owner mloskot deleted
  • status changed from reopened to new

Changed 6 years ago by mloskot

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.