PostGis2 bug

Feb 11, 2007 at 4:14 PM
Hi There,

I found a bug on the PostGis2 data provider. The bug is in the building of the bb part of the Sql statement, it appears if your layer has a SRID value > 0. The code was simply appending "setSRID(" to the bbox builder, where it should have been inserting it at the beginning of the string. The fix is to change line 209 from:
SbBbox.Append("setSRID(");
to:
SbBbox.Insert(0, "setSRID(");
Thanks,

Marcelo


Coordinator
Feb 20, 2007 at 10:53 PM
This discussion has been copied to Work Item 8385. You may wish to continue further discussion there.