-
Notifications
You must be signed in to change notification settings - Fork 17
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
Mods for new Maps #340
Comments
Source for backend:
Where are the constants for:
|
@georgejhunt I notice that iiab-install-map-region computes the source url rather than reading from catalog. Looks like I should get the url from detail_url What will happen to the catalog if there is an osm_central_america_z11-z14_202X.mbtiles? will osm_central_america_z11-z14_2019.mbtiles remain or be replaced? |
@georgejhunt can I take the existence of /library/www/osm-vector-maps/installer/ as an indication that we have the new version of maps. I want to leave backwards compatibility, at least for now. |
My thinking about the catalog is somewhat unformed. I was thinking that the
model of the kiwix catalog was what I should shoot for.
In that case, I think the 2019 map would fall off the catalog, and be
replaced with the 2020 version (with the same perma-ref).
The color would indicate "installed" with the hover indicating the new map
available.
Installing the 2020 version would cause the deletion of the 2019 version in
/osm-vector-map/tile/.
That is not implemented in my code.
I'm sure you have thought about this whole issue much more than I.
Quote: can I take the existence of /library/www/osm-vector-maps/installer/
as an indication that we have the new version of maps. I want to leave
backwards compatibility, at least for now.
yes
…On Thu, Sep 17, 2020 at 9:54 AM Tim Moody ***@***.***> wrote:
@georgejhunt <https://github.com/georgejhunt> I notice that
iiab-install-map-region computes the source url rather than reading from
catalog. Looks like I should get the url from detail_url
What will happen to the catalog if there is an
osm_central_america_z11-z14_202X.mbtiles? will
osm_central_america_z11-z14_2019.mbtiles remain or be replaced?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#340 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOTQHESVQDL735MQCFD5M3SGI5LXANCNFSM4RPFLQBA>
.
|
The current code uses url not detailed_url. Do they differ to provide backwards compatibility? |
That was my intention. Url and dedailed_urf have such different
meanings, I thought it would be confusing to overload "url" with zip
package AND region_mbtile, as if they referred to the same thing.
…On Thu, Sep 17, 2020 at 11:41 AM Tim Moody ***@***.***> wrote:
The current code uses url not detailed_url. Do they differ to provide backwards compatibility?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@georgejhunt I'm getting confused again. What is the relationship between map-catalog.json, regions.json, and vector-map-idx.json? Is only map-catalog.json used in the current code? /etc/iiab/map-catalog.json:
/etc/iiab/regions.json:
/library/www/html/common/assets/vector-map-idx.json:
|
Only map_catalog.json is used currently. Regions.json (in my catalog
generation) is the source of map_catalog (I was trying to make transition
seamless).
vector-map-idx.json is the copy of the catalog which is written during the
install process that should capture the info that might go away when the
catalog is changed.
…On Fri, Sep 25, 2020 at 10:33 AM Tim Moody ***@***.***> wrote:
@georgejhunt <https://github.com/georgejhunt> I'm getting confused again.
What is the relationship between map-catalog.json, regions.json, and
vector-map-idx.json? Is only map-catalog.json used in the current code?
/etc/iiab/map-catalog.json:
{
"maps": {
"osm_africa_z11-z14_2019.mbtiles": {
"bittorrent_url": "https://archive.org/download/osm_africa_z11-z14_2019.mbtiles/osm_africa_z11-z14_2019.mbtiles_archive.torrent",
"center_lat": "2.0",
"center_lon": "20.0",
"date": "2019-10-08",
"detail_url": "https://archive.org/download/osm_africa_z11-z14_2019.mbtiles/osm_africa_z11-z14_2019.mbtiles",
/etc/iiab/regions.json:
{
"regions": {
"africa": {
"center_lat": "2.0",
"center_lon": "20.0",
"date": "2017-07-03",
"east": "63.56",
"north": "46.00",
"osm_size": "10099986432",
"perma_ref": "en-osm-omt_africa",
"sat_is_regional": "False",
"sat_size": "976416768",
"sat_url": "https://archive.org/download/satellite_z0-z9_v3.mbtiles/satellite_z0-z9_v3.mbtiles",
"seq": 50,
"size": "11076403200",
"south": "-84.0",
"title": "Africa",
"url": "https://archive.org/download/en-osm-omt_africa_2017-07-03_v0.23/en-osm-omt_africa_2017-07-03_v0.23.zip",
/library/www/html/common/assets/vector-map-idx.json:
{
"en-osm-omt_south_asia": {
"file_name": "osm_south_asia_z11-z14_2019.mbtiles",
"menu_item": "en-osm-omt_south_asia",
"size": 14300418048,
"date": "2019-10-08",
"region": "south_asia",
"language": "en"
},
"en-osm-omt_san_jose": {
"file_name": "osm_san_jose_z11-z14_2019.mbtiles",
"menu_item": "en-osm-omt_san_jose",
"size": 2867826688,
"date": "2019-10-08",
"region": "san_jose",
"language": "en"
}
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#340 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOTQHH4PSXBVWXRWVOXX7LSHTH7PANCNFSM4RPFLQBA>
.
|
@georgejhunt I got Failed to open /library/www/osm-vector-maps/viewer/tiles/satellite_z0-z9_v3.mbtiles -- Quitting I have in /library/www/osm-vector-maps/viewer/tiles/ I assume this is because the install was short circuited to save time. iiab-install-map-region with no arguments? |
I think I'd try "./runroles osm-vector-maps"
…On Fri, Sep 25, 2020 at 2:00 PM Tim Moody ***@***.***> wrote:
@georgejhunt I got Failed to open /library/www/osm-vector-maps/viewer/tiles/satellite_z0-z9_v3.mbtiles -- Quitting
I have in /library/www/osm-vector-maps/viewer/tiles/
-rw-r--r-- 1 root root 35438592 Aug 22 18:42 planet_z0-z6_2019.mbtiles
-rw-r--r-- 1 root root 1810432 Aug 22 18:39 satellite_z0-z4_v3.mbtiles
I assume this is because the install was short circuited to save time.
What is the operation to get a full set of world and satellite tiles?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I thinks this was changed in iiab/iiab@809de60#diff-a3c03d404704b5bd901f6e04df80ef64 Now I think we need a button or something to do the initial download. |
@georgejhunt can you help me get the output of iiab-extend-sat.py to stdout so it gets into the job status? |
could just be buffering as the output appeared when it finished.
|
Backend
Space Estimate
Front End Phase I
Front End Phase II
Source for backend:
Where are the constants for:
#1. https://github.com/iiab/maps/blob/master/osm-source/pages/viewer/scripts/iiab-install-map-region L4-10 and
#2,3. https://github.com/iiab/maps/blob/master/osm-source/pages/viewer/scripts/iiab-extend-sat.py L44-46
source_url=https://archive.org/download
SATELLITE=satellite_z0-z9_v3.mbtiles
working_dir=/library/working/maps
PLANET=osm-planet_z0-z10_2019.mbtiles
SAN_JOSE=osm_san_jose_z11-z14_2019.mbtiles
PREVIEW_SAT=satellite_z0-z6_v3.mbtiles
PREVIEW_OSM=planet_z0-z6_2019.mbtiles
work_dir = '/library/working/maps'
osm_dir = '/library/www/osm-vector-maps/maplist/assets'
sat_dir = '/library/www/osm-vector-maps/viewer/tiles'
Logic:
Code in #351 and #352
The text was updated successfully, but these errors were encountered: