Hi. I have downloaded several GB of aerial imagery, available as .jpg and .jgw files, but not as a imagery service.
I try to use in JOSM with the import picture plugin, and the imagery is displayed as usuarl, but that way i have to load manually every image (800+ of them), and previously seach in a grid the file name to load for the area i’m editing.
The imagery is the more recent and best quality, so i want to use that instead of the imagery proposed by JOSM. ¿There is a free imagery server where i can send the pictures and get the mosaics in JOSM? That way it can be useful for myself and the whole community…
Or other ways to easily use them in JOSM?..
Before going into the technical details: What is the source of the imagery and is it published under a compatible license or do you have a permission to use it?
Typically MapServer and MapCache can be used for this purpose, see chef/cookbooks/imagery at master · openstreetmap/chef · GitHub as an example on OSMF hardware.
Once that is in place you can use the imagery e.g. as wms service.
I’ve done that many years ago with historic maps. Needs a bit of fiddling but is doable on your local machine.
You may want to look at OpenAerialMap if the imagery is available on open terms and you can publish it yourself. See https://openaerialmap.org/
Sure. Imagery is https://geoweb.montevideo.gub.uy/geonetwork/srv/spa/catalog.search#/metadata/98f1df94-f66b-4dd8-8e3d-4b74e59aa1c0
In the context of open data from the local government, legal terms are free use according this resolution Resolución Nº 640/10
Other gis data from the same source and based on the same resolution (like streets and addresses) was already imported and is in process of importing into OSM.
As it seems the best choice, I’m trying to upload imagery to openaerialmap.org without success for now. Maybe the size of the files is the problem, but the error is generic. I contacted them for help. I will update here… Thanks.
I believe MapWarper might be a solution, but not sure how and if is still working.
Still no response from openaerialmap.
I tried another option making a local pyramid with gdal_retile.py but the process fails every few hours complaing about some of the jpg. I renamed the jpg and “-resume” the process several times but now the size is reaching 50GB (original) + 200GB (the pyramid) so i need to move the files from ssd to a hdd and retry.
How can i calculate/estimate the storage requirements for the pyramid?
You can view it as a reverse pyramid. 200 GB seems to be a bit large. Each zoom level should have 4x fewer pixels, so (idealized), each lower zoom level from the original should be
50/(4^(max_level - level)). So we are looking at the sum from 0 to max_level of that.
The bottom layer should be ~50GB (probably a bit more, since we are losing some efficiency), the next layer up should be 50/4=12.5GB, the next should be 12.5/4=3.125GB. This comes out to ~62.5GB if the original is z24. Now, if you are trying to make tiles for higher z levels, you are going to run into problems. The first additional z level brings us to 250 GB, and the one after that brings us to 1TB.
For those interested, here are the idealized size (GB) given an initial size of 50GB and a max zoom of 24.
||total (0-current zoom)
Geofabrik has a tile calculator as well, but it only goes to z18.
“openareialmap” is HOT, the likelihood of you getting an answer is very low. It is a typical “humanitarian software” project with all the problems that come with that.