An object-oriented programming language

learn more… | top users | synonyms

1
vote
1answer
154 views

Get the keyPress-Event in QGis-Plugin

I have a QTreeWidget in a QWidget which is the gui of my plugin(cpp). Now i want to get the keyPress-Event of a Node in the TreeView. I try to reimplement the signal of the QWidget. protected: ...
0
votes
1answer
259 views

How to set the cursor to busy mode?

How can I set the cursor to busy-mode/in progress from my qgis plugin (cpp)? I couldn't find anything in the API documentation.
5
votes
1answer
437 views

Slow FileGDB Performance in GDAL

I am attempting to write many ASPRS LAS point files into an ESRI File Geodatabase using my compilation of GDAL 1.9.2. The FileGDB driver for GDAL/OGR appears to be incredibly slow when writing large ...
3
votes
1answer
721 views

How to get elevation with LibGeoTiff?

I'm trying to get an elevation profile from a geotif file ( downloaded from http://srtm.csi.cgiar.org/). I downloaded the libgeotiff library but i can's see any function that can return an elevation ...
2
votes
0answers
56 views

Is there a way to distinguish between digitized and pasted features?

Is there a way to tell if an added feature in QGIS is in fact a newly digitized one or a pasted feature? I think QGIS is treating both cases in the same way, emitting the same signal: ...
5
votes
1answer
94 views

Is it possible show the feature attributes dialog when I add a feature in code?

I want to know if it is possible to make the feature attributes dialog in Qgis show up when I add a feature by code using: QgsVectorLayer::addFeature( tFeature ) This is available when I add ...
6
votes
2answers
638 views

How to get latitude, longitude and altitude database from a GeoTIFF file?

I am developing an AR iOS application. When the iPhone gets the current location, it has to calculate locally the visible point. I want to read the tiff files in my application, and then get the ...
10
votes
2answers
1k views

How to implement viewshed calculation?

I'm looking for a way to implement visibility (aka viewshed). I found a previous GIS SE question that suggested a few GIS applications (not what I need - I'm trying to embed the calculations), and ...
4
votes
1answer
612 views

How to use GEOS/C++ to efficiently find all point pairs closer than a threshold?

Can anyone tell me how to use GEOS/C++ to efficiently find all point pairs in a dataset closer than a threshold distance d? I suspect this might involve quadtrees or rtrees but not quite sure how ...
5
votes
2answers
843 views

Where can I find documentation on QGIS C++ Plugin Development?

Is external C++ plug-in support available for QGIS? I'm having a really hard time getting started here. I followed the doc here: ...
2
votes
3answers
248 views

Given (lon,lat), how can I quickly retrieve the containing administrative region?

Given a coordinate (lon,lat), I'd like to retrieve the containing administrative region (state/province level) for an offline mobile application. The method employed needs to be fast/efficient. ...
6
votes
1answer
870 views

C++ Code Examples in Quantum GIS 1.8

I am trying to utilize the C++ code examples from blog.qgis.org, specifically Tutorial 4, Adding Rasters to QGIS Map Canvas. I am successfully able to run the example loading a GeoTIFF with QGIS ...
3
votes
3answers
368 views

Installing the development files libqgis-dev in Ubuntu 12.04

I am trying to install development files which include the headers and the libraries for qgis in Ubuntu 12.04. I used Ubuntu software center, synaptic and the terminal and am still getting the same ...
2
votes
0answers
297 views

Setup of development environment of QGIS on windows with qt creator

Can anyone help me in setting up environment for working on QGIS on windows using qt-creator? I am using qt creator version 1.3.1,qt version 4.6 and QGIS version 1.8. Thanks.
1
vote
0answers
177 views

gdallocationinfo from C++?

I need a C++ API to convert x,y Image Coordinates in their native projection to output image pixel,line coordnates. I see the gdallocationinfo documentation, but no API for it. Where in online GDAL ...
1
vote
3answers
568 views

Getting Field value for a given coordinate out of ESRI Shapefile using GDAL/OGR

I have a bunch of ESRI shapefiles that contain Land Cover data across Canada (provided by Geobase). I need to query the files and obtain the value of a certain field (called COVTYPE) in a given ...
5
votes
1answer
2k views

Setting up an application in QT Creator that uses QGIS API

I am a 15 year veteran of Java making my first entry in to C++ applications. I have a specific need to develop a desktop application that produces graphics type output as well as displaying imbedded ...
1
vote
0answers
87 views

Connect to Esri map service using c++ in stand alone desktop app

Can anyone tell me how to do this? Here is my code. The Open call returns E_INVALIDARG. IAGSServerConnectionFactoryPtr AGSConnectionFactory; ...
1
vote
2answers
133 views

Fetching field values from uncommitted features on Qgis

I'm trying to fetch a feature's field value on Qgis, I use QgsFeature.attributeMap().value(cont int & key).toDouble() This works fine for committed features but it always returns " 0 " if the ...
0
votes
0answers
21 views

