Skip to content

Instantly share code, notes, and snippets.

View az09's full-sized avatar
🔥
Working from everywhere

Anton Belichkov az09

🔥
Working from everywhere
View GitHub Profile
@az09
az09 / 03401ПИСГ038.geojson
Created October 27, 2023 17:41
03401ПИСГ038
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@az09
az09 / protected_area.geojson
Created May 26, 2023 16:43
https://overpass-turbo.eu/s/1voN - boundary=protected_area in "Ленинградская область"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@az09
az09 / chel_obl.geojson
Last active March 15, 2021 18:04
osm-boundaries example download with small simplify
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@az09
az09 / awesome-gis-tg.md
Last active January 30, 2024 08:56
List of good groups and channels from the telegram network on geospatial topics. Mainly in Russian
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@az09
az09 / area_label_old.sql
Created April 23, 2018 14:06
Bad query for area_label
explain(analyze,buffers,verbose)
SELECT ST_AsBinary("way") AS geom,"area","name","type"
FROM (
SELECT COALESCE(landuse, leisure, "natural", highway, amenity, tourism) AS "type", name, way_area AS area, ST_PointOnSurface(way) AS way
FROM planet_osm_polygon
WHERE name IS NOT NULL
AND way && ST_SetSRID('BOX3D(15573585.89094331 4224215.931154246,15617613.61923559 4268243.659446535)'::box3d, 3857)
AND ST_IsValid(way)
UNION ALL
SELECT 'building' AS "type", name, way_area AS area, ST_PointOnSurface(way) AS way
@az09
az09 / bridge_new.sql
Last active April 11, 2018 17:36
Предлагаемое изменение в слое bridge (https://github.com/mapbox/osm-bright/blob/master/osm-bright/osm-bright.osm2pgsql.mml#L392)
SELECT way, COALESCE(p_o_l.highway, p_o_l.railway) AS "type", 1 AS bridge, access, render.render, layer, 0 as tunnel,
COALESCE(hw.stylegroup, constr.stylegroup, rw.stylegroup, 'other') AS stylegroup
FROM planet_osm_line as p_o_l
INNER JOIN (values
('1_outline')
, ('2_line')
, ('3_inline')
) AS render (render) ON 1=1
LEFT JOIN (values
('motorway', 'motorway')
@az09
az09 / postgresql.conf
Created February 14, 2018 21:03
что не так с минимальной длительностью?
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
@az09
az09 / RU_poly_mp.geojson
Last active January 3, 2018 18:41
Граница России для отсечки минутных диффов (взято из https://github.com/nextgis/osmdump_poly/blob/master/RU.poly)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@az09
az09 / Russia.geojson
Created January 2, 2018 17:45
Граница России для отсечки минутных диффов
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.