An object-oriented programming language

learn more… | top users | synonyms

0
votes
0answers
5 views

change symbology of an graduated renderer in qgis

In my plugin(c++) I add a vectorlayer to map, then I change the symbology of the QgsGraduatedSymbolRendererV2 of this layer. After this I refresh the map with ...
0
votes
0answers
15 views

Write to FGDB in C++ code?

Anyone know the correct syntax for this? I'm a C++ beginner but experienced in GIS.. I'm guessing ofstream won't do it and am not sure what else to try. Never written to any sort of database in C++.
0
votes
0answers
17 views

compile QGIS-plugin for Windows: problem with gdal_i.lib version

While compiling my plugin for QGIS 2.2 there are no errors, but it ist still not loading in QGIS because of an dll error. (function not found) I think the problem is at the gdal version. The ...
1
vote
2answers
30 views

Projection for polygon intersection confined into one hemisphere?

I have polygons where each vertex is a (lon,lat) geographic coordinate. I want to find out if they intersect or contain each other. The polygons are guaranteed to never exceed a hemisphere (so they'll ...
0
votes
0answers
8 views

How to debug a QGis C++ plugin with Visual Studio 2008 [duplicate]

I have a plugin for QGIS 2.2 in C++ (legacy). I dont find how debugging this plugin, with Visual Studio 2008 (for evolution, etc.) Sorry for my bad english. Thanks you ! Paho
0
votes
0answers
8 views

Parsing OGC Filters with C++

Google Translation I am developing an application in C + + you need to parse OGC filter. Anyone know any way to parse an OGC filter with C + +? Estoy desarrollando una aplicación en C++ que ...
0
votes
1answer
45 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 ...
0
votes
0answers
39 views

gdal read whole geotif band into vector

i have another c++ GDAL question. I try to read alle elevation data out of an GeoTiff file into a c++ vector so that i can get elevation at x,y like this: vector[x][y]. I also like to use this data to ...
0
votes
1answer
30 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
0answers
12 views

C++ parser for OGC Filter Encoding 1.0

I'm developing a C++ application and I have to parse a OGC Filter in order to implement querying functionality on a metadata repository. Does anyone know any C++ library to parse OGC Filters? Thanks. ...
1
vote
0answers
34 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
62 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' ...
3
votes
2answers
101 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 ...
0
votes
0answers
13 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
44 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
78 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
109 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 ...
0
votes
0answers
12 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
527 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
104 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
67 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 ...
1
vote
1answer
207 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 ...
0
votes
0answers
76 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
90 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
63 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
119 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
136 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
49 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 ...
2
votes
2answers
166 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
63 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 ...
3
votes
3answers
176 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, ...
2
votes
1answer
131 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
1answer
387 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 ...
1
vote
2answers
209 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 ...
1
vote
4answers
367 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
39 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
44 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
166 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
2answers
143 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
70 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
72 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
558 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
110 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
87 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 ...
0
votes
0answers
148 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 ...
2
votes
1answer
136 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
192 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
51 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
227 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 ...