Skip to content

Instantly share code, notes, and snippets.

// bbox covers saurimo
[out:csv(::timestamp,::user,::type)][timeout:25][bbox:-9.938605,19.873032,-9.428253,20.916046];
// gather results
(
  way["highway"];
);
// print results
out meta;
>;

If you are on a Windows machine you may run into issues with the conda install osmnx command. The problem may be installing it's geopandas dependency (you may see an error like this: 'UnsatisfiableError: The following specifications were found to be in conflict: geopandas'.

As outlined in this blog post (https://geoffboeing.com/2014/09/using-geopandas-windows/), the issue may be with some of the C extensions of the dependencies. Follow the instructions of the blog post to install geopandas using Python Wheels, before proceeding.

Used MiniConda and created a new environment.

conda create --name GOST_PublicGoods python=3.7
# - Close port 8080 for inbound networking
# - Edit your local_settings to use proxy /geonode (and not port 8080)
# - Add following to local_settings: AVATAR_GRAVATAR_SSL = True
# - make sure mod_ssl is active: $ a2enmod ssl
# add let´s encrypt repository
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
# install certbot
#from qgis.core import QgsProject,QgsPrintLayout
#https://data.library.virginia.edu/how-to-create-and-export-print-layouts-in-python-for-qgis-3/
import yaml
#envision that this script will use an input yaml file, something like below:
#
# - map1:
# data_dir:
# source_text: |
# source text line 1

Deploying a 4x4K, GPU-backed Linux desktop instance on AWS

Follow this blog:

(AWS Compute Blog) Deploying a 4x4K, GPU-backed Linux desktop instance on AWS https://aws.amazon.com/blogs/compute/deploying-4k-gpu-backed-linux-desktop-instance-on-aws/

note: check for newer versions of the NVIDIA Grid drivers than what is in the blog.

Tips: Don't worry, installing CentOS 7 minimal will not have an additional cost in AWS (https://aws.amazon.com/marketplace/pp/B00O7WM7QW?qid=1528131387105&sr=0-1&ref_=srh_res_product_title#pdp-pricing)

Install latest QGIS on Ubuntu 16.04

  1. Create a new Virtual Box with the latest Ubuntu desktop iso
  2. start up box and make sure Guest Additions are installed to have copy and paste between guest and host machines
  3. Follow these commands (from https://gis.stackexchange.com/questions/133033/installing-latest-qgis-version-on-ubuntu)

** If you are using another version of Ubuntu such as 18.04, replace 'xenial' with the proper Ubuntu version name (e.g., 'bionic' for ubuntu 18.04).

sudo sh -c 'echo "deb http://qgis.org/debian xenial main" >> /etc/apt/sources.list' 

sudo apt-get update

sudo apt-get -y upgrade

sudo apt-get install -y python3-pip

pip3 install --upgrade pip

sudo apt-get install build-essential libssl-dev libffi-dev python-dev