-----------------------------------------------------
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