1

I have gpx data geojson like below:

{"type": "FeatureCollection","features": [
{"type": "Feature","properties":{"time":"2018-03-15T12:22:17.293Z","provider":"network","time_long":"1521116537293","accuracy":"21.507","altitude":"521.2000122070313"},"geometry":{"type":"Point","coordinates":[12.9734916,13.6980481]}}
,{"type": "Feature","properties":{"time":"2018-03-15T12:20:50.000Z","provider":"gps","time_long":"1521116450000","accuracy":"26.0","altitude":"601.0","bearing":"306.1","speed":"0.95"},"geometry":{"type":"Point","coordinates":[12.9732416,13.69785612]}}
}

I want to add two global level parameters:

start_time: 1521116537293
filename:  myfile.jpg

So that when I perform WFS call in Javascript I get above two parameters from geojson response in addition to above GPX point data.

Is it possible and supported in GeoJSON and if so how to do that in QGIS?

0
{"type": "FeatureCollection",
"start_time": 1521116537293,
"filename":  myfile.jpg,
"features": [
{"type": "Feature","properties":{"time":"2018-03-15T12:22:17.293Z","provider":"network","time_long":"1521116537293","accuracy":"21.507","altitude":"521.2000122070313"},"geometry":{"type":"Point","coordinates":[12.9734916,13.6980481]}}
,{"type": "Feature","properties":{"time":"2018-03-15T12:20:50.000Z","provider":"gps","time_long":"1521116450000","accuracy":"26.0","altitude":"601.0","bearing":"306.1","speed":"0.95"},"geometry":{"type":"Point","coordinates":[12.9732416,13.69785612]}}
}

You can do it as shown above.

  • Does Geojson standard support it and how to do in QGIS? – user61766 May 4 '18 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.