Dictionary 正确的GeoJSON格式。地图可视化

Dictionary 正确的GeoJSON格式。地图可视化,dictionary,visualization,geojson,topojson,Dictionary,Visualization,Geojson,Topojson,第一件事:是否使用正确的GeoJSON格式 根据,正如您通过多点和坐标所看到的,我认为是这样的 看起来是这样的: { "lang": { "code": "en", "conf": 1.0 }, "group": "JobServe", "description": "Work with the data science team to build new products and integrate analytics\n

第一件事:是否使用正确的GeoJSON格式


根据,正如您通过
多点
坐标
所看到的,我认为是这样的

看起来是这样的:

{
    "lang": {
        "code": "en", 
        "conf": 1.0
    }, 
    "group": "JobServe", 
    "description": "Work with the data science team to build new products and integrate analytics\ninto existing workflows. Leverage big data solutions, advanced statistical\nmethods, and web apps. Coordinate with domain experts, IT operations, and\ndevelopers. Present to clients.\n\n  * Coordinate the workflow of the data science team\n  * Join a team of experts in big data, advanced analytics, and visualizat...", 
    "title": "Data Science Team Lead", 
    "url": "http://www.jobserve.com/us/en/search-jobs-in-Columbia,-Maryland,-USA/DATA-SCIENCE-TEAM-LEAD-99739A4618F8894B/", 
    "geo": {
        "type": "MultiPoint", 
        "coordinates": [
            [
                -76.8582049, 
                39.2156213
            ]
        ]
    }, 
    "tags": [
        "Job Board"
    ], 
    "spider": "jobserveNa", 
    "employmentType": [
        "Unspecified"
    ], 
    "lastSeen": "2015-05-13T01:21:07.240000", 
    "jobLocation": [
        "Columbia, Maryland, United States of America"
    ], 
    "identifier": "99739A4618F8894B", 
    "hiringOrganization": [
        "Customer Relation Market Research Company"
    ], 
    "firstSeen": "2015-05-13T01:21:07+00:00"
}, 
{
    "type": "FeatureCollection",
    "features": [
        // Array of features
    ]
}
{
     "id": "Foo",
     "type": "Feature",
     "geometry": {
         "type": "Point",
         "coordinates": [0, 0]
     },
     "properties": {
          "label": "My Foo"
     }
 }
{
    "type": "FeatureCollection",
    "features": [{
        "id": "Foo",
        "type": "Feature",
        "geometry": {
        "type": "Point",
            "coordinates": [0, 0]
        },
        "properties": {
            "label": "My Foo"
        }
    },{
        "id": "Bar",
        "type": "Feature",
        "geometry": {
            "type": "LineString",
            "coordinates": [
                [100.0, 0.0],
                [101.0, 1.0]
            ]
        },
        "properties": {
            "label": "My Bar"
        }
    }]
}
我想把它想象成一个“可缩放的”,即。交互式,地图,如图上的示例所示

我试图使用一个名为的工具来查看地图形式的数据的初始可视化,但当我加载它时,什么也没发生

对我来说,这毫无意义,因为根据他们的网站,一个人可以

Drag and drop or select a file to import. 
Shapefile, GeoJSON and TopoJSON files and Zip archives are supported.
然而,就我而言,它不起作用

是否有人对可能出现的问题有任何直觉,或者有人建议使用一种工具,可以用GeoJSON数据创建一个可缩放的地图

根据GeoJSON数据的定义,我有我认为构成该格式数据的内容

好吧,你没有一个合适的GeoJSON对象。只需将你得到的与你链接的示例进行比较。它甚至没有接近。这就是为什么mapshaper不知道如何处理加载到其中的JSON

类型为“FeatureCollection”的GeoJSON对象是FeatureCollection对象。“FeatureCollection”类型的对象必须具有名为“features”的成员。“features”对应的值是一个数组。数组中的每个元素都是上面定义的要素对象

要素集合如下所示:

{
    "lang": {
        "code": "en", 
        "conf": 1.0
    }, 
    "group": "JobServe", 
    "description": "Work with the data science team to build new products and integrate analytics\ninto existing workflows. Leverage big data solutions, advanced statistical\nmethods, and web apps. Coordinate with domain experts, IT operations, and\ndevelopers. Present to clients.\n\n  * Coordinate the workflow of the data science team\n  * Join a team of experts in big data, advanced analytics, and visualizat...", 
    "title": "Data Science Team Lead", 
    "url": "http://www.jobserve.com/us/en/search-jobs-in-Columbia,-Maryland,-USA/DATA-SCIENCE-TEAM-LEAD-99739A4618F8894B/", 
    "geo": {
        "type": "MultiPoint", 
        "coordinates": [
            [
                -76.8582049, 
                39.2156213
            ]
        ]
    }, 
    "tags": [
        "Job Board"
    ], 
    "spider": "jobserveNa", 
    "employmentType": [
        "Unspecified"
    ], 
    "lastSeen": "2015-05-13T01:21:07.240000", 
    "jobLocation": [
        "Columbia, Maryland, United States of America"
    ], 
    "identifier": "99739A4618F8894B", 
    "hiringOrganization": [
        "Customer Relation Market Research Company"
    ], 
    "firstSeen": "2015-05-13T01:21:07+00:00"
}, 
{
    "type": "FeatureCollection",
    "features": [
        // Array of features
    ]
}
{
     "id": "Foo",
     "type": "Feature",
     "geometry": {
         "type": "Point",
         "coordinates": [0, 0]
     },
     "properties": {
          "label": "My Foo"
     }
 }
{
    "type": "FeatureCollection",
    "features": [{
        "id": "Foo",
        "type": "Feature",
        "geometry": {
        "type": "Point",
            "coordinates": [0, 0]
        },
        "properties": {
            "label": "My Foo"
        }
    },{
        "id": "Bar",
        "type": "Feature",
        "geometry": {
            "type": "LineString",
            "coordinates": [
                [100.0, 0.0],
                [101.0, 1.0]
            ]
        },
        "properties": {
            "label": "My Bar"
        }
    }]
}

类型为“Feature”的GeoJSON对象是Feature对象。要素对象必须具有名为“几何体”的成员。几何体成员的值是上面定义的几何体对象或JSON空值。要素对象必须具有名为“属性”的成员。properties成员的值是一个对象(任何JSON对象或JSON空值)。如果特征具有常用标识符,则该标识符应作为名称为“id”的特征对象的成员包含

功能如下所示:

{
    "lang": {
        "code": "en", 
        "conf": 1.0
    }, 
    "group": "JobServe", 
    "description": "Work with the data science team to build new products and integrate analytics\ninto existing workflows. Leverage big data solutions, advanced statistical\nmethods, and web apps. Coordinate with domain experts, IT operations, and\ndevelopers. Present to clients.\n\n  * Coordinate the workflow of the data science team\n  * Join a team of experts in big data, advanced analytics, and visualizat...", 
    "title": "Data Science Team Lead", 
    "url": "http://www.jobserve.com/us/en/search-jobs-in-Columbia,-Maryland,-USA/DATA-SCIENCE-TEAM-LEAD-99739A4618F8894B/", 
    "geo": {
        "type": "MultiPoint", 
        "coordinates": [
            [
                -76.8582049, 
                39.2156213
            ]
        ]
    }, 
    "tags": [
        "Job Board"
    ], 
    "spider": "jobserveNa", 
    "employmentType": [
        "Unspecified"
    ], 
    "lastSeen": "2015-05-13T01:21:07.240000", 
    "jobLocation": [
        "Columbia, Maryland, United States of America"
    ], 
    "identifier": "99739A4618F8894B", 
    "hiringOrganization": [
        "Customer Relation Market Research Company"
    ], 
    "firstSeen": "2015-05-13T01:21:07+00:00"
}, 
{
    "type": "FeatureCollection",
    "features": [
        // Array of features
    ]
}
{
     "id": "Foo",
     "type": "Feature",
     "geometry": {
         "type": "Point",
         "coordinates": [0, 0]
     },
     "properties": {
          "label": "My Foo"
     }
 }
{
    "type": "FeatureCollection",
    "features": [{
        "id": "Foo",
        "type": "Feature",
        "geometry": {
        "type": "Point",
            "coordinates": [0, 0]
        },
        "properties": {
            "label": "My Foo"
        }
    },{
        "id": "Bar",
        "type": "Feature",
        "geometry": {
            "type": "LineString",
            "coordinates": [
                [100.0, 0.0],
                [101.0, 1.0]
            ]
        },
        "properties": {
            "label": "My Bar"
        }
    }]
}

以下是特征可以支持的不同几何体对象的示例:

把这两个放在一起,看起来是这样的:

{
    "lang": {
        "code": "en", 
        "conf": 1.0
    }, 
    "group": "JobServe", 
    "description": "Work with the data science team to build new products and integrate analytics\ninto existing workflows. Leverage big data solutions, advanced statistical\nmethods, and web apps. Coordinate with domain experts, IT operations, and\ndevelopers. Present to clients.\n\n  * Coordinate the workflow of the data science team\n  * Join a team of experts in big data, advanced analytics, and visualizat...", 
    "title": "Data Science Team Lead", 
    "url": "http://www.jobserve.com/us/en/search-jobs-in-Columbia,-Maryland,-USA/DATA-SCIENCE-TEAM-LEAD-99739A4618F8894B/", 
    "geo": {
        "type": "MultiPoint", 
        "coordinates": [
            [
                -76.8582049, 
                39.2156213
            ]
        ]
    }, 
    "tags": [
        "Job Board"
    ], 
    "spider": "jobserveNa", 
    "employmentType": [
        "Unspecified"
    ], 
    "lastSeen": "2015-05-13T01:21:07.240000", 
    "jobLocation": [
        "Columbia, Maryland, United States of America"
    ], 
    "identifier": "99739A4618F8894B", 
    "hiringOrganization": [
        "Customer Relation Market Research Company"
    ], 
    "firstSeen": "2015-05-13T01:21:07+00:00"
}, 
{
    "type": "FeatureCollection",
    "features": [
        // Array of features
    ]
}
{
     "id": "Foo",
     "type": "Feature",
     "geometry": {
         "type": "Point",
         "coordinates": [0, 0]
     },
     "properties": {
          "label": "My Foo"
     }
 }
{
    "type": "FeatureCollection",
    "features": [{
        "id": "Foo",
        "type": "Feature",
        "geometry": {
        "type": "Point",
            "coordinates": [0, 0]
        },
        "properties": {
            "label": "My Foo"
        }
    },{
        "id": "Bar",
        "type": "Feature",
        "geometry": {
            "type": "LineString",
            "coordinates": [
                [100.0, 0.0],
                [101.0, 1.0]
            ]
        },
        "properties": {
            "label": "My Bar"
        }
    }]
}
这看起来真的不像你发布的JSON。您需要通过自定义脚本或手动将其转换为正确的GeoJSON。很抱歉,这是我以前从未见过的格式