正确的 GeoJSON 格式。地图可视化
correct GeoJSON format. map visualization
首先要做的事情是:this data 的 GeoJSON 格式是否正确?
根据definition of GeoJSON data,根据MultiPoint
& coordinates
,我认为是。
看起来像这样:
{
"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"
},
我想将其可视化为 "zoomable",即。交互式,地图,如d3js website.
上的例子
我正在尝试使用名为 mapshaper.org 的工具以地图形式查看数据的初始可视化,但是当我加载它时,没有任何反应。
对我来说这没有意义,因为根据他们的网站,人们可以简单地
Drag and drop or select a file to import.
Shapefile, GeoJSON and TopoJSON files and Zip archives are supported.
但是,就我而言,它不起作用。
是否有人对可能出现的问题有任何直觉,或者有没有人对可以使用 GeoJSON 数据创建可缩放地图的工具提出建议?
According to the definition of GeoJSON data, I have what I think constitutes data in that format
嗯,您没有合适的 GeoJSON 对象。只需将您所获得的内容与您链接的示例进行比较即可。它甚至没有接近。这就是为什么 mapshaper 不知道如何处理您加载到其中的 JSON。
A GeoJSON object with the type "FeatureCollection" is a feature collection object. An object of type "FeatureCollection" must have a member with the name "features". The value corresponding to "features" is an array. Each element in the array is a feature object as defined above.
特征集合如下所示:
{
"type": "FeatureCollection",
"features": [
// Array of features
]
}
http://geojson.org/geojson-spec.html#feature-collection-objects
A GeoJSON object with the type "Feature" is a feature object. A feature object must have a member with the name "geometry". The value of the geometry member is a geometry object as defined above or a JSON null value. A feature object must have a member with the name "properties". The value of the properties member is an object (any JSON object or a JSON null value). If a feature has a commonly used identifier, that identifier should be included as a member of the feature object with the name "id".
地图项如下所示:
{
"id": "Foo",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [0, 0]
},
"properties": {
"label": "My Foo"
}
}
http://geojson.org/geojson-spec.html#feature-objects
以下是功能可以支持的不同几何对象的示例:http://geojson.org/geojson-spec.html#appendix-a-geometry-examples
把这两个放在一起,看起来像这样:
{
"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。这是我以前从未见过的格式,抱歉。
首先要做的事情是:this data 的 GeoJSON 格式是否正确?
根据definition of GeoJSON data,根据MultiPoint
& coordinates
,我认为是。
看起来像这样:
{
"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"
},
我想将其可视化为 "zoomable",即。交互式,地图,如d3js website.
上的例子我正在尝试使用名为 mapshaper.org 的工具以地图形式查看数据的初始可视化,但是当我加载它时,没有任何反应。
对我来说这没有意义,因为根据他们的网站,人们可以简单地
Drag and drop or select a file to import.
Shapefile, GeoJSON and TopoJSON files and Zip archives are supported.
但是,就我而言,它不起作用。
是否有人对可能出现的问题有任何直觉,或者有没有人对可以使用 GeoJSON 数据创建可缩放地图的工具提出建议?
According to the definition of GeoJSON data, I have what I think constitutes data in that format
嗯,您没有合适的 GeoJSON 对象。只需将您所获得的内容与您链接的示例进行比较即可。它甚至没有接近。这就是为什么 mapshaper 不知道如何处理您加载到其中的 JSON。
A GeoJSON object with the type "FeatureCollection" is a feature collection object. An object of type "FeatureCollection" must have a member with the name "features". The value corresponding to "features" is an array. Each element in the array is a feature object as defined above.
特征集合如下所示:
{
"type": "FeatureCollection",
"features": [
// Array of features
]
}
http://geojson.org/geojson-spec.html#feature-collection-objects
A GeoJSON object with the type "Feature" is a feature object. A feature object must have a member with the name "geometry". The value of the geometry member is a geometry object as defined above or a JSON null value. A feature object must have a member with the name "properties". The value of the properties member is an object (any JSON object or a JSON null value). If a feature has a commonly used identifier, that identifier should be included as a member of the feature object with the name "id".
地图项如下所示:
{
"id": "Foo",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [0, 0]
},
"properties": {
"label": "My Foo"
}
}
http://geojson.org/geojson-spec.html#feature-objects
以下是功能可以支持的不同几何对象的示例:http://geojson.org/geojson-spec.html#appendix-a-geometry-examples
把这两个放在一起,看起来像这样:
{
"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。这是我以前从未见过的格式,抱歉。