Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geospatial Examples

This repo contains a collection of examples in handling geospatial data with different programming languages, libraries and packages.
It is not intended as a list of geospatial resources, for this you can check the Awesome Geospatial. Instead, the goal is to have a collection of working, simple and unitary examples in different coding languages.

The geospatial_examples repository was originally created as an example of a git repository during an internal git course.

Contributing

To add/correct/improve an example:

  • fork the repository
  • make your changes by following the examples guidelines
  • update the language README with the new example
  • update the tasks table at the end of this README accordingly.
  • send a pull request
  • if modifying an already existing example, request a review from the original creator and/or the current maintainer of the modified example

Languages

This list contains the available coding languages for the examples If you add a new language not present in the list update this README and send a pull request.

(alphabetical order)

Tasks

This list contains the main tasks that are solved in individual examples, this is not an exhaustive list and more complex examples con be present for particular languages. But every language should have at least examples for the following tasks, or at least we should aim for it. If you think a task should be added to the following list please modify this README (including the tasks table) and send a pull request.

(alphabetical order)

  • crop : the action of producing a new dataset restricted to a smaller (usually rectangular) region. The output data should be correctly georeferenced.
  • focal : performs a neighborhood operation that computes an output raster where the value for each output cell is a function of the values of all the input cells that are in a specified neighborhood around that location. It is a generalization of convolutions. The output raster should be correctly georeferenced. See for example arcgis help page.
  • plot : plotting or visualizing georeferenced data. This can be a static image, an interactive map or a dynamic video or image.
  • read : load the data appropriately. This includes reading the associated CRS, selecting the band, reading the value associated to NA.
  • reproject : reproject the data to a new CRS.
  • resample : resample the data to a different resolution.
  • write : write the data into a file on disk.
task gdal javascript python R
crop rv rv
focal r
plot rv rv
read rv rv
reproject rv rv
resample r
write rv

r == raster, v == vector

About

A collection of examples handling geospatial data

Resources

Stars

Watchers

Forks

Contributors

Languages