An object-oriented programming language

learn more… | top users | synonyms

0
votes
0answers
28 views

Is there an open source solution to access raster layers in an ESRI File-GeoDatabase?

I'm looking for a way to access raster layers in an Esri File-GeoDatabase without using ArcObjects or ArcPy, specifically I would like to access the raster layers with GDAL. I understand that the GDAL ...
1
vote
0answers
24 views

C++ QGIS Conditional Label Colouring

I am using QGIS and C++. When I create a layer of polygons with labels in the center I am able to use a RuleBasedRenderer to control the background colour of the polygon. How do I similarly control ...
1
vote
1answer
89 views

Sample for MS Visual Studio C++ using GDAL library

Good day, 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 ...
0
votes
1answer
13 views

Gdal/OGR LayerMetaData not parsing its value

To start off with: Using Gdal/Ogr compiled with Xerces to read a WFS Reading from a WFS version 1.0.0 Compiler is QT version 5.4.1 ( C++ ) So I'm trying to get all the capabilities of a WFS via ...
1
vote
0answers
17 views

C++ Get Capabilities from a WFS

To start off with: Coding in C++ Using the QT Creator Reading from WFS Version 1.1.0 Using Gdal/OGR compiled with Xerces Hi all so I'm trying to get all of the Capabilities from a WFS. I know how ...
1
vote
1answer
65 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
1answer
34 views

Getting Feature names from WFS in C++

to start off with: Coding in C++ Using WFS Version 1.0.0 Using QT 5.4.1 Windows 8 Latest versions I'm trying to read in a WFS in code via Gdal compiled with Xerces - I'm able to read the GML ...
0
votes
0answers
33 views

How to remove a QgsMapCanvasLayer from QgsMapCanvas with PyQGIS || C++?

I try to find a way to remove a QgsMapCanvasLayer from the QgsMapCanvas. At the moment I only can delete the MapLayer from the QgsMapLayerRegistry with: ...
1
vote
0answers
39 views

QGis Application Debugging - missing source problem at setScene method in QgsMapCanvas class [closed]

I develop a app in C++ with Qgis components with VS2010 Prof on Windows 7. Compiling a release succeeded and the app´s behaviour is as expected. Nevertheless I would like to take advantage of the ...
0
votes
1answer
75 views

QGIS C++ Hello World example crashing

I have written a very simple C++/Qt application using QGIS comprised of a single "main.cpp" file as below: #include <qgsapplication.h> int main(int argc, char ** argv) { QgsApplication ...
0
votes
3answers
81 views

Using GDAL/C++ to calculate distance in meters

I'm using GDAL in C++, with WGS84. I want to calculate distance between two points in meters. The code snippet below tries to find the distance between 25N/75E and 25N/76E. The code, as is, returns ...
0
votes
1answer
44 views

What packages are required to install C++ API on Linux Mint 17?

What packages are required to install C++ API on Linux Mint 17? I already have access to the Python API (installed via “python-qgis” package), but no C++.
0
votes
1answer
140 views

How to convert latitude, longitude to EPSG 3857?

I'm looking to study the math involved to see how a given latitude and longitude in decimal degrees can be converted to epsg 3857. Can anybody point to a good reference or a possible python/c/c++/java ...
1
vote
1answer
47 views

Set up GDAL for C++ in RHEL

I've got GDAL installed from the latest 1.11.2 source, but when I try to make by C++ executable I get undefined references to "GDALAllRegister" and basically all the GDAL functions I call. The same ...
2
votes
1answer
98 views

Implement r.cross / ArcGIS Combine with GDAL

I am using GDAL to process a lot of rasters. I then need to combine all the arrays to create a single output raster that represents all the unique combinations of values. I.E the same thing as ...
1
vote
2answers
93 views

QGIS Rule Based Rendering

I am looking for an example of how to use the QgsRuleBasedRendererV2 to filter features of a layer based on an attribute value (0 or 1). Has anyone done this in Python or C++?
0
votes
0answers
46 views

