Skip to content

Instantly share code, notes, and snippets.

@ashnair1
ashnair1 / Install NVIDIA Driver and CUDA.md
Created August 14, 2019 15:46 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@ashnair1
ashnair1 / merge-geojsons.py
Last active August 28, 2020 18:54 — forked from themiurgo/merge-geojsons.py
Merge two or more geojson files.
from json import load, dump
from argparse import ArgumentParser
from re import compile
import sys
import os
parser = ArgumentParser(description="Group (merge) multiple GeoJSON files.")
defaults = dict(outfile=sys.stdout)
@ashnair1
ashnair1 / Difference between EPSG 4326 & 3857
Created January 12, 2022 12:05 — forked from keum/Difference between EPSG 4326 & 3857
EPSG 4326 and EPSG 3857 of Web Mercator
EPSG: 4326 uses a coordinate system on the surface of a sphere or ellipsoid of reference.
WGS 84 - Earth as Geoid. -Mercator
EPSG: 3857 uses a coordinate system PROJECTED from the surface of the
sphere. Earth as perfectly sphere. -Web Mercator
Think of it as this way:
EPSG 4326 uses a coordinate system the same as a GLOBE (curved surface).
EPSG 3857 uses a coordinate system the same as a MAP (flat surface).
@ashnair1
ashnair1 / CUDA_Compilers.md
Created May 30, 2023 11:15 — forked from ax3l/CUDA_Compilers.md
CUDA Compilers
@ashnair1
ashnair1 / xyz_vs_tms.md
Created May 28, 2025 17:03 — forked from tmcw/xyz_vs_tms.md
The difference between XYZ and TMS tiles and how to convert between them

The difference between XYZ and TMS tiles and how to convert between them

Lots of tile-based maps use either the XYZ or TMS scheme. These are the maps that have tiles ending in /0/0/0.png or something. Sometimes if it's a script, it'll look like &z=0&y=0&x=0 instead. Anyway, these are usually maps in Spherical Mercator.

Good examples are OpenStreetMap, Google Maps, MapBox, MapQuest, etc. Lots of maps.

Most of those are in XYZ. The best documentation for that is slippy map tilenames on the OSM Wiki, and Klokan's Tiles a la Google.