public void SaveGeometry(Geometry geometry, BoundingBox box) { var uploader = new BlobUpload(); var serialized = JsonSerDe.Serialize(geometry); uploader.Upload(serialized, box); // _debugger.DumpString(serialized, "fullOutput.json"); }
public Geometry GetBox(BoundingBox box) { var filename = BoundingBoxFilenameConverter.CreateFileName(box, "json"); var blobReference = _container.GetBlobReference(filename); string text; using (var memoryStream = new MemoryStream()) { blobReference.DownloadToStream(memoryStream); text = System.Text.Encoding.UTF8.GetString(memoryStream.ToArray()); } return(JsonSerDe.GetGeometry(text)); }