gdal

Installation of GDAL with Conda on Windows

廉价感情. 提交于 2019-12-31 05:52:12
问题 I have Anaconda Python 3.6 on Windows 7. I frequently use GeoPandas and it worked fine. Yesterday I tried to install rasterio and georasters, and they seemed to install fine using the suggested method conda config --add channels conda-forge conda install rasterio Then installed georasters using conda install -c conda-forge georasters And got a successfull installation message. When trying to import them they do not work - there is an error message on import rasterio or import georasters .

光栅程序的通用选项

不羁的心 提交于 2019-12-29 08:04:18
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Common options for raster programs 光栅程序的通用选项 All GDAL command line programs support the following common options. 所有 GDAL 命令行程序都支持以下通用选项。 --version Report the version of GDAL and exit. 报告 GDAL 版本并退出。 --formats List all raster formats supported by this GDAL build (read-only and read-write) and exit. The format support is indicated as follows: ‘ro’ is read-only driver; ‘rw’ is read or write (i.e. supports CreateCopy); ‘rw+’ is read, write and update (i.e. supports Create). A ‘v’ is appended for formats supporting virtual IO (/vsimem, /vsigzip, /vsizip, etc). A

GDAL工具箱介绍

时间秒杀一切 提交于 2019-12-29 07:37:26
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Programs 程序清单 Raster programs 栅格程序 Common options 通用选项 gdalinfo : Lists information about a raster dataset. 列出有关栅格数据集的信息。 gdal_translate : Converts raster data between different formats. 在不同格式之间转换栅格数据。 gdaladdo : Builds or rebuilds overview images. 构建或重建概览图片。 gdalwarp : Image reprojection and warping utility. 图像重投影和扭曲工具。 gdaltindex : Builds a shapefile as a raster tileindex. 生成一个 shapefile 作为栅格瓦片索引。 gdalbuildvrt : Builds a VRT from a list of datasets. 从数据集列表构建 VRT。 gdal_contour : Builds vector contour lines from a raster elevation model. 从光栅高程模型建立矢量等高线。

NSTask or equivalent for iPhone [closed]

狂风中的少年 提交于 2019-12-28 03:10:05
问题 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 4 years ago . I've an open source project (gdal) that I want to compile and run as part of an iOS app. I had been expecting to use NSTask but I see now that it was removed in iOS 3.0. I've also seen elsewhere that running external applications, though this would be a resource in my app's bundle, is not allowed. Has anyone

How to build gdal jni on windows

纵然是瞬间 提交于 2019-12-24 20:08:44
问题 I want to use ogr2ogr.java and it need the GDAL jni to work. I have tried following the instruction mentioned here Build Instructions for GDAL/OGR In Java (Windows) but, still I am not able to build it. I am using windows 7 64 bit operating system. If somebody has build it successfully let me know how you did it. 回答1: So, after lot of trouble I found out that that there is no need to build gdal jni from source. You can download the compiled jni dll file from here Tamas Szekeres' Windows daily

Problems installing rgeos and rgdal on Mac OS X Lion

Deadly 提交于 2019-12-24 00:56:59
问题 I'm trying to install the rgeos package (and the rgdal) package. I have a macbook pro running os x 10.7.1 and I have the latest version of R, 2.13.1. I am following the instructions from this site: http://lostingeospace.blogspot.com/2011/08/rgeos-on-macos-x.html I have installed the latest GDAL complete framework 1.8 from http://www.kyngchaos.com/software:frameworks and have downloaded the source file rgeos_0.1-8.tar.gz from CRAN. In terminal, I input the following, as per the instructions:

Problems installing rgeos and rgdal on Mac OS X Lion

纵饮孤独 提交于 2019-12-24 00:54:27
问题 I'm trying to install the rgeos package (and the rgdal) package. I have a macbook pro running os x 10.7.1 and I have the latest version of R, 2.13.1. I am following the instructions from this site: http://lostingeospace.blogspot.com/2011/08/rgeos-on-macos-x.html I have installed the latest GDAL complete framework 1.8 from http://www.kyngchaos.com/software:frameworks and have downloaded the source file rgeos_0.1-8.tar.gz from CRAN. In terminal, I input the following, as per the instructions:

Problem importing USDA Crop Data Layer (GTIFF) in R using raster() package

岁酱吖の 提交于 2019-12-23 15:37:19
问题 I've downloaded the USDA Crop Data Layer (data available here, note large file: http://www.nass.usda.gov/research/Cropland/SARS1a.htm) and want to import it into R for analysis. I've imported other large GTIFF files (e.g., LANDSAT data), but get the following error when I call the function: r <- raster(file) Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer", : Cannot create a RasterLayer object from this file. where "file" is any of the .tif files provided by USDA (I'm

Minimum Distance Algorithm using GDAL and Python

こ雲淡風輕ζ 提交于 2019-12-23 10:29:15
问题 I'm trying to implement the Minimum Distance Algorithm for image classification using GDAL and Python. After calculating the mean pixel-value of the sample areas and storing them into a list of arrays ("sample_array"), I read the image into an array called "values". With the following code I loop through this array: values = valBD.ReadAsArray() # loop through pixel columns for X in range(0,XSize): # loop thorugh pixel lines for Y in range (0, YSize): # initialize variables minDist = 9999 #

how to upgrade proj4 for rgdal

为君一笑 提交于 2019-12-23 09:47:36
问题 I use the R packages rgdal and rgeos extensively (currently with R v3.2.2). Recently, on my ubuntu machine (ubuntu v15.10), when I load the rgdal package, I see the following: > library(rgdal) Loading required package: sp rgdal: version: 1.0-7, (SVN revision 559) Geospatial Data Abstraction Library extensions to R successfully loaded Loaded GDAL runtime: GDAL 1.11.1, released 2014/09/24 Path to GDAL shared files: /usr/local/share/gdal Loaded PROJ.4 runtime: Rel. 4.9.1, 04 March 2015, [PJ