134135136137138139140141142143144
crsId = CrsId.valueOf(srid); if (singlePoint) { return createPoint(0); } else if (singleLine) { PointSequence points = createPoints(0, 2); return new LineString(points); } else { // figures int numberOfFigures = dis.readInt();
252253254255256257258259
} return new Polygon(rings); } private static LinearRing convert(org.postgis.LinearRing geometry) { PointSequence points = convertPoints(geometry.getPoints()); return new LinearRing(points); }
258259260261262263264265
return new LinearRing(points); } private static LineString convert(org.postgis.LineString geometry) { PointSequence points = convertPoints(geometry.getPoints()); return new LineString(points); }