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

how to create the sample images? #2

Open
bdekoz opened this issue Jan 27, 2017 · 4 comments
Open

how to create the sample images? #2

bdekoz opened this issue Jan 27, 2017 · 4 comments

Comments

@bdekoz
Copy link

bdekoz commented Jan 27, 2017

I'm having problems reproducing the sample images with my local install, the land boundaries are not showing up for me. Any chance you could please post the command lines used to generate the maps in samples/black-white-downsampled.png and samples/colored-downsampled.png?

@temporaer
Copy link
Owner

Can you post what you did so far?

@bdekoz
Copy link
Author

bdekoz commented Jan 27, 2017

Sure.

myriaworld --depth 5 --sigma 0.4 --wlon 0.5 --output myrahedral-1 --alpha 1 --rotate 0 --clat 0 --clon 0 --roll 0 --render png

gives:
https://68.media.tumblr.com/69e61a33fd8c4d04dc9cbeff9486d1b4/tumblr_okg313FrZD1r12abeo3_1280.png

And at lat 90:
myriaworld --depth 5 --sigma 0.4 --wlon 0.5 --output myrahedral-2 --alpha 1 --rotate 0 --clat 90 --clon 0 --roll 0 --render png

gives:
https://68.media.tumblr.com/058b11f4a9f35486791f9695fc690e6e/tumblr_okg549FpGI1r12abeo1_1280.png

@bdekoz
Copy link
Author

bdekoz commented Jan 27, 2017

%ll data/*.shp
-rw-rw-r--. 1 bkoz bkoz 1.3M Oct 7 2013 data/ne_10m_admin_0_boundary_lines_land.shp
-rw-rw-r--. 1 bkoz bkoz 8.5M Dec 3 2013 data/ne_10m_admin_0_countries.shp
-rw-rw-r--. 1 bkoz bkoz 6.9M Oct 8 2013 data/ne_10m_ocean.shp
-rw-rw-r--. 1 bkoz bkoz 201K Oct 7 2013 data/ne_10m_populated_places.shp

@bdekoz
Copy link
Author

bdekoz commented Jan 27, 2017

convert asserts to conditionals in country2tria_s2.cpp like so:

  •       // XXX bkoz
    
  •       // assert(piece->GetArea() > 10)
    
  •       if (piece->GetArea() > 10)
    
  •         {
    
  •           flat_country.push_back(piece);
    
  •           flat_cell.push_back(id0);
    
  •         }
    

looks like this code in flux from git log

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

No branches or pull requests

2 participants