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

Breaking Into Regions or States? #4

Closed
ssokol opened this issue Aug 7, 2024 · 9 comments
Closed

Breaking Into Regions or States? #4

ssokol opened this issue Aug 7, 2024 · 9 comments

Comments

@ssokol
Copy link
Collaborator

ssokol commented Aug 7, 2024

Hi Brian,

Any thoughts on the best way to break up the database into regions? The full US data set (zoom levels 0 - 12) comes in at about 5.9 GB. One of my use cases is an iOS app, and I would prefer to give my users the option of downloading only those areas in which they fly rather than making them pull the full 5.9 GB each month. (It would save me a bit on bandwidth fees as well.)

Thanks,

Steve

@jamez70
Copy link
Collaborator

jamez70 commented Aug 7, 2024 via email

@ssokol
Copy link
Collaborator Author

ssokol commented Aug 7, 2024 via email

@N129BZ
Copy link
Owner

N129BZ commented Aug 7, 2024

The "easiest" solution would be to allow selection of the 53 individual chart areas - which correspond exactly to the printed sectional charts. To my knowledge, FAA does not publish charts by state. It should be fairly straightforward to add a checkbox selection of one or more of the specific 56 charts that you want to process. I would also HIGHLY recommend using WEBP image format. With WEBP the full mbtiles database is less than 3 gb. I will work on getting a checkbox list UI added to the app to make this possible.

@N129BZ
Copy link
Owner

N129BZ commented Aug 9, 2024

I have completed and am currently testing the modified app. Rather than a GUI I have implemented a console interface where the app prompts with "Enter 0 to process all charts in the chartprocessindexes array, or 1 to process a single VFR chart: "

When 1 is entered, the console puts out:

Select the chart number you want to process from this list

1 Albuquerque
2 Anchorage
3 Atlanta
4 Bethel
5 Billings
6 Brownsville
7 Cape_Lisburne
8 Charlotte
9 Cheyenne
10 Chicago
11 Cincinnati
12 Cold_Bay
13 Dallas-Ft_Worth
14 Dawson
15 Denver
16 Detroit
17 Dutch_Harbor
18 El_Paso
19 Fairbanks
20 Great_Falls
21 Green_Bay
22 Halifax
23 Hawaiian_Islands
24 Houston
25 Jacksonville
26 Juneau
27 Kansas_City
28 Ketchikan
29 Klamath_Falls
30 Kodiak
31 Lake_Huron
32 Las_Vegas
33 Los_Angeles
34 McGrath
35 Memphis
36 Miami
37 Montreal
38 New_Orleans
39 New_York
40 Nome
41 Omaha
42 Phoenix
43 Point_Barrow
44 Salt_Lake_City
45 San_Antonio
46 San_Francisco
47 Seattle
48 Seward
49 St_Louis
50 Twin_Cities
51 Washington
52 Western_Aleutian_Islands
53 Wichita

Enter a single chart number and the app will produce a single chart mbtiles database, for example, entering 50 will make Twin_Cities.db

Screenshot:
Twin_Cities

@ssokol
Copy link
Collaborator Author

ssokol commented Aug 9, 2024

Excellent! One small tweak, if I might suggest it: a command line option for the chart number. That would make it easy to script the process of generating the 53 separate database files.

@ssokol
Copy link
Collaborator Author

ssokol commented Aug 9, 2024

Oh - that last comment was assuming that the "0" option generates a single Sectionals.db file as the app currently does. I guess another option would be to accept "*" or something to create all 53 separate database.

@N129BZ
Copy link
Owner

N129BZ commented Aug 9, 2024

I could implement a "*" option to process all 53 as individual db files... I'll do that and test it.

@N129BZ
Copy link
Owner

N129BZ commented Aug 9, 2024

Added the "*" option which will process all 53 VFR area charts individually into separate db files

@N129BZ
Copy link
Owner

N129BZ commented Aug 9, 2024

Closing this issue

@N129BZ N129BZ closed this as completed Aug 9, 2024
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

3 participants