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

Use OAM as imagery source #43

Closed
robsavoye opened this issue Dec 21, 2022 · 3 comments
Closed

Use OAM as imagery source #43

robsavoye opened this issue Dec 21, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request Priority: Must have High Priority

Comments

@robsavoye
Copy link
Collaborator

If possible, use OpenArialMap as the imagery source for the basemapper.py program.

@robsavoye robsavoye added enhancement New feature or request medium labels Dec 21, 2022
@robsavoye robsavoye self-assigned this Dec 21, 2022
@robsavoye
Copy link
Collaborator Author

OAM reverses the order of the xyz values in the database from most other map tile servers use. I have this now working in a branch in order to produce basemaps for the Turkey earthquake, but it needs to be cleaned up and the result tested to make sure it doesn't break other imagery sources.

@robsavoye robsavoye added Priority: Must have High Priority and removed medium labels Mar 17, 2023
@spwoodcock spwoodcock added the outreachy Project tasks for Outreachy internship - May to August 2023 label Feb 22, 2024
@spwoodcock spwoodcock assigned robsavoye and unassigned robsavoye Feb 22, 2024
@spwoodcock spwoodcock removed the outreachy Project tasks for Outreachy internship - May to August 2023 label Feb 27, 2024
@spwoodcock
Copy link
Member

spwoodcock commented Feb 27, 2024

This has already been complete via the --tms flag and works:

e.g.

pdm run osm_fieldwork/basemapper.py -b
 New_Kru_Town_MERGED.geojson -d $PWD -o New_Kru_Town_Basemap.mbtiles -z 12-20 --xy=True 
-t https://tiles.openaerialmap.org/5e6785161804990005e37072/0/5e6785161804990005e37073/{
z}/{x}/{y}

@spwoodcock
Copy link
Member

The geojson content for those wishing to reproduce the mbtiles with the above command:

{
"type": "FeatureCollection",
"name": "New_Kru_Town_MERGED2",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "id": 0, "country": "Liberia", "area": 1.7e-05, "perimeter": 0.016581 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -10.7938424154191, 6.36566446544188 ], [ -10.795144938864549, 6.369300019093447 ], [ -10.79320532649367, 6.370264783563053 ], [ -10.791896296184481, 6.370164711508116 ], [ -10.79146494532514, 6.369379587575136 ], [ -10.789732430818949, 6.366126169489173 ], [ -10.78956466274909, 6.365788466299136 ], [ -10.78991618820425, 6.365746651092064 ], [ -10.790463189266021, 6.365722411326678 ], [ -10.7938424154191, 6.36566446544188 ] ] ] } }
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority: Must have High Priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants