// set in the roadDetails
ArrayList<Vertex> vertices = Utils.geometryToVertexArrayList(geometry);
fetched.setVertices(vertices);
// convert the centroid point into a Vertex
Vertex centroid = new Vertex();
centroid.setLat(centroidJTS.getY());
centroid.setLng(centroidJTS.getX());
fetched.setCentroid(centroid);
// and get the map meta data too
Geometry mapCenterGeom = reader.read(mapCenterWKT);
Point mapCenterJTS = mapCenterGeom.getCentroid();
Vertex mapCenterVertex = new Vertex();
mapCenterVertex.setLat(mapCenterJTS.getY());
mapCenterVertex.setLng(mapCenterJTS.getX());
fetched.setMapCenter(mapCenterVertex);
}
} catch (SQLException e) {
logger.error(e.getMessage());
throw e;