An object-oriented programming language

learn more… | top users | synonyms

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 ...
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 ...
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 ...
6
votes
1answer
581 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 ...
6
votes
1answer
844 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 ...
6
votes
1answer
214 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 ...
5
votes
1answer
416 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 ...
5
votes
1answer
93 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 ...
5
votes
2answers
460 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 ...
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 ...
5
votes
2answers
778 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: ...
4
votes
1answer
576 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 ...
4
votes
1answer
850 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 ...
3
votes
1answer
129 views

How to refresh layers independently?

I'm writing a C++ application using QGIS API and I would like to improve the performance. I want to render 5 layers: one raster layer using gdal to load Bing/Google Map tiles 4 custom QgsMapLayer ...
3
votes
2answers
894 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 ...
3
votes
1answer
174 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?
3
votes
3answers
217 views

A linestring merger algorithm

I'd like to merge linestrings which touch, but do not cross. The linestrings share the same SRID and come from a PostgreSQL 9.2/PostGIS 1.5 database. Within the table I query are several line strings, ...
3
votes
2answers
650 views

circle detection on binary image

My image is gray scale image which i have converted to binary by smoothing and then edge detection method. Now i want to place the circle /ellipse on edge detected. I don't know how to proceed ...
3
votes
3answers
351 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 ...
3
votes
2answers
133 views

Fastest Way to Intersect Envelope with Multiple Feature Classes ArcObjects

I have the situation where I am doing a large number of intersections and I need to do them fast. The situation is I have a iMap with 1 or more layers and a series of envelopes, lots of envelopes. I ...
3
votes
1answer
638 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 ...
3
votes
0answers
57 views

How do I get the domain from an OGRSpatialReference?

I would like to know what the projected bounds are for a spatial reference using OGRSpatialReference. Is there some way to use the GetProjParm method to get this information? An example of what ...
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 ...
2
votes
1answer
423 views

QGis Plugin Licence

I would like to create a plugin using commercial software. Does the QGis licence permit this? Are there any restrictions on the licence I can choose to apply to my plugin?
2
votes
3answers
239 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. ...
2
votes
3answers
385 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
108 views

Rearranging labels in screen to avoid overlapping

I have a map, with some icon over it. Every icon has a label next to it. When icons overlaps, labels are overlapped too. In this case, I want to move labels so they don't overlap anymore, with a line ...
2
votes
1answer
284 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 ...
2
votes
1answer
119 views

Using the C++ GDAL API how do I set the GDAL_DATA path?

If I want to change the directory of the GDAL_DATA path or point to a different version of a csv file for EPSG numbers how do I do that using the C++ API?
2
votes
1answer
315 views

Compare two Digital Elevation Model (DEM)

I would like to know what's the best method(s) to compare two DEMs without using any GUI soft like QGIS or ArcGIS. I'd like to do it in Python or C++, with GDAL or other similar lib. Does calculating ...
2
votes
1answer
95 views

Create ERDAS IMG Statistics using GDAL C++ API?

I want to create very many ERDAS .img files using GDAL under C++. I don't want to have to process them all in ArcMap to create statistics for them (mainly because ArcMap fumbles when calculating ...
2
votes
1answer
695 views

Is it possible to query via bounding box in the Google Maps Static API?

We have a Qt program written in C++ to request wms tiles and display them. This works fine. Now we want to display imaginery from Google Maps and due to some restrictions in our program, we can't use ...
2
votes
2answers
188 views

how can i set place mark with text in QGIS?

I want to mark a point in map and place text near it. I used QgsVertexMarker to mark point .As far as now i am using tool-tip to show text. but i need clean code to show my text on map. Following ...
2
votes
1answer
674 views

How to determine latitude longitude point from a pixel within a MODIS tile?

I need to know latitude / longitude of each pixel in a MODIS tile image in HDF in order to reproject from sinusoidal (MODIS) to mercator (Google Maps). I Can read values from HDF in my C++ program, I ...
2
votes
1answer
86 views

Coordinate System correctly renders both decimal Long/Lat and some number in the billions

I am new to ArcObjects and I have been creating an application which will (among other things) be reading data in from a sister program and plotting it on the map.I have found out that I can enter the ...
2
votes
1answer
23 views

How to write a custom canvas item for SVG marker by subclassing QgsMapCanvasItem in QGIS?

I want to subclass QgsMapCanvasItem for SVG marker in QGIS, I looked up a similar topic in stackexchange and QGIS mailing list, I found that this is similar to mine, I did exactly what @Nathan W did. ...
2
votes
1answer
45 views

Add band to GDAL VRT dataset and convert to TIFF

I'm trying to add a band to a TIFF dataset by converting it to a VRT format and using the AddBand() function, then convert it back to a TIFF to access the band and write the data. Here is an example ...
2
votes
1answer
158 views

how to remove and change qgsvertexmarker in QGIS using c++ code?

In QGIS following code is used to set marker at point A. QgsVertexMarker * marker = new QgsVertexMarker(mPlugin->iface()->mapCanvas()); marker->setColor(Qt::black); ...
2
votes
1answer
146 views

How applications like Global Mapper, ArcMap and ArcScene support showing high resolution geotiff images?

Considering my question in Game Developement: How to create textures of big images in opengl (bigger than the MAX_TEXTURE_SIZE) it seems that, there's no way to show an image bigger than the ...
2
votes
1answer
407 views

Using GDAL to connect to a WFS

I'm trying to connect to a wfs using GDAL, from reading some of the (fairly sparse) documentation on this i have found that this is possible if GDAL is compiled with the correct drivers (Curl, ...
2
votes
1answer
185 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 ): ...
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. ...
2
votes
0answers
52 views

Looking for QGIS 2.4 C++ Hello World example?

In the project I'm working on (C/C++/Qt application), we are trying to integrate QGIS (latest version desirable, 2.4 for the moment). But there is very little information in the web on how to use QGIS ...
2
votes
0answers
36 views

How to develop a real-time navigation App using QGIS API?

I want to develop a navigation application based on QGIS using C++, for live tracking. I think it is quite normal for GIS to do such things, especially QGIS as it is a very mature GIS platform. But ...
2
votes
0answers
30 views

How do you clip a gnomonic or stereographic azimuthal projection?

I have polygons comprised of lat/lon coordinates and I want to project them onto a plane that's appropriate for polygon operations (such as checking for intersections). In some cases, the polygons ...
2
votes
0answers
367 views

Completely new to GDAL: please help me with the best way to study it

This is the first time that I post here so pardon me for asking such a beginner question. I'm completely new to GDAL and I'm going to use it to work with satellite images, DEMs, etc. I have some ...
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: ...
2
votes
0answers
278 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
4answers
454 views

Offline Python or C++ library for plotting locations on map?

I'd like to plot locations using longitude and latitude coordinates using Python or C++, is there a good library for such a task? I know that matplotlib is an option, I'm wondering if there are any ...
1
vote
3answers
2k views

How to subset raster image using gdal?

I have read pixel values of an raster image using GDAL libraries in visual studio 2010(vc++). Now I have to crop the image (subset) according to the grid given in shape file. I have got a code for ...