public WmfWaterMap(string filename) { L3dtFileManager.L3dtFileManager hfzManager = new L3dtFileManager.L3dtFileManager(); if (filename.EndsWith(".wmf")) { this.file = hfzManager.loadWmfFile(filename); } else { throw new Exception("Not a Wmf map file"); } }
public Hf2HeightMap(string filename) { L3dtFileManager.L3dtFileManager hfzManager = new L3dtFileManager.L3dtFileManager(); if (filename.EndsWith(".hf2.gz") || filename.EndsWith(".hfz")) { this.file = hfzManager.loadHfzFile(filename, FileFormat.COMPRESSED); } else if (filename.EndsWith(".hf2")) { this.file = hfzManager.loadHfzFile(filename, FileFormat.UNCOMPRESSED); } else { throw new Exception("Not a HF2 map file"); } }
public AmfAttributeMap(string filename) { L3dtFileManager.L3dtFileManager manager = new L3dtFileManager.L3dtFileManager(); if (filename.EndsWith(".amf.gz")) { this.file = manager.loadAmfFile(filename, FileFormat.COMPRESSED); } else if (filename.EndsWith(".amf")) { this.file = manager.loadAmfFile(filename, FileFormat.UNCOMPRESSED); } else { throw new Exception("Not a AMF map file"); } }
static void Main() { string fileName = pathToTestFile + "\\testfile\\l3dt_hf_level\\l3dttest.proj"; L3dtFileManager manager = new L3dtFileManager(); L3dtFile result = manager.loadL3dtProject(fileName); }