Hola,

On Wed, Feb 28, 2024 at 04:16:24PM +0100, Martin Trautmann via talk wrote:
> Is there any JSON converter that you would recommend?
> 
> There are plenty of web services, but none of those worked for me, on
> <https://opendata.essen.de/sites/default/files/Hauskoordinaten_0822.geojson>
> (70 MB)
> 
> There are plenty of starter tutorials, in order to use python,
> javascript etc.
> 
> But those did not work either.
> 
> I tried dasel, without success (dasel version v2.5.0)
> 
> So I wonder what the best solution might be, apart of writing my own
> converter (probably in perl).
> 
> What I would expect is hopefully a 100 % conversion - or an error log
> which data could not be processed.
> 
> The problem here seems to be the nesting of several levels.

For these kind of simple conversions there is no need for programming.

Its a GeoJSON Featurecollection. So a list of GeoJSON features,
each of them having a "properties" objects with all the attributes

jq -r ".features[] | 
[.properties.Strassenna,.properties.HsNr_Zus,.properties.Xg,.properties.Yg] | 
@csv" Hauskoordinaten_0822.geojson
"Stinnesstr.","8",7.010088,51.525567
"Timpestr.","29",7.010417,51.522377
"Hattramstr.","31",7.003345,51.52098
"Spakenbroich","69",7.003248,51.523044
"Bertramstr.","36",7.005647,51.522393
"Bertramstr.","38",7.005608,51.522429
"Bertramstr.","40",7.005566,51.522469
[...]

Flo
-- 
Florian Lohoff                                                     f...@zz.de
  Any sufficiently advanced technology is indistinguishable from magic.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk

Reply via email to