Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Geojson format #4

Open
SPalominos opened this issue Jul 6, 2018 · 2 comments
Open

Geojson format #4

SPalominos opened this issue Jul 6, 2018 · 2 comments

Comments

@SPalominos
Copy link
Contributor

No description provided.

@ebocher
Copy link
Member

ebocher commented Jul 12, 2018

A good way will be to use the H2GIS geojson driver and adapt it to support multi output tables.

@ebocher
Copy link
Member

ebocher commented Jul 12, 2018

Basic example with groovy

import groovy.json.JsonSlurper

def reader = new BufferedReader(new InputStreamReader(new FileInputStream("/tmp/osm.json"),"UTF-8"))
    
def jsonSlurper = new JsonSlurper()
def jsonRoot = jsonSlurper.parse(reader)
jsonRoot.elements.each() { it ->

if(it.type=="way"){
     println(it.nodes)
}
}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants