Menu

#2 Bug in org.wkb4j.jts.endUnit()

open
nobody
None
5
2008-12-18
2008-12-18
No

-----------------------------------------------------
Old
-----------------------------------------------------
/**
* @see org.wkb4j.engine.WKBFactory#endUnit()
*/
public final void endUnit() {
super.endUnit();
geometries.add(currentGeometry);
if (!currentGeometry.getGeometryType().equals("GeometryCollection")) {
int di = 10;
} //There is no point of setting srid to another value because all values are correct. We could try to make sure that the value is invaled somehow.*/
-----------------------------------------------------
NEW
-----------------------------------------------------
/**
* @see org.wkb4j.engine.WKBFactory#endUnit()
*/
public final void endUnit() {
super.endUnit();
if(currentGeometry != null)
{
geometries.add(currentGeometry);
if (!currentGeometry.getGeometryType().equals("GeometryCollection"))
{
int di = 10;
} //There is no point of setting srid to another value because all values are correct. We could try to make sure that the value is invaled somehow.*/
}// if

Discussion


Log in to post a comment.

MongoDB Logo MongoDB