Git Product home page Git Product logo

courses's Introduction

Spatial Thoughts OpenCourseWare

This repository powers the content at courses.spatialthoughts.com

The html pages are built using R Studio as a R Markdown Website.

The content has the following course pages

  • Spatial Data Visualization and Analytics
  • Advanced QGIS
  • Automating GIS Workflows with QGIS
  • Python Foundation for Spatial Analysis
  • Mapping and Data Visualization with Python
  • Customizing QGIS with Python
  • Mastering GDAL Tools
  • End-to-End Google Earth Engine
  • Google Earth Engine for Water Resources Management

Updating the content

Most courses are written using pure MarkDown in the corresponding .Rmd file. You can update the content directly. A few courses embed other .md files generated from Jupyter Notebooks - which need to be generated before building the site.

Python Foundation for Spatial Analysis

  1. Update the .ipynb files in the code/python_foundation/ directory.
  2. Run python-foundation-package.sh to generate .md files for each notebook

Mapping and Data Visualization with Python

  1. Update the .ipynb and .py files in the code/python_dataviz/ directory.
  2. Run python-dataviz-package.sh to generate .md files for each notebook.
  3. The script will also copy updated code to spatialthoughts/python-dataviz-web. Commit and push changes there.

End-to-End Google Earth Engine

The code for the course comes from a Google Earth Engine repository users/ujavalgandhi/End-to-End-GEE.

  1. Clone the users/ujavalgandhi/End-to-End-GEE repository to ~/projects directory.
  2. Update the .ipynb files in the code/end_to_end_gee/ directory.
  3. Run end-to-end-gee-package.sh to generate .md files from the updated code and notebooks.

Google Earth Engine for Water Resources Management

The code for the course comes from a Google Earth Engine repository users/ujavalgandhi/GEE-Water-Resources-Management.

  1. Clone the users/ujavalgandhi/GEE-Water-Resources-Management repository to ~/projects directory.
  2. Update the .ipynb files in the code/gee_water_resources_management/ directory.
  3. Run gee-water-resources-management-package.sh to generate .md files from the updated code and notebooks.

Formatting Guide

We prefer the following style while writing the tutorials.

Type rmd Formatting
Title #
Heading 1 ##
Heading 2 ###
Window titles, Tabs, Dialogs and buttons *label*
Menu items ** menu &arr; submenu1 → submenu2 **
Processing algorithms ** Processing Toolbox &arr; Vector Overlay → Clip**
Layer and file names ``layer_name``
Text input by the user / keyboard shortcuts *value*
Hyper Link's [Spatial Thoughts](https:spatialthoughts.com)

courses's People

Contributors

santhosh-m31 avatar spatialthoughts avatar vignapurohit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

courses's Issues

Use spatial index to check fewer features in QGIS Actions Buffer example

You can dramatically improve the performance of the https://courses.spatialthoughts.com/qgis-actions.html#select-features-in-a-buffer-zone example by using the option to pass a rectangle to QgsVectorLayer.getFeatures():

line_layer = QgsProject.instance().mapLayer('[% @layer_id %]')
polygon_layer_name = 'buildings'
distance = 20
fid = [% $id %]
line_feature = line_layer.getFeature(fid)
line_buffer = line_feature.geometry().buffer(distance, 5)
polygon_layer = QgsProject.instance().mapLayersByName(polygon_layer_name)[0]
nearby_features = [
    p.id()
    for p in polygon_layer.getFeatures(line_buffer.boundingBox()) 
    if p.geometry().intersects(line_buffer)
]
polygon_layer.selectByIds(nearby_features)

This allows the request to use a spatial index (if exist) to quickly limit the number of features to just the candidates that intersect the rectangle. So the if ... intersects only has to check those remaining buildings. Not much of a noticeable difference in the example data but with bigger datasets it will be a huge speed improvement.

Shout if you'd like it, then I'd make a pull request. Would you like to include both versions for the users to experience and learn?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.