You are not logged in.

#1 2019-03-01 02:53:18

ika-chan!
Member
Registered: 2016-10-23
Posts: 99

JOSM/Overpass relations question

Hi there,

How does one use Overpass queries to download relations that have "admin_level=2", without downloading its members?

I ask this because some of the 296 relations with said key have so many members that it could slow down JOSM. Obviously, I am downloading the relations for analysis, and not to edit them.


No one has to be 100% perfect at OpenStreetMap.

Offline

#2 2019-03-01 08:30:22

GerdP
Member
Registered: 2015-12-18
Posts: 890

Re: JOSM/Overpass relations question

- Use the wizard with

type:relation and admin_level=2 global

- Click Build query
- remove the line

(._;>;);

(this clause would tell overpass api to recurse down to download all members)
- click download

Offline

#3 2019-03-01 09:17:33

mmd
Member
Registered: 2010-11-06
Posts: 1,771

Re: JOSM/Overpass relations question

I think in this case you can easily skip the wizard, as the Overpass QL query is even shorter:

rel[admin_level=2];out;

Last edited by mmd (2019-03-01 09:19:01)

Offline

Board footer

Powered by FluxBB