This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task: create cost distance raster for each of a series of shapefile for libya using a friction layer derived from open street map road network | |
steps: | |
1. obtain street network from OSM. I got mine from here: http://download.gisgraphy.com/openstreetmap/pbf/LY.tar.bz2 | |
then used osmosis to convert pbf to xml. | |
In arc... | |
2. reclassify road network such that roads have a value of 1 and non-roads have a value of 5. I set pixel size equal to 200m x 200m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var apple = {'color: 'red', 'name: 'apple'}; | |
var bannana = {'color: 'yellow', 'name: 'bannana'}; | |
var pear = {'color: 'green', 'name: 'pear'}; | |
var fruits = [apple, bannana, pear] | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ee | |
ee.Initialize() | |
# Get a download URL for an image. | |
image1 = ee.Image('srtm90_v4') | |
path = image1.getDownloadUrl({ | |
'scale': 30, | |
'crs': 'EPSG:4326', | |
'region': '[[-120, 35], [-119, 35], [-119, 34], [-120, 34]]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Goal: Create a web-based weighted raster overlay using open source tools. | |
- In the easiest way possible. For a small dataset. In Python | |
Why: | |
1. To learn how this type of analysis might be performed now. | |
2. Practice Python and open source tools | |
3. Understand limitations when datasets get to be too large | |
There are a number of libaries that support Raster processing in Python.
Most notable:
- NumPy
- SciPy
- Rasterio
- ArcPy
- Google Earth Engine
- MrGEO
- GDAL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyspark import RDD | |
from geopyspark.context import GeoPyContext | |
gsc = GeoPyContext( | |
master = "local[*]" | |
appName = "libya-demo" | |
) | |
## Load GeoJSON using Shapley | |
# TODO: use real shapley syntax |
OlderNewer