Skip to content

Instantly share code, notes, and snippets.

@sgillies
Created December 11, 2014 20:44
Show Gist options
  • Save sgillies/8e9133fdad4b92acad3d to your computer and use it in GitHub Desktop.
Save sgillies/8e9133fdad4b92acad3d to your computer and use it in GitHub Desktop.
Take 2
# Copy and paste lines 2-8 (or 4-8 if you didn't delete the miniconda directory) into your terminal, hit return, and check back in 2 mins.
curl http://repo.continuum.io/miniconda/Miniconda-3.7.0-MacOSX-x86_64.sh > /tmp/miniconda.sh
bash /tmp/miniconda.sh -b
export PATH=$HOME/miniconda/bin:$PATH
conda create -n osgeoenv --yes -c https://conda.binstar.org/osgeo gdal
conda install -n osgeoenv --yes -c https://conda.binstar.org/sgillies rasterio
source activate osgeoenv
rio transform --src_crs epsg:4326 --dst_crs epsg:3857 "[-105, 40]"
# Result should be:
# [-11688546.533293728, 4865942.279503176]
# Go ahead and delete $HOME/miniconda when finished.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment