gdal

libgdal.so android error: could not load library “libgdal.so.1”

送分小仙女□ 提交于 2019-12-12 02:03:39
问题 my problem is the following: I have succesfully built GDAL 1.10.1 using an Android toolchain (CC=i686-linux-android-gcc, CXX=i686-linux-android-c++) that produces the following output libraries libgdal.a, libgdal.la, libgdal.lai, libgdal.so, libgdal.so.1, libgdal.so.1.17.1 in the output folder .libs (in the following I'll call this folder $GDAL_LIB_PATH). I am trying to build a simple Android app (a simple widget application with a QPushButton named TestAndroid) using Qt 5.4 on Windows. If I

GDAL: cannot create and write a zip file with vsizip

隐身守侯 提交于 2019-12-11 14:56:36
问题 I'm trying to write a GeoTIFF to zip file with GDAL library and its virtual filesystem driver vsizip . Alas, it gives me an error: ERROR 1: Random access not supported for writable file in /vsizip ERROR 4: Attempt to create new tiff file `/vsizip/D:\Projects\oy_vey.zip\my.tif' failed: No such file or directory How can I cope with it? P.S. Here's my code: #include "stdafx.h" #include "MainWnd.h" #include <QtWidgets/QApplication> #include <gdal.h> #include <gdal_priv.h> #include <gdal_frmts.h>

Find lat/long coordinates from pixel point in .geotiff using python and gdal

折月煮酒 提交于 2019-12-11 14:32:03
问题 I have points defined by pixel coordinates in a .geotiff imagesat. I am trying to convert these pixel coordinates into longitude and latitude. At first a tried to adapt the given code from the inverse question i previously asked here def pixel_to_world(geo_matrix, x, y): ul_x = geo_matrix[0] ul_y = geo_matrix[3] x_dist = geo_matrix[1] y_dist = geo_matrix[5] _x = x * x_dist + ul_x _y = y * y_dist + ul_y return (_x, _y) def build_transform_inverse(dataset, EPSG): source = osr.SpatialReference

How to fix the enviroment variable GDAL_DATA path set?

泪湿孤枕 提交于 2019-12-11 13:58:22
问题 I have been work with gdal in python 2.7 in windows 10 and Pycharm, and I can't fix the GDAL_DATA path in the environment. Because that I got this message: ERROR 4: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. I try to use command line: set GDAL_DATA='c:/Users/User/share/epsg_csv/' And try to use the function inside the python code: import os os.environ["GDAL_DATA"] = 'c:/Users/User/share/epsg_csv

rgdal installation failed on ubuntu 14.04 [closed]

喜你入骨 提交于 2019-12-11 13:01:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I am trying to install rgdal in my computer that runs ubuntu linux 14.04. The R version that I am using is: 3.3.1. I installed gdal and related packages from the regular ubuntu repository and also using the ubuntu-gis ppa (https://launchpad.net/~ubuntugis/+archive/ubuntu/ppa). In both cases, I've got the same

Gdal will not import after several installs (Mac OSX)

萝らか妹 提交于 2019-12-11 09:49:30
问题 Using Macports, I've tried to install: gdal, py27gdal, and gdal-grass. All so I can import gdal into python 2.7.2. Neither have been successful. When I type: port list installed I see the installed modules: gdal-grass @1.4.3 gis/gdal-grass gdbm @1.8.3 databases/gdbm py27-gdal @1.7.1 python/py27-gdal And when I run python to import the module: Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named gdal What am I doing wrong? 回答1: Are you using the

Combining additional data with Shapefile using GeoJSON and Gdal

孤街浪徒 提交于 2019-12-11 07:45:42
问题 I used Mike Bostock's great tutorial to make a simple map using downloaded shapefiles and processing them with GDAL into GeoJSON files. http://bost.ocks.org/mike/map/ I'm trying to build on this learning by taking a county-level shapefile map and marrying it with additional demographic data (CSV) so that I can load a single GeoJSON file and not have to use Javascript to merge the data at runtime. The goal is to have a county-level heatmap. The CSV file has an ID column that looks like this:

libgdal.so.20: undefined symbol

我与影子孤独终老i 提交于 2019-12-11 07:31:54
问题 yesterday the code was running but when I run my code today, the following error occurs: runfile('/media/mattes/data1/dataDMattes/Code/Python/PythonProgram/main.py', wdir='/media/mattes/data1/dataDMattes/Code/Python/PythonProgram') Traceback (most recent call last): File "<ipython-input-1-e8fdc416f3c8>", line 1, in <module> runfile('/media/mattes/data1/dataDMattes/Code/Python/PythonProgram/main.py', wdir='/media/mattes/data1/dataDMattes/Code/Python/PythonProgram') File "/home/mattes/anaconda3

Unable to run node-gdal on Alpine Linux: “__printf_chk: symbol not found”

给你一囗甜甜゛ 提交于 2019-12-11 06:07:26
问题 I'm trying to add Gitlab CI for my project using node-gdal (Node.js bindings for GDAL). CI configuration is based on Alpine Linux docker image due to performance reasons but I'm unable to get it working. Gitlab CI job fails while running Node.js script that requires node-gdal with the following error: internal/modules/cjs/loader.js:718 return process.dlopen(module, path.toNamespacedPath(filename)); ^ Error: Error relocating /builds/project-0/node_modules/gdal/lib/binding/node-v64-linux-x64

Can No Longer Load rgdal

*爱你&永不变心* 提交于 2019-12-11 04:57:58
问题 I updated my GDAL to 2.2.2 on Ubuntu and now rgdal fails in R. I get this message when I try to load rgdal (I also tried to update rgdal , but didn't work). Error in get(method, envir = home) : lazy-load database '/home/R/x86_64-pc-linux-gnu-library/3.3/rgdal/R/rgdal.rdb' is corrupt In addition: Warning messages: 1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4], : restarting interrupted promise evaluation 2: In get(method, envir = home) : restarting interrupted promise