JSONArray geometries = geometryObj.getJSONArray("geometries");
if( null == geometries ) {
throw new Exception("A geometry must contain an array called 'coordinates'");
}
GeometryCollection geometryCollection = new GeometryCollection();
for(int i=0,e=geometries.length(); i<e; ++i){
JSONObject gObj = geometries.getJSONObject(i);
Geometry g = parseGeometry(gObj);
geometryCollection.addGeometry(g);
}
return geometryCollection;
} catch(Exception e) {