readMultiPoint method
Implementation
MultiPoint readMultiPoint() {
int numGeom = dis.readInt();
List<Point> geoms = []; //..length = (numGeom);
for (int i = 0; i < numGeom; i++) {
Geometry g = readGeometry();
if (!(g is Point))
throw new ParseException(INVALID_GEOM_TYPE_MSG + "MultiPoint");
geoms.add(g);
// geoms[i] = g;
}
return factory.createMultiPoint(geoms);
}