An object-oriented programming language

learn more… | top users | synonyms

0
votes
0answers
1 views

C++ and Quantum GIS

I wish to develop/customize with a combination of C++ and Q GIS (Windows OS). I downloaded QGIS but couldn't find header (.h) and library (.lib) files. Where can I find them? B. Ramesh ...
0
votes
1answer
71 views

QGIS 2.0 Howto copy raster data from a QgsRasterDataProvider to an OpenCV matrix

I'm hacking the half day arround a problem and that I' thought it was simple one. I'm using C++ (QtCreator) QGIS 2.0 und openCV2 on an 64 bit Workstation runnig Debian Wheezy. The Application I try to ...
1
vote
4answers
250 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
0answers
20 views

How to rasterize a vector data with style

I want to make a utility in c++ which can rasterize vector data with some specified style. I know about gdal_rasterize. But the problem with it is, we cannot specify the style details. Do we have a ...
1
vote
0answers
31 views

GDAL C/C++ API and filtered pyramid tile generation

I have been tasked with adding functionality to an existing C++ developed toolset whereby a source dataset (typically a single GeoTIFF) needs to be split into tiles at various resolutions ('zoom' ...
1
vote
1answer
123 views

combine raster with another raster mask file - gdal

I have 2 rasters in GeoTiff format. One has all of the land and water and the other is a mask file that shows either 0 for water or 1 for land. I basically want my output to just have the land values ...
3
votes
2answers
60 views

Fastest Way to Interset 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 ...
0
votes
0answers
11 views

ArcObjects: how do I resize an IComboBox when the contents changes?

In ArcScene: I have implemented an IComboBox where the content changes: void MyComboBox::updateComboBox() { std::vector<CComBSTR> comboBoxItems; getComboBoxItems(comboBoxItems); long ...
0
votes
0answers
29 views

ArcObjects: How to remove a custom layer?

How is a custom layer supposed to be destructed? I have a custom layer that implements drawing by overriding IActiveViewEvents::AfterDraw. The problem is that sometimes when the custom layer is ...
2
votes
1answer
291 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
1answer
51 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 ...
0
votes
1answer
172 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.
0
votes
0answers
8 views

How to define own icon for qgsvertexmarker?

I want to use a small image instead of predefined icons of vertex marker in qgis. how to do this? QgsVertexMarker * marker = new QgsVertexMarker(mPlugin->iface()->mapCanvas()); ...
2
votes
1answer
84 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 ...
1
vote
1answer
60 views

how to transfer from traditional GIS software developing to internet area

I am a GIS developer, formerly doing some secondary development with GIS software. I now want to obtain some internet-based GIS area in my career. Somebody advised me to first read some ...
0
votes
0answers
55 views

Using GDAL to link to a TMS

I currently have a C++ application that will consume a WFS using gdal. It determines if the WFS layer is points or polygons then adds stores them in an appropriate object that is later used to ...
1
vote
2answers
70 views

Difference between OGRGeometry and Geometry in C++ and python

According to the documentation, there is a python version of OGRGeometry's C++ class (http://www.gdal.org/ogr/classOGRGeometry.html) which is http://gdal.org/python/osgeo.ogr.Geometry-class.html ...
0
votes
0answers
37 views

Unable to view a wms layer in QGIS cpp aplication

I am a newbie in QGIS c++ programming, and I am trying to load a raster file from a WMS and display it. The image I want to display can be obtained from this url ...
0
votes
1answer
95 views

Free border data and C++ code to display state/region borders with user-defined-colour areas?

Situation: What I really need cannot be shortly described in the title. We have a commercial application where geographical maps (borders only) are used or for selecting areas (input) or for colouring ...
-1
votes
1answer
97 views

How to find nearest Lat/Lon to the given Lat/Lon from set of Lat/Lon values?

I have a set of lat/lon values and gps lat/lon value. I want to find nearest lat/lon value to the gps point from that lat/lon set. Is there any some formula or some other way so that i could ...
1
vote
0answers
36 views

Icon missing when adding custom combobox command to Toolbar

I have a custom command: class ATL_NO_VTABLE CSliceSelector : public CComObjectRootEx<CComSingleThreadModel>, public CComCoClass<CSliceSelector, &CLSID_SliceSelector>, ...
0
votes
0answers
50 views

How to calculate GPS coordinates of one location relative another location? [duplicate]

In location “A” I know longitude (lonA) and latitude (latA) (Altitude is 50m). Relative to location A I know the horizontal (p) and vertical (q) distances to location “B” (B’s Altitude is 0m). I want ...
0
votes
1answer
36 views

How do I draw an EllipticArc (or any other Segment) in a Dynamic Layer?

I am trying to draw an EllipticArc (or any other Segment for that matter) in my Dynamic Layer using the ArcObjects C++ API. For something that seems like it should be straightforward, I am having a ...
2
votes
2answers
114 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 ...
1
vote
1answer
52 views

OGRFeature::DestroyFeature fails

I am using OGR to read features from a shape file; when the feature is destroyed I am getting an error 0xC0000005: Access violation reading location 0xffffffffffffffff. This secton of the code looks ...
2
votes
1answer
87 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); ...
0
votes
0answers
258 views

GDAL RasterIO grabbing memory

I have written an application in c++ to read LiDAR files and convert to various rasters using GDAL; this worked very well on small scale tests (47 LAS files) however, when used on a live task the ...
3
votes
3answers
137 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, ...
1
vote
2answers
163 views

Shapefile point coordinates to lonlat

I'm currently trying to parse a shapefile (http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf) with c++. While I have no problems parsing all the data I need, there is a problem with the ...
0
votes
0answers
151 views

QGis 2.0.1 cpp-plugin for Windows

my plugin, developed in VS2008 for Windows runs in my testenvironment, the startimage of QGIS shows the developermeeting in Essen with the version number 2.1 alpha. On a other system I have installed ...
1
vote
0answers
31 views

start gdalbuildvrt from c++ plugin

I want to create a vrt from my plugin via gdal-tool. From OSGEO4W-Shell the command works. In my code i tried this: QString program = "gdalbuildvrt"; QStringList arguments; ...
0
votes
1answer
36 views

Install plugins for qgis in centos

I followed the instructions here: How to install QGIS on Centos 6? If I run: QgsVectorLayer * vpoly = new QgsVectorLayer("Polygon", "pointbuffer", "memory"); QgsVectorDataProvider * provider = ...
0
votes
0answers
112 views

How to read vector datasets using GDAL library

Up to now, I have used GDAL in order to read raster information and geotiffs and show them with the help of OpenGL. Now I have a vector dataset, and by that, I mean I have the files with types: DBF ...
1
vote
2answers
116 views

will ogr get coordinates in geographic coordinate system or projected coordinate system when using getPoint(int,OGRPoint*)

Consider the code that I have written in the stackoverflow question How to extract vertexes of geometries in ESRI shapefiles using ogr library with c++, I have used the code to show shapefiles on an ...
0
votes
0answers
47 views

How to use projection of a shapefile in order to have a better view in OpenGL

As you see here, this is the code that I have used to extract vertices of ESRI shapefiles in order to show them with OpenGL. I have also uploaded my project here, if you want to give it a try and see ...
-3
votes
1answer
70 views

How can I use ogrinfo to reach information anout 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 ...
1
vote
1answer
379 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 ...
0
votes
0answers
87 views

How to access vertices in a polygon layer using ogr library with c++

up to now I have tried these classes in order to extract the vertices of polygons: OGRPolygon : It doesn't have any method to get number of vertices, start point and end point. OGRLineString : ...
0
votes
2answers
81 views

please Introduce me a free 3rd party library appropriate for showing Geospatial information

Up to know I have used GDAL to extract raster data from geotiffs and then opengl's used to show that raster data. But when it comes to extract vector data with the help of ogr library, what library ...
2
votes
1answer
122 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 ...
1
vote
0answers
163 views

ArcGIS (ArcObjects) Windows 7 - 64 bit -support

I have been developing with ArcGIS Cross Platform C++ SDK (with Qt 4.8.2) on 32 bit Windows XP SP3 (development machine). I used to use MapTool Control within ArcObjects on the development machine. ...
0
votes
0answers
42 views

Debug symbols for ArcGIS 9.3 (C++ API)

I am using ArcGIS 9.3 C++ API on Windows (Visual Studio 10) and would like to compile my application with debug symbols. However, I could not find any debug symbol under the installation directory and ...
1
vote
2answers
187 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 ...
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 ...
1
vote
1answer
158 views

Intersect line (LLH) with any LLH plane

I have a LLH (Longitude, Latitude, Height) point with an elevation angle and azimuth (actually it is a receiver point). I believe I can make a line with this information. What I want is to intersect ...
2
votes
1answer
239 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, ...
1
vote
1answer
177 views

Link GDAL to consume a WFS

Im using a WFS that is openly available as a demo from mapserver's website http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities And now i want to make a ...
1
vote
1answer
83 views

Arcobjects Multithreading in C++ - 'Aborted' when modifying Geometry

My project is required to be cross-platform, so I am using the C++ API for ArcObjects. My application creates a new thread which listens to a network socket broadcasting location information. I am ...
1
vote
1answer
81 views

ArcObjects C++ - Has anyone successfully used AoToolbarAddCommand?

I am working with the C++ API for ArcObjects (Linux, QT), and I am running into problems with when creating a custom button on a toolbar. I have read up on the C++ specific implementation of creating ...
0
votes
1answer
164 views

Convert from Mercator to transverse Mercator projection in C++?

I'm writing code to import images from a WMS server into some software. However, the software expects the images to be in transverse Mercator, but the WMS server provides it in Mercator. This ends up ...