Sunday, 12 March 2017

standards - Encoding properties for each point in a GeoJSON multipoint


I'm working with GeoJSON Multipoints and wondering if there's any way of encoding properties for each point in the array? I realise this is a vague question but I'm looking for suggestions as to how I might achieve this or if there's a standard I'm unaware of.


AN EXAMPLE



In the example below I would be looking for a way for point1_property to represent a value for the first point in the MultiPoint array and point2_property to represent a value for the second point.


{  
"type":"FeatureCollection",
"features":[
{
"type":"Feature",
"geometry":
{
"type": "MultiPoint",
"coordinates": [

[100.0, 0.0], [101.0, 1.0]
]
},
"properties":{
"point1_property":"value1",
"point2_property":"value2"
}
}
]
}



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...