From f8ce3a9f947d6bfac6259d16850b3118a04d969a Mon Sep 17 00:00:00 2001 From: Michele Tobias Date: Fri, 20 Sep 2024 16:40:30 -0700 Subject: [PATCH] knit --- docs/404.html | 35 ++++++- docs/cross-over-data.html | 200 +++++++++++++++++++++++++++++++++++ docs/index.html | 47 +++++++-- docs/introduction.html | 209 +++++++++++++++++++++++++++++++++++++ docs/other-data-types.html | 196 ++++++++++++++++++++++++++++++++++ docs/raster.html | 205 ++++++++++++++++++++++++++++++++++++ docs/reference-keys.txt | 17 +++ docs/search_index.json | 2 +- docs/vector.html | 204 ++++++++++++++++++++++++++++++++++++ 9 files changed, 1100 insertions(+), 15 deletions(-) create mode 100644 docs/cross-over-data.html create mode 100644 docs/introduction.html create mode 100644 docs/other-data-types.html create mode 100644 docs/raster.html create mode 100644 docs/vector.html diff --git a/docs/404.html b/docs/404.html index 9448e52..d71ead8 100644 --- a/docs/404.html +++ b/docs/404.html @@ -79,11 +79,38 @@
  • Introduction to Spatial Data Formats
  • -
  • Overview +
  • Overview
  • +
  • 1 Introduction +
  • +
  • 2 Vector +
  • +
  • 3 Raster +
  • +
  • 4 Cross-Over Data +
  • +
  • 5 Other Data Types +
  • diff --git a/docs/cross-over-data.html b/docs/cross-over-data.html new file mode 100644 index 0000000..e2b78cb --- /dev/null +++ b/docs/cross-over-data.html @@ -0,0 +1,200 @@ + + + + + + + 4 Cross-Over Data | Introduction to Spatial Data Formats + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    +
    + + +
    +
    + +
    +
    +

    4 Cross-Over Data

    +
    +

    4.1 Vectors Representing Gradients

    +

    Topo lines, Isotherms, etc.

    +
    +
    +

    4.2 Raster Representing Discrete Objects

    +

    Crop Type Maps, raster masks

    +
    +
    +
    + +
    +
    +
    + + +
    +
    + + + + + + + + + + + + + diff --git a/docs/index.html b/docs/index.html index 1010605..3c143c1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -32,7 +32,7 @@ - + @@ -79,11 +79,38 @@
  • Introduction to Spatial Data Formats
  • -
  • Overview +
  • Overview +
  • +
  • 1 Introduction +
  • +
  • 2 Vector +
  • +
  • 3 Raster +
  • +
  • 4 Cross-Over Data
  • +
  • 5 Other Data Types +
  • @@ -114,13 +141,13 @@

    Introduction to Spatial Data Formats

    2024-09-20

    -

    Overview

    +

    Overview

    -

    0.1 Description

    +

    0.1 Description

    In this workshop, participants will learn about commonly used spatial data formats - their structures and when to use any given format.

    -

    0.2 Learning Goals

    +

    0.2 Learning Goals

    By the end of this workshop, participants will understand

    • The difference between vector and raster data, as well as some niche formats
    • @@ -129,7 +156,7 @@

      0.2 Learning Goals -

      0.3 Prerequisites

      +

      0.3 Prerequisites

      There are no prerequisites for this workshop and no software to install.

    @@ -140,7 +167,7 @@

    0.3 Prerequisites

    diff --git a/docs/introduction.html b/docs/introduction.html new file mode 100644 index 0000000..a438836 --- /dev/null +++ b/docs/introduction.html @@ -0,0 +1,209 @@ + + + + + + + 1 Introduction | Introduction to Spatial Data Formats + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    +
    + + +
    +
    + +
    +
    +

    1 Introduction

    +
    +

    1.1 Data Types

    +

    All data is an abstraction… a sample… a way of representing some aspect of the real world. We cannot capture everything. Data Types are broad categories of Data Formats and encompass Data Formats that are structured in a similar way.

    +

    With spatial data we typically divide data sets into two Data Types: Vector Data and Raster Data. We’ll explore these in greater depth in this workshop.

    +
    +
    +

    1.2 File Formats

    +

    A Data Type is related to the concept of a File Format. Certain File Formats are used for specific Data Types, but each Data Type may be achieved with many different File Types.

    +

    For example, consider a nonspatial data type, the text document. This data type is a file containing text characters. You have a number of options for file formats when you save a text document, including a Word Document (.docx), text file (.txt), Google Doc, and Libre Office File. All of these file types store the same critical thing - text - but each may support additional features like text formatting or inclusion of images. Internally, they may store information in different ways, and each file format may differ in human readability (can you open the file with any text editor or do you need a specific program like Libre Office for it to work), but they all share a similar way of representing information - text.

    +

    Spatial Data Types are ways of abstracting the world and each has a set of File Formats associated with it. For example, Vector Data may be saved as a shapefile (.shp), geopackage (.gpkg), or as a comma separated variable (.csv), just to name a few. We’ll explore this in more detail later.

    +
    +
    +

    1.3 Why?

    +

    Why do we need to know about different spatial data types and data formats? Can’t our computers tell what the data is and handle it automatically?

    +

    When we use spatial data, we need to know what format it is so we can make good decisions about how to analyze it efficiently. Knowing the format gives us intuition about how we can work with the data inside any given file.

    +

    When we make spatial data, we need to choose a format that will represent the real world with the highest degree of accuracy.

    +
    +
    +
    + +
    +
    +
    + + +
    +
    + + + + + + + + + + + + + diff --git a/docs/other-data-types.html b/docs/other-data-types.html new file mode 100644 index 0000000..da6dfb3 --- /dev/null +++ b/docs/other-data-types.html @@ -0,0 +1,196 @@ + + + + + + + 5 Other Data Types | Introduction to Spatial Data Formats + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    +
    + + +
    +
    + +
    +
    +

    5 Other Data Types

    +
    +

    5.1 Point Cloud Data

    + +
    +
    +
    + +
    +
    +
    + + +
    +
    + + + + + + + + + + + + + diff --git a/docs/raster.html b/docs/raster.html new file mode 100644 index 0000000..1138f4d --- /dev/null +++ b/docs/raster.html @@ -0,0 +1,205 @@ + + + + + + + 3 Raster | Introduction to Spatial Data Formats + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    +
    + + +
    +
    + +
    +
    +

    3 Raster

    +
    +

    3.1 Exercise

    +

    Open an image or photo on your phone or computer. Zoom in really far. What do you see?

    +

    Image files are composed of a grid (imagine graph paper) where each square contains a color. When you zoom out, our brains interpret the image as objects, but it’s really a bunch of colored squares. Squares next to each other might be similar in color, but contain small differences in shade or value. A square could contain virtually any color. (Technically, there are limits on the number of colors, but we’re not going to get into that today.)

    +

    Most photographs you find will be formatted as Raster data.

    +

    Why? Raster data is best for gradients.

    +
    +
    +

    3.2 Description

    +
    +
    +

    3.3 File Formats

    +
    +
    +
    + +
    +
    +
    + + +
    +
    + + + + + + + + + + + + + diff --git a/docs/reference-keys.txt b/docs/reference-keys.txt index 38acf94..a19fe20 100644 --- a/docs/reference-keys.txt +++ b/docs/reference-keys.txt @@ -1,3 +1,20 @@ description learning-goals prerequisites +introduction +data-types +file-formats +why +vector +exercise +description-1 +file-formats-1 +raster +exercise-1 +description-2 +file-formats-2 +cross-over-data +vectors-representing-gradients +raster-representing-discrete-objects +other-data-types +point-cloud-data diff --git a/docs/search_index.json b/docs/search_index.json index c44e06b..d2c8755 100644 --- a/docs/search_index.json +++ b/docs/search_index.json @@ -1 +1 @@ -[["index.html", "Introduction to Spatial Data Formats Overview 0.1 Description 0.2 Learning Goals 0.3 Prerequisites", " Introduction to Spatial Data Formats Michele Tobias PhD 2024-09-20 Overview 0.1 Description In this workshop, participants will learn about commonly used spatial data formats - their structures and when to use any given format. 0.2 Learning Goals By the end of this workshop, participants will understand The difference between vector and raster data, as well as some niche formats The reasons to use different data formats The underlying structure of each data type, conceptually 0.3 Prerequisites There are no prerequisites for this workshop and no software to install. "],["404.html", "Page not found", " Page not found The page you requested cannot be found (perhaps it was moved or renamed). You may want to try searching to find the page's new location, or use the table of contents to find the page you are looking for. "]] +[["index.html", "Introduction to Spatial Data Formats Overview 0.1 Description 0.2 Learning Goals 0.3 Prerequisites", " Introduction to Spatial Data Formats Michele Tobias PhD 2024-09-20 Overview 0.1 Description In this workshop, participants will learn about commonly used spatial data formats - their structures and when to use any given format. 0.2 Learning Goals By the end of this workshop, participants will understand The difference between vector and raster data, as well as some niche formats The reasons to use different data formats The underlying structure of each data type, conceptually 0.3 Prerequisites There are no prerequisites for this workshop and no software to install. "],["introduction.html", "1 Introduction 1.1 Data Types 1.2 File Formats 1.3 Why?", " 1 Introduction 1.1 Data Types All data is an abstraction… a sample… a way of representing some aspect of the real world. We cannot capture everything. Data Types are broad categories of Data Formats and encompass Data Formats that are structured in a similar way. With spatial data we typically divide data sets into two Data Types: Vector Data and Raster Data. We’ll explore these in greater depth in this workshop. 1.2 File Formats A Data Type is related to the concept of a File Format. Certain File Formats are used for specific Data Types, but each Data Type may be achieved with many different File Types. For example, consider a nonspatial data type, the text document. This data type is a file containing text characters. You have a number of options for file formats when you save a text document, including a Word Document (.docx), text file (.txt), Google Doc, and Libre Office File. All of these file types store the same critical thing - text - but each may support additional features like text formatting or inclusion of images. Internally, they may store information in different ways, and each file format may differ in human readability (can you open the file with any text editor or do you need a specific program like Libre Office for it to work), but they all share a similar way of representing information - text. Spatial Data Types are ways of abstracting the world and each has a set of File Formats associated with it. For example, Vector Data may be saved as a shapefile (.shp), geopackage (.gpkg), or as a comma separated variable (.csv), just to name a few. We’ll explore this in more detail later. 1.3 Why? Why do we need to know about different spatial data types and data formats? Can’t our computers tell what the data is and handle it automatically? When we use spatial data, we need to know what format it is so we can make good decisions about how to analyze it efficiently. Knowing the format gives us intuition about how we can work with the data inside any given file. When we make spatial data, we need to choose a format that will represent the real world with the highest degree of accuracy. "],["vector.html", "2 Vector 2.1 Exercise 2.2 Description 2.3 File Formats", " 2 Vector 2.1 Exercise Draw a map on a piece of paper. It could be a map of how you got to this workshop, or how to get to your favorite hiking spot, or of all the mochi donut locations in downtown. The topic doesn’t really matter. Just draw a map of your choosing. How did you represent your data? Did you use lines and maybe squares or circles? When asked to draw a map on paper, people usually use the Vector data type to represent their ideas. Why? Vector data is best for discrete objects. 2.2 Description 2.3 File Formats "],["raster.html", "3 Raster 3.1 Exercise 3.2 Description 3.3 File Formats", " 3 Raster 3.1 Exercise Open an image or photo on your phone or computer. Zoom in really far. What do you see? Image files are composed of a grid (imagine graph paper) where each square contains a color. When you zoom out, our brains interpret the image as objects, but it’s really a bunch of colored squares. Squares next to each other might be similar in color, but contain small differences in shade or value. A square could contain virtually any color. (Technically, there are limits on the number of colors, but we’re not going to get into that today.) Most photographs you find will be formatted as Raster data. Why? Raster data is best for gradients. 3.2 Description 3.3 File Formats "],["cross-over-data.html", "4 Cross-Over Data 4.1 Vectors Representing Gradients 4.2 Raster Representing Discrete Objects", " 4 Cross-Over Data 4.1 Vectors Representing Gradients Topo lines, Isotherms, etc. 4.2 Raster Representing Discrete Objects Crop Type Maps, raster masks "],["other-data-types.html", "5 Other Data Types 5.1 Point Cloud Data", " 5 Other Data Types 5.1 Point Cloud Data "],["404.html", "Page not found", " Page not found The page you requested cannot be found (perhaps it was moved or renamed). You may want to try searching to find the page's new location, or use the table of contents to find the page you are looking for. "]] diff --git a/docs/vector.html b/docs/vector.html new file mode 100644 index 0000000..a08be42 --- /dev/null +++ b/docs/vector.html @@ -0,0 +1,204 @@ + + + + + + + 2 Vector | Introduction to Spatial Data Formats + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    +
    + + +
    +
    + +
    +
    +

    2 Vector

    +
    +

    2.1 Exercise

    +

    Draw a map on a piece of paper. It could be a map of how you got to this workshop, or how to get to your favorite hiking spot, or of all the mochi donut locations in downtown. The topic doesn’t really matter. Just draw a map of your choosing.

    +

    How did you represent your data? Did you use lines and maybe squares or circles? When asked to draw a map on paper, people usually use the Vector data type to represent their ideas.

    +

    Why? Vector data is best for discrete objects.

    +
    +
    +

    2.2 Description

    +
    +
    +

    2.3 File Formats

    +
    +
    +
    + +
    +
    +
    + + +
    +
    + + + + + + + + + + + + +