जियोजसन (GeoJSON): Difference between revisions
No edit summary |
No edit summary |
||
| (5 intermediate revisions by 4 users not shown) | |||
| Line 46: | Line 46: | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
{ | { | ||
"type": "FeatureCollection", | |||
" | "features": [ | ||
{ | { | ||
" | "type": "Feature", | ||
" | "geometry": { | ||
" | "type": "Point", | ||
" | "coordinates"[102.0, 0.5] | ||
}, | }, | ||
" | "properties": { | ||
" | "prop0": "value0" | ||
} | } | ||
}, | }, | ||
{ | { | ||
"type": "Feature", | |||
" | "geometry": { | ||
" | "type": "LineString", | ||
" | "coordinates" [ | ||
[102.0, 0.0], | [102.0, 0.0], | ||
[103.0, 1.0], | [103.0, 1.0], | ||
| Line 69: | Line 69: | ||
] | ] | ||
}, | }, | ||
" | "properties": { | ||
" | "prop0": "value0", | ||
" | "prop1": 0.0 | ||
} | } | ||
}, | }, | ||
{ | { | ||
"type": "Feature", | |||
" | "geometry": { | ||
" | "type": "Polygon", | ||
" | "coordinates": [ | ||
[ | [ | ||
[100.0, 0.0], | [100.0, 0.0], | ||
| Line 88: | Line 88: | ||
] | ] | ||
}, | }, | ||
"properties": { | |||
" | "prop0": "value0", | ||
" | "prop1": { "this": "that" } | ||
} | } | ||
} | } | ||
| Line 107: | Line 107: | ||
|+ज्यामिति आदिम | |+ज्यामिति आदिम | ||
|- | |- | ||
! | !Type | ||
! colspan="2" | | ! colspan="2" |Examples | ||
|- | |- | ||
| | |Point | ||
| [[File:SFA Point.svg]] | | [[File:SFA Point.svg]] | ||
| <syntaxhighlight lang="javascript">{ | | <syntaxhighlight lang="javascript">{ | ||
"type": "Point", | |||
" | "coordinates": [30.0, 10.0] | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
|- | |- | ||
| | |LineString | ||
| [[File:SFA LineString.svg]] | | [[File:SFA LineString.svg]] | ||
| <syntaxhighlight lang="javascript">{ | | <syntaxhighlight lang="javascript">{ | ||
"type": "LineString", | |||
" | "coordinates": [ | ||
[30.0, 10.0], | [30.0, 10.0], | ||
[10.0, 30.0], | [10.0, 30.0], | ||
| Line 128: | Line 128: | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
|- | |- | ||
| rowspan="2" | | | rowspan="2" |Polygon | ||
| [[File:SFA Polygon.svg]] | | [[File:SFA Polygon.svg]] | ||
| <syntaxhighlight lang="javascript">{ | | <syntaxhighlight lang="javascript">{ | ||
" | |||
" | "type": "Polygon", | ||
"coordinates": [ | |||
[ | [ | ||
[30.0, 10.0], | [30.0, 10.0], | ||
| Line 145: | Line 146: | ||
| [[File:SFA Polygon with hole.svg]] | | [[File:SFA Polygon with hole.svg]] | ||
| <syntaxhighlight lang="javascript">{ | | <syntaxhighlight lang="javascript">{ | ||
" | |||
" | "type": "Polygon", | ||
"coordinates": [ | |||
[ | [ | ||
[35.0, 10.0], | [35.0, 10.0], | ||
| Line 170: | Line 172: | ||
!colspan="2"|इग्ज़ैम्पलस | !colspan="2"|इग्ज़ैम्पलस | ||
|- | |- | ||
| | |MultiPoint | ||
| [[File:SFA MultiPoint.svg]] | | [[File:SFA MultiPoint.svg]] | ||
| <syntaxhighlight lang="javascript">{ | | <syntaxhighlight lang="javascript">{ | ||
" | "type": "MultiPoint", | ||
" | "coordinates": [ | ||
[10.0, 40.0], | [10.0, 40.0], | ||
[40.0, 30.0], | [40.0, 30.0], | ||
| Line 182: | Line 184: | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
|- | |- | ||
| | |MultiLineString | ||
| [[File:SFA MultiLineString.svg]] | | [[File:SFA MultiLineString.svg]] | ||
| <syntaxhighlight lang="javascript">{ | | <syntaxhighlight lang="javascript">{ | ||
"type": "MultiLineString", | |||
" | "coordinates": [ | ||
[ | [ | ||
[10.0, 10.0], | [10.0, 10.0], | ||
| Line 201: | Line 203: | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
|- | |- | ||
|rowspan="2"| | |rowspan="2"|MultiPolygon | ||
| [[File:SFA MultiPolygon.svg]] | | [[File:SFA MultiPolygon.svg]] | ||
| <syntaxhighlight lang="javascript">{ | | <syntaxhighlight lang="javascript">{ | ||
"type": "MultiPolygon", | |||
" | "coordinates": [ | ||
[ | [ | ||
[ | [ | ||
| Line 228: | Line 230: | ||
| [[File:SFA MultiPolygon with hole.svg]] | | [[File:SFA MultiPolygon with hole.svg]] | ||
| <syntaxhighlight lang="javascript">{ | | <syntaxhighlight lang="javascript">{ | ||
" | "type": "MultiPolygon", | ||
" | "coordinates": [ | ||
[ | [ | ||
[ | [ | ||
| Line 257: | Line 259: | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
|- | |- | ||
| | |GeometryCollection | ||
| [[File:SFA GeometryCollection.svg]] | | [[File:SFA GeometryCollection.svg]] | ||
| <syntaxhighlight lang="javascript">{ | | <syntaxhighlight lang="javascript">{ | ||
" | "type": "GeometryCollection", | ||
" | "geometries": [ | ||
{ | { | ||
" | "type": "Point", | ||
" | "coordinates": [40.0, 10.0] | ||
}, | }, | ||
{ | { | ||
"type": "LineString", | |||
" | "coordinates": [ | ||
[10.0, 10.0], | [10.0, 10.0], | ||
[20.0, 20.0], | [20.0, 20.0], | ||
| Line 275: | Line 277: | ||
}, | }, | ||
{ | { | ||
" | "type": "Polygon", | ||
" | "coordinates": [ | ||
[ | [ | ||
[40.0, 40.0], | [40.0, 40.0], | ||
| Line 301: | Line 303: | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
{ | { | ||
" | "type":"Topology", | ||
" | "transform":{ | ||
" | "scale": [1,1], | ||
" | "translate": [0,0] | ||
}, | }, | ||
" | "objects":{ | ||
" | "two-squares":{ | ||
" | "type": "GeometryCollection", | ||
" | "geometries":[ | ||
{" | {"type": "Polygon", "arcs":[[0,1]],"properties": {"name": "Left_Polygon" }}, | ||
{" | {"type": "Polygon", "arcs":[[2,-1]],"properties": {"name": "Right_Polygon" }} | ||
] | ] | ||
}, | }, | ||
" | "one-line": { | ||
" | "type":"GeometryCollection", | ||
" | "geometries":[ | ||
{" | {"type": "LineString", "arcs": [3],"properties":{"name":"Under_LineString"}} | ||
] | ] | ||
}, | }, | ||
" | "two-places":{ | ||
" | "type":"GeometryCollection", | ||
" | "geometries":[ | ||
{" | {"type":"Point","coordinates":[0,0],"properties":{"name":"Origine_Point"}}, | ||
{" | {"type":"Point","coordinates":[0,-1],"properties":{"name":"Under_Point"}} | ||
] | ] | ||
} | } | ||
| Line 356: | Line 358: | ||
* [https://github.com/topojson/topojson topojson/topojson] | * [https://github.com/topojson/topojson topojson/topojson] | ||
[[Category:Created On 10/07/2023]] | [[Category:Created On 10/07/2023]] | ||
[[Category:JSON]] | |||
[[Category:Lua-based templates]] | |||
[[Category:Machine Translated Page]] | |||
[[Category:Official website not in Wikidata]] | |||
[[Category:Pages with script errors]] | |||
[[Category:Templates Vigyan Ready]] | |||
[[Category:Templates that add a tracking category]] | |||
[[Category:Templates that generate short descriptions]] | |||
[[Category:Templates using TemplateData]] | |||
[[Category:जीआईएस वेक्टर फ़ाइल स्वरूप]] | |||
Latest revision as of 10:46, 27 July 2023
| Filename extensions | .json, .geojson |
|---|---|
| Internet media type | application/geo+json[1] |
| Type of format | GIS file format |
| Extended from | JSON |
| Standard | RFC 7946 |
| Open format? | yes |
| Website | geojson |
जियोजसन[1] एक विवृत मानक प्रारूप है जिसे सरल भौगोलिक विशेषताओं के साथ-साथ उनकी गैर-स्थानिक विशेषताओं का प्रतिनिधित्व करने के लिए डिज़ाइन किया गया है। यह जेसन प्रारूप पर आधारित है.
सुविधाओं में बिंदु , लाइन स्ट्रिंग्स, बहुभुज, और इस प्रकार के बहु-भाग संग्रह सम्मलित हैं। जियोजसन सुविधाओं को केवल भौतिक दुनिया की संस्थाओं का प्रतिनिधित्व करने की आवश्यकता नहीं है; उदाहरण के लिए, मोबाइल उत्कीर्णन और संचालन ऐप्स, जियोसन का उपयोग करके अपने सर्विस कवरेज का वर्णन कर सकते हैं।[2]
जियोसन प्रारूप अन्य GIS मानकों से इस मायने में भिन्न है कि इसे किसी औपचारिक मानक संगठन द्वारा नहीं, बल्कि डेवलपर्स के एक इंटरनेट कार्य समूह द्वारा मुद्रित करना और बनाए रखना है।[3]
जियोजसन की एक उल्लेखनीय संतान टोपोजसन है, जो जियोजसन का एक विस्तार है जो भू-स्थानिक सांस्थिति को एन्कोड करता है और जो सामान्यतः छोटी श्रेणी आकार प्रदान करता है।
इतिहास
जियोजसन प्रारूप कार्य समूह और चर्चा मार्च 2007 में प्रारंभ हुई थी[4] और प्रारूप विनिर्देश को जून 2008 में अंतिम रूप दिया गया था।
अप्रैल 2015 में इंटरनेट इंजीनियरिंग टास्क फोर्स ने जियोग्राफिक जेसन वर्किंग ग्रुप की स्थापना की है[5] जिसने अगस्त 2016 में जियोजसन को RFC 7946 के रूप में प्रवृत्त किया था।
उदाहरण
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates"[102.0, 0.5]
},
"properties": {
"prop0": "value0"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates" [
[102.0, 0.0],
[103.0, 1.0],
[104.0, 0.0],
[105.0, 1.0]
]
},
"properties": {
"prop0": "value0",
"prop1": 0.0
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[100.0, 0.0],
[101.0, 0.0],
[101.0, 1.0],
[100.0, 1.0],
[100.0, 0.0]
]
]
},
"properties": {
"prop0": "value0",
"prop1": { "this": "that" }
}
}
]
}
ज्यामिति
बिंदु [x, y] या [x, y, z] हैं। वे [देशांतर, अक्षांश] या [पूर्व, उत्तर दिशा] हो सकते हैं। ऊंचाई एक वैकल्पिक तीसरी संख्या है. वे दशमलव संख्याएँ हैं. [6]
उदाहरण के लिए, लंदन (51.5074° उत्तर, 0.1278° पश्चिम) [-0.1278, 51.5074] है।
| Type | Examples | |
|---|---|---|
| Point | {
"type": "Point",
"coordinates": [30.0, 10.0]
}
| |
| LineString | File:SFA LineString.svg | {
"type": "LineString",
"coordinates": [
[30.0, 10.0],
[10.0, 30.0],
[40.0, 40.0]
]
}
|
| Polygon | File:SFA Polygon.svg | {
"type": "Polygon",
"coordinates": [
[
[30.0, 10.0],
[40.0, 40.0],
[20.0, 40.0],
[10.0, 20.0],
[30.0, 10.0]
]
]
}
|
| File:SFA Polygon with hole.svg | {
"type": "Polygon",
"coordinates": [
[
[35.0, 10.0],
[45.0, 45.0],
[15.0, 40.0],
[10.0, 20.0],
[35.0, 10.0]
],
[
[20.0, 30.0],
[35.0, 35.0],
[30.0, 20.0],
[20.0, 30.0]
]
]
}
| |
| टाइप | इग्ज़ैम्पलस | |
|---|---|---|
| MultiPoint | File:SFA MultiPoint.svg | {
"type": "MultiPoint",
"coordinates": [
[10.0, 40.0],
[40.0, 30.0],
[20.0, 20.0],
[30.0, 10.0]
]
}
|
| MultiLineString | File:SFA MultiLineString.svg | {
"type": "MultiLineString",
"coordinates": [
[
[10.0, 10.0],
[20.0, 20.0],
[10.0, 40.0]
],
[
[40.0, 40.0],
[30.0, 30.0],
[40.0, 20.0],
[30.0, 10.0]
]
]
}
|
| MultiPolygon | File:SFA MultiPolygon.svg | {
"type": "MultiPolygon",
"coordinates": [
[
[
[30.0, 20.0],
[45.0, 40.0],
[10.0, 40.0],
[30.0, 20.0]
]
],
[
[
[15.0, 5.0],
[40.0, 10.0],
[10.0, 20.0],
[5.0, 10.0],
[15.0, 5.0]
]
]
]
}
|
| File:SFA MultiPolygon with hole.svg | {
"type": "MultiPolygon",
"coordinates": [
[
[
[40.0, 40.0],
[20.0, 45.0],
[45.0, 30.0],
[40.0, 40.0]
]
],
[
[
[20.0, 35.0],
[10.0, 30.0],
[10.0, 10.0],
[30.0, 5.0],
[45.0, 20.0],
[20.0, 35.0]
],
[
[30.0, 20.0],
[20.0, 15.0],
[20.0, 25.0],
[30.0, 20.0]
]
]
]
}
| |
| GeometryCollection | File:SFA GeometryCollection.svg | {
"type": "GeometryCollection",
"geometries": [
{
"type": "Point",
"coordinates": [40.0, 10.0]
},
{
"type": "LineString",
"coordinates": [
[10.0, 10.0],
[20.0, 20.0],
[10.0, 40.0]
]
},
{
"type": "Polygon",
"coordinates": [
[
[40.0, 40.0],
[20.0, 45.0],
[45.0, 30.0],
[40.0, 40.0]
]
]
}
]
}
|
टॉपोजेसन
टॉपोजेसन, जियोजेसन का एक विस्तार है जो सांस्थिति को एन्कोड करता है। ज्यामिति को विवेकपूर्वक प्रस्तुत करने के अतिरिक्त, टॉपोजेसन पंक्तियों में ज्यामिति को आर्क नामक साझा रेखा खंडों से एक साथ जोड़ा जाता है।[7] चाप बिंदुओं के अनुक्रम हैं, जबकि रेखा स्ट्रिंग और बहुभुज को चापों के अनुक्रम के रूप में परिभाषित किया गया है। प्रत्येक चाप को केवल एक बार परिभाषित किया गया है, परंतु विभिन्न आकृतियों द्वारा कई बार संदर्भित किया जा सकता है, इस प्रकार अतिरेक कम हो जाता है और पंक्ति का आकार कम हो जाता है।[8] इसके अतिरिक्त, टॉपोजेसन उन अनुप्रयोगों की सुविधा प्रदान करता है जो टोपोलॉजी का उपयोग करते हैं, जैसे टोपोलॉजी-संरक्षित आकार सरलीकरण, स्वचालित मानचित्र रंग और कार्टोग्राम आदि होते है।
टॉपोजेसन विनिर्देशन का एक संदर्भ कार्यान्वयन, गेजेसन से टॉपोजेसन को एनकोड करने के लिए एक कमांड-लाइन टूल के रूप में उपलब्ध है और टॉपोजेसन को फिर से जियोजेसन में डीकोड करने के लिए क्लाइंट साइड जावास्क्रिप्ट लाइब्रेरी उपलब्ध है। टॉपोजेसन संस्करण 1.11[9] से लोकप्रिय OGR टूल और संस्करण 2.1.0 से पोस्ट GIS द्वारा भी समर्थित है।[10]
टॉपोजेसन योजना
निर्देशांक अक्षांश 0° और देशांतर 0° के निकट एक GIS आकार को देखते हुए, सभी मेटाडेटा, बहुभुज, लाइनस्ट्रिंग, बिंदु तत्व, आर्क और गुणों वाली एक सरल परंतु वैध और पूर्ण टॉपोजॉन पंक्ति को निम्नानुसार परिभाषित किया गया है:
{
"type":"Topology",
"transform":{
"scale": [1,1],
"translate": [0,0]
},
"objects":{
"two-squares":{
"type": "GeometryCollection",
"geometries":[
{"type": "Polygon", "arcs":[[0,1]],"properties": {"name": "Left_Polygon" }},
{"type": "Polygon", "arcs":[[2,-1]],"properties": {"name": "Right_Polygon" }}
]
},
"one-line": {
"type":"GeometryCollection",
"geometries":[
{"type": "LineString", "arcs": [3],"properties":{"name":"Under_LineString"}}
]
},
"two-places":{
"type":"GeometryCollection",
"geometries":[
{"type":"Point","coordinates":[0,0],"properties":{"name":"Origine_Point"}},
{"type":"Point","coordinates":[0,-1],"properties":{"name":"Under_Point"}}
]
}
},
"arcs": [
[[1,2],[0,-2]],
[[1,0],[-1,0],[0,2],[1,0]],
[[1,2],[1,0],[0,-2],[-1,0]],
[[0,-1],[2,0]]
]
}
यह भी देखें
संदर्भ
- ↑ 1.0 1.1 Butler, Howard; Daly, Martin; Doyle, Allan; Gillies, Sean; Hagen, Stefan; Schaub, Tim (August 2016). RFC 7946. IETF. doi:10.17487/RFC7946.
- ↑ "दिशानिर्देश प्रदान करना". developer.apple.com.
- ↑ "जियोजसन जानकारी पृष्ठ". lists.geojson.org.
- ↑ "The GeoJSON March 2007 Archive by thread". lists.geojson.org.
- ↑ "भौगोलिक JSON (जियोजोन) -". datatracker.ietf.org.
- ↑ "GeoJSON RFC #3.1.1".
- ↑ "topojson/topojson-specification". December 11, 2020 – via GitHub.
- ↑ "topojson/topojson". GitHub.
- ↑ "Release/1.11.0-News – GDAL". trac.osgeo.org.
- ↑ "AsTopoJSON". postgis.net.
स्रोत
- Andrews, Christopher (18 September 2007). "उभरती प्रौद्योगिकी: AJAX और जियोसन". Archived from the original on 22 May 2009.
- "जियोवेब गुरु: तकनीकी अवलोकन: जियोजसन". 16 February 2009. Archived from the original on 2009-02-21.
- Lambert, Chris (4 May 2009). "Google जियो डेवलपर्स ब्लॉग: जियोजसन और KML के साथ अपने सार्वजनिक अक्षांश स्थान के शीर्ष पर निर्माण करें".