Ashley Computer 🏳️🌈 on Nostr: Weird discovery: I'm working on a D3 equirectangular (plate carrée) map. So ...
Weird discovery: I'm working on a D3 equirectangular (plate carrée) map. So longitude and latitude should map directly to pixels.
And it does for the most part. But when I try to draw boxes that I'd expect to be rectangular, they come out warped. (Those red lines should be following the lines of latitude on the map.) #gis #d3
Published at
2023-08-25 01:37:36Event JSON
{
"id": "c4d5795e961a1d68f6a4d4aff257208abe73cdeafc69aad5b8cd1a5251e23bb7",
"pubkey": "21e8f64f46aafdc4162390dcff0ecae444c961cc245f4a38e72983f5e8bb9058",
"created_at": 1692927456,
"kind": 1,
"tags": [
[
"t",
"gis"
],
[
"t",
"d3"
],
[
"proxy",
"https://bne.social/users/ash/statuses/110947693805222206",
"activitypub"
]
],
"content": "Weird discovery: I'm working on a D3 equirectangular (plate carrée) map. So longitude and latitude should map directly to pixels.\n\nAnd it does for the most part. But when I try to draw boxes that I'd expect to be rectangular, they come out warped. (Those red lines should be following the lines of latitude on the map.) #gis #d3\n\nhttps://assets.bne.social/media_attachments/files/110/947/655/177/288/560/original/47c5c06de4c0990f.webp",
"sig": "82d4a035b778beab74242433f68468872b1a8681e55cec92c5d4af2d0f80dcfb70e85455b53610994cbd52b59f5bc6b97aef297a69ef956caf937e4f110a98df"
}