public static Image MapFileToObject(string filePath) { string xmlData = String.Empty; using (StringWriter sw = new StringWriter()) { SchemaTransform.Transform(filePath, null, sw); xmlData = sw.ToString(); } return(FromXml <Image>(xmlData)); }
private static List <string> ChangeLogMapper(IEnumerable <string> fileList, int datasetId) { var newFileList = new List <string>(); foreach (var file in fileList) { var fileName = file; // // Schema transformation // Mapping from the nested structure of one or more simple features to the simple features for GeoServer. // var schemaTransform = new SchemaTransform(); var newFileName = schemaTransform.SchemaTransformSimplify(fileName, datasetId); if (!string.IsNullOrEmpty(newFileName)) { fileName = newFileName; } newFileList.Add(fileName); } return(newFileList); }