Platform
Resources
Pricing
Sign in
Get started
Daniel J. Dufour
Conflict Resolution, GIS, Tacos
Workspace
Fork
Published
By
Daniel J. Dufour
Edited
Apr 18, 2019
1 fork
2 stars
Insert cell
Insert cell
url
=
"https://s3.amazonaws.com/geotiff.js/geotiff.bundle.min.js"
Insert cell
Insert cell
original_values
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
]
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="
+
encodeURIComponent
(
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
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
original_values
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