Hello.
I am planning to use OSM data for a little project of mine.
The user inputs two sets of coordinates that describe a rectangle on Earths surface. Then he sets a tile-size, so for example tiles are 2m by 2m.
Then, my program generates a set of points to check for in that rectangle. Each point corresponds to one tile.
I am assuming that the rectangle is so small, that Earths curvature does not distort the tile’s size too much.
Then, I check what is at that point. Is it a road, a forest, house, field etc.; and depending on that I assign a certain graphic/value/whatever in the corresponding tile to that point.
Essentially, distribute points in that rectangle the user provides, check what each point is on, and set the corresponding tile to a proper value.
The result should be an approximation of that location in pixel-art graphics.
Now, the only thing I need to know, and I could not figure it out from the documentation or feature list, is can libosmium check what multi-polygon (house, forest, lake) or way (roads) is near/on a point given by longitude or latitude.
I am new to working with maps using programs, so I am unsure if this is the best way to do what I want. I would want to use OSM, since I think it is the easiest way to keep all of my data on my machine. I do not want to use API calls to any online service.
Essentialy, I want to make a program that when given OSM database, spits out that pixel-art. All localy.
Alternatively, if you are aware of any tool that would help me in doing this project, I’ll gladly take a look at it, but I need it do be available with c++.
Thanks, Hubert.