Replies: 1 comment 4 replies
-
Not a full answer but at least a hint and pointing some direction:
So, how to get out of this: You can create your own "profile" and implement the logic as you need:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm working with OSM data for India. To get the proper admin boundaries for India, I have performed the following steps. The issue I'm having is that when I create vector tiles from the data, some unexpected data seems to be included and some expected data gets lost. While I'm dealing with just the boundary data below, my end goal is to somehow "augment" the boundaries from the original country-specific extract (or planet
) with the official admin boundaries.
osmium sort -v -o /dataout/india-admin-boundaries-sorted.osm /dataout/india-admin-boundaries.osm
osmium cat -v -o /dataout/india-admin-boundaries-sorted.osm.pbf /dataout/india-admin-boundaries-sorted.osm
The resulting .osm.pbf file can be loaded with QGIS using the QuickOSM plugin successfully and it reflects what was seen in Merkaator.
docker run --rm --name planetiler -e JAVA_TOOL_OPTIONS="-Xmx16g" -v /dataout:/data ghcr.io/onthegomap/planetiler:latest --osm-path=/dataout/india-admin-boundaries-sorted.osm.pbf --output=/dataout/india-admin-boundaries-sorted.osm.pbf.mbtiles --force
Planetiler completes with no visible issues and produces the MBTiles file.
Hosted the MBTiles file using tileserver-gl
Viewed the data via three means:
a. In QGIS - At zoom levels below 6, I see this. I assume that geometry is coming from NE:
Screenshot showing Merkaator on left, Maputnik on right (red oval below shows the northern area where Merkaator shows more data):
I feel like I'm just missing some required piece of the process. I saw somewhere that Natural Earth admin 0 boundaries are used by planetiler for low zoom levels. I tried to use the
--boundary-osm-only=true
flag but I still got the admin 0 geometry. I also tried to modify the Natural Earth sqlite DB to make thene_10m_admin_0_countries
table contain the data from thene_10m_admin_0_countries_ind
table but that also seemed to not have an effect.Any help or suggestions would be greatly appreciated.
Thanks,
Jeff
Beta Was this translation helpful? Give feedback.
All reactions