-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correcting extra properties assignment #1007
base: master
Are you sure you want to change the base?
Conversation
This obviously breaks the tests because it was not meant to be handled that way. |
What I understand by looking at the code is that properties contains few fields like x,y,zoom, geometry and extra_properties(which is a map used for 'per task instructions'). For e.g.. lets say If I create a single task with the following properties Then if you check extra_properties in pgsql it would be something like {"y": null, "x": null, "zoom": null, "extra_properties": {"p1": "v1”}} It should be something like {"p1": "v1”}. This you would get if you make the change that I made. Moreover you can try creating a task with extra_properties, by copying the above geojson and putting the below code snippet in per Task instructions in UI while creating the task. Let me know if I have misunderstood anything here. |
The input JSON is supposed to be formatted like so: {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[174.7002, -36.53508],
[174.7002, -36.54586],
[174.71066, -36.54632],
[174.71066, -36.53555],
[174.7002, -36.53508]
]
]
]
},
"properties": {
"p1": "v1"
}
}]
} |
Got it. One question here. What's the use of these extra_properties here then? |
As you mentioned, it's meant to be used for "per task" instructions. The JSON could be: {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[174.7002, -36.53508],
[174.7002, -36.54586],
[174.71066, -36.54632],
[174.71066, -36.53555],
[174.7002, -36.53508]
]
]
]
},
"properties": {
"name": "San_Francisco"
}
}]
} And per task instructions:
It has been used in the past for Africa with links to data to import into OSM. |
No description provided.