Skip to content

Instantly share code, notes, and snippets.

View nextstopsun's full-sized avatar

Nikolai Lebedev nextstopsun

View GitHub Profile
@nextstopsun
nextstopsun / # gdal2-pdf - 2018-08-13_18-05-06.txt
Created August 13, 2018 15:06
gdal2-pdf (osgeo/osgeo4mac/gdal2-pdf) on macOS 10.13.5 - Homebrew build logs
Homebrew build logs for osgeo/osgeo4mac/gdal2-pdf on macOS 10.13.5
Build date: 2018-08-13 18:05:06
@nextstopsun
nextstopsun / # gdal2-oracle - 2018-08-13_13-17-49.txt
Created August 13, 2018 10:18
gdal2-oracle (osgeo/osgeo4mac/gdal2-oracle) on macOS 10.13.5 - Homebrew build logs
Homebrew build logs for osgeo/osgeo4mac/gdal2-oracle on macOS 10.13.5
Build date: 2018-08-13 13:17:49
@nextstopsun
nextstopsun / # gdal2-oracle - 2018-08-13_13-14-58.txt
Created August 13, 2018 10:15
gdal2-oracle (osgeo/osgeo4mac/gdal2-oracle) on macOS 10.13.5 - Homebrew build logs
Homebrew build logs for osgeo/osgeo4mac/gdal2-oracle on macOS 10.13.5
Build date: 2018-08-13 13:14:58
@nextstopsun
nextstopsun / index.js
Last active February 6, 2018 10:44 — forked from stepankuzmin/index.js
PostGIS ST_AsMVT JSONB properties encoding bug
const fs = require("fs");
const geobuf = require("geobuf");
const Protobuf = require("pbf");
const pgp = require("pg-promise")();
const vt = require("vector-tile");
const db = pgp(process.env.DATABASE_URL);
const tile_with_properties_as_jsonb = `WITH data (id, num1, num2, geom) AS (
VALUES
{
"id": 80,
"name": "test_style",
"glyphs": "http://www.basemap.ru/egko/glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "#ffffff",
@nextstopsun
nextstopsun / test-cmake-find-pyinterp_cmake-vars.txt
Created December 4, 2016 12:39
test-cmake-find-pyinterp_cmake output
APPLE=1
ARGC=0
ARGN=
ARGV=
from logging.config import fileConfig
import os.path
fileConfig(r'/home/nl/mapproxy/basemaps_log.ini', {'here': os.path.dirname(__file__)})
from mapproxy.wsgiapp import make_wsgi_app
application = make_wsgi_app(r'/home/nl/mapproxy/basemaps.yaml')
@nextstopsun
nextstopsun / topo1.topojson
Created August 23, 2013 20:54
pollution index change
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nextstopsun
nextstopsun / mapnik_boost_fail
Created July 22, 2013 17:04
mapnik boost 1.54 build failure
bash-3.2$ brew install --with-cairo --with-gdal --with-geos --with-postgresql --verbose mapnik
/usr/local/opt/python/bin/python2 -c import numpy
/usr/local/opt/python/bin/python2 -c import numpy
==> Downloading http://mapnik.s3.amazonaws.com/dist/v2.2.0/mapnik-v2.2.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/mapnik-2.2.0.tar.bz2
tar xf /Library/Caches/Homebrew/mapnik-2.2.0.tar.bz2
brew: Appending to PYTHONPATH: /usr/local/Cellar/mapnik/2.2.0/lib/python2.7/site-packages
==> /usr/local/opt/python/bin/python2 scons/scons.py configure CC="cc" CXX="c++" JOBS=4 PREFIX=/usr/local/Cellar/mapnik/2.2.0 ICU_INCLUDES=/usr/local/opt/icu4c/include ICU_LIBS=/usr/local/opt/icu4c/lib PYTHON_PREFIX=/usr/local/Cellar/mapnik/2.2.0 JPEG_INCLUDES=/usr/local/opt/jpeg/include JPEG_LIBS=/usr/local/opt/jpeg/lib TIFF_INCLUDES=/usr/local/opt/libtiff/include TIFF_LIBS=/usr/local/opt/libtiff/lib BOOST_INCLUDES=/usr/local/opt/boost/include BOOST_LIBS=/usr/local/opt/boost/lib PROJ_INCLUDES=/usr/local/opt/proj/include PROJ_LIBS=/u
@nextstopsun
nextstopsun / raster_edge.xml
Created October 29, 2012 23:13
mapnik config for reproducting error with raster edge
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]>
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +over +no_defs" background-color="#ffffff">
<Style name="sfc" filter-mode="first">
<Rule>
<RasterSymbolizer scaling="bilinear" opacity="1"/>
</Rule>
</Style>