GDAL, Georeferencing

I have been trying to use GDAL library to add geoinformation to an image. From the documentation from GDAL web page I could find that I could use GDAlSetGeotransform(), for that I need a six ...
0
votes
0answers
14 views

qgis (WIN): change settings from registry to INI

I have built qgis on windows 7, and need to stop the settings from being written to the registry. Is there a way to have an ini file created and used instead? (Having trouble finding that code)
0
votes
0answers
31 views

Using GDAL with a line layer and points layer, find next point along line layer

With the points layer and line layer, I'm trying to create a graph for path finding. I've got a line layer that I've dissolved, thinking that might make this easier. The points in the points layer lie ...
2
votes
1answer
33 views

Loading Raster using QGIS API in Windows

I am trying to develop a C++ application using QGIS. I have to load a tif file and show it. First I wrote an app similar to samples on the internet. It works on Linux, but it does not work on ...
2
votes
0answers
102 views

Microsoft Visual C ++ Crash when Install qgis.2.8.1

I have installed and reinstall QGIS ver.2.8.1. and always display a message as shown below. I hope someone can help me fix these problems. Thanks for your help.
0
votes
0answers
37 views

Select feature within radius

I am developing a plugin (C++) and somehow I am stuck (I am very new to this). I start the plugin which has an own gui. There is a button to select features from the vector layer. Clicked on it, the ...
1
vote
0answers
22 views

QgsSpatialIndex crash my deploy C++ QGIS custom application on windows

When I use the QgsSpatialIndex class, after leaving the method, my application crash. Looks like the object QgsSpatialIndex class works, it brings QgsFeatureId list, but from what I noticed something ...
1
vote
1answer
83 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) ...
4
votes
2answers
336 views

GDAL in C++: Reading a ShapeFile

I am trying to use the GDAL Lib to read a ShapeFile (.shp). I followed the instructions of http://www.gdal.org/ogr_apitut.html - But it doesn't work! #include <gdal_priv.h> #include ...
0
votes
3answers
176 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 ...
3
votes
1answer
138 views

DEM creation with C++ application

I am implementing a C++ application that must produce DEMs from LIDAR data. I am following the next workflow: Write .las files from lidar data. Use PCL algorithms to transform/filter the point ...
1
vote
1answer
88 views

How to get values to create world file format?

i have researched regarding making world file format and tried to create one using c++ in windows, can somebody confirm if where i am getting the values from are correct? the literature regarding ...
0
votes
0answers
28 views

kml to FeatureClass

I'm new to ARC, and am trying to create a tool to fetch KML for sources and import to the central arcserver database. I see that there is a the kml to lyr tool, but it creates a personal sde. Is ...
0
votes
1answer
32 views

Georeferencing using Liblas error

I am trying to write georeferencing information to a '.las' file using liblas and c++. Here is my code: ofstream ofs; ofs.open("test.las", ios::out | ios::binary); liblas::Header header; ...
1
vote
1answer
68 views

How to make rectangle selection on QgsMapCanvas?

