tilezen / joerd

Joerd can be used to download, merge and generate tiles from digital elevation data
MIT License
324 stars 50 forks source link

Options for making smaller jobs. #54

Closed zerebubuth closed 8 years ago

zerebubuth commented 8 years ago

Removed complicated stuff from enqueuer and put it in a separate program, with more options to control output size.

It is now possible to run a config through the scripts/generate.py, for example:

python scripts/generate.py --bbox="-120,36,-118,40" config.yaml config.out.yaml ~/Downloads/natural_earth/ne_10m_*.shp

Will generate an output file with many smaller regions. The output config can be passed directly into the enqueuer, which will now just turn each into a job, 1:1.

Note that for production use, the --bbox parameter is optional and defaults to global scope. There's also a --global-region True argument for adding a global job to do everything below z8.

@kevinkreiser could you review, please?

zerebubuth commented 8 years ago

Note: I was using the ne_10m_land.shp and ne_10m_minor_islands.shp from Natural Earth to do the masking.

zerebubuth commented 8 years ago

Where by masking, I mean "which jobs intersect these shapefiles". If you want to do the whole world down to z15, I've added an option in 8a119d3 which makes the mask the whole world, so it intersects everything and all possible jobs get generated.

kevinkreiser commented 8 years ago

looks ok to me