Greece file format convertions
Misc convertions of Greece file formats.
Kthmatologio json export Fix
Fixes the format of json file exported from kthmatologio site https://maps.ktimatologio.gr/
sample json input
{
"displayFieldName": "",
"geometryType": "esriGeometryPolygon",
"spatialReference": {
"wkid": 2100
},
"fields": [
{
"name": "KAEK",
"type": "esriFieldTypeString",
"length": 12
},
{
"name": "AREA",
"type": "esriFieldTypeDouble"
}
],
"features": [
{
"attributes": {
"KAEK": "200610301013",
"AREA": 5057.91
},
"geometry": {
"rings": [
[
[
"224806.77",
"4397865.34"
],
[
"224832.06",
"4397825.50"
],
[
"224806.67",
"4397811.65"
],
sample json output
{
"displayFieldName" : "",
"geometryType" : "esriGeometryPolygon",
"spatialReference" : {
"wkid" : 2100
},
"fields" : [
{
"name" : "KAEK",
"type" : "esriFieldTypeString",
"length" : 12
},
{
"name" : "AREA",
"type" : "esriFieldTypeDouble"
}
],
"features" : [
{
"attributes" : {
"KAEK" : "200610301013",
"AREA" : 5.0579099999999999E+003
},
"geometry" : {
"rings" : [
[
[
2.2480676999999999E+005,
4.3978653399999999E+006
],
[
2.2483206000000000E+005,
4.3978255000000000E+006
],
[
2.2480667000000001E+005,
4.3978116500000004E+006
],