gdal

GDAL on Python 3.6.5 (64-bit)

耗尽温柔 提交于 2019-11-30 09:41:42
问题 I've been trying to install GDAL on Python 3.6.5 (64-bit) on Windows for the past hour, and nothing works. I've visited some questions on SO, watched a video on YT, but none of them applies to my situation (which there's nothing special about it). Can someone provide a step-by-step solution, preferably a tested one, so I can figure out what exactly I'm doing wrong? I'm willing provide any OS setting info/screenshot if necessary. Update: I'm trying to install GDAL to convert TIF (16-bit) files

How to run GDAL (ogr2ogr) in Java to convert Shapefiles to GeoJSON

南笙酒味 提交于 2019-11-30 09:16:26
I'm a beginner at programming and get pretty confused when trying to use external libraries. I have my maps in shapefiles that I convert to GeoJSON using the website Mapshaper.org, and only then can i read the map from my Java application. I want the user to be able to import a shapefile directly so I found out about GDAL ogr2ogr that has Java bindings , and can make this conversion with a single command such as: $ ogr2ogr -f GeoJSON -t_srs crs:84 [name].geojson [name].shp but I have no idea how to use this from my program. Can someone provide me with an example of how to implement this? How

GeoDjango on Windows: Try setting GDAL_LIBRARY_PATH in your settings

此生再无相见时 提交于 2019-11-30 07:38:12
I've done this a dozen times before, but something isn't working this time.. Following the docs: https://docs.djangoproject.com/en/1.11/ref/contrib/gis/install/#windows I'm trying to set up GeoDjango on a Windows machine (this one is a virtual windows 10 set up on paperspace.com). There seems to be a problem with my PATH settings, but I can't figure out what it is. I've run the commands highlighted in the instructions. I've checked my PATH variables and everything seems ok. I've tried pointing them to both the 32-bit and 64-bit versions of OSGeo4Win. Regardless, I get the following output

D3js: How to design topographic maps?

别说谁变了你拦得住时间么 提交于 2019-11-30 07:03:42
Given a GIS raster with elevation data, How to design a topographic map in D3js ? Is there any example of relief / topographic maps of cropped lands made using D3js ? Not working: I explored the posibility of .tif > gdal_contour.py > .shp > topojson > d3js without success. I use a makefile which contain all my commands. As my area of interest (France) is a crop of land areas, the gdal_contour.py approach generates broken isolines which does NOT create closed polygons. Also, the SVG end result fails. The only example of D3 topographic map I know is about Iceland , which, as an island, avoid

Error: gdal-config not found

落爺英雄遲暮 提交于 2019-11-30 06:21:49
问题 Please point out the point that I am missing: openSUSE 11.3 anisha@linux-y3pi:~/Desktop/R> sudo R CMD INSTALL rgdal_0.7-12.tar.gz root's password: * installing to library ‘/usr/lib64/R/library’ * installing *source* package ‘rgdal’ ... ** package ‘rgdal’ successfully unpacked and MD5 sums checked configure: gdal-config: gdal-config checking gdal-config usability... ./configure: line 1353: gdal-config: command not found no Error: gdal-config not found The gdal-config script distributed with

Incorporating GDAL/OGR into an iOS project - A quick guide

余生颓废 提交于 2019-11-30 06:21:47
问题 Here is the problem: GDAL is a fantastic open source library designed to manage complex GIS data, both raster as well as vector. It is fully compiled for the Mac OS (courtesy of William Kyngesburye) and other platforms but not for iOS. Browsing the net you can find bits and pieces of (relatively old) information on the topic of creating an iOS library, starting with the famous script from pseudogreen which was written over 3 years ago. There are also bits and pieces on stack-overflow such as

Using pip to install modules in python failing

只愿长相守 提交于 2019-11-30 02:53:18
问题 I'm having trouble installing python modules using pip. Below is the output from the command window: Note that I installed pip immediately before trying to install GDAL module. I am on a w7 64bit machine running python 2.7 Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\jnunn\Desktop>python get-pip.py Downloading/unpacking pip Downloading pip-1.2.1.tar.gz (102Kb): 102Kb downloaded Running setup.py egg_info for package pip warning:

How to project and resample a grid to match another grid with GDAL python?

て烟熏妆下的殇ゞ 提交于 2019-11-29 20:31:19
Clarification: I somehow left out the key aspect: not using os.system or subprocess - just the python API. I'm trying to convert a section of a NOAA GTX offset grid for vertical datum transformations and not totally following how to do this in GDAL with python. I'd like to take a grid (in this case a Bathymetry Attributed Grid, but it could be a geotif) and use it as the template that I'd like to do to. If I can do this right, I have a feeling that it will greatly help people make use of this type of data. Here is what I have that is definitely not working. When I run gdalinfo on the resulting

GDAL on Python 3.6.5 (64-bit)

烂漫一生 提交于 2019-11-29 16:22:12
I've been trying to install GDAL on Python 3.6.5 (64-bit) on Windows for the past hour, and nothing works. I've visited some questions on SO, watched a video on YT, but none of them applies to my situation (which there's nothing special about it). Can someone provide a step-by-step solution, preferably a tested one, so I can figure out what exactly I'm doing wrong? I'm willing provide any OS setting info/screenshot if necessary. Update: I'm trying to install GDAL to convert TIF (16-bit) files to JPG or PNG. Although I managed to install GDAL with the second method (at second try), I could not

How to render custom map tiles created with gdal2tiles in Leaflet for R?

。_饼干妹妹 提交于 2019-11-29 15:52:24
I'm working with the ESA's landcover raster layer and ultimately want to display that data for the globe in a Leaflet Shiny app. Rendering such a massive file is impossible, so I've decided to create map tiles to display the data. Creating the tiles was simple--I used the gdal2tiles tool in QGIS. Here's a quick look of the output, which is in a local directory on my computer: When I click the leaflet.html file , the tiles are rendered in my browser, like so: Obviously the tiles are in working order. The problem is that I don't know how to render these tiles in Leaflet for R. I tried following