예제 #1
0
 private static void deserialize()
 {
     using (EpcDocument epc_file = new EpcDocument("../../../TestingPackageCs"))
     {
         string des_status             = epc_file.deserialize();
         LocalDepth3dCrsVector crs_set = epc_file.getLocalDepth3dCrsSet();
         System.Console.WriteLine("CRS title is " + crs_set[0].getTitle());
         epc_file.close();
         System.Console.WriteLine("Press enter to exit");
         System.Console.ReadLine();
     }
 }
예제 #2
0
 private static void deserialize()
 {
     using (EpcDocument epc_file = new EpcDocument("../../../TestingPackageCs"))
     {
         string status = epc_file.deserialize();
         if (status.Length > 0)
         {
             System.Console.WriteLine(status);
         }
         LocalDepth3dCrsVector crs_set = epc_file.getLocalDepth3dCrsSet();
         System.Console.WriteLine("Deserialize : CRS title is " + crs_set[0].getTitle());
     }
 }
예제 #3
0
 private static void deserialize()
 {
     using (EpcDocument epc_file = new EpcDocument("../../../TestingPackageCs.epc"))
     {
         string status = epc_file.deserialize();
         if (status.Length > 0)
         {
             System.Console.WriteLine("Warnings are " + status);
         }
         LocalDepth3dCrsVector crs_set = epc_file.getLocalDepth3dCrsSet();
         System.Console.WriteLine("Deserialize : CRS title is " + crs_set[0].getTitle());
         Well well = epc_file.getDataObjectByUuid("1425632e-3c22-4845-b431-ecd36da0671e") as Well;
         System.Console.WriteLine("Deserialize : Well title is " + well.getTitle());
         System.Console.WriteLine("\tnameLegal : " + well.getNameLegal());
         System.Console.WriteLine("\twaterDepth : " + well.getWaterDepthValue() + " (" + well.getWaterDepthUom() + ")");
         if (well.hasTimeZone())
         {
             System.Console.WriteLine("\ttimeZone : " + well.getTimeZoneHours() + " hours");
         }
     }
 }