gdal

Error creating a spatial database using EXTENSIONS

主宰稳场 提交于 2021-02-10 09:42:52
问题 When running psql -d mydb -c "CREATE EXTENSION postgis;" I get the following error: ERROR: could not load library "/usr/local/Cellar/postgresql/9.3.4/lib/rtpostgis-2.1.so": dlopen(/usr/local/Cellar/postgresql/9.3.4/lib/rtpostgis-2.1.so, 10): Symbol not found: _sqlite3_column_table_name Referenced from: /usr/local/lib/libgdal.1.dylib Expected in: /usr/lib/libsqlite3.dylib in /usr/local/lib/libgdal.1.dylib STATEMENT: CREATE EXTENSION postgis; System: OS X 10.9.2 All libraries were installed

Error creating a spatial database using EXTENSIONS

时光总嘲笑我的痴心妄想 提交于 2021-02-10 09:42:27
问题 When running psql -d mydb -c "CREATE EXTENSION postgis;" I get the following error: ERROR: could not load library "/usr/local/Cellar/postgresql/9.3.4/lib/rtpostgis-2.1.so": dlopen(/usr/local/Cellar/postgresql/9.3.4/lib/rtpostgis-2.1.so, 10): Symbol not found: _sqlite3_column_table_name Referenced from: /usr/local/lib/libgdal.1.dylib Expected in: /usr/lib/libsqlite3.dylib in /usr/local/lib/libgdal.1.dylib STATEMENT: CREATE EXTENSION postgis; System: OS X 10.9.2 All libraries were installed

Successfully installed libtiff but while importing getting error

旧巷老猫 提交于 2021-02-07 04:30:28
问题 I installed libtiff successfully in python 2.7 using "pip install libtiff". It successfully installed the libtiff-0.4.0 package. But when I am importing the package using "import libtiff".I get an error which is: Traceback (most recent call last): File "D:/Python/p1.py", line 1, in <module> import libtiff File "D:\Python\lib\site-packages\libtiff\__init__.py", line 20, in <module> from .libtiff_ctypes import libtiff, TIFF, TIFF3D File "D:\Python\lib\site-packages\libtiff\libtiff_ctypes.py",

Successfully installed libtiff but while importing getting error

主宰稳场 提交于 2021-02-07 04:30:07
问题 I installed libtiff successfully in python 2.7 using "pip install libtiff". It successfully installed the libtiff-0.4.0 package. But when I am importing the package using "import libtiff".I get an error which is: Traceback (most recent call last): File "D:/Python/p1.py", line 1, in <module> import libtiff File "D:\Python\lib\site-packages\libtiff\__init__.py", line 20, in <module> from .libtiff_ctypes import libtiff, TIFF, TIFF3D File "D:\Python\lib\site-packages\libtiff\libtiff_ctypes.py",

How to convert projection of png tile from epsg:4326 to epsg:3857 by one command using gdal

随声附和 提交于 2021-01-28 20:50:41
问题 I have tiled png files and those projection is EPSG:4326. I convert projection to EPSG:3857 with below 2 commands: gdal_translate -of Gtiff -a_ullr 135.00000000000003 36.59788913307022 140.62500000000003 31.952162238024975 -a_srs EPSG:4326 4326.png 4326.tiff gdalwarp -s_srs EPSG:4326 -t_srs EPSG:3857 4326.tiff 3857.png Can I make it with 1 command ? 回答1: I don't know how to do it with one command, but if you are working on a Unix-like environment, you can use a pipe to avoid creating an

How to read Oracle Spatial data with rgdal (missing drive?)

淺唱寂寞╮ 提交于 2021-01-28 11:31:20
问题 I would like to read spatial data into R from my Oracle Spatial database. When I execute ogrDrivers() I do not see anything for Oracle Spatial. And the following fails: > require(rgdal) > ogrInfo(dsn="OCI:myusr/mypwd@mydb:MYTABLE:") Error in ogrListLayers(dsn = dsn) : Cannot open data source It looks like Oracle Spatial driver is not normally built into OGR (Oracle makes it really difficult for everybody to work and interoperate with other eco-systems!). I am wondering whether there are other

Why “import shapely” and “import gdal” do not work together?

狂风中的少年 提交于 2021-01-28 11:13:26
问题 My code needs both of these libraries but when I import them like that: from shapely.geometry import Point from shapely.geometry.polygon import Polygon import gdal I get an error saying that gdal can not be imported. Everything works well when I run them separately. I would be thankful for any help. P.S. I am using Python 3.6 来源: https://stackoverflow.com/questions/52438313/why-import-shapely-and-import-gdal-do-not-work-together

GDAL Library Header Files Error and Warningsin With Visual Studio 2019

别来无恙 提交于 2021-01-28 11:01:30
问题 I am using GDAL in visual studio 2019 community version,and I used the sample code in the their official site which is down below,the program compiles, runs and outputs fine, but I got a list of errors and warnings, I don't know if I should ignore them or make some change on header files, anyone encounter issues like this before? hope someone could give me some advice, thank you. sample code: /*gdal_test*/ #include <iostream> #include <gdal_priv.h> #include <cpl_conv.h> using namespace std;

sf R package “is not compatible with GDAL versions below 2.0.0” after installing gdal 2.3 from conda

僤鯓⒐⒋嵵緔 提交于 2021-01-28 06:44:42
问题 In trying to install the sf R package, I got the error message: checking GDAL version >= 2.0.0... no configure: error: sf is not compatible with GDAL versions below 2.0.0 I then installed gdal 2.3.1 from conda and confirmed the version: gdalinfo --version GDAL 2.3.1, released 2018/06/22 But I still get the same error message. SF on R 3.5 can't find correct version of gdal looks similar but their solution involved installing outside of conda. I'm on Ubuntu. How can I get sf to recognize the

installing sf package with libraries in non-standard locations

℡╲_俬逩灬. 提交于 2021-01-28 06:28:16
问题 The required libraries are in non-standard locations and I can install rgdal by the command below: install.packages('rgdal', type = "source", configure.args=c('--with-gdal-config=/home/programs/anaconda3/bin/gdal-config', '--with-proj-include=/home/programs/anaconda3/include', '--with-proj-lib=/home/programs/anaconda3/lib')) But I can't install sf package. It keeps saying configure: error: proj_api.h not found in standard or given locations. . The installation code and output is below. Do you