Пример #1
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     if (!double.IsNaN(mElevationOfRefHeight))
     {
         obj["ElevationOfRefHeight"] = ElevationOfRefHeight.ToString();
     }
     if (!double.IsNaN(mElevationOfTerrain))
     {
         obj["ElevationOfTerrain"] = ElevationOfTerrain.ToString();
     }
 }
Пример #2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
 {
     base.setJSON(obj, host, processed);
     if (!double.IsNaN(mElevationOfRefHeight))
     {
         obj["ElevationOfRefHeight"] = ElevationOfRefHeight.ToString();
     }
     if (!double.IsNaN(mElevationOfTerrain))
     {
         obj["ElevationOfTerrain"] = ElevationOfTerrain.ToString();
     }
     if (mBuildingAddress > 0)
     {
         obj["BuildingAddress"] = BuildingAddress.getJson(this, processed);
     }
 }