N129BZ / chartmaker

This application downloads USA VFR and CONUS Enroute IFR digital raster charts and translates them into mbtiles databases
MIT License
13 stars 7 forks source link

Tiles not merging with Docker image #8

Closed jamez70 closed 2 months ago

jamez70 commented 2 months ago

Here is some of the output from running node /chartmaker/make.js I am running docker version v1.35

>> gdal_translate /chartmaker/workarea/Enroute_High/1_unzipped/enr_h11.tif
>> gdalwarp warping /chartmaker/workarea/Enroute_High/3_clipped/enr_h11.vrt using shapefile /chartmaker/clipshapes/enroute_high/enr_h11.shp
>> gdaladdo adding overviews to /chartmaker/workarea/Enroute_High/3_clipped/enr_h11.vrt
>> gdal2tiles tiling /chartmaker/workarea/Enroute_High/3_clipped/enr_h11.vrt into /chartmaker/workarea/Enroute_High/4_tiled/enr_h11
* chart enr_h12
Warning 1: The definition of geographic CRS EPSG:4269 got from GeoTIFF keys is not the same as the one from the EPSG registry, which may cause issues during reprojection operations. Set GTIFF_SRS_SOURCE configuration option to EPSG to use official parameters (overriding the ones from GeoTIFF keys), or to GEOKEYS to use custom values from GeoTIFF keys and drop the EPSG code.
>> gdal_translate /chartmaker/workarea/Enroute_High/1_unzipped/enr_h12.tif
>> gdalwarp warping /chartmaker/workarea/Enroute_High/3_clipped/enr_h12.vrt using shapefile /chartmaker/clipshapes/enroute_high/enr_h12.shp
>> gdaladdo adding overviews to /chartmaker/workarea/Enroute_High/3_clipped/enr_h12.vrt
>> gdal2tiles tiling /chartmaker/workarea/Enroute_High/3_clipped/enr_h12.vrt into /chartmaker/workarea/Enroute_High/4_tiled/enr_h12
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h01
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h01 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h02
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h02 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h03
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h03 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h04
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h04 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h05
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h05 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h06
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h06 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h07
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h07 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h08
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h08 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h09
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h09 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h10
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h10 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h11
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h11 /chartmaker/workarea/Enroute_High/5_merged
>> perl merging images into /chartmaker/workarea/Enroute_High/4_tiled/enr_h12
Command failed: perl ./mergetiles.pl /chartmaker/workarea/Enroute_High/4_tiled/enr_h12 /chartmaker/workarea/Enroute_High/5_merged
>> generating metadata json for Enroute_High database
>> creating database: /chartmaker/charts/Enroute_High.db
Command failed: python3 ./mbutil/mb-util --image_format=webp --scheme=tms /chartmaker/workarea/Enroute_High/5_merged /chartmaker/charts/Enroute_High.db
Sectional processing time: 0:52:25

Caribbean processing time: 0:3:23

Grand_Canyon processing time: 0:0:25

Terminal processing time: 0:7:21

Helicopter processing time: 0:2:59

Enroute_Low processing time: 0:24:57

Enroute_High processing time: 0:25:46

Start time: Sun Aug 18 2024 21:43:33 GMT+0000 (Coordinated Universal Time)
End time: Sun Aug 18 2024 23:40:54 GMT+0000 (Coordinated Universal Time)
Total processing time: 1:57:21
jamez70 commented 2 months ago

I think it needs to be perl /chartmaker/mergetiles.pl instead of perl ./mergetiles.pl Also for python3 /chartmaker/mbutil/mb-util

N129BZ commented 2 months ago

I'm looking into this now, are you running the image on Linux, or Windows, or Windows/WSL?

jamez70 commented 2 months ago

In Linux (Ubuntu) with docker v24.0.7. I changed those two things and it ran to completion so that was the only issue.

N129BZ commented 2 months ago

I was able to duplicate the issue in 1.35. I added a function to detect if the app is running in docker and set the app path accordingly, will push 1.36 here shortly.

On Mon, Aug 19, 2024, 2:37 PM jamez70 @.***> wrote:

In Linux (Ubuntu) with docker v24.0.7. I changed those two things and it ran to completion so that was the only issue.

— Reply to this email directly, view it on GitHub https://github.com/N129BZ/chartmaker/issues/8#issuecomment-2297303427, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALK77SHMQNLILWJSGJ6Q3BDZSJCO5AVCNFSM6AAAAABMW6NINSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJXGMYDGNBSG4 . You are receiving this because you were assigned.Message ID: @.***>

N129BZ commented 2 months ago

Tested docker image n129bz/chartmaker:v1.36 processed enroute high chart without error, pushed new image to docker hub, closing issue.

N129BZ commented 2 months ago

Closed.