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

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


ru:airlay:examples

Различия

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

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

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
Следующая версия Следующая версия справа и слева
ru:airlay:examples [2019/07/10 20:19]
Калинин Александр Игоревич [Опора]
ru:airlay:examples [2019/07/22 13:56]
Калинин Александр Игоревич [Пример объектов для MultiLineString]
Строка 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> 
-  } + 
-},+==== Пример объектов заявители ==== 
 +Мы можем рассмотреть на примере загрузки "Порталов". В данном примере мы имеем ветвление линии на конце перед подстанцией. //Some pylon 1// это опора в которой идёт ветвление(общая опора). Далее мы имеем //Some pylon 2//, //Some pylon 3//("Порталы"). Мы можем создать 2 линейных объекта для связи опор //Some line 1//, //Some line 2//. После этого идёт их объединение в множество линий //Some big line//, для этого идёт указание "MultiLineStringв типе геометрии. 
 +{{:ru:airlay:opera_снимок_2019-06-04_203439_map-sk.mrsks.ru.png|}} 
 +<code javascript>
 { {
-  "type" : "Feature", +  "type": "FeatureCollection", 
-  "properties" : { +  "features": 
-    "type" : "pylons", +    
-    "name" : "Some pylon 1", +    "_id" : ObjectId("5d34a82c819f8e2fe902a1c1")
-    "tplnr" : "some-name-1", +    "properties" : { 
-  }, +        "doknr" : "11000002088", 
-  "geometry" : +        "date" : "2010-10-02", 
-    "type" : "Point", +        "power" : 2367.0
-    "coordinates" : +        "status" : "Заключен", 
-      85.3538402166585+        "date_del" : "0000-00-00", 
-      51.9571677261215 +        "data_okon" : "2008-12-16", 
-    ] +        "vaoltage" : "110.0", 
-  } +        "category" : "3", 
-}, +        "main_tplnr_point" : "", 
-+        "main_tplnr_ps" : "PS110-000482/ПС 110 кВ Таёжная"
-  "type" : "Feature", +        "rezerv_tplnr_point" : "", 
-  "properties" : { +        "rezerv_tplnr_ps" : "", 
-    "type" : "pylons", +        "ztu_dokrn" : "0000000000000008000002839" 
-    "name" : "Some pylon 2", +    }
-    "tplnr" : "some-name-2", +    "type" : "Feature", 
-  }, +    "geometry" : { 
-  "geometry" : +        "type" : "Point", 
-    "type" : "Point", +        "coordinates" : [  
-    "coordinates" : +            86.54754,  
-      85.4538402166585+            56.23724 
-      51.9571677261215 +        
-    ] +    } 
-  } +
-}, +  ]
-+
-  "type" : "Feature", +
-  "properties" : +
-    "type" : "pylons", +
-    "name" : "Some pylon 3", +
-    "tplnr" : "some-name-3", +
-  }, +
-  "geometry" : { +
-    "type" : "Point", +
-    "coordinates" : [ +
-      85.3538402166585+
-      51.7571677261215 +
-    +
-  }+
 } }
-] 
 </code> </code>
ru/airlay/examples.txt · Последнее изменение: 2023/03/01 17:32 — Калинин Александр Игоревич