Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

process based parallelism. #8

Merged
merged 2 commits into from
Feb 6, 2017
Merged

process based parallelism. #8

merged 2 commits into from
Feb 6, 2017

Conversation

bolshoydi
Copy link

merge conflict repaired. Tested using:

  • python 2.7.12 x64 GDAL 2.0.2.
  • python 3.4.4 x64 GDAL 2.0.2.
  • python 2.7.10 x32 GDAL 2.0.2.

On OS:

  • win7 x64 core i7 8 CPU
  • win10 x64 core i5-3210m 2.5GHz 4CPU (notebook\laptop)

@roblabs roblabs merged commit 4792408 into roblabs:master Feb 6, 2017
@roblabs
Copy link
Owner

roblabs commented Feb 6, 2017

Very fast!!

Tested with

  • macOS 10.12.3
  • Python 2.7.12,
  • GDAL 2.1.2, released 2016/10/24

@roblabs
Copy link
Owner

roblabs commented Feb 6, 2017

@bolshoydi, I created PR pramsey#5 so that your changes go into the original repo that I forked from.

@bolshoydi
Copy link
Author

@roblabs nice to hear this!!!! the next step i would like to create gdal2mbtilesp script with multiprocessing support

@roblabs
Copy link
Owner

roblabs commented Feb 6, 2017

@bolshoydi, are you aware of this project for creating .mbtiles? I use it in conjunction with gdal2tiles for creating my final file.

https://github.com/mapbox/mbutil

@bolshoydi
Copy link
Author

@roblabs yes, i know. Now i'm using gdal2tilesp to create tiles, then i use mbutil to create mbtiles. When input raster of small size (less 500Mb) everything fine and speed of loading images to mbtiles impressive, but when you load big amount of tiles (in my case 2.86Gb vrt of jpeg from 12 up to 21 zoom level made about 1.2millions of tiles) speed of loading (inserting) tiles into mbtiles became slow down from 2000 to 100 tiles / sec after 70,000 tiles inserted. My 8 CPUs were generating tiles for 5 hours + 5 hours of loading this tiles into mbtiles. I also tried different PRAGMA options to increase speed of tiles insertion. but nothing helps. So, i decided to combine both gdal2tilesp and mbutil scripts to write tiles directly into mbtiles.

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

Successfully merging this pull request may close these issues.

2 participants