tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

Housenumbers on top of 2.5D building

Open tgdbepe4 opened this issue 4 years ago • 16 comments

I would very appreciate that it would be possible to let show the house numbers on top of the 2.5D buildings. The problem is that the house number are on the ground level which shows in 2.5D views unlucky.

2.5D buidings with no opacity: image

2.5D with opacity of 0.7 image

Without 2.5D buildings image

tgdbepe4 avatar Jul 10 '21 11:07 tgdbepe4

We're writing house numbers to the layer as documented in the OpenMapTiles schema (https://openmaptiles.org/schema/) - that doesn't have a height value so I guess they'll always appear on ground level. This looks like an OMT schema issue to me rather than a tilemaker one.

systemed avatar Jul 10 '21 13:07 systemed

Hi Ricard

Many thanks for you fast reply. I understand this but in this case I can not use house numbers with the 3D buildings on the same map because of the strange but correct view. This is not a dramatic issue.

Cheers

Peter

tgdbepe4 avatar Jul 10 '21 15:07 tgdbepe4

What style are you using for rendering 3d buildings? And is this data available on all buildings? Or only specific regions?

just wondering, i would like to try myself also

kleunen avatar Jul 10 '21 18:07 kleunen

Hi Wouter

I will in detail answer in detail in the next hours/days.

An yes it is good for all buildings in OSM.

Peter

Von meinem iPhone gesendet

Am 10.07.2021 um 20:46 schrieb Wouter van Kleunen @.***>:

 What style are you using for rendering 3d buildings? And is this data available on all buildings? Or only specific regions?

just wondering, i would like to try myself also

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

tgdbepe4 avatar Jul 11 '21 09:07 tgdbepe4

Hi Wouter

I describes now all on github, https://github.com/tgdbepe4/OSM-sac_scale-map-creating-with-tilemaker. Hope it is all clear. If not please give me a feedback.

Maybe you can updated you very helpful blog with some information?

And any idea about the house number showing problem in 3D?

Kind regards

Peter

Von: Wouter van Kleunen @.> Gesendet: Samstag, 10. Juli 2021 20:46 An: systemed/tilemaker @.> Cc: Peter Berger @.>; Author @.> Betreff: Re: [systemed/tilemaker] Housenumbers on top of 2.5D building (#266)

What style are you using for rendering 3d buildings? And is this data available on all buildings? Or only specific regions?

just wondering, i would like to try myself also

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/systemed/tilemaker/issues/266#issuecomment-877685285 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AK7LIWTWN5FYDZKDR6NH4ZTTXCIO5ANCNFSM5AEED5JQ . https://github.com/notifications/beacon/AK7LIWR4SNAVN6AC4JPQE5LTXCIO5A5CNFSM5AEED5J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGRIGUJI.gif

-- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus

tgdbepe4 avatar Jul 11 '21 12:07 tgdbepe4

Ah yes, it works: image

Yes, the default lua file now has the floor stuff, so, it was easy :)

kleunen avatar Jul 11 '21 13:07 kleunen

I looked at your maps, they look very nice :)

I might add a small tutorial on 3d building, it is easy. I wrote today how to improve hosting speed, that may be interesting for you also: https://blog.kleunen.nl/blog/improving-tilemaker-hosting-speed

:)

kleunen avatar Jul 11 '21 16:07 kleunen

Great many thanks!

By the way as you could see I had to create mbtiles for single countries. The reason is that I miss 384 GB ram and a mass CPU‘s computer. I would like to merge all the files into a single file but until now I failed with it. i was able to produce a joint mbtiles file but at the end tileserver-php was not able to perform.

Any idea?

Peter

Von meinem iPhone gesendet

Am 11.07.2021 um 18:27 schrieb Wouter van Kleunen @.***>:

 I looked at your maps, they look very nice :)

I might add a small tutorial on 3d building, it is easy. I wrote today how to improve hosting speed, that may be interesting for you also: https://blog.kleunen.nl/blog/improving-tilemaker-hosting-speed

:)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

tgdbepe4 avatar Jul 11 '21 17:07 tgdbepe4

You can merge the generated vectors into an existing mbtiles file with --merge. So:

./tilemaker --input region1.osm.pbf --output combined.mbtiles --merge  --store osm_store.dat
./tilemaker --input region2.osm.pbf --output combined.mbtiles --merge  --store osm_store.dat
./tilemaker --input region3.osm.pbf --output combined.mbtiles --merge  --store osm_store.dat
./tilemaker --input region4.osm.pbf --output combined.mbtiles --merge  --store osm_store.dat

However, if you use the regions/countries from geofabrik, they do not completely overlap. It is better to take the full planet and then split the regions using osmium. See also this comment:

https://github.com/systemed/tilemaker/issues/204#issuecomment-844268587

You don't have to use tippecanoe anymore, because tilemaker can merge the tiles now itself.

Also, use the: --store osm.store.dat option:

./tilemaker --input region1.osm.pbf --output combined.mbtiles --merge --store osm_store.dat

It reduces RAM significantly, by storing generated data on disk (which grows to many gigabytes). How much RAM/CPU do you have ?

Also here is described using a google preemptable machine: https://github.com/systemed/tilemaker/issues/204

If you split the planet in 4 regions, you can full planet on google cloud machine, n2-standard-48 machine for example.

kleunen avatar Jul 11 '21 18:07 kleunen

I have 64.0 GB RAM and a AMD Ryzen 5 2600 Six-Core Processor 3.40 GHz.

