Map making software that does world maps AND floor plan/battlemaps is pretty rare, it's usually only one or the other. I've yet to hear one that does topographic or heightmapping in general either.
For battlemaps, I use Dungeondraft to make maps for my tabletop games, since it has a bunch of community assets you can use and isn't limited to just fantasy, but it definitely isn't perfect. You can kinda simulate height by drawing the maps in a certain way using terrain and such.
The same developer also made Wonderdraft, same thing but for world maps. Haven't tried it, but looks neat.
Both of these are one-time purchases and aren't subscriptions or anything, but if you aren't willing to spend 20-30 bucks on them, there are other ways.
As for a free one, Dungeon Scrawl is decent for floor plans.