Skip to content

GIS

References

BMA zone

python
["กรุงเทพมหานคร", "นครปฐม", "นนทบุรี", "ปทุมธานี", "สมุทรปราการ", "สมุทรสาคร"]

Degree / meter conversion

For Thailand

python
KM = DEGREE * 111.319
DEGREE = KM / 111.319
bash
3 km = 0.027 degree
4 km = 0.036 degree
6 km = 0.054 degree
10 km = 0.09 degree
15 km = 0.135 degree

Spatial projection

https://epsg.io/

ESPG CodeProjectionUnit
ESPG:4240THAILANDDegree
ESPG:4326WGS84Degree
EPSG:3857GOOGLEMeter
ESPG:32647WGS84 / UTM zone 47N - THAILANDMeter

Bounding Box

bash
| Target                 | Value      |
| ---------------------- | ---------- |
| left topmost point     | xmin, ymin |
| right bottommost point | xmax, ymax |
| top rightmost point    | xmax, ymin |
| left bottommost point  | xmin, ymax |

Data

Tile

yaml
OpenStreetMap: http://tile.openstreetmap.org/{z}/{x}/{y}.png
Google Maps: https://mt1.google.com/vt/lyrs=r&x={x}&y={y}&z={z}
Google Roads: https://mt1.google.com/vt/lyrs=h&x={x}&y={y}&z={z}
Google Satellite: https://mt1.google.com/vt/lyrs=s&x={x}&y={y}&z={z}
Google Hybrid: https://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z}
Google Terrain Only: https://mt1.google.com/vt/lyrs=t&x={x}&y={y}&z={z}
Google Terrain: https://mt1.google.com/vt/lyrs=p&x={x}&y={y}&z={z}
Google Traffic: https://mt1.google.com/vt/lyrs=m@221097413,traffic&x={x}&y={y}&z={z}
Carto Light: http://d.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png

Tools

Indexing

Server

  • tileserver-gl - Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
  • QGIS server

bbox

  • Bounding Box Tool - Metadata Enrichment for Catalogue Records by Visually Selecting Geographic Coordinates (Latitude / Longitude) for Maps.

Visualizations

  • kepler.gl - A data-agnostic, high-performance web-based application for visual exploration of large-scale geolocation data sets.

Misc

  • prettymaps - A small set of Python functions to draw pretty maps from OpenStreetMap data. Based on osmnx, matplotlib and shapely libraries.

Resources