Инструменты пользователя

Инструменты сайта


ru:airlay:examples

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
Следующая версия Следующая версия справа и слева
ru:airlay:examples [2019/07/10 20:19]
Калинин Александр Игоревич [Опора]
ru:airlay:examples [2019/07/22 19:58]
Калинин Александр Игоревич [Пример объектов заявители]
Строка 386: Строка 386:
 {{:ru:airlay:opera_снимок_2019-06-04_203439_map-sk.mrsks.ru.png|}} {{:ru:airlay:opera_снимок_2019-06-04_203439_map-sk.mrsks.ru.png|}}
 <code javascript> <code javascript>
-[ 
 { {
-  "type" : "Feature", +  "type": "FeatureCollection", 
-  "properties" : { +  "features": [ 
-    "type" : "lines", +    [
-    "name" : "Some big line", +
-    "tplnr" : "some-big-line-name", +
-  }, +
-  "system":+
-    "relations": [+
       {       {
-        "some-line-name-1"+        "type": "Feature", 
 +        "properties":
 +          "type": "lines", 
 +          "name": "Some big line", 
 +          "tplnr": "some-big-line-name" 
 +        }, 
 +        "system":
 +          "relations":
 +            { 
 +              "some-line-name-1" 
 +            }, 
 +            { 
 +              "some-line-name-2" 
 +            } 
 +          ] 
 +        }, 
 +        "geometry":
 +          "type": "MultiLineString" 
 +        }
       },       },
       {       {
-        "some-line-name-2" +        "type": "Feature", 
-      } +        "properties":
-    ] +          "type": "lines", 
-  }, +          "name": "Some line 1", 
-  "geometry":+          "tplnr": "some-line-name-1" 
-    "type": "MultiLineString" +        }, 
-  } +        "system":
-}, +          "relations": [ 
-+            { 
-  "type" : "Feature", +              "some-name-1" 
-  "properties" : { +            }, 
-    "type" : "lines", +            { 
-    "name" : "Some line 1", +              "some-name-2" 
-    "tplnr" : "some-line-name-1", +            } 
-  }, +          ] 
-  "system":+        }, 
-    "relations": [+        "geometry":
 +          "type": "LineString" 
 +        } 
 +      },
       {       {
-        "some-name-1"+        "type": "Feature", 
 +        "properties":
 +          "type": "lines", 
 +          "name": "Some line 2", 
 +          "tplnr": "some-line-name-2" 
 +        }, 
 +        "system":
 +          "relations":
 +            { 
 +              "some-name-1" 
 +            }, 
 +            { 
 +              "some-name-3" 
 +            } 
 +          ] 
 +        }, 
 +        "geometry":
 +          "type": "LineString" 
 +        }
       },       },
       {       {
-        "some-name-2" +        "type": "Feature", 
-      } +        "properties":
-    ] +          "type": "pylons", 
-  }, +          "name": "Some pylon 1", 
-  "geometry":+          "tplnr": "some-name-1
-    "type": "LineString" +        }, 
-  } +        "geometry": { 
-}, +          "type": "Point", 
-+          "coordinates": [ 
-  "type" : "Feature", +            85.3538402166585, 
-  "properties" : { +            51.9571677261215 
-    "type" : "lines", +          ] 
-    "name" : "Some line 2", +        } 
-    "tplnr" : "some-line-name-2", +      },
-  }, +
-  "system": { +
-    "relations": [+
       {       {
-        "some-name-1"+        "type": "Feature", 
 +        "properties":
 +          "type": "pylons", 
 +          "name": "Some pylon 2", 
 +          "tplnr": "some-name-2" 
 +        }, 
 +        "geometry":
 +          "type": "Point", 
 +          "coordinates": [ 
 +            85.4538402166585, 
 +            51.9571677261215 
 +          ] 
 +        }
       },       },
       {       {
-        "some-name-3"+        "type": "Feature", 
 +        "properties":
 +          "type": "pylons", 
 +          "name": "Some pylon 3", 
 +          "tplnr": "some-name-3" 
 +        }, 
 +        "geometry":
 +          "type": "Point", 
 +          "coordinates":
 +            85.3538402166585, 
 +            51.7571677261215 
 +          ] 
 +        }
       }       }
     ]     ]