And thanks I will try out what you posted.

Thanks and regards

Peter

Von: Wouter van Kleunen @.> Gesendet: Sonntag, 11. Juli 2021 20:30 An: systemed/tilemaker @.> Cc: Peter Berger @.>; Author @.> Betreff: Re: [systemed/tilemaker] Housenumbers on top of 2.5D building (#266)

You can merge the generated vectors into an existing mbtiles file with --merge. So:

./tilemaker --input region1.osm.pbf --output combined.mbtiles --merge --store osm_store.dat ./tilemaker --input region2.osm.pbf --output combined.mbtiles --merge --store osm_store.dat ./tilemaker --input region3.osm.pbf --output combined.mbtiles --merge --store osm_store.dat ./tilemaker --input region4.osm.pbf --output combined.mbtiles --merge --store osm_store.dat

However, if you use the regions/countries from geofabrik, they do not completely overlap. It is better to take the full planet and then split the regions using osmium. See also this comment:

#204 (comment) https://github.com/systemed/tilemaker/issues/204#issuecomment-844268587

You don't have to use tippecanoe anymore, because tilemaker can merge the tiles now itself.

Also, use the: --store osm.store.dat option:

./tilemaker --input region1.osm.pbf --output combined.mbtiles --merge --store osm_store.dat

It reduces RAM significantly, by storing generated data on disk (which grows to many gigabytes). How much RAM/CPU do you have ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/systemed/tilemaker/issues/266#issuecomment-877842850 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AK7LIWTCEGJMZOSH2MTRFXDTXHPLLANCNFSM5AEED5JQ . https://github.com/notifications/beacon/AK7LIWQO3OCEDNIKLY7IMMTTXHPLLA5CNFSM5AEED5J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGRJNDIQ.gif

-- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus

tgdbepe4 avatar Jul 11 '21 22:07 tgdbepe4

I have similar configuration but have not tried full Europe or planet yet. If you add 64G swap and use store, Europe render should be possible. But make sure you have a lot of ssd space available. Possibly full planet render is doable, with 64G + 64G swap.

kleunen avatar Jul 12 '21 05:07 kleunen

I tried this but the process failed:

Resizing osm store to size: 49012M

Resizing osm store to size: 49076M

Resizing osm store to size: 49140M

Resizing osm store to size: 49204M

Resizing osm store to size: 49268M

Resizing osm store to size: 49332M

Resizing osm store to size: 49396M

terminate called after throwing an instance of 'std::runtime_error'

what(): Exception during zlib decompression: (-5)

Abgebrochen (Speicherabzug geschrieben)

I ran it on a virtual machine with 53.5 GB Ram and 60 GB swap. This swap was at that moment less then 10 GB used.

Von: Wouter van Kleunen @.> Gesendet: Montag, 12. Juli 2021 07:22 An: systemed/tilemaker @.> Cc: Peter Berger @.>; Author @.> Betreff: Re: [systemed/tilemaker] Housenumbers on top of 2.5D building (#266)

I have similar configuration but have not tried full Europe or planet yet. If you add 64G swap and use store, Europe render should be possible. But make sure you have a lot of ssd space available.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/systemed/tilemaker/issues/266#issuecomment-877980914 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AK7LIWWUWHWQQJWNWHTY4TLTXJ3YNANCNFSM5AEED5JQ . https://github.com/notifications/beacon/AK7LIWRWNB7SSGEUSKKR4ADTXJ3YNA5CNFSM5AEED5J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGRKOZ4Q.gif

-- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus

tgdbepe4 avatar Jul 12 '21 07:07 tgdbepe4

Then probably the osm.pbf file is corrupted. What file you used ?

kleunen avatar Jul 12 '21 07:07 kleunen

The one from geofabrik. I will now use the full planet and derive from it Europe!?

Von: Wouter van Kleunen @.> Gesendet: Montag, 12. Juli 2021 09:32 An: systemed/tilemaker @.> Cc: Peter Berger @.>; Author @.> Betreff: Re: [systemed/tilemaker] Housenumbers on top of 2.5D building (#266)

Then probably the osm.pbf file is corrupted. What file you used ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/systemed/tilemaker/issues/266#issuecomment-878043692 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AK7LIWRMJY2TSFJ4I6DLJYDTXKLAXANCNFSM5AEED5JQ . https://github.com/notifications/beacon/AK7LIWSOB56QGSPQNHJP2R3TXKLAXA5CNFSM5AEED5J2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGRK6ELA.gif

-- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus

tgdbepe4 avatar Jul 12 '21 07:07 tgdbepe4

The one from geofabrik. I will now use the full planet and derive from it Europe!?

Yes, that is possible, create extract from Europe from planet.

kleunen avatar Jul 12 '21 07:07 kleunen

Osmium extract config:

{ "extracts": [
{
    "output": "planet_1.osm.pbf",
    "description": "Bounding box specified in array format",
    "bbox": [-180,-85,0,0]
},
{
    "output": "planet_2.osm.pbf",
    "description": "Bounding box specified in array format",
    "bbox": [0,-85,180,0]
},
{
    "output": "planet_3.osm.pbf",
    "description": "Bounding box specified in array format",
    "bbox": [0,0,180,85]
},
{
    "output": "planet_4.osm.pbf",
    "description": "Bounding box specified in array format",
    "bbox": [-180,0,0,85]
}
] }

kleunen avatar Jul 12 '21 09:07 kleunen