Issues with Auto-Update for Merged `.poly` File in OSM

Hello OSM Community,

I’m currently working on setting up auto-updates for a map with multiple regions. While I have successfully merged the regions into a single .poly file, I’m encountering an issue: only the first region in the merged file updates, while the others do not.

Background:

  • Goal:
    • I want to create a .poly file that includes all regions and supports auto-updates for each region.
  • What I’ve Done:
    • I followed the solution from this GitHub issue:
      ( cat first.poly && echo "" && cat second.poly ) > merged.poly
      
    • I verified the .poly file, and it seems correctly formatted.
    • However, during deployment, only the first region in the file updates, and the others remain static.

My Merged .poly File:

Here’s a snippet of the merged file:

none
1
   6.899245E+00   3.777017E+01
   8.464830E+00   3.777284E+01
   ...
   6.899245E+00   3.777017E+01
END
END
none
1
   -1.205338E+01   1.471578E+01
   -1.216084E+01   1.475496E+01
   ...
   -1.205338E+01   1.471578E+01
END
END
none
1
   -6.755431E+00   3.598487E+01
   -6.078187E+00   3.598579E+01
   ...
   -6.755431E+00   3.598487E+01
END
END

The Problem:

  • During auto-update, only the first region (none 1) is updated. The other regions remain static.
  • I suspect there might be an issue with the structure of my .poly file or the way updates are handled by the tools I’m using.

Questions for the Community:

  1. Is my .poly file correctly formatted for multiple regions?
  2. Should I use a different approach to merge the .poly files for auto-updates to work on all regions?
  3. Are there specific tools or workflows recommended to validate and troubleshoot .poly files?

Other Information:

  • I’m using the openstreetmap-tile-server and tools like osmosis and osmconvert for processing.
  • The regions are correctly displayed on the map initially, but the updates only affect the first one.

I appreciate any guidance, tips, or tools you can share to resolve this issue.

Thank you for your time and help!