An object-oriented programming language

learn more… | top users | synonyms

0
votes
1answer
30 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
17 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 ...
0
votes
0answers
14 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
51 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
20 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
9 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
19 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
29 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
55 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
28 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
20 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
0answers
31 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) ...
2
votes
2answers
175 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
2answers
80 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
94 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
59 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
25 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
28 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
53 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
42 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
48 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
28 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
42 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
28 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
131 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
203 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
13 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
31 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
240 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
95 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
25 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
35 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
33 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
16 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
33 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
46 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
47 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
171 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 ...
0
votes
1answer
24 views

What is a purpose of parameter 'separater' in mapnik csv plugin datasource?

What is the purpose of the parameter 'separater' in the Mapnik CSV plugin DataSource Example of the code: parameters p; p["type"]="csv"; p["inline"]=quotedStr; ...
0
votes
0answers
29 views

How I use point symbolizer for styling in mapnik c++ source code?

I have tried point symbolizer for styling in c++ mapnik source code ,the given code line : roads2_rule_11.append(point_symbolizer("/home/razaliaqat/raza.jpg")); But it is giving an error given ...
1
vote
0answers
27 views

What is a Format of csv plugin datasource string in mapnik

I have tried that Format Is that is a correct format to pass to CSV plugin,the sample C++ code is given Below: std::string csv_string("wkt,Name POLYGON((5.123456 51.6, 6.8 52.6, 7.8 51.6, 5.123456 ...
0
votes
0answers
17 views

Pass Data as a String Using Mapnik CVS Plugin

I am new in mapnik and c++ I need Help. I have a code written in C++ that read a data using postGis .The Sample Code is given Below: parameters p; p["type"]="postgis"; ...
0
votes
0answers
122 views

Open a *.qgs project file in API, why maps do not show?

I'm using QGIS-2.4.0 API. I saved a test.qgs file in QGIS Desktop, in this project, there is one layer that is visible in it. Then I open the test.qgs project file in QGIS API to developing an App, ...
2
votes
1answer
107 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
517 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
1answer
181 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
0answers
122 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 ...
1
vote
0answers
92 views

How to create a svg item onto Map Canvas in QGIS API?

I'm working on a project with QGIS-2.4.0 API using C++. I need to load some svg files to the application for displaying as symbols. QGIS API has a class named QgsMapCanvasItem, which is an abstract ...
1
vote
2answers
130 views

GDAL Application crashes when loading GDAL drivers

I'm developing on QT an application that uses GDAL library (which I compiled using MinGW 4.8). When I use the application on my windows 8 laptop, it works fine, but when I tried using it on several ...
2
votes
2answers
311 views

Error getting ESRI Shapefile driver OGR in C++

I am unable to create an OGR Layer using the C++ API. I have followed the documentation at this link exactly http://www.gdal.org/ogr_apitut.html I get an error trying to get the shapefile driver. Any ...