I have this code for create and open raster map: if(QFile::exists(rasterFileName)) { QFileInfo myRasterFileInfo(rasterFileName); m_pRasterLayer = QSharedPointer<QgsRasterLayer>( ...
2
votes
1answer
64 views

Why does GDAL Polygonize flip features vertically?

I am trying to convert a 1 band jpg raster into polygons. It is converting the data and I get a polygon shape file. However, the output data is vertically flipped. Input data have no reference ...
0
votes
0answers
65 views

Mosaic several geotiff files

how to mosaic several geotiff file to submap that does not contain ALL the source maps I need GDAL C++ API?
1
vote
0answers
46 views

How do I step into the C++ functions from an external Python app I'm debugging?

I just wanted to see how to step into the C++ class QgsVectorLayer()'s methods from the python call to QgsVectorLayer(self.uri.uri(),'foo','postgres'). I'm trying to debug and it trying to step into ...
3
votes
0answers
56 views

GDALRasterizeGeometries doesn't burn correct Values

What I have is a vector shape file with a string field. What I've done is written a CSV file with the field ID, field_value and now I would like to rasterize the vector layer as a byte raster with the ...
0
votes
0answers
33 views

how to use qgis api in runtime program on linux?

I tried to show raster map with symbolic on it in c++ application on linux os. How can i do it with qgis?
0
votes
1answer
190 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 ...
4
votes
2answers
211 views

Is there a GIS-Tool that fit my needs? [closed]

I´m working on a GIS-Project in the Defense & Intelligence sector. The goal was to develop/create a GIS-Service that: stores and manage GIS-Data (Map data, Height data.. ) has a repository for ...
1
vote
0answers
17 views

Getting incorrect results for Geary's Coefficient algorithm (incorrect math?)

I'm not sure if anyone here can help me with this, but I'm currently working on a program that uses a spatial autocorrelation algorithm to analyze patterns in an image. It's supposed to return values ...
2
votes
0answers
39 views

In version 2.4 vector layers with labeling switch off caching

I am developing a map display stand alone application using the C++ API. With version 2.6 the caching mechanism is ignored for vector layers with labels. The reason is to avoid conflicting labels. ...
2
votes
1answer
401 views

How to develop c++ standalone QGIS C++ Application

I want to integrate QGIS in QT\C++ application. I try to write basic C++ apllication to render map and build it using MSVC 2010. class PostGisViewer: public QMainWindow { public: PostGisViewer(): ...
0
votes
1answer
114 views

Generate delaunay triangulation from 3D(x,y,z) points

I have 3D Points array.each 3D point have x,y,z data. I want to generate delaunay triangulation.I am new in delaunay triangulation. My array as below. -256.24 85.35 5.0 -262.24 84.35 15.0 -263.24 ...
0
votes
0answers
44 views

What is the input format to the M-GEMMA map matching tool?

I am researching different map matching algorithms. Based on the Map Matching StackExchange discussion I came across the M-GEMMA tool written in C++, which can be downloaded here. A literature discuss ...
0
votes
0answers
41 views

postgis & mapnik “column ”CLASS“ does not exist”

I've piped an osm map of greece into postgis with osm2pgsql and was playing around with C++ mapnik sample code giving "planet_osm_polygon" as the source table: parameters p0; p0["type"] = ...
0
votes
0answers
41 views

Adding Raster Layer in C++ application always result in layer invalid

I am trying to add a raster layer in c++ application with QtCreator and QGIS 2.6.0. My code is as follows: QgsRasterLayer * layer = new ...
1
vote
0answers
22 views

Point Symbolizer() in rundemo.cpp file Giving error

The code is given Below: roads2_rule_11.append(point_symbolizer("abc.png")); The error is given below: rundemo.cpp: In function âint main(int, char**)â: rundemo.cpp:142:57: error: no matching ...
1
vote
0answers
45 views

when make a cross-platform c++ GIS core, how to make the 2d-drawing platform independent? [closed]

i try to develop a c++ no-GUI GIS core(i want the core have no GUI related things, do not use any GUI library) and I can figure out how to do other things except the drawing part. when cope with 2D ...
2
votes
0answers
47 views

What is the issue with geopdf format?

I'd like to add the geopdf format as output of a library that I am working on. After have looking around, I have not been able to find a (c, c++, python) library that meet my license requirements ...
0
votes
0answers
59 views

Syntax Error in qgsapplication file

I am trying to test an QGIS application code example. However, when I try to compile it, it is reporting errors in qgsapplication.h which is coming with the source code of QGIS. I am using QTCreator ...
2
votes
1answer
232 views

How to load a *.qgs file in a C++ QGIS standalone app?

I'm using QGIS-2.4.0 API to develop a standalone app by C++. I saved a test.qgs file in QGIS Desktop software, in the project, there was one layer and it was visible. Then I loaded the test.qgs ...