Skip to content

Instantly share code, notes, and snippets.

View nfour's full-sized avatar
💭
Coding

Sam J nfour

💭
Coding
View GitHub Profile
@nfour
nfour / brisbanePolygon.json
Created March 28, 2021 08:28
brisbane example geojson multipolygon
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
{
"type": "FeatureCollection",
"name": "test2",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "Bathymetry": -2160.7297 }, "geometry": { "type": "Point", "coordinates": [ -12.015019, 50.19007 ] } },
{ "type": "Feature", "properties": { "Bathymetry": -2155.5466 }, "geometry": { "type": "Point", "coordinates": [ -12.0001392198, 50.3320232418 ] } },
{ "type": "Feature", "properties": { "Bathymetry": -2133.7395 }, "geometry": { "type": "Point", "coordinates": [ -11.9852594396, 50.4739764835 ] } },
{ "type": "Feature", "properties": { "Bathymetry": -2094.9707 }, "geometry": { "type": "Point", "coordinates": [ -11.9703796593, 50.6159297253 ] } },
{ "type": "Feature", "properties": { "Bathymetry": -2006.8837 }, "geometry": { "type": "Point", "coordinates": [ -11.9554998791, 50.757882967 ] } },
This file has been truncated, but you can view the full file.
{
"type": "FeatureCollection",
"name": "bathMeshClipped1",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "Bathymetry": -0.0268 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 8.667953, 54.267605 ], [ 8.6463651295, 54.24392303 ], [ 8.631098, 54.27797 ], [ 8.667953, 54.267605 ] ] ] ] } },
{ "type": "Feature", "properties": { "Bathymetry": -19.037 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 7.4441985462, 55.6765398736 ], [ 7.4313822675, 55.7176181674 ], [ 7.4729186642, 55.696514672 ], [ 7.4441985462, 55.6765398736 ] ] ] ] } },
{ "type": "Feature", "properties": { "Bathymetry": -0.0491 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 8.6609531522, 54.1829524295 ], [ 8.6758982176, 54.2118666872 ], [ 8.690712, 54.173117 ], [ 8.6609531522, 54.1829524295 ] ] ] ] } },
{ "type": "Feature", "properties": { "Bathymetry": -11.7465 }, "geometry": { "type": "MultiPolygon", "coordinate
@nfour
nfour / example.tsx
Last active September 7, 2024 13:09
import { component, css } from '__react'
import { AsyncValue, Value } from './models/state'
export const MyRandomNumberGenerator = component<{
maximumGenerationAttempts: number
range: { from: number; to: number }
}>((props) => {
const { api } = useSomeRootState()
// `component.useState`, due to the name, gets picked up by react-refresh and operates correctly between hot-reloads
// Ideally this would be `component.state(() => ...)`