Platform
Resources
Pricing
Sign in
Get started
Daniel J. Dufour
Conflict Resolution, GIS, Tacos
Workspace
Fork
Published
By
Daniel J. Dufour
Edited
Apr 2, 2019
Fork of
Create Single-Band GeoTIFF
1 star
Insert cell
Insert cell
url
=
"https://s3.amazonaws.com/geotiff.js/geotiff.bundle.min.js"
Insert cell
Insert cell
red
=
[
[
255
,
255
,
255
]
,
[
0
,
0
,
0
]
,
[
0
,
0
,
0
]
]
Insert cell
green
=
[
[
0
,
0
,
0
]
,
[
255
,
255
,
255
]
,
[
0
,
0
,
0
]
]
Insert cell
blue
=
[
[
0
,
0
,
0
]
,
[
0
,
0
,
0
]
,
[
255
,
255
,
255
]
]
Insert cell
Insert cell
metadata
=
{
return
{
"height"
:
3
,
"width"
:
3
}
}
Insert cell
new_geotiff_as_binary_data
=
GeoTIFF
.
writeArrayBuffer
(
original_values
,
metadata
)
Insert cell
Insert cell
Insert cell
viewof
analyze
=
{
const
a
=
html
`<a target="_blank"><button style="height: 5rem; width: 50rem;">Analyze with GeoTIFF.io</button></a>`
;
a
.
href
=
"https://app.geotiff.io?url="
+
encodeURI
(
dataurl
)
;
return
a
;
}
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
url
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
GeoTIFF
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
red
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
green
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
blue
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
original_values
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
metadata
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
new_geotiff_as_binary_data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
download
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dataurl
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
analyze
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML