OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2018-10-09 15:51:25

Maurizio Proietti
Member
Registered: 2018-10-09
Posts: 3

Relation from DB to geojson feature

I'm trying to query DB (relation + relationmembers + way + ... + Nodes) and transform results in a featurecollection.
My query return nodes in the correct order, but I'd like to save a relation as a single feature.
My geojson is formally correct, but on a map it's not showed well.
Otherwise, if I transform any way in a single feature and a relation in a featurecollection (with the same query) the geojson is showed correctly on the map.
Why?
Thank you

Offline

#2 2018-10-16 18:37:12

toc-rox
Member
From: Münster
Registered: 2011-07-20
Posts: 1,927
Website

Re: Relation from DB to geojson feature

Perhaps helpful: You could try the "export to GeoJSON function" on https://overpass-turbo.eu/ and compare the results with yours.

Offline

#3 2018-10-16 20:58:16

Maurizio Proietti
Member
Registered: 2018-10-09
Posts: 3

Re: Relation from DB to geojson feature

It's a good idea, i don't know this function

Offline

Board footer

Powered by FluxBB