-  }, +  
-  "geometry": { +
-    "type": "LineString" +</code> 
-  } + 
-},+==== Пример объектов заявители ==== 
 +Мы можем задать заявку с привязкой к некоторой точке. 
 +<code javascript>
 { {
-  "type" : "Feature", +  "type": "FeatureCollection", 
-  "properties" : { +  "features":
-    "type" : "pylons", +    { 
-    "name" : "Some pylon 1", +      "properties":
-    "tplnr" : "some-name-1", +        "documentNumber": "00000000",//Номер заявки 
-  }, +        "date": 1563778702,//Дата Unix time 
-  "geometry" : { +        "power": 2267.0,// Мощность 
-    "type" : "Point", +        "status": "Заключен"/"Направлен заявителю", // Статус 
-    "coordinates" : [ +        "capitalExpenditures" : true/false //Капитальные затраты 
-      85.3538402166585+        "dataEnd": 1563778702, 
-      51.9571677261215 +        "voltage": 110.0, 
-    +        "category": 3, 
-  +        "mainPointTPLNR" : "VS00****/Опора some pylon name ", 
-},+        "mainPsTPLNR": "PS110***/ПС 110 кВ Some PS name", 
 +        "reservePointTPLNR": "", 
 +        "reservePsTPLNR": "", 
 +        "ztuDocumentNumber": "000000000000000800000000"//Техполе 
 +      }, 
 +      "type": "Feature", 
 +      "geometry":
 +        "type": "Point", 
 +        "coordinates":
 +          50.54754
 +          50.23724 
 +        
 +      
 +    } 
 +  ] 
 +
 +</code> 
 + 
 +==== Пример объектов потери ==== 
 +Мы можем задать потери с привязкой к подстанции через relations в поле System. 
 +<code javascript>
 { {
-  "type" : "Feature", +  "type": "FeatureCollection", 
-  "properties" : { +  "features": [ 
-    "type" : "pylons", +    
-    "name" : "Some pylon 2", +      "properties" : 
-    "tplnr" : "some-name-2", +        "uniqueKey: 20160915031311
-  }+        "date" : 1563778702, 
-  "geometry" : { +        "fiderInput: 21080.0,//Отпуск в сеть кВт/ч 
-    "type" : "Point", +        "lossAll" : 1130.0,// общие потери 
-    "coordinates" : +        "lossAllPercent: 9.64,// потери в процентах 
-      85.4538402166585, +        "All" : 200000.0,//По кВт/ч 
-      51.9571677261215 +        "LegalEntity" : 214.0,//Общий Юр. Лицам 
-    ] +        "Individual" : 19740.0,//Общий Физ лицам 
-  } +        "countLegalEntity: 1,// Количество Юр. Лиц 
-}+        "countIndividual" : 51,// Количество ФизЛиц 
-+        "countAll" : 52,//Общее количество 
-  "type" : "Feature", +        "countLegalEntityASKUE" : 1,//Абоненты АИИСКУЭ 
-  "properties" : { +        "countIndividualASKUE: 48
-    "type" : "pylons"+        "countAllASKUE" : 49, 
-    "name" : "Some pylon 3", +        "countNonASKUE" : 3,//Абоненты без АИИСКУЭ 
-    "tplnr" : "some-name-3", +        "color" : "GREEN" 
-  }, +      }
-  "geometry" : { +      "type": "Feature", 
-    "type" : "Point"+      "system": { 
-    "coordinates: [ +        "relations": 
-      85.3538402166585, +          { 
-      51.7571677261215 +            "objectId""KS**
-    ] +          } 
-  }+        ] 
 +      } 
 +    } 
 +  ]
 } }
-] 
 </code> </code>
ru/airlay/examples.txt · Последнее изменение: 2023/03/01 17:32 — Калинин Александр Игоревич