New answers tagged

0

i have found a solution in my application i have a raster, and i want to pan the raster here is the code i have void CMyQgsMapCanvas::mousePressEvent(QMouseEvent* pevent) { mMouseEvent = new QMouseEvent(pevent->type() , pevent->pos(), pevent->globalPos(), pevent->button(),pevent->buttons(), pevent->modifiers() ); ...


0

Maybe you van also have a closer look at libosmscout. (found via Frameworks in the OSM wiki) Not sure myself whether it has tile display, but at least own offline vector map rendering in C++.


0

I've marked Reilly answer as the answer as that is what I am using, but thought I'd go into a bit more detail as to how to actually go about doing this. So to actually get the filename from Python to C/C++ you need to pull in the python dataset(this doesn't have much overhead as it just takes a reference). then use PyObject* fileString = ...


0

Marble is open source, written in C++ and supports online and offline tile viewing. Apart from that there is a long list of desktop software for OSM in the OSM wiki.


0

As far as I have understood your question is mainly about zooming and rotating a png-image in C++. If this is correct the problem boils down to finding the proper image-processing library. I can suggest libpng for displaying, but for manipulation (including rotation) you may want to have a look at openCV or at Magick++.


1

You could use CartoType (http://www.cartotype.com/index.html). The library supports map rendering, routing, turn by turn navigation, and geocoding. For a comprehensive list of frameworks visit http://wiki.openstreetmap.org/wiki/Frameworks. There are numerous other frameworks in the OSM environment depending on your needs.


0

If you're only reading the dataset, why pass the data structure to C++? Why not pass the filename and let C++ open it shared? That said, I think the C# swig wrapper has a method to get the unmanaged (i.e. C++) handle of the dataset. It is a member of the dataset object itself. See if the Python wrapper has the same thing. Although this is more dangerous ...


3

Osmium is a very fast and flexible C++ library for working with OSM data: http://osmcode.org/libosmium/ It supports all types of osm entities such as nodes, ways, relations and even historical osm data. It's published under Boost Software License and therefore free to use.


0

The answer to the question is there's no need to convert the data to a bitmap format at run time. You can pass the data obtained by the RasterIO function to your opencv functions. This question is for when I worked in a company as an apprentice. The time when I didn't know anything about GDAL. So I've asked the question generally and it did not receive much ...



Top 50 recent answers are included