Storing Image data to spatialite [duplicate]

Possible Duplicate: spatialite storing raster data I want to store geotiff data to spatialite databse. I am using gdal to read metadata and reading tiles convering them to hexwkb format and ...
1
vote
0answers
248 views

What do I need to build a C++ plugin on windows 7?

I want to make a plugin in C++ and I need to write and build it in windows (Im better with *nix systems). While I have skimmed the various updated C++Plugin docs I can understand if I need to build ...
1
vote
1answer
210 views

postgresql pgrouting define C function function with int* arguments

I want to create a psql-C function with an undefined length list of integers (GIDs for example). An erratic example using V0 function definition that works is like: int mytest4(int *x, int i){ int ...
4
votes
1answer
940 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 ...
0
votes
3answers
396 views

raster data retrieval from postgis using c++

I have raster data in a postgis server (I am able to see it in qgis). When I retrieve it and form gtiff image out of it using gdal, the generated image is not correct (there is a coloring problem). I ...
0
votes
1answer
199 views

Qgis : QGraphicsTextItem's position not updated?

I'm using QgisInterface->mapCanvas()->scene()->addItem(QGraphicsTextItem) to add a QGraphicsTextItem to the map canvas. The problem is that when I use the pan tool to move the display the added ...
1
vote
1answer
1k views

Convert Lat/Long to UTM specifying which zone to use (C++)

I need to convert Latitude/Longitude coordinates into UTM, in C++, specifying which zone to use. I am working with locations that fall in two zones, and would like to project them all into one zone - ...
2
votes
1answer
191 views

Qgis C++ plugin translation

I'm having issues with the translation of my Qgis plugin. static const QString sName = QObject::tr( "Editeur Monoscopique 3D" ); MyClass::MyClass( QgisInterface * theQgisInterface ): ...
7
votes
1answer
1k views

How can i create sectors for telecom towers

friends i am seeking advice from the GIS community I work in the Mobile networks industry and i took up a task to create a plugin for QGIS using c++/python that does the following: step 1: Create ...
2
votes
3answers
408 views

C++ coordinate class that automates projection?

Can anyone point me to a C++ class for representing coordinates that automatically handles projection transforms? What I'm thinking of is something that would allow me to create vars that incorporate ...
2
votes
1answer
285 views

How to port QGIS C++ plugins to other QGIS installations?

I developed a C++ plugin for QGIS using VC++ express 2008 and a QGIS dev release (1.9.90 alpha), my plugin works fine on this release and now I want to port it to other QGIS installations, so I copied ...
0
votes
0answers
22 views

MapCanvas : Mouse-wheel event filtering/overriding [duplicate]

Possible Duplicate: MouseWheel event filtering on Qgis I’m developing a C++ plugin for Qgis and I want to filter/override the mouse-wheel event. I created a “maptool” to select a polygon ...
5
votes
2answers
476 views

How to filter the MouseWheel event in a QGIS C++ plugin?

I’m developing a C++ plugin for Qgis and I want to filter/override the mouse-wheel event. I created a “maptool” to select a polygon feature on a vector layer, the feature has two attributes : an id ...
2
votes
1answer
111 views

Keeping a vector layer always on top

I want to know how to keep a layer always on top of other layers! After adding a vector layer ( QgisInterface->addVectorLayer ), I want that layer to always be displayed on top of layers added later. ...
0
votes
1answer
209 views

requesting tiles without using xml file (gdal - c++)

i have been able to request a specific tile with my xml through gdal lib. However, is there is another way of requesting the tiles from a web server without using xml ? i wanna do it directly through ...
3
votes
2answers
963 views

Finding the minimum and maximum distance between an observer and a lat/lon bounding box

I have three points in geographic coordinates (latitude, longitude, altitude). One of the points represents an observer, above the Earth. The other two points define a bounding box. I'd like a ...
2
votes
5answers
1k views

How do I turn a GeoTIFF file into a bmp file?

I need to get GeoTIFF files transformed into bmp files so that I can display them as apart of some software that I am working on. Unfortunately, I am a total newbie with GIS and really don't know much ...
8
votes
1answer
3k views

Characteristics of different methods to convert ECEF to LLA

I'm trying to convert ECEF (Earth Centered, Earth Fixed) coordinates, which are defined in X,Y,Z, centered at (0,0,0) to LLA (Latitude, Longitude, Altitude). There are a couple of methods I found on ...
6
votes
1answer
219 views

What's a robust strategy for displaying 3D map data for navigation?

3D map data, specifically the kind you see on GPS units, or more recently on smart phones, almost always features a 'HUD' like view, which I'm trying to implement in an application of mine. I have ...
3
votes
1answer
175 views

Build ESRI addin with C++

Is it possible to build an ESRI addin (.esriaddin) using C++? I see templates for .NET and C# only but perhaps there is a manual method?