def ThreeDTilesRead(table, column, bounds, lod):
session = Session(table, column)
# offsets = [round(off, 2) for off in list_from_str(offsets)]
box = list_from_str(bounds)
# requested = [scales, offsets]
stored_patches = session.lopocstable.filter_stored_output()
schema = stored_patches['point_schema']
pcid = stored_patches['pcid']
# scales = [scale] * 3
scales = stored_patches['scales']
offsets = stored_patches['offsets']
[tile, npoints] = get_points(session, box, lod, offsets, pcid, scales, schema)
if Config.DEBUG:
tile.sync()
print("NPOINTS: ", npoints)
# build flask response
response = make_response(tile.to_array().tostring())
response.headers['content-type'] = 'application/octet-stream'
return response
评论列表
文章目录