Multipart To Singlepart
ProcessId : 214496b66f4eca0d3bd43769
Multipart To Singlepart เครื่องมือสำหรับการเปลี่ยนประเภทของข้อมูลที่เป็น เครื่องมือสำหรับสร้างข้อมูล โดยการแยกรูปเรขาคณิตที่อยู่ด้วยกันออกจากกัน ซึ่งจะเปลี่ยนประเภทของข้อมุลจาก Multipart ไปเป็น Single Part ตัวอย่างเช่น การเปลี่ยนข้อมูลจุดประเภท MultiPoint เป็น Point โดยผลลัพธ์จะได้ข้อมูลคุณสมบัติ (Features) ใหม่ และข้อมูลคุณลักษณะ (Attribute Data) มีการเปลี่ยนแปลง นอกจากนั้นแถวของข้อมูลจะเพิ่มมากขึ้น
ตัวอย่างการแยกข้อมูล Features ออกจากกัน
วิธีการใช้งาน
ทำการกรอกข้อมูลและเลือกผลลัพธ์จากการวิเคราะห์ข้อมูล
Input
- Input ระบุข้อมูลที่จะนำมาแยก Feature ออกจากกันโดยจะเป็นข้อมูลประเภท Vector (Point, Line, Polygon) ซึ่งสามารถนำ Features Collection ที่เคยนำเข้ามาแล้วมาสร้างและสามารถนำข้อมูล GeoJSON มาใช้ในการสร้างได้
Result ทำการเลือกประเภทของผลลัพธ์ซึ่งมีอยู่ 2 ประเภท คือ Vallaris Feature
GeoJSON
- Vallaris Feature จะต้องทำการสร้าง Features Collection ไว้สำหรับเก็บข้อมูลผลลัพธ์
- GeoJSON จะได้ผลลัพธ์ออกมาเป็น GeoJSON
ตัวอย่างข้อมูล GeoJSON : Input
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "urn:ogc:def:crs:OGC:1.3:CRS84"
}
},
"features": [
{
"type": "Feature",
"properties": {
"type": 1
},
"geometry": {
"type": "MultiPoint",
"coordinates": [
[
101.39007568359375,
14.580925348237587
],
[
101.656494140625,
14.373494598040024
]
]
}
},
{
"type": "Feature",
"properties": {
"type": 2
},
"geometry": {
"type": "Point",
"coordinates": [
101.2994384765625,
13.752724664396988
]
}
}
]
}
ตัวอย่างข้อมูล GeoJSON : Result
{
"type": "FeatureCollection",
"crs": {
"type": "name",
"properties": {
"name": "urn:ogc:def:crs:OGC:1.3:CRS84"
}
},
"features": [
{
"type": "Feature",
"properties": {
"type": 1
},
"geometry": {
"type": "Point",
"coordinates": [
101.39007568359375,
14.580925348237587
]
}
},
{
"type": "Feature",
"properties": {
"type": 1
},
"geometry": {
"type": "Point",
"coordinates": [
101.656494140625,
14.373494598040024
]
}
},
{
"type": "Feature",
"properties": {
"type": 2
},
"geometry": {
"type": "Point",
"coordinates": [
101.2994384765625,
13.752724664396988
]
}
}
]
}
จากตัวอย่างข้อมูลผลลัพธ์ (Result) เมื่อเปรียบเทียบกับข้อมูล Input จะเห็นได้ว่าประเภทของข้อมูลมีการเปลี่ยนแปลง "type" จาก MultiPoint เป็น Point