Skip to content

Commit

Permalink
fixed setSRID bug in JDBC ComposedGeom.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/postgis/trunk@2523 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
markusschaber committed Nov 2, 2006
1 parent 1ae6cb1 commit 3847bda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ PostGIS 1.1.6
pack of version variables for everything.
- Include the Version.config in loader/dumper USAGE messages
- Replace hand-made, fragile JDBC version parser with Properties
- Fixed setSRID() bug in JDBC, thanks to Thomas Marti
- loader/dumper: fixed regression tests and usage output


Expand Down
7 changes: 7 additions & 0 deletions java/jdbc/src/org/postgis/ComposedGeom.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,11 @@ public boolean checkConsistency() {
return false;
}
}

public void setSrid(int srid) {
super.setSrid(srid);
for (int i = 0; i < subgeoms.length; i++) {
subgeoms[i].setSrid(srid);
}
}
}

0 comments on commit 3847bda

Please sign in to comment.