New answers tagged c++
If I got you right, you can have a look at the source code of the class QgsMapToolSelectRectangle to get an idea of how to select by rectangle on your map. QgsMapToolSelectRectangle allows you to get a rectangle from mouse events, draw it as a rubber band on the QgsMapCanvas and perform a select operation on your data. This code snippet performs the ...
As it turned out, the problem was not different algorithms calculating different distance results, but simply a problem in the C++ source code. There is a related question on Stackoverflow (“How to register a Boost.Geometry distance strategy for OGRPoint and OGRLineString?”), as well as a thread on the Boost.Geometry mailing list I created. The root cause ...
You should add a CRS to the source data with gdal_translate or another way. The jpg raster has usually pixel coordinates from top left to the right and down, while GIS data like shapefiles have a coordinate system to the right and upwards. If your input data has a CRS, the output can have the same CRS, and both will align.
Top 50 recent answers are included