An object-oriented programming language

learn more… | top users | synonyms

-3
votes
0answers
17 views

How to extract lidar data for boundary reconstruction of building? [on hold]

If any one have source code, plz help me. this is very helpful to me to do my main project
1
vote
2answers
400 views

How to show a QGis map in Qt/C++ custom widget with QgsMapCanvas?

I'm trying to add a QGis map in Qt/C++ widget using QgsMapCanvas, but I have some problems... I'm working with the following environment: - Ubuntu 12.04 - QGis 2.8.1 - Qt Creator 2.4.1 (based on Qt ...
1
vote
0answers
14 views

raster doesn't redraw to fit the canvas after a zoom in and a pan

i am working with qgis 2.8.2, c++ api and qt 4.8.5 i have a layer in the mapcanvas, this layer contains a raster ( a georef tif picture ) when i zoom in, the raster fill the entire canvas , ok but if ...
1
vote
1answer
12 views

problem with qgsmaptoolpan

i am using the c++ api qgis 2.8.2 i have a strange problem when i want to use the pantool for my canvas i used this code : mpPanTool = new QgsMapToolPan((QgsMapCanvas*)mpMapCanvas); ...
1
vote
4answers
53 views

OSM tiles offline display using c++

I have openstreetmap tiles for offline (png images), how can I display these images (tiles) on my application with zooming and rotation functionality as on openstreetmap.org using c++?
1
vote
0answers
10 views

pinchZoom with qgis 2.82 and qt

I am working with qgis 2.8.2 c++ api and qt4.8.5 in my project i had to implement the pinchzoom because i use a 27" touch screen i am looking for information on how to use the qgis lib with the qt ...
1
vote
1answer
165 views

Run C++ standalone application in debug mode

I write simple C++ standalone application using QGIS. It works and render vector layers from PostgeSQL database. #define CORE_EXPORT __declspec(dllimport) #define GUI_EXPORT __declspec(dllimport) ...
1
vote
1answer
223 views

Calculate tree cover over certain area from raster data

Last year Hansen et al. published Global Forest Change map as set of raster data available in TIFF format. Basically those are 30-meters resolution satellite images with pixel values ranging from 0 ...
3
votes
2answers
38 views

Converting Python GDALDataset to C++ GDALDataset

I'm currently writing a C++ extension to python to speed up a raster data viewer which is running extremely slowly with our large datasets. I've managed to get a small speedup by writing a C++ ...
0
votes
0answers
6 views

OSM map tiles offline view [duplicate]

How can I view openstreetmap tiles offline using c++? I need to integrate osm tiles viewer (view tiles, zoom etc.) offline on c++.
1
vote
2answers
265 views

GDAL Application crashes when loading GDAL drivers

I'm developing on QT an application that uses GDAL library (which I compiled using MinGW 4.8). When I use the application on my windows 8 laptop, it works fine, but when I tried using it on several ...
2
votes
1answer
48 views

Fastest way to process OSM

I've been working with imposm and Python, it's fairly easy to parallelise. I've hit a performance problem when trying to associate the coordinates to the ways. Creating a dictionary from ...
0
votes
0answers
103 views

GDAL in C++: Resize Image (gdal_warp?)

I would like to resize a geotiff using GDAL in C++. Searching online, I bumped into another question here that explains it is possible through gdal_warp and gdal_translate via terminal. But there ...
0
votes
1answer
206 views

gdal_contour transparent contour as png

I started using the GDAL Library in a c++ project. It is a great library, but I am a bit stuck right now with different aspects of it. What is the best way to use gdal_contour in my c++ programm? ...
1
vote
3answers
540 views

Convert .tiff data to bitmap just when rendering and at runtime by visualC++ code

I need to convert a .tiff image to a bitmap one without saving the bitmap. I know that I should use GDAL_translate but because I'm new, this function's interface is a little complicated for me. Could ...
1
vote
0answers
20 views

Changing Dataset Property

I 'm working on GDAL C++. But I have some trouble to change GDALDataset property. I have converted "jpg" to "bmp" an image. But I want to do read an image(jpg) to gdaldataset then change dataset ...
1
vote
0answers
27 views

Using GDAL in C++. Create multiple GDALDatasets using a GDALDriver produces error 4 not recognised as a supported file format [closed]

I am trying to create multiple GDALDataset objects. All of them are supposed to be in the .tif format, so for all of them I use the same GDALDriver. I am working in C++ (Visual Studio) and when I ...
3
votes
1answer
18 views

Help with Meters at Lat calculation accuracy, two methods

So I'm coding a program (c++), and thing leads to thing, and I need to find out how many meters to a degree of longitude at a specific latitude to a very high precision. Optimally < 1 meter at all ...
1
vote
1answer
711 views

Sample for MS Visual Studio C++ using GDAL library

I need to create a sample console application on c++ that will use *.hdf file as an input and will read it. As I got, I need a GDAL library. I've found a GDAL tutorial on official GDAL website, but ...
1
vote
1answer
26 views

QGIS not opening after update

I installed/updated microsoft visual c++ 2013 and microsoft directX runtime 2013. After that, whenever i open qgis i get this The program can't start because MSVCP120.dll is missing from your ...
3
votes
1answer
82 views

Extracting values from raster under line using GDAL?

How can I find the cells which lie on a straight line between two points? I.e. how can I find the indices of the cells (in grey) which are intersected by the line defined by the two points (in blue): ...
0
votes
0answers
42 views

I want to make a small TIFF file from a big TIFF file

I just study on GIS system. When I create the Tiff file, there is no any data in Tiff file I want to make 4 channel TIFF file My code is below: void crop(const char *inputPath, const char ...
1
vote
1answer
52 views

GDAL/OGR in C++: Merge multiple vector datasets to single [closed]

I need to merge multiple kml files into a single one. I found that I could use "ogr2ogr -append" but I have to do it through c++ and my Google-fu hasn't been successful so far. So, any ideas? Also, ...
1
vote
1answer
22 views

problem with my zoomIn or ZoomOu

i am using qgis 2.8.2 and qt4.8.5 i have a problem when i call zoomIn or ZoomOut, the raster on canvas is reduce or zoomed but : - the raster size change - it disaprar - it appear again but 3 to 5 ...
2
votes
1answer
14 views

the renderering of mapcanvas is still active

i am working with qgis c++ api 2.8.2 and qt4.8.5 i want to disable the rendering during zoom in or zoom out fonction in order to have a fast zoom i try to use : MyMapCanvas->stopRendering(); ...
0
votes
0answers
17 views

OGRGeometry::exportToWkb return buffer empty

I would like to export OGR Geometry in WKB format. I used the function OGRGeometry::exportToWkb from OGR. The problem is that the buffer returned by the function is empty and OGRERR_NONE is always ...
4
votes
2answers
2k views

How to store raster data in spatialite?

I want to cache my raster data(large geotiff files) on local database. I thought to use spatialite. I found librasterlite which provide functionality to do that. Can anybody point to some tutorial on ...
1
vote
1answer
68 views

DLL that uses QGIS

I want to create DLL which opens a dialog do some processing with QGIS and returns some data. I have searched many places but have not found the help I needed. I just want to read shapefiles and then ...
0
votes
1answer
77 views

How to increase performance for nearest neighbour query using a multipoint? (Boost Geometry)

The following function gets the nearest point in an rtree to a multipoint geometry. I'd like the performance of the function to be better. Is there any way to make it faster? TimingLink* ...
-3
votes
3answers
119 views

How can I use ogrinfo to reach information about a .shp?

How can I use ogrinfo? where should I write it? In the visual studio's command prompt or somewhere else? Can you make some examples? when I use ogrinfo in the windows or visual studio's command ...
0
votes
1answer
349 views

Distance between a Point and Linestring: PostGIS/GEOS vs. Boost

I am currently using the GEOS library through OGR and data from a PostGIS database to work with geospatial data. I now found myself in the need to use some of the algorithms Boost.Geometry and ...
3
votes
1answer
59 views

ArcGis 10.2 returning an enum status of EsriLicenseNotLicensed

I have an old VS project that was using ArcGis for a map control. I now have 10.2 on my machine. code that I used previously to find & initialize the license no longer works. I know the enums ...
0
votes
1answer
63 views

GDAL in C++: Wrong Raster Values After Cropping geoTiff Dataset

I'm trying to transfer a subset (box (0,0)-(300,300)) of a panchromatic geotiff to a new file. Although the georeference and the set are transferring correctly, the raster values seem off. Loading ...
4
votes
0answers
125 views

What is the structure of Standard Interchange Format (SIF) used by spatial data providers?

What is the structure of Standard Interchange Format(SIF) used by navteq and other spatial data providers? Any documentation/sample files? Is there a SIF parser available in C/C++/Java/PHP ?
0
votes
1answer
53 views

how do i create OGRSpatialReference from raster file's georeference C++

I want to create .shp file using ogr with georeference based on my raster file, so i create an ogr layer using CreateLayer( "point_out", NULL, wkbPoint, NULL ); i want to set the OGRSpatialReference ...
1
vote
2answers
59 views

how to rotate a symbol

I am working in c++/python/QT 4.5 with the api qgis 2.8.2 My application receive data from a communication port that indicate the change of position of an object diplayed on the map and represented ...
1
vote
1answer
43 views

How to change programmatically the value of attribute in one of several feature in a vectorLayer

I have a vectorlayer that contains a lot of feature, I know that each feature has an unique Id Each of them has some propertie like coordinateX, coordinateY, color, name With a QTimer, each 2 sec I ...
1
vote
1answer
56 views

How to select a feature with the mouse click programmaticaly

I am working in c++/QT 4.8.5 and the api c++ qgis 2.8.2 In my application i had top select layer with the mouse click button to get attribute value and show them in a popup windows I see in the api ...
1
vote
2answers
39 views

Building error on enum of the QgsMapToolIentfy Class

I am working on a project in c++/QT4.8.5 based on the api c++ 2.8.2 of QGis It is a stand alone application I had to get information of a layer by clicking on it in the canvas So I decide to use the ...
2
votes
1answer
51 views

Read SRTM HDG elevation files with C++ / Strange negative numbers (not Null)

I'm trying to write a little C++/OpenGL utility with which I could manage SRTM HDG files. For now, I'm just trying to read the files correctly. So I downloaded a sample tile from the main server, ...
1
vote
4answers
458 views

How to crop Geotiff image in C++ (GDAL or other possibilities)?

I am developing a code to process a geotiff image. But firsly I need to crop a geotiff image preserving its metadata (projection...) in C++. My idea it's to provide the corners and the geotiff image ...
1
vote
1answer
67 views

Problem creating polygon in a layer

I am working in c++ qt4.8.5 and api qgis 2.8.2 c++. In my application I had to put polygon to define attractive zone. I found a great post in stackexchange (86812). I have based my on this post and on ...
0
votes
0answers
33 views

how to add vectorlayer in a mapcanvas with a raster

I am working in c++/qt4.8.5 with qgis api 2.8.2 For my application I had to load a raster in a mapcanvas, then with different action I had to add pint , line or polygon Is there a simply way to do ...
0
votes
0answers
34 views

2 Lat/Long Segments Defined By 4 Lat/Long Points - Calculate If They Intersect & How Far Along Segment They Do

I have 2 lat/long segments defined by lat and long end points. For example, I have Segment X (defined by A.lat, A.long and B.lat, B.long where A and B are end points) and similarly Segment Y (defined ...
1
vote
1answer
54 views

How to re-render only a single layer on a mapcanvas?

In my application I have a mapcanvas that contains several layers. some of layers need to be updated or rendered again because data has been changed ( like the geometry or some attributes ) Is there ...
1
vote
1answer
43 views

How to create a specific svg file with data from a feature

I am working in c++/ QT4.8.5, with qgis api c++ 2.8.2 I have to display a dynamic icon for a feature. some of the data change periodically and in order to display the change i need a svg that can get ...
1
vote
2answers
84 views

is it possible programmatically to rotate a svg of the feature without rotate all feature

I am working on a project that need to move and update the shape of the feature of the layer. I am working in c++/ QT4.8.5 and qgis api c++ 2.8.2. In my Layer I have a lot of features, each feature ...
1
vote
1answer
96 views

C++ code and ArcGIS Button

I have some code in c++ that used gdal and process raster and create an output raster. I want to create a button in ArcGIS Desktop (using ArcObjects SDK 10.2 c#) and pass the raster layer to my c++ ...
1
vote
1answer
87 views

Is it possible to change the geometry without startEditing the layer

I am working in c++/QT 4.5 with the QGis 2.8.2 API. I had to change the geometry of features in a layer each second. Each second new data comes from the Ethernet connection, the application gets the ...
4
votes
2answers
87 views

IRasterLayer background transparency in C++ with ArcObjects 10.x .NET

I have a georeferenced IRasterLayer which is displaying data from a PPM file with no alpha channel. I am trying to specify a color which should be treated as transparent. In ArcMap it is possible to ...