{
  "version": "1.0.0",
  "project": {
    "name": "treetracker-tile-server",
    "languages": [
      "batch",
      "cpp",
      "dockerfile",
      "html",
      "javascript",
      "json",
      "makefile",
      "markdown",
      "powershell",
      "python",
      "shell",
      "xml",
      "yaml"
    ],
    "frameworks": [
      "Express",
      "Jest",
      "Docker",
      "GitHub Actions"
    ],
    "description": "Greenstand Treetracker map tile server, forked from node-mapnik (the Node.js bindings to the Mapnik C++ rendering library). Its Express service in greenstand/ renders tree data from PostGIS into 256x256 PNG tiles and UTF grid JSON tiles, and the repo ships a Dockerfile, Kubernetes manifests, and GitHub Actions deployment workflows.",
    "analyzedAt": "2026-10-17T04:38:52Z",
    "gitCommitHash": "b619c05043c17ce3d78dda1d3a1e6a2333cfa70a"
  },
  "nodes": [
    {
      "id": "file:src/ds_emitter.hpp",
      "type": "file",
      "name": "ds_emitter.hpp",
      "filePath": "src/ds_emitter.hpp",
      "summary": "Header-only helpers that turn a mapnik datasource's layer descriptor into JS objects: a field name-to-type map (Number, String, Boolean) and a full description with type, encoding, geometry_type, and extra parameters.",
      "tags": [
        "utility",
        "serialization",
        "datasource",
        "napi-binding",
        "header-only"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/ds_emitter.hpp:get_fields",
      "type": "function",
      "name": "get_fields",
      "filePath": "src/ds_emitter.hpp",
      "lineRange": [
        14,
        46
      ],
      "summary": "Iterates the attribute descriptors of a datasource layer and sets each field name on a JS object with a type label such as \"Number\", \"String\", or \"Boolean\".",
      "tags": [
        "utility",
        "schema-introspection",
        "serialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/ds_emitter.hpp:describe_datasource",
      "type": "function",
      "name": "describe_datasource",
      "filePath": "src/ds_emitter.hpp",
      "lineRange": [
        48,
        109
      ],
      "summary": "Fills a JS description object with the datasource type (raster or vector), encoding, field map, geometry_type (point, linestring, polygon, collection), and the descriptor's extra parameters.",
      "tags": [
        "utility",
        "serialization",
        "datasource"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/js_grid_utils.hpp",
      "type": "file",
      "name": "js_grid_utils.hpp",
      "filePath": "src/js_grid_utils.hpp",
      "summary": "Header-only template helpers for UTFGrid output: they encode the feature ids of a mapnik grid as rows of UTF-8 characters with a key order, and collect the attributes of each key's feature into a JS object.",
      "tags": [
        "utility",
        "utf-grid",
        "serialization",
        "template",
        "header-only"
      ],
      "complexity": "moderate",
      "languageNotes": "Function templates parameterized on the grid type T, so one implementation serves both mapnik grid and grid_view outputs."
    },
    {
      "id": "function:src/js_grid_utils.hpp:grid2utf",
      "type": "function",
      "name": "grid2utf",
      "filePath": "src/js_grid_utils.hpp",
      "lineRange": [
        21,
        86
      ],
      "summary": "Walks a mapnik grid at a given resolution and writes each row as a UTF-8 line, giving each unique feature key one codepoint (from 32 upward, skipping the quote and backslash codepoints) and recording the key order.",
      "tags": [
        "utf-grid",
        "encoding",
        "template"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/js_grid_utils.hpp:write_features",
      "type": "function",
      "name": "write_features",
      "filePath": "src/js_grid_utils.hpp",
      "lineRange": [
        88,
        137
      ],
      "summary": "For each key in key_order, finds the grid feature and copies its requested attributes (plus __id__) into a JS object keyed by the feature key, converting values with value_converter.",
      "tags": [
        "utf-grid",
        "serialization",
        "template"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_datasource.cpp",
      "type": "file",
      "name": "mapnik_datasource.cpp",
      "filePath": "src/mapnik_datasource.cpp",
      "summary": "Implements the mapnik.Datasource N-API class: it builds a datasource from a key/value options object through mapnik's datasource_cache and exposes parameters, extent, describe, featureset, and fields to JavaScript.",
      "tags": [
        "napi-binding",
        "datasource",
        "data-access",
        "feature-query"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_datasource.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_datasource.cpp",
      "lineRange": [
        21,
        37
      ],
      "summary": "Registers the Datasource JS class with the parameters, describe, featureset, extent, and fields instance methods and stores its persistent constructor on the module exports.",
      "tags": [
        "napi-binding",
        "class-registration",
        "initialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_datasource.cpp:Datasource",
      "type": "function",
      "name": "Datasource",
      "filePath": "src/mapnik_datasource.cpp",
      "lineRange": [
        48,
        105
      ],
      "summary": "Constructs a Datasource from an External datasource_ptr, or from a JS options object whose values become string mapnik::parameters for datasource_cache::create, then sets the JS type property to raster or vector.",
      "tags": [
        "constructor",
        "datasource",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_datasource.cpp:parameters",
      "type": "function",
      "name": "parameters",
      "filePath": "src/mapnik_datasource.cpp",
      "lineRange": [
        107,
        117
      ],
      "summary": "Returns the parameters of the wrapped mapnik datasource as a plain JS object, converting each value with params_to_object.",
      "tags": [
        "accessor",
        "serialization",
        "datasource"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_datasource.cpp:extent",
      "type": "function",
      "name": "extent",
      "filePath": "src/mapnik_datasource.cpp",
      "lineRange": [
        127,
        154
      ],
      "summary": "Returns the datasource envelope as a [minx, miny, maxx, maxy] JS array and rethrows plugin errors (for example from the PostGIS plugin) as JS exceptions.",
      "tags": [
        "accessor",
        "geospatial",
        "bounding-box"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_datasource.cpp:describe",
      "type": "function",
      "name": "describe",
      "filePath": "src/mapnik_datasource.cpp",
      "lineRange": [
        165,
        186
      ],
      "summary": "Returns a JS description of the datasource by delegating to describe_datasource, converting C++ exceptions into JS errors.",
      "tags": [
        "introspection",
        "serialization",
        "datasource"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_datasource.cpp:featureset",
      "type": "function",
      "name": "featureset",
      "filePath": "src/mapnik_datasource.cpp",
      "lineRange": [
        207,
        281
      ],
      "summary": "Builds a mapnik::query over the datasource envelope or an optional options.extent box, requests all descriptor fields, and wraps the resulting featureset in a JS Featureset, or returns null when it is empty.",
      "tags": [
        "feature-query",
        "validation",
        "iterator"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_datasource.hpp",
      "type": "file",
      "name": "mapnik_datasource.hpp",
      "filePath": "src/mapnik_datasource.hpp",
      "summary": "Declares the Datasource N-API wrapper class around a shared mapnik::datasource pointer, with friend access for Layer and the JS methods parameters, describe, featureset, extent, and fields.",
      "tags": [
        "type-definition",
        "napi-binding",
        "datasource",
        "header"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_datasource.hpp:Datasource",
      "type": "class",
      "name": "Datasource",
      "filePath": "src/mapnik_datasource.hpp",
      "lineRange": [
        12,
        32
      ],
      "summary": "N-API ObjectWrap class that holds a datasource_ptr and hands it to Layer through impl(); it declares the Initialize hook and five JS instance methods.",
      "tags": [
        "napi-binding",
        "data-model",
        "datasource"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_expression.cpp",
      "type": "file",
      "name": "mapnik_expression.cpp",
      "filePath": "src/mapnik_expression.cpp",
      "summary": "Implements the mapnik.Expression N-API class, which parses a mapnik filter expression string and evaluates it against a mapnik.Feature with optional bound variables.",
      "tags": [
        "napi-binding",
        "expression",
        "evaluation",
        "filter"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_expression.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_expression.cpp",
      "lineRange": [
        13,
        25
      ],
      "summary": "Defines the Expression JS class with the evaluate and toString methods and exports it under the name Expression.",
      "tags": [
        "napi-binding",
        "class-registration",
        "initialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_expression.cpp:Expression",
      "type": "function",
      "name": "Expression",
      "filePath": "src/mapnik_expression.cpp",
      "lineRange": [
        27,
        45
      ],
      "summary": "Parses the single string argument with mapnik::parse_expression into expression_ and throws a JS TypeError for a missing or non-string argument.",
      "tags": [
        "constructor",
        "parsing",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_expression.cpp:evaluate",
      "type": "function",
      "name": "evaluate",
      "filePath": "src/mapnik_expression.cpp",
      "lineRange": [
        56,
        105
      ],
      "summary": "Checks that the first argument is a mapnik.Feature, reads optional options.variables into mapnik::attributes with object_to_container, evaluates the parsed expression, and returns the result converted by value_converter.",
      "tags": [
        "evaluation",
        "validation",
        "expression"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_expression.hpp",
      "type": "file",
      "name": "mapnik_expression.hpp",
      "filePath": "src/mapnik_expression.hpp",
      "summary": "Declares the Expression N-API wrapper class that holds a parsed mapnik::expression_ptr and exposes toString and evaluate to JavaScript.",
      "tags": [
        "type-definition",
        "napi-binding",
        "expression",
        "header"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_expression.hpp:Expression",
      "type": "class",
      "name": "Expression",
      "filePath": "src/mapnik_expression.hpp",
      "lineRange": [
        7,
        18
      ],
      "summary": "ObjectWrap class that stores a mapnik expression_ptr, with a static Initialize hook, a string constructor, and the toString and evaluate JS methods.",
      "tags": [
        "napi-binding",
        "data-model",
        "expression"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_feature.cpp",
      "type": "file",
      "name": "mapnik_feature.cpp",
      "filePath": "src/mapnik_feature.cpp",
      "summary": "Implements the mapnik.Feature N-API class: creation from a numeric id, an External feature_ptr, or a GeoJSON string, plus the id, extent, attributes, geometry, and toJSON methods.",
      "tags": [
        "napi-binding",
        "feature",
        "geojson",
        "data-model"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_feature.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_feature.cpp",
      "lineRange": [
        15,
        31
      ],
      "summary": "Registers the Feature JS class with the id, extent, attributes, geometry, and toJSON instance methods and the static fromJSON factory.",
      "tags": [
        "napi-binding",
        "class-registration",
        "initialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_feature.cpp:Feature",
      "type": "function",
      "name": "Feature",
      "filePath": "src/mapnik_feature.cpp",
      "lineRange": [
        43,
        65
      ],
      "summary": "Wraps an existing feature_ptr passed as an External, or creates a new mapnik feature with a fresh context for a numeric id; for other arguments it throws a JS error.",
      "tags": [
        "constructor",
        "feature",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_feature.cpp:fromJSON",
      "type": "function",
      "name": "fromJSON",
      "filePath": "src/mapnik_feature.cpp",
      "lineRange": [
        75,
        107
      ],
      "summary": "Static factory that parses a GeoJSON feature string with mapnik::json::from_geojson into a new feature and returns it as a JS Feature instance.",
      "tags": [
        "factory",
        "geojson",
        "parsing"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_feature.cpp:extent",
      "type": "function",
      "name": "extent",
      "filePath": "src/mapnik_feature.cpp",
      "lineRange": [
        129,
        140
      ],
      "summary": "Returns the envelope of the wrapped mapnik feature as a four-number [minx, miny, maxx, maxy] JS array.",
      "tags": [
        "accessor",
        "geospatial",
        "bounding-box"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_feature.cpp:attributes",
      "type": "function",
      "name": "attributes",
      "filePath": "src/mapnik_feature.cpp",
      "lineRange": [
        150,
        164
      ],
      "summary": "Copies every attribute key/value of the wrapped feature into a JS object, converting mapnik values with value_converter.",
      "tags": [
        "accessor",
        "serialization",
        "feature"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_feature.cpp:toJSON",
      "type": "function",
      "name": "toJSON",
      "filePath": "src/mapnik_feature.cpp",
      "lineRange": [
        191,
        203
      ],
      "summary": "Serializes the wrapped feature to a GeoJSON string with mapnik::util::to_geojson and throws a JS error when the conversion fails.",
      "tags": [
        "serialization",
        "geojson",
        "feature"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_feature.hpp",
      "type": "file",
      "name": "mapnik_feature.hpp",
      "filePath": "src/mapnik_feature.hpp",
      "summary": "Declares the Feature N-API wrapper class around a mapnik::feature_ptr and its context, with a public static constructor reference that other bindings use to create JS Feature objects.",
      "tags": [
        "type-definition",
        "napi-binding",
        "feature",
        "header"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_feature.hpp:Feature",
      "type": "class",
      "name": "Feature",
      "filePath": "src/mapnik_feature.hpp",
      "lineRange": [
        11,
        31
      ],
      "summary": "ObjectWrap class that holds a mapnik feature_ptr and context_ptr; it exposes fromJSON, id, extent, attributes, geometry, and toJSON, plus impl() for C++ callers.",
      "tags": [
        "napi-binding",
        "data-model",
        "feature"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_featureset.cpp",
      "type": "file",
      "name": "mapnik_featureset.cpp",
      "filePath": "src/mapnik_featureset.cpp",
      "summary": "Implements the mapnik.Featureset N-API iterator, which wraps a mapnik featureset_ptr and returns one JS Feature per next() call until the set is exhausted.",
      "tags": [
        "napi-binding",
        "iterator",
        "feature",
        "data-access"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_featureset.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_featureset.cpp",
      "lineRange": [
        6,
        17
      ],
      "summary": "Registers the Featureset JS class with its single next instance method and exports it as Featureset.",
      "tags": [
        "napi-binding",
        "class-registration",
        "initialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_featureset.cpp:Featureset",
      "type": "function",
      "name": "Featureset",
      "filePath": "src/mapnik_featureset.cpp",
      "lineRange": [
        27,
        39
      ],
      "summary": "Accepts only an External featureset_ptr from an existing datasource or map query and throws a TypeError for direct construction from JavaScript.",
      "tags": [
        "constructor",
        "iterator",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_featureset.cpp:next",
      "type": "function",
      "name": "next",
      "filePath": "src/mapnik_featureset.cpp",
      "lineRange": [
        50,
        82
      ],
      "summary": "Advances the wrapped featureset and returns the next feature as a JS Feature, or null when no feature remains, converting iterator exceptions into JS errors.",
      "tags": [
        "iterator",
        "feature",
        "error-handling"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_featureset.hpp",
      "type": "file",
      "name": "mapnik_featureset.hpp",
      "filePath": "src/mapnik_featureset.hpp",
      "summary": "Declares the Featureset N-API iterator class over a mapnik featureset_ptr, with friend access for Datasource and the detail::AsyncQueryPoint worker.",
      "tags": [
        "type-definition",
        "napi-binding",
        "iterator",
        "header"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_featureset.hpp:Featureset",
      "type": "class",
      "name": "Featureset",
      "filePath": "src/mapnik_featureset.hpp",
      "lineRange": [
        11,
        27
      ],
      "summary": "ObjectWrap iterator class that stores a featureset_ptr and exposes one next method; Datasource and AsyncQueryPoint create instances through its constructor reference.",
      "tags": [
        "napi-binding",
        "iterator",
        "data-model"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_fonts.hpp",
      "type": "file",
      "name": "mapnik_fonts.hpp",
      "filePath": "src/mapnik_fonts.hpp",
      "summary": "Header-only module-level font functions that wrap mapnik's freetype_engine: register a font directory (optionally recursive) and list registered face names, memory-cached fonts, and face-to-file mappings.",
      "tags": [
        "utility",
        "fonts",
        "napi-binding",
        "header-only"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_fonts.hpp:register_fonts",
      "type": "function",
      "name": "register_fonts",
      "filePath": "src/mapnik_fonts.hpp",
      "lineRange": [
        10,
        61
      ],
      "summary": "Validates a font directory path and an optional { recurse } option, registers the fonts with mapnik::freetype_engine, and returns true when it found fonts.",
      "tags": [
        "fonts",
        "registration",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_fonts.hpp:available_font_faces",
      "type": "function",
      "name": "available_font_faces",
      "filePath": "src/mapnik_fonts.hpp",
      "lineRange": [
        63,
        74
      ],
      "summary": "Returns a JS array of all font face names that are registered in the global mapnik freetype_engine.",
      "tags": [
        "fonts",
        "introspection",
        "accessor"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_fonts.hpp:memory_fonts",
      "type": "function",
      "name": "memory_fonts",
      "filePath": "src/mapnik_fonts.hpp",
      "lineRange": [
        76,
        88
      ],
      "summary": "Returns a JS array of the font file keys held in the in-memory font cache of the freetype_engine.",
      "tags": [
        "fonts",
        "cache",
        "introspection"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_fonts.hpp:available_font_files",
      "type": "function",
      "name": "available_font_files",
      "filePath": "src/mapnik_fonts.hpp",
      "lineRange": [
        90,
        101
      ],
      "summary": "Returns a JS object that maps each registered font face name to its font file path from the freetype_engine mapping.",
      "tags": [
        "fonts",
        "introspection",
        "mapping"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_geometry.cpp",
      "type": "file",
      "name": "mapnik_geometry.cpp",
      "filePath": "src/mapnik_geometry.cpp",
      "summary": "Implements the mapnik.Geometry N-API class for the geometry of a feature: type, extent, WKT, WKB, and sync or async GeoJSON export, with optional reprojection through a ProjTransform.",
      "tags": [
        "napi-binding",
        "geometry",
        "geojson",
        "serialization",
        "async-worker"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:src/mapnik_geometry.cpp:AsyncToJSON",
      "type": "class",
      "name": "AsyncToJSON",
      "filePath": "src/mapnik_geometry.cpp",
      "lineRange": [
        23,
        77
      ],
      "summary": "Napi::AsyncWorker that serializes a Geometry to GeoJSON on a worker thread, reprojects it first when a ProjTransform is given, and passes the JSON string to the callback.",
      "tags": [
        "async-worker",
        "geojson",
        "reprojection"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_geometry.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_geometry.cpp",
      "lineRange": [
        83,
        107
      ],
      "summary": "Registers the Geometry JS class with the extent, type, toWKB, toWKT, toJSON, and toJSONSync methods and static geometry type constants from Unknown to GeometryCollection.",
      "tags": [
        "napi-binding",
        "class-registration",
        "constants"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_geometry.cpp:Geometry",
      "type": "function",
      "name": "Geometry",
      "filePath": "src/mapnik_geometry.cpp",
      "lineRange": [
        123,
        137
      ],
      "summary": "Wraps the feature_ptr passed as an External and throws a JS error for direct construction, because a Geometry exists only through a mapnik.Feature.",
      "tags": [
        "constructor",
        "geometry",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_geometry.cpp:toJSONSync",
      "type": "function",
      "name": "toJSONSync",
      "filePath": "src/mapnik_geometry.cpp",
      "lineRange": [
        164,
        218
      ],
      "summary": "Synchronously returns the geometry as a GeoJSON string and, when options.transform is a ProjTransform, reprojects the geometry before serialization.",
      "tags": [
        "geojson",
        "serialization",
        "reprojection"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_geometry.cpp:toJSON",
      "type": "function",
      "name": "toJSON",
      "filePath": "src/mapnik_geometry.cpp",
      "lineRange": [
        232,
        271
      ],
      "summary": "Falls back to toJSONSync when no callback is given; otherwise it validates the optional transform option and queues an AsyncToJSON worker.",
      "tags": [
        "geojson",
        "async",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_geometry.cpp:extent",
      "type": "function",
      "name": "extent",
      "filePath": "src/mapnik_geometry.cpp",
      "lineRange": [
        281,
        292
      ],
      "summary": "Returns the bounding box of the parent feature envelope of the geometry as a [minx, miny, maxx, maxy] JS array.",
      "tags": [
        "accessor",
        "geometry",
        "bounding-box"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_geometry.cpp:toWKT",
      "type": "function",
      "name": "toWKT",
      "filePath": "src/mapnik_geometry.cpp",
      "lineRange": [
        302,
        317
      ],
      "summary": "Encodes the wrapped geometry as a Well-Known Text string with mapnik::util::to_wkt and throws when the encoding fails.",
      "tags": [
        "serialization",
        "wkt",
        "geometry"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_geometry.cpp:toWKB",
      "type": "function",
      "name": "toWKB",
      "filePath": "src/mapnik_geometry.cpp",
      "lineRange": [
        327,
        338
      ],
      "summary": "Encodes the geometry as little-endian (wkbNDR) Well-Known Binary and returns it as a copied Node Buffer, throwing when the geometry is null.",
      "tags": [
        "serialization",
        "wkb",
        "binary"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_geometry.hpp",
      "type": "file",
      "name": "mapnik_geometry.hpp",
      "filePath": "src/mapnik_geometry.hpp",
      "summary": "Declares the Geometry N-API wrapper class, which keeps the owning mapnik feature_ptr and reads its geometry for type, extent, WKB, WKT, and GeoJSON conversions.",
      "tags": [
        "type-definition",
        "napi-binding",
        "geometry",
        "header"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_geometry.hpp:Geometry",
      "type": "class",
      "name": "Geometry",
      "filePath": "src/mapnik_geometry.hpp",
      "lineRange": [
        8,
        32
      ],
      "summary": "ObjectWrap class that stores a feature_ptr, gives Feature friend access, and returns the geometry of that feature through an inline geometry() accessor.",
      "tags": [
        "napi-binding",
        "data-model",
        "geometry"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_layer.cpp",
      "type": "file",
      "name": "mapnik_layer.cpp",
      "filePath": "src/mapnik_layer.cpp",
      "summary": "Implements the mapnik.Layer N-API class: construction from a name and optional srs, JS accessors for name, srs, styles, datasource, scale denominators, queryable, active, and clear_label_cache, and a describe method.",
      "tags": [
        "napi-binding",
        "layer",
        "accessor",
        "data-model"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_layer.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_layer.cpp",
      "lineRange": [
        14,
        34
      ],
      "summary": "Defines the Layer JS class with the describe method and nine getter/setter accessors and exports it as Layer.",
      "tags": [
        "napi-binding",
        "class-registration",
        "initialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_layer.cpp:Layer",
      "type": "function",
      "name": "Layer",
      "filePath": "src/mapnik_layer.cpp",
      "lineRange": [
        35,
        67
      ],
      "summary": "Wraps an External layer_ptr, or creates a new mapnik::layer from a name string and an optional srs string, and throws a TypeError for other argument shapes.",
      "tags": [
        "constructor",
        "layer",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_layer.cpp:styles",
      "type": "function",
      "name": "styles",
      "filePath": "src/mapnik_layer.cpp",
      "lineRange": [
        108,
        138
      ],
      "summary": "Getter/setter pair for the style names of the layer: the getter returns them as a JS array and the setter appends each string of a JS array with add_style.",
      "tags": [
        "accessor",
        "styles",
        "layer"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_layer.cpp:datasource",
      "type": "function",
      "name": "datasource",
      "filePath": "src/mapnik_layer.cpp",
      "lineRange": [
        141,
        176
      ],
      "summary": "Getter/setter pair for the layer datasource: the getter wraps it as a JS Datasource (or null) and the setter accepts only a mapnik.Datasource instance.",
      "tags": [
        "accessor",
        "datasource",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_layer.cpp:describe",
      "type": "function",
      "name": "describe",
      "filePath": "src/mapnik_layer.cpp",
      "lineRange": [
        279,
        312
      ],
      "summary": "Returns a JS object with the layer name, srs, active, clear_label_cache, scale denominators, queryable flag, style names, and datasource parameters.",
      "tags": [
        "introspection",
        "serialization",
        "layer"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_layer.hpp",
      "type": "file",
      "name": "mapnik_layer.hpp",
      "filePath": "src/mapnik_layer.hpp",
      "summary": "Declares the Layer N-API wrapper class around a shared mapnik::layer pointer, with Map as a friend and a getter/setter pair for each layer property.",
      "tags": [
        "type-definition",
        "napi-binding",
        "layer",
        "header"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_layer.hpp:Layer",
      "type": "class",
      "name": "Layer",
      "filePath": "src/mapnik_layer.hpp",
      "lineRange": [
        13,
        48
      ],
      "summary": "ObjectWrap class that holds a layer_ptr and declares describe plus nine getter/setter accessor pairs; impl() hands the mapnik layer to Map.",
      "tags": [
        "napi-binding",
        "data-model",
        "layer"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_logger.cpp",
      "type": "file",
      "name": "mapnik_logger.cpp",
      "filePath": "src/mapnik_logger.cpp",
      "summary": "Implements the static mapnik.Logger N-API class that reads and sets the severity of the global mapnik logger and exposes the NONE, ERROR, DEBUG, and WARN constants.",
      "tags": [
        "napi-binding",
        "logging",
        "singleton",
        "configuration"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_logger.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_logger.cpp",
      "lineRange": [
        7,
        30
      ],
      "summary": "Registers the Logger JS class with the static getSeverity and setSeverity methods and the NONE, ERROR, DEBUG, and WARN severity constants.",
      "tags": [
        "napi-binding",
        "class-registration",
        "logging"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_logger.cpp:set_severity",
      "type": "function",
      "name": "set_severity",
      "filePath": "src/mapnik_logger.cpp",
      "lineRange": [
        76,
        88
      ],
      "summary": "Validates one numeric argument and sets it as the severity of the global mapnik::logger singleton.",
      "tags": [
        "logging",
        "configuration",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_logger.hpp",
      "type": "file",
      "name": "mapnik_logger.hpp",
      "filePath": "src/mapnik_logger.hpp",
      "summary": "Declares the Logger N-API class whose only members are static severity getters and setters, because mapnik.Logger cannot be instantiated.",
      "tags": [
        "type-definition",
        "napi-binding",
        "logging",
        "header"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_logger.hpp:Logger",
      "type": "class",
      "name": "Logger",
      "filePath": "src/mapnik_logger.hpp",
      "lineRange": [
        8,
        24
      ],
      "summary": "ObjectWrap class with a static Initialize hook and static get_severity and set_severity methods; its constructor throws to prevent instances.",
      "tags": [
        "napi-binding",
        "logging",
        "singleton"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_map.cpp",
      "type": "file",
      "name": "mapnik_map.cpp",
      "filePath": "src/mapnik_map.cpp",
      "summary": "Implements most of the mapnik.Map N-API class: construction, accessors for srs, size, extents, buffer, background, parameters, and aspect_fix_mode, plus font, layer, clone, save, toXML, and zoom operations.",
      "tags": [
        "napi-binding",
        "map",
        "rendering-config",
        "accessor",
        "service"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/mapnik_map.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        16,
        76
      ],
      "summary": "Defines the Map JS class with its load, render, query, font, layer, and zoom methods and property accessors, and attaches the ASPECT_* aspect-fix-mode constants to the constructor.",
      "tags": [
        "napi-binding",
        "class-registration",
        "constants"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_map.cpp:Map",
      "type": "function",
      "name": "Map",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        120,
        161
      ],
      "summary": "Wraps an External map_ptr or creates a mapnik::Map from integer width and height plus an optional srs string, throwing for invalid arguments.",
      "tags": [
        "constructor",
        "map",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:extent",
      "type": "function",
      "name": "extent",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        184,
        213
      ],
      "summary": "Getter/setter pair for the current map extent: the getter returns [minx, miny, maxx, maxy] and the setter zooms the map to the given box.",
      "tags": [
        "accessor",
        "bounding-box",
        "map"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:maximumExtent",
      "type": "function",
      "name": "maximumExtent",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        216,
        246
      ],
      "summary": "Getter/setter pair for the optional maximum extent: the getter returns undefined when it is unset, and the setter stores a new [minx, miny, maxx, maxy] box.",
      "tags": [
        "accessor",
        "bounding-box",
        "map"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:bufferedExtent",
      "type": "function",
      "name": "bufferedExtent",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        249,
        262
      ],
      "summary": "Read-only accessor that returns the buffered extent of the map as a four-number array, or undefined when mapnik reports none.",
      "tags": [
        "accessor",
        "bounding-box",
        "read-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:aspect_fix_mode",
      "type": "function",
      "name": "aspect_fix_mode",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        303,
        327
      ],
      "summary": "Getter/setter pair for the aspect fix mode; the setter accepts only numbers from 0 up to aspect_fix_mode_MAX and throws for other values.",
      "tags": [
        "accessor",
        "validation",
        "map"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:background",
      "type": "function",
      "name": "background",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        348,
        380
      ],
      "summary": "Getter/setter pair for the map background color: the getter wraps it as a JS Color and the setter requires a mapnik.Color instance.",
      "tags": [
        "accessor",
        "color",
        "map"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:parameters",
      "type": "function",
      "name": "parameters",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        383,
        437
      ],
      "summary": "Getter/setter pair for the extra parameters of the map; the setter converts JS strings, integers, doubles, and booleans into mapnik::parameters.",
      "tags": [
        "accessor",
        "serialization",
        "type-conversion"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_map.cpp:memoryFonts",
      "type": "function",
      "name": "memoryFonts",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        453,
        465
      ],
      "summary": "Returns a JS array of the font keys held in the font memory cache that belongs to this map.",
      "tags": [
        "fonts",
        "cache",
        "map"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:registerFonts",
      "type": "function",
      "name": "registerFonts",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        467,
        500
      ],
      "summary": "Registers a font directory on this map only, with an optional { recurse } option, and returns whether mapnik found fonts there.",
      "tags": [
        "fonts",
        "registration",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:fonts",
      "type": "function",
      "name": "fonts",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        509,
        521
      ],
      "summary": "Returns a JS array of the font face names in the font file mapping of this map.",
      "tags": [
        "fonts",
        "introspection",
        "map"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:fontFiles",
      "type": "function",
      "name": "fontFiles",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        531,
        542
      ],
      "summary": "Returns a JS object that maps each font face name of this map to its font file path.",
      "tags": [
        "fonts",
        "mapping",
        "map"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:fontDirectory",
      "type": "function",
      "name": "fontDirectory",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        551,
        560
      ],
      "summary": "Returns the registered font directory string of the map, or undefined when the map has none.",
      "tags": [
        "fonts",
        "accessor",
        "map"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:layers",
      "type": "function",
      "name": "layers",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        597,
        614
      ],
      "summary": "Copies every layer of the map into a new layer_ptr and returns them as an array of JS Layer objects.",
      "tags": [
        "layer",
        "accessor",
        "map"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:add_layer",
      "type": "function",
      "name": "add_layer",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        625,
        643
      ],
      "summary": "Validates that the argument is a mapnik.Layer instance and appends a copy of its mapnik layer to the map.",
      "tags": [
        "layer",
        "mutation",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:remove_layer",
      "type": "function",
      "name": "remove_layer",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        653,
        680
      ],
      "summary": "Removes the layer at a numeric index from the map and throws when the index is missing or out of range.",
      "tags": [
        "layer",
        "mutation",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:get_layer",
      "type": "function",
      "name": "get_layer",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        692,
        744
      ],
      "summary": "Returns a copy of one map layer as a JS Layer, found by numeric index or by layer name, and throws when no layer matches.",
      "tags": [
        "layer",
        "lookup",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_map.cpp:resize",
      "type": "function",
      "name": "resize",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        768,
        785
      ],
      "summary": "Validates two numeric arguments and resizes the map to the new width and height in pixels.",
      "tags": [
        "map",
        "mutation",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:clone",
      "type": "function",
      "name": "clone",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        797,
        813
      ],
      "summary": "Copies the wrapped mapnik::Map into a new map_ptr and returns it as an independent JS Map instance.",
      "tags": [
        "map",
        "copy",
        "factory"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:save",
      "type": "function",
      "name": "save",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        826,
        846
      ],
      "summary": "Writes the map definition to an XML file at the given path with mapnik::save_map and returns true on success or false on failure.",
      "tags": [
        "serialization",
        "xml",
        "file-io"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:toXML",
      "type": "function",
      "name": "toXML",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        857,
        871
      ],
      "summary": "Serializes the map definition to an XML string with mapnik::save_map_to_string and throws when the export fails.",
      "tags": [
        "serialization",
        "xml",
        "map"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:zoomAll",
      "type": "function",
      "name": "zoomAll",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        873,
        885
      ],
      "summary": "Zooms the map to the combined extent of all its layers and turns mapnik exceptions into JS errors.",
      "tags": [
        "map",
        "zoom",
        "viewport"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map.cpp:zoomToBox",
      "type": "function",
      "name": "zoomToBox",
      "filePath": "src/mapnik_map.cpp",
      "lineRange": [
        887,
        938
      ],
      "summary": "Zooms the map to a bounding box that is given as one [minx, miny, maxx, maxy] array or as four numeric arguments.",
      "tags": [
        "map",
        "zoom",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_map_query_point.cpp",
      "type": "file",
      "name": "mapnik_map_query_point.cpp",
      "filePath": "src/mapnik_map_query_point.cpp",
      "summary": "Implements Map.queryPoint and Map.queryMapPoint, which validate x/y, an optional layer name or index, and a callback, then run an async worker that returns per-layer Featuresets at that point.",
      "tags": [
        "napi-binding",
        "feature-query",
        "async-worker",
        "map"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_map_query_point.cpp:AsyncQueryPoint",
      "type": "class",
      "name": "AsyncQueryPoint",
      "filePath": "src/mapnik_map_query_point.cpp",
      "lineRange": [
        8,
        96
      ],
      "summary": "AsyncWorker that queries one layer or all layers of a map at a point in geographic or map coordinates, then returns an array of { layer, featureset } JS objects.",
      "tags": [
        "async-worker",
        "feature-query",
        "map"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_map_query_point.cpp:query_point_impl",
      "type": "function",
      "name": "query_point_impl",
      "filePath": "src/mapnik_map_query_point.cpp",
      "lineRange": [
        172,
        290
      ],
      "summary": "Shared implementation of queryPoint and queryMapPoint: it validates the coordinates, resolves options.layer by name or zero-based index, checks the callback, and queues AsyncQueryPoint.",
      "tags": [
        "feature-query",
        "validation",
        "async"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_plugins.hpp",
      "type": "file",
      "name": "mapnik_plugins.hpp",
      "filePath": "src/mapnik_plugins.hpp",
      "summary": "Header-only module-level functions for mapnik input plugins: list the plugin names in datasource_cache and register one .input plugin file or a directory of plugins.",
      "tags": [
        "utility",
        "plugins",
        "napi-binding",
        "datasource",
        "header-only"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_plugins.hpp:available_input_plugins",
      "type": "function",
      "name": "available_input_plugins",
      "filePath": "src/mapnik_plugins.hpp",
      "lineRange": [
        32,
        43
      ],
      "summary": "Returns a JS array of the input plugin names that are registered in the mapnik datasource_cache singleton.",
      "tags": [
        "plugins",
        "introspection",
        "datasource"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_plugins.hpp:register_datasource",
      "type": "function",
      "name": "register_datasource",
      "filePath": "src/mapnik_plugins.hpp",
      "lineRange": [
        65,
        79
      ],
      "summary": "Registers one mapnik input plugin file path (such as postgis.input) with datasource_cache and returns true when the plugin count grew.",
      "tags": [
        "plugins",
        "registration",
        "datasource"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_plugins.hpp:register_datasources",
      "type": "function",
      "name": "register_datasources",
      "filePath": "src/mapnik_plugins.hpp",
      "lineRange": [
        88,
        102
      ],
      "summary": "Registers every input plugin in a directory with datasource_cache and returns true when the plugin count grew.",
      "tags": [
        "plugins",
        "registration",
        "bulk"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_projection.cpp",
      "type": "file",
      "name": "mapnik_projection.cpp",
      "filePath": "src/mapnik_projection.cpp",
      "summary": "Implements the mapnik.Projection and mapnik.ProjTransform N-API classes, which project [x, y] points and [minx, miny, maxx, maxy] boxes between WGS84 and a proj4 projection or between two projections.",
      "tags": [
        "napi-binding",
        "projection",
        "geospatial",
        "coordinate-transform"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/mapnik_projection.cpp:Projection::Initialize",
      "type": "function",
      "name": "Projection::Initialize",
      "filePath": "src/mapnik_projection.cpp",
      "lineRange": [
        11,
        23
      ],
      "summary": "Registers the Projection JS class with the forward and inverse instance methods.",
      "tags": [
        "napi-binding",
        "class-registration",
        "projection"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_projection.cpp:Projection",
      "type": "function",
      "name": "Projection",
      "filePath": "src/mapnik_projection.cpp",
      "lineRange": [
        42,
        79
      ],
      "summary": "Creates a mapnik::projection from a proj4 init string with an optional { lazy } flag and converts initialization failures into JS errors.",
      "tags": [
        "constructor",
        "projection",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_projection.cpp:Projection::forward",
      "type": "function",
      "name": "Projection::forward",
      "filePath": "src/mapnik_projection.cpp",
      "lineRange": [
        94,
        155
      ],
      "summary": "Projects a WGS84 [x, y] point, or the four corners of a [minx, miny, maxx, maxy] box, into this projection and returns the projected array.",
      "tags": [
        "projection",
        "coordinate-transform",
        "bounding-box"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_projection.cpp:inverse",
      "type": "function",
      "name": "inverse",
      "filePath": "src/mapnik_projection.cpp",
      "lineRange": [
        167,
        229
      ],
      "summary": "Unprojects an [x, y] point or the min and max corners of a box from this projection back to WGS84 coordinates.",
      "tags": [
        "projection",
        "coordinate-transform",
        "wgs84"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_projection.cpp:ProjTransform::Initialize",
      "type": "function",
      "name": "ProjTransform::Initialize",
      "filePath": "src/mapnik_projection.cpp",
      "lineRange": [
        233,
        245
      ],
      "summary": "Registers the ProjTransform JS class with the forward and backward instance methods.",
      "tags": [
        "napi-binding",
        "class-registration",
        "transform"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_projection.cpp:ProjTransform",
      "type": "function",
      "name": "ProjTransform",
      "filePath": "src/mapnik_projection.cpp",
      "lineRange": [
        247,
        285
      ],
      "summary": "Takes two mapnik.Projection instances (source and destination) and builds a shared mapnik::proj_transform between them.",
      "tags": [
        "constructor",
        "transform",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_projection.cpp:ProjTransform::forward",
      "type": "function",
      "name": "ProjTransform::forward",
      "filePath": "src/mapnik_projection.cpp",
      "lineRange": [
        287,
        355
      ],
      "summary": "Transforms an [x, y] point or a box from the source to the destination projection and throws a message with both proj params when the transform fails.",
      "tags": [
        "transform",
        "coordinate-transform",
        "error-handling"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_projection.cpp:backward",
      "type": "function",
      "name": "backward",
      "filePath": "src/mapnik_projection.cpp",
      "lineRange": [
        357,
        425
      ],
      "summary": "Transforms an [x, y] point or a box from the destination back to the source projection and throws a descriptive JS error when mapnik fails.",
      "tags": [
        "transform",
        "coordinate-transform",
        "inverse"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_projection.hpp",
      "type": "file",
      "name": "mapnik_projection.hpp",
      "filePath": "src/mapnik_projection.hpp",
      "summary": "Declares the Projection and ProjTransform N-API wrapper classes around shared mapnik::projection and mapnik::proj_transform pointers.",
      "tags": [
        "type-definition",
        "napi-binding",
        "projection",
        "header"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_projection.hpp:Projection",
      "type": "class",
      "name": "Projection",
      "filePath": "src/mapnik_projection.hpp",
      "lineRange": [
        17,
        33
      ],
      "summary": "ObjectWrap class that holds a proj_ptr, with forward and inverse methods; ProjTransform is a friend so that it can read the wrapped projection.",
      "tags": [
        "napi-binding",
        "projection",
        "data-model"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_projection.hpp:ProjTransform",
      "type": "class",
      "name": "ProjTransform",
      "filePath": "src/mapnik_projection.hpp",
      "lineRange": [
        37,
        54
      ],
      "summary": "ObjectWrap class that holds a proj_tr_ptr with forward and backward methods, plus an impl() accessor that Geometry uses for reprojection.",
      "tags": [
        "napi-binding",
        "transform",
        "data-model"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_vector_tile_query.cpp",
      "type": "file",
      "name": "mapnik_vector_tile_query.cpp",
      "filePath": "src/mapnik_vector_tile_query.cpp",
      "summary": "Implements VectorTile.query and VectorTile.queryMany: they reproject lon/lat to web mercator, read layers from the PBF tile, and return features within a tolerance sorted by distance, synchronously or through async workers.",
      "tags": [
        "napi-binding",
        "vector-tile",
        "spatial-query",
        "async-worker",
        "geospatial"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:src/mapnik_vector_tile_query.cpp:p2p_distance",
      "type": "class",
      "name": "p2p_distance",
      "filePath": "src/mapnik_vector_tile_query.cpp",
      "lineRange": [
        24,
        163
      ],
      "summary": "Geometry visitor that computes the distance and hit coordinates from a query point to points, line strings, polygons (with a point-in-polygon test), and their multi and collection variants.",
      "tags": [
        "visitor",
        "geometry",
        "distance"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/mapnik_vector_tile_query.cpp:_query",
      "type": "function",
      "name": "_query",
      "filePath": "src/mapnik_vector_tile_query.cpp",
      "lineRange": [
        170,
        275
      ],
      "summary": "Reprojects one lon/lat to EPSG:3857, scans the named layer or all layers of the tile with features_at_point, keeps features within tolerance, and sorts them by distance.",
      "tags": [
        "spatial-query",
        "vector-tile",
        "reprojection"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/mapnik_vector_tile_query.cpp:_queryResultToV8",
      "type": "function",
      "name": "_queryResultToV8",
      "filePath": "src/mapnik_vector_tile_query.cpp",
      "lineRange": [
        277,
        292
      ],
      "summary": "Converts query results into a JS array of Feature objects with the layer, distance, x_hit, and y_hit properties.",
      "tags": [
        "serialization",
        "feature",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_vector_tile_query.cpp:AsyncQuery",
      "type": "class",
      "name": "AsyncQuery",
      "filePath": "src/mapnik_vector_tile_query.cpp",
      "lineRange": [
        294,
        332
      ],
      "summary": "AsyncWorker that runs _query for one lon/lat on a worker thread and returns the converted feature array to the callback.",
      "tags": [
        "async-worker",
        "spatial-query",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_query.cpp:_queryManyResultToV8",
      "type": "function",
      "name": "_queryManyResultToV8",
      "filePath": "src/mapnik_vector_tile_query.cpp",
      "lineRange": [
        336,
        368
      ],
      "summary": "Builds the queryMany JS result: a features map from feature index to Feature with its layer, and a hits map from query point index to { distance, feature_id } lists.",
      "tags": [
        "serialization",
        "feature",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_query.cpp:_queryMany",
      "type": "function",
      "name": "_queryMany",
      "filePath": "src/mapnik_vector_tile_query.cpp",
      "lineRange": [
        370,
        493
      ],
      "summary": "Reprojects many lon/lat points, queries one tile layer inside their padded bounding box with optional field filtering, and records per-point hits sorted by distance.",
      "tags": [
        "spatial-query",
        "vector-tile",
        "batch-query"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:src/mapnik_vector_tile_query.cpp:AsyncQueryMany",
      "type": "class",
      "name": "AsyncQueryMany",
      "filePath": "src/mapnik_vector_tile_query.cpp",
      "lineRange": [
        495,
        534
      ],
      "summary": "AsyncWorker that runs _queryMany for a set of points on a worker thread and passes the hits and features object to the callback.",
      "tags": [
        "async-worker",
        "batch-query",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_query.cpp:query",
      "type": "function",
      "name": "query",
      "filePath": "src/mapnik_vector_tile_query.cpp",
      "lineRange": [
        588,
        654
      ],
      "summary": "JS VectorTile.query entry point: it validates lon, lat, and the tolerance and layer options, then runs _query synchronously or queues AsyncQuery when a callback is given.",
      "tags": [
        "api-handler",
        "spatial-query",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_query.cpp:queryMany",
      "type": "function",
      "name": "queryMany",
      "filePath": "src/mapnik_vector_tile_query.cpp",
      "lineRange": [
        688,
        814
      ],
      "summary": "JS VectorTile.queryMany entry point: it converts the [[lon, lat], ...] array and the tolerance, layer, and fields options, requires a layer, and runs _queryMany sync or async.",
      "tags": [
        "api-handler",
        "batch-query",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/node_mapnik.cpp",
      "type": "file",
      "name": "node_mapnik.cpp",
      "filePath": "src/node_mapnik.cpp",
      "summary": "N-API module entry point of the native mapnik binding: it registers plugin, font, cache, and blend functions, initializes every wrapper class, and exports enum constants, dependency versions, and a supports feature map.",
      "tags": [
        "entry-point",
        "napi-binding",
        "module-init",
        "constants"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/node_mapnik.cpp:init_image_comp_op",
      "type": "function",
      "name": "init_image_comp_op",
      "filePath": "src/node_mapnik.cpp",
      "lineRange": [
        164,
        204
      ],
      "summary": "Exports the compositeOp object that maps blend mode names such as src_over, multiply, and hue to mapnik composite operation constants.",
      "tags": [
        "constants",
        "enum",
        "compositing"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/node_mapnik.cpp:init_image_types",
      "type": "function",
      "name": "init_image_types",
      "filePath": "src/node_mapnik.cpp",
      "lineRange": [
        226,
        242
      ],
      "summary": "Exports the imageType object that maps pixel type names (null, rgba8, and gray8 through gray64f) to mapnik image dtype constants.",
      "tags": [
        "constants",
        "enum",
        "image"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/node_mapnik.cpp:init_image_scalings",
      "type": "function",
      "name": "init_image_scalings",
      "filePath": "src/node_mapnik.cpp",
      "lineRange": [
        270,
        291
      ],
      "summary": "Exports the imageScaling object that maps resampling filter names such as near, bilinear, and lanczos to mapnik scaling constants.",
      "tags": [
        "constants",
        "enum",
        "image"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/node_mapnik.cpp:init_polygon_fill_types",
      "type": "function",
      "name": "init_polygon_fill_types",
      "filePath": "src/node_mapnik.cpp",
      "lineRange": [
        305,
        313
      ],
      "summary": "Exports the polygonFillType object with the evenOdd, nonZero, positive, and negative Clipper fill rules for vector tile encoding.",
      "tags": [
        "constants",
        "enum",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/node_mapnik.cpp:init_threading_mode_types",
      "type": "function",
      "name": "init_threading_mode_types",
      "filePath": "src/node_mapnik.cpp",
      "lineRange": [
        325,
        332
      ],
      "summary": "Exports the threadingMode object that maps async, deferred, and auto to std::launch policy values.",
      "tags": [
        "constants",
        "enum",
        "threading"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/node_mapnik.cpp:init",
      "type": "function",
      "name": "init",
      "filePath": "src/node_mapnik.cpp",
      "lineRange": [
        334,
        459
      ],
      "summary": "Module init function registered with NODE_API_MODULE: it attaches module functions, calls Initialize on each wrapper class, adds enum tables, and builds the versions and supports objects.",
      "tags": [
        "entry-point",
        "module-init",
        "napi-binding"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/utf8.hpp",
      "type": "file",
      "name": "utf8.hpp",
      "filePath": "src/utf8.hpp",
      "summary": "Vendored copy of the public-domain sheredom utf8.h library inside the node_mapnik namespace, with C-style UTF-8 functions for comparison, search, copy, validation, codepoint encode/decode, and case mapping.",
      "tags": [
        "utility",
        "vendored",
        "unicode",
        "string-processing",
        "header-only"
      ],
      "complexity": "complex",
      "languageNotes": "A C library compiled as C++ inside a namespace and an extern \"C\" block; weak symbols and restrict macros let it live in a header without duplicate-symbol link errors."
    },
    {
      "id": "function:src/utf8.hpp:utf8codepoint",
      "type": "function",
      "name": "utf8codepoint",
      "filePath": "src/utf8.hpp",
      "lineRange": [
        1157,
        1190
      ],
      "summary": "Decodes the next 1- to 4-byte UTF-8 sequence of a string into out_codepoint and returns a pointer to the byte after it.",
      "tags": [
        "unicode",
        "decoding",
        "parsing"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/utf8.hpp:utf8catcodepoint",
      "type": "function",
      "name": "utf8catcodepoint",
      "filePath": "src/utf8.hpp",
      "lineRange": [
        1236,
        1292
      ],
      "summary": "Encodes one codepoint as 1 to 4 UTF-8 bytes into a buffer with n bytes left and returns the next write position, or null when space is short; grid2utf uses it to build grid rows.",
      "tags": [
        "unicode",
        "encoding",
        "utf-grid"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/utf8.hpp:utf8valid",
      "type": "function",
      "name": "utf8valid",
      "filePath": "src/utf8.hpp",
      "lineRange": [
        1057,
        1155
      ],
      "summary": "Scans a UTF-8 string and returns a pointer to the first malformed or overlong sequence, or null when the whole string is valid.",
      "tags": [
        "unicode",
        "validation",
        "parsing"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/utf8.hpp:utf8lwrcodepoint",
      "type": "function",
      "name": "utf8lwrcodepoint",
      "filePath": "src/utf8.hpp",
      "lineRange": [
        1344,
        1519
      ],
      "summary": "Maps an uppercase Latin, Greek, or Cyrillic codepoint to its lowercase form with range rules and a switch of special cases.",
      "tags": [
        "unicode",
        "case-mapping",
        "lookup-table"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/utf8.hpp:utf8uprcodepoint",
      "type": "function",
      "name": "utf8uprcodepoint",
      "filePath": "src/utf8.hpp",
      "lineRange": [
        1521,
        1696
      ],
      "summary": "Maps a lowercase Latin, Greek, or Cyrillic codepoint to its uppercase form, mirroring the ranges and special cases of utf8lwrcodepoint.",
      "tags": [
        "unicode",
        "case-mapping",
        "lookup-table"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/utils.hpp",
      "type": "file",
      "name": "utils.hpp",
      "filePath": "src/utils.hpp",
      "summary": "Shared node_mapnik helpers: the value_converter visitor that turns mapnik values (integer, bool, double, string, unicode string, null) into Napi values, and params_to_object, which copies one parameter onto a JS object.",
      "tags": [
        "utility",
        "type-conversion",
        "napi-binding",
        "header-only"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/utils.hpp:value_converter",
      "type": "class",
      "name": "value_converter",
      "filePath": "src/utils.hpp",
      "lineRange": [
        21,
        60
      ],
      "summary": "Visitor struct with operator() overloads that convert each mapnik value variant (integer, bool, double, std::string, ICU unicode string, null) into the matching Napi value.",
      "tags": [
        "visitor",
        "type-conversion",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/utils.hpp:params_to_object",
      "type": "function",
      "name": "params_to_object",
      "filePath": "src/utils.hpp",
      "lineRange": [
        62,
        65
      ],
      "summary": "Sets one key on a JS object to a mapnik value_holder converted through value_converter; the datasource, layer, and map bindings use it to export parameters.",
      "tags": [
        "utility",
        "type-conversion",
        "serialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/blend.cpp",
      "type": "file",
      "name": "blend.cpp",
      "filePath": "src/blend.cpp",
      "summary": "Implements the mapnik.blend N-API function, which decodes PNG/JPEG/WebP buffers or reuses rgba8 mapnik.Image objects, composites the layers with x/y offsets and optional HSL tint over a matte color, and re-encodes the canvas as PNG (full color, palette, octree or hextree), JPEG, or WebP on a worker thread. It also exposes the rgb2hsl and hsl2rgb color helpers to JavaScript.",
      "tags": [
        "image-compositing",
        "napi-binding",
        "async-worker",
        "image-encoding",
        "color-conversion"
      ],
      "complexity": "complex",
      "languageNotes": "Uses Napi::AsyncWorker so decode, blend, and encode run on the libuv thread pool. HAVE_PNG, HAVE_JPEG, and HAVE_WEBP preprocessor guards compile each codec in or out. Layers are walked from top to bottom so that an opaque layer that covers the canvas stops the decoding of the layers below it."
    },
    {
      "id": "function:src/blend.cpp:hexToUInt32Color",
      "type": "function",
      "name": "hexToUInt32Color",
      "filePath": "src/blend.cpp",
      "lineRange": [
        35,
        63
      ],
      "summary": "Parses a '#rrggbb' or '#rrggbbaa' matte string into a packed 32-bit pixel value in 0xAABBGGRR order (little-endian RGBA bytes), and rejects strings shorter than six characters or with a wrong digit count.",
      "tags": [
        "parsing",
        "color",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/blend.cpp:rgb2hsl",
      "type": "function",
      "name": "rgb2hsl",
      "filePath": "src/blend.cpp",
      "lineRange": [
        65,
        90
      ],
      "summary": "JavaScript-exposed helper that requires three numeric r, g, b arguments and returns a three-element [h, s, l] array computed by rgb_to_hsl.",
      "tags": [
        "napi-binding",
        "color-conversion",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/blend.cpp:hsl2rgb",
      "type": "function",
      "name": "hsl2rgb",
      "filePath": "src/blend.cpp",
      "lineRange": [
        92,
        117
      ],
      "summary": "JavaScript-exposed helper that requires three fractional h, s, l arguments and returns an [r, g, b] integer array computed by hsl_to_rgb.",
      "tags": [
        "napi-binding",
        "color-conversion",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/blend.cpp:parseTintOps",
      "type": "function",
      "name": "parseTintOps",
      "filePath": "src/blend.cpp",
      "lineRange": [
        119,
        172
      ],
      "summary": "Reads the optional h, s, l, and a two-element arrays of a JS tint object into the range fields of a Tinter, and throws a TypeError when an array is not a pair (the l branch throws but does not return false).",
      "tags": [
        "parsing",
        "validation",
        "tinting"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/blend.cpp:Blend_CompositePixel",
      "type": "function",
      "name": "Blend_CompositePixel",
      "filePath": "src/blend.cpp",
      "lineRange": [
        174,
        207
      ],
      "summary": "Composites one 32-bit source pixel over a target pixel in place: it skips a fully transparent source, copies an opaque source or a source over a transparent target, and otherwise applies integer source-over alpha blending.",
      "tags": [
        "pixel-math",
        "alpha-compositing",
        "hot-path"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/blend.cpp:TintPixel",
      "type": "function",
      "name": "TintPixel",
      "filePath": "src/blend.cpp",
      "lineRange": [
        209,
        228
      ],
      "summary": "Converts an r, g, b triple to HSL, remaps each channel linearly into the Tinter ranges [h0,h1], [s0,s1], [l0,l1] with clamping to 0-1, and converts the result back to RGB in place.",
      "tags": [
        "pixel-math",
        "tinting",
        "color-conversion"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/blend.cpp:Blend_Composite",
      "type": "function",
      "name": "Blend_Composite",
      "filePath": "src/blend.cpp",
      "lineRange": [
        230,
        287
      ],
      "summary": "Blends one decoded BImage layer onto the target canvas at the x/y offset of the layer, clips to the canvas bounds, and for a non-identity tint or alpha range rescales alpha and tints each pixel before it calls Blend_CompositePixel.",
      "tags": [
        "image-compositing",
        "pixel-math",
        "tinting"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/blend.cpp:AsyncBlend",
      "type": "class",
      "name": "AsyncBlend",
      "filePath": "src/blend.cpp",
      "lineRange": [
        292,
        509
      ],
      "summary": "Napi::AsyncWorker that carries the blend inputs (layer list, quality, width, height, palette, matte, compression, alpha mode, output format, reencode flag) and produces the encoded output buffer off the main thread.",
      "tags": [
        "async-worker",
        "image-compositing",
        "image-encoding"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/blend.cpp:AsyncBlend::AsyncBlend",
      "type": "function",
      "name": "AsyncBlend::AsyncBlend",
      "filePath": "src/blend.cpp",
      "lineRange": [
        295,
        311
      ],
      "summary": "Constructor of the blend worker that passes the JS callback to the AsyncWorker base and stores the ten blend parameters, from the Images list to the reencode flag, in its fields.",
      "tags": [
        "constructor",
        "async-worker",
        "image-compositing"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/blend.cpp:AsyncBlend::Execute",
      "type": "function",
      "name": "AsyncBlend::Execute",
      "filePath": "src/blend.cpp",
      "lineRange": [
        313,
        469
      ],
      "summary": "Worker-thread body that walks the layers from top to bottom, decodes each buffer with a mapnik image_reader or reuses an rgba8 Image, drops layers outside the viewport, takes the canvas size from the first visible layer when none is given, returns the original bytes for a single opaque unchanged layer, and stops decoding below an opaque full-cover layer; it then fills the matte, composites every layer, and calls Blend_Encode.",
      "tags": [
        "async-worker",
        "image-decoding",
        "image-compositing"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/blend.cpp:AsyncBlend::GetResult",
      "type": "function",
      "name": "AsyncBlend::GetResult",
      "filePath": "src/blend.cpp",
      "lineRange": [
        471,
        492
      ],
      "summary": "Returns (null, Buffer) to the blend callback by giving the encoded std::string to a Napi::Buffer whose finalizer deletes the string and reverses the V8 external memory adjustment.",
      "tags": [
        "async-worker",
        "buffer",
        "memory-management"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/blend.cpp:Blend_Encode",
      "type": "function",
      "name": "Blend_Encode",
      "filePath": "src/blend.cpp",
      "lineRange": [
        511,
        588
      ],
      "summary": "Encodes the blended rgba8 canvas into the worker output buffer as JPEG (default quality 85), WebP (default quality 80, compression used as the method), or PNG, where PNG uses a given mapnik.Palette, octree or hextree quantization when quality is set, or full color otherwise.",
      "tags": [
        "image-encoding",
        "png",
        "jpeg",
        "webp"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/blend.cpp:blend",
      "type": "function",
      "name": "blend",
      "filePath": "src/blend.cpp",
      "lineRange": [
        613,
        932
      ],
      "summary": "Entry point for mapnik.blend(buffers, [options], callback): it validates format, quality ranges, reencode, width, height, matte, palette, mode, and compression limits, passes a single Buffer straight to the callback when no reencode is needed, converts each array element (Buffer, rgba8 mapnik.Image, or {buffer, x, y, tint} object) into a BImage, and queues an AsyncBlend worker.",
      "tags": [
        "napi-binding",
        "entry-point",
        "validation",
        "image-compositing"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:src/blend.hpp",
      "type": "file",
      "name": "blend.hpp",
      "filePath": "src/blend.hpp",
      "summary": "Declares the node_mapnik blend types: the BImage layer record, the ImagePtr and Images aliases, the BlendFormat (PNG, JPEG, WebP) and AlphaMode (octree, hextree) enums, and the rgb2hsl, hsl2rgb, and blend N-API entry points that node_mapnik.cpp registers.",
      "tags": [
        "type-definition",
        "header",
        "image-compositing",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/blend.hpp:BImage",
      "type": "class",
      "name": "BImage",
      "filePath": "src/blend.hpp",
      "lineRange": [
        14,
        37
      ],
      "summary": "Per-layer input record for blend that holds a persistent reference to the source Buffer with its data pointer and length, the x/y placement, the decoded width and height, a Tinter, an owned decoded image_rgba8, a raw pixel pointer, and an optional shared mapnik.Image.",
      "tags": [
        "data-model",
        "image-compositing",
        "struct"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/blend.hpp:BImage::BImage",
      "type": "function",
      "name": "BImage::BImage",
      "filePath": "src/blend.hpp",
      "lineRange": [
        16,
        25
      ],
      "summary": "Default constructor of a blend layer that sets offsets, sizes, and the data length to zero, sets the data and image pointers to null, and starts with an identity Tinter.",
      "tags": [
        "constructor",
        "data-model",
        "image-compositing"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_color.cpp",
      "type": "file",
      "name": "mapnik_color.cpp",
      "filePath": "src/mapnik_color.cpp",
      "summary": "Implements the mapnik.Color JavaScript class: it registers the hex and toString methods and the r, g, b, a, and premultiplied accessors, and builds a mapnik::color from a CSS color string, an internal External, or numeric r, g, b[, a] values with 0-255 range checks and an optional premultiplied flag.",
      "tags": [
        "napi-binding",
        "data-model",
        "color",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_color.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_color.cpp",
      "lineRange": [
        5,
        22
      ],
      "summary": "Defines the JS Color class with the hex and toString methods and the r, g, b, a, and premultiplied accessors, keeps the constructor in a persistent reference, and sets Color on the module exports.",
      "tags": [
        "napi-binding",
        "registration",
        "color"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_color.cpp:Color",
      "type": "function",
      "name": "Color",
      "filePath": "src/mapnik_color.cpp",
      "lineRange": [
        44,
        138
      ],
      "summary": "Color constructor that accepts an External mapnik::color, a CSS color string with an optional premultiplied boolean, or three to five numeric r, g, b, a arguments with an optional premultiplied boolean, and throws a TypeError for out-of-range channels or other argument shapes.",
      "tags": [
        "constructor",
        "validation",
        "color"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_color.cpp:red",
      "type": "function",
      "name": "red",
      "filePath": "src/mapnik_color.cpp",
      "lineRange": [
        140,
        159
      ],
      "summary": "Getter and setter pair behind the JS r property: the getter returns the red channel, and the setter checks for an integer in 0-255 before it calls set_red.",
      "tags": [
        "accessor",
        "color",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_color.cpp:green",
      "type": "function",
      "name": "green",
      "filePath": "src/mapnik_color.cpp",
      "lineRange": [
        161,
        180
      ],
      "summary": "Getter and setter pair behind the JS g property that reads the green channel, or range-checks a 0-255 integer and stores it with set_green.",
      "tags": [
        "accessor",
        "color",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_color.cpp:blue",
      "type": "function",
      "name": "blue",
      "filePath": "src/mapnik_color.cpp",
      "lineRange": [
        182,
        201
      ],
      "summary": "Implements the JS b property: the getter returns color_.blue(), and the setter rejects non-numbers and values outside 0-255 before it calls set_blue.",
      "tags": [
        "accessor",
        "color",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_color.cpp:alpha",
      "type": "function",
      "name": "alpha",
      "filePath": "src/mapnik_color.cpp",
      "lineRange": [
        203,
        222
      ],
      "summary": "Accessor pair for the JS a property that exposes the alpha channel and validates written values against the 0-255 range before set_alpha.",
      "tags": [
        "accessor",
        "color",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_color.hpp",
      "type": "file",
      "name": "mapnik_color.hpp",
      "filePath": "src/mapnik_color.hpp",
      "summary": "Declares the Color Napi::ObjectWrap class that wraps a mapnik::color value, with an Initialize registrar, a constructor, toString and hex methods, and getter/setter pairs for red, green, blue, alpha, and premultiplied.",
      "tags": [
        "type-definition",
        "header",
        "napi-binding",
        "color"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_color.hpp:Color",
      "type": "class",
      "name": "Color",
      "filePath": "src/mapnik_color.hpp",
      "lineRange": [
        6,
        35
      ],
      "summary": "Napi::ObjectWrap class that JavaScript sees as mapnik.Color; it wraps one mapnik::color value and gives Image, ImageView, and Map friend access to that value.",
      "tags": [
        "napi-binding",
        "data-model",
        "color"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_image.cpp",
      "type": "file",
      "name": "mapnik_image.cpp",
      "filePath": "src/mapnik_image.cpp",
      "summary": "Core implementation of the mapnik.Image JavaScript class: Initialize binds 2 accessors, 33 instance methods, and 9 static factories (the mapnik_image_*.cpp files implement most of them), and this file implements the constructor plus getType, getPixel, setPixel, compare, setGrayScaleToAlpha, premultiplied, painted, width, height, view, offset, scaling, data, and buffer.",
      "tags": [
        "napi-binding",
        "data-model",
        "raster-image",
        "pixel-access"
      ],
      "complexity": "complex",
      "languageNotes": "The Image class is split across many translation units: mapnik_image.hpp declares every method, and each mapnik_image_*.cpp file defines one feature group. An External<image_ptr> constructor argument lets C++ code wrap an existing shared image without a copy."
    },
    {
      "id": "function:src/mapnik_image.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_image.cpp",
      "lineRange": [
        19,
        73
      ],
      "summary": "Registers the JS Image class with the offset and scaling accessors, 33 instance methods, and the 9 static factories openSync, open, fromBufferSync, fromBytesSync, fromBytes, fromSVGSync, fromSVG, fromSVGBytesSync, and fromSVGBytes, and publishes it as exports.Image.",
      "tags": [
        "napi-binding",
        "registration",
        "raster-image"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image.cpp:Image",
      "type": "function",
      "name": "Image",
      "filePath": "src/mapnik_image.cpp",
      "lineRange": [
        98,
        206
      ],
      "summary": "Image constructor that either adopts an External image_ptr (used by workers and factories) or allocates a mapnik::image_any of the given width and height, after it validates the type (a mapnik.imageType), initialize, premultiplied, and painted options.",
      "tags": [
        "constructor",
        "validation",
        "raster-image"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image.cpp:getPixel",
      "type": "function",
      "name": "getPixel",
      "filePath": "src/mapnik_image.cpp",
      "lineRange": [
        255,
        321
      ],
      "summary": "Returns the pixel at (x, y) as a raw number through visitor_get_pixel, or as a new mapnik.Color object when options.get_color is true; coordinates outside the image return undefined.",
      "tags": [
        "pixel-access",
        "napi-binding",
        "color"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image.cpp:setPixel",
      "type": "function",
      "name": "setPixel",
      "filePath": "src/mapnik_image.cpp",
      "lineRange": [
        338,
        376
      ],
      "summary": "Writes the pixel at (x, y) from a number through visitor_set_pixel or from a mapnik.Color, and throws a TypeError for coordinates outside the image or for other value types.",
      "tags": [
        "pixel-access",
        "napi-binding",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image.cpp:compare",
      "type": "function",
      "name": "compare",
      "filePath": "src/mapnik_image.cpp",
      "lineRange": [
        420,
        480
      ],
      "summary": "Counts the pixels that differ between this image and another mapnik.Image of equal size with mapnik::compare, with an optional per-channel threshold and an alpha flag.",
      "tags": [
        "image-diff",
        "napi-binding",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image.cpp:setGrayScaleToAlpha",
      "type": "function",
      "name": "setGrayScaleToAlpha",
      "filePath": "src/mapnik_image.cpp",
      "lineRange": [
        500,
        523
      ],
      "summary": "Moves the grayscale intensity of the image into its alpha channel with mapnik::set_grayscale_to_alpha, optionally with a mapnik.Color as the base RGB, which creates mask layers.",
      "tags": [
        "image-mutation",
        "alpha-compositing",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image.cpp:view",
      "type": "function",
      "name": "view",
      "filePath": "src/mapnik_image.cpp",
      "lineRange": [
        630,
        648
      ],
      "summary": "Creates a mapnik.ImageView over the x, y, width, height rectangle of this image by passing the image_ptr as an External to the ImageView constructor.",
      "tags": [
        "image-view",
        "factory",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image.cpp:offset",
      "type": "function",
      "name": "offset",
      "filePath": "src/mapnik_image.cpp",
      "lineRange": [
        650,
        667
      ],
      "summary": "Getter and setter for the JS offset property, which reads or writes the numeric offset that mapnik stores on the image_any for raster value transforms; the setter throws when the value is not a number.",
      "tags": [
        "accessor",
        "raster-image",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image.cpp:scaling",
      "type": "function",
      "name": "scaling",
      "filePath": "src/mapnik_image.cpp",
      "lineRange": [
        669,
        692
      ],
      "summary": "Getter and setter for the JS scaling property of the underlying image_any; the setter rejects non-numbers and the value zero.",
      "tags": [
        "accessor",
        "raster-image",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_image.hpp",
      "type": "file",
      "name": "mapnik_image.hpp",
      "filePath": "src/mapnik_image.hpp",
      "summary": "Declares the Image Napi::ObjectWrap class and the image_ptr alias (shared_ptr to mapnik::image_any), and lists every JS-facing method: pixel access, encode and save, open, fromBytes, fromBuffer, and fromSVG factories, composite, filter, fill, premultiply and demultiply, clear, compare, isSolid, copy, resize, and the scaling and offset accessors.",
      "tags": [
        "type-definition",
        "header",
        "napi-binding",
        "raster-image"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_image.hpp:Image",
      "type": "class",
      "name": "Image",
      "filePath": "src/mapnik_image.hpp",
      "lineRange": [
        13,
        79
      ],
      "summary": "Napi::ObjectWrap class that JavaScript sees as mapnik.Image; it owns an image_ptr to a mapnik::image_any and declares the full JS method set, the impl() accessor that blend and render code use, and the private encode_common_args_ and from_svg_sync_impl helpers.",
      "tags": [
        "napi-binding",
        "data-model",
        "raster-image"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_image_clear.cpp",
      "type": "file",
      "name": "mapnik_image_clear.cpp",
      "filePath": "src/mapnik_image_clear.cpp",
      "summary": "Implements Image.clearSync and Image.clear, which set every pixel of the wrapped image to 0 (fully transparent) either inline or through the AsyncClear worker, which returns the same image to the callback.",
      "tags": [
        "napi-binding",
        "async-worker",
        "raster-image",
        "image-mutation"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_image_clear.cpp:AsyncClear",
      "type": "class",
      "name": "AsyncClear",
      "filePath": "src/mapnik_image_clear.cpp",
      "lineRange": [
        11,
        36
      ],
      "summary": "AsyncWorker that fills the shared image with 0 on the thread pool and passes a new JS Image that wraps the same image_ptr to the callback.",
      "tags": [
        "async-worker",
        "image-mutation",
        "thread-pool"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_clear.cpp:AsyncClear::GetResult",
      "type": "function",
      "name": "AsyncClear::GetResult",
      "filePath": "src/mapnik_image_clear.cpp",
      "lineRange": [
        25,
        34
      ],
      "summary": "Wraps the cleared image_ptr in a new mapnik.Image through an External and returns (null, image) to the clear callback.",
      "tags": [
        "async-worker",
        "callback-result",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_clear.cpp:clearSync",
      "type": "function",
      "name": "clearSync",
      "filePath": "src/mapnik_image_clear.cpp",
      "lineRange": [
        53,
        65
      ],
      "summary": "Synchronously sets every pixel to 0 with mapnik::fill and turns any std::exception into a JS Error.",
      "tags": [
        "napi-binding",
        "image-mutation",
        "synchronous"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_clear.cpp:clear",
      "type": "function",
      "name": "clear",
      "filePath": "src/mapnik_image_clear.cpp",
      "lineRange": [
        83,
        101
      ],
      "summary": "Calls clearSync when there are no arguments; otherwise it checks that the last argument is a function and queues an AsyncClear worker.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-mutation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_image_compositing.cpp",
      "type": "file",
      "name": "mapnik_image_compositing.cpp",
      "filePath": "src/mapnik_image_compositing.cpp",
      "summary": "Implements Image.composite, which requires both images to be premultiplied, parses comp_op, opacity, dx, dy, and an image_filters string, and runs the AsyncComposite worker to filter the source and blend it onto this image with mapnik::composite.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-compositing",
        "image-filter"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_image_compositing.cpp:AsyncComposite",
      "type": "class",
      "name": "AsyncComposite",
      "filePath": "src/mapnik_image_compositing.cpp",
      "lineRange": [
        10,
        66
      ],
      "summary": "AsyncWorker that holds the source and destination images, the composite mode, the dx/dy offset, the opacity, and the parsed filter list for Image.composite, and returns the destination image.",
      "tags": [
        "async-worker",
        "image-compositing",
        "image-filter"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_compositing.cpp:AsyncComposite::AsyncComposite",
      "type": "function",
      "name": "AsyncComposite::AsyncComposite",
      "filePath": "src/mapnik_image_compositing.cpp",
      "lineRange": [
        13,
        27
      ],
      "summary": "Constructor of the composite worker that stores the source and destination image_ptr, the composite_mode_e, the dx/dy pixel offsets, the opacity, and a copy of the parsed filter vector.",
      "tags": [
        "constructor",
        "async-worker",
        "image-compositing"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_compositing.cpp:AsyncComposite::Execute",
      "type": "function",
      "name": "AsyncComposite::Execute",
      "filePath": "src/mapnik_image_compositing.cpp",
      "lineRange": [
        29,
        49
      ],
      "summary": "Runs the parsed image filters on the source image with filter_visitor and premultiplies its alpha again, then composites the source onto the destination with mapnik::composite at the given mode, opacity, and offset.",
      "tags": [
        "async-worker",
        "image-compositing",
        "image-filter"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_compositing.cpp:composite",
      "type": "function",
      "name": "composite",
      "filePath": "src/mapnik_image_compositing.cpp",
      "lineRange": [
        101,
        236
      ],
      "summary": "JS Image.composite(image, [options], callback): it requires a premultiplied mapnik.Image source and a premultiplied destination, validates comp_op (up to divide), opacity in 0-1, integer dx and dy, and an image_filters string parsed by parse_image_filters, and queues AsyncComposite.",
      "tags": [
        "napi-binding",
        "validation",
        "image-compositing"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_image_copy.cpp",
      "type": "file",
      "name": "mapnik_image_copy.cpp",
      "filePath": "src/mapnik_image_copy.cpp",
      "summary": "Implements Image.copy and Image.copySync, which clone the image into a new mapnik.Image of a requested image type with optional scaling and offset through mapnik::image_copy; the async form runs the AsyncCopy worker.",
      "tags": [
        "napi-binding",
        "async-worker",
        "raster-image",
        "type-conversion"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_image_copy.cpp:AsyncCopy",
      "type": "class",
      "name": "AsyncCopy",
      "filePath": "src/mapnik_image_copy.cpp",
      "lineRange": [
        9,
        51
      ],
      "summary": "AsyncWorker for Image.copy that converts the input image to a target image_dtype with an offset and a scaling value and returns the new image.",
      "tags": [
        "async-worker",
        "type-conversion",
        "raster-image"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_copy.cpp:AsyncCopy::Execute",
      "type": "function",
      "name": "AsyncCopy::Execute",
      "filePath": "src/mapnik_image_copy.cpp",
      "lineRange": [
        21,
        32
      ],
      "summary": "Calls mapnik::image_copy with the target type, offset, and scaling, stores the result as a new shared image_any, and records any exception as the worker error.",
      "tags": [
        "async-worker",
        "type-conversion",
        "raster-image"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_copy.cpp:AsyncCopy::GetResult",
      "type": "function",
      "name": "AsyncCopy::GetResult",
      "filePath": "src/mapnik_image_copy.cpp",
      "lineRange": [
        34,
        43
      ],
      "summary": "Returns (undefined, image) to the copy callback, where image is a new mapnik.Image that wraps the copied image_out_ pointer.",
      "tags": [
        "async-worker",
        "callback-result",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_copy.cpp:copy",
      "type": "function",
      "name": "copy",
      "filePath": "src/mapnik_image_copy.cpp",
      "lineRange": [
        73,
        165
      ],
      "summary": "Async Image.copy([type], [options], callback): it calls copySync when the last argument is not a function, validates the image type and the scaling and offset options, keeps the source scaling and offset when the type is the same and none are given, and queues AsyncCopy.",
      "tags": [
        "napi-binding",
        "validation",
        "type-conversion"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_copy.cpp:copySync",
      "type": "function",
      "name": "copySync",
      "filePath": "src/mapnik_image_copy.cpp",
      "lineRange": [
        183,
        275
      ],
      "summary": "Synchronous Image.copySync([type], [options]) that applies the same type, scaling, and offset rules as copy and returns a new mapnik.Image built by mapnik::image_copy.",
      "tags": [
        "napi-binding",
        "validation",
        "type-conversion"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_image_encode.cpp",
      "type": "file",
      "name": "mapnik_image_encode.cpp",
      "filePath": "src/mapnik_image_encode.cpp",
      "summary": "Implements Image.encodeSync and Image.encode, which serialize the image with mapnik save_to_string in a format such as png, optionally with a mapnik.Palette, and give the bytes to JavaScript as an externally owned Buffer; encode_common_args_ parses the shared arguments.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-encoding",
        "serialization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_encode.cpp:encode_common_args_",
      "type": "function",
      "name": "encode_common_args_",
      "filePath": "src/mapnik_image_encode.cpp",
      "lineRange": [
        10,
        51
      ],
      "summary": "Shared argument parser for Image.encode and Image.encodeSync that reads the optional format string and an options.palette that must be a mapnik.Palette instance into the format and palette_ptr references of the caller.",
      "tags": [
        "parsing",
        "validation",
        "image-encoding"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_image_encode.cpp:AsyncEncode",
      "type": "class",
      "name": "AsyncEncode",
      "filePath": "src/mapnik_image_encode.cpp",
      "lineRange": [
        55,
        108
      ],
      "summary": "Anonymous-namespace AsyncWorker that encodes an image_ptr to a std::string in the requested format, with an optional rgba_palette, and returns the bytes as a Buffer.",
      "tags": [
        "async-worker",
        "image-encoding",
        "serialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_encode.cpp:AsyncEncode::Execute",
      "type": "function",
      "name": "AsyncEncode::Execute",
      "filePath": "src/mapnik_image_encode.cpp",
      "lineRange": [
        66,
        79
      ],
      "summary": "Calls mapnik save_to_string on the full image with the format and, when present, the palette, and keeps the encoded bytes in result_.",
      "tags": [
        "async-worker",
        "image-encoding",
        "serialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_encode.cpp:AsyncEncode::GetResult",
      "type": "function",
      "name": "AsyncEncode::GetResult",
      "filePath": "src/mapnik_image_encode.cpp",
      "lineRange": [
        80,
        101
      ],
      "summary": "Moves the encoded image string into a zero-copy Napi::Buffer whose finalizer deletes it, adds its size to V8 external memory, and returns (null, buffer) to the encode callback.",
      "tags": [
        "async-worker",
        "buffer",
        "memory-management"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_encode.cpp:encodeSync",
      "type": "function",
      "name": "encodeSync",
      "filePath": "src/mapnik_image_encode.cpp",
      "lineRange": [
        129,
        164
      ],
      "summary": "Synchronously encodes the image (default format png) with save_to_string, optionally with a palette, and returns the bytes as an externally owned Buffer that AdjustExternalMemory tracks.",
      "tags": [
        "napi-binding",
        "image-encoding",
        "buffer"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_encode.cpp:encode",
      "type": "function",
      "name": "encode",
      "filePath": "src/mapnik_image_encode.cpp",
      "lineRange": [
        194,
        211
      ],
      "summary": "Parses the format and palette with encode_common_args_, requires a callback as the last argument, and queues an AsyncEncode worker for the image.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-encoding"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_image_fill.cpp",
      "type": "file",
      "name": "mapnik_image_fill.cpp",
      "filePath": "src/mapnik_image_fill.cpp",
      "summary": "Implements Image.fillSync and Image.fill, which set all pixels to a numeric value or to a mapnik.Color; the async form uses the AsyncFill template worker for double or mapnik::color values.",
      "tags": [
        "napi-binding",
        "async-worker",
        "raster-image",
        "image-mutation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_image_fill.cpp:AsyncFill",
      "type": "class",
      "name": "AsyncFill",
      "filePath": "src/mapnik_image_fill.cpp",
      "lineRange": [
        10,
        36
      ],
      "summary": "AsyncWorker template (T is double or mapnik::color) that fills every pixel of the image with the stored value on the thread pool.",
      "tags": [
        "async-worker",
        "template",
        "image-mutation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_fill.cpp:AsyncFill::GetResult",
      "type": "function",
      "name": "AsyncFill::GetResult",
      "filePath": "src/mapnik_image_fill.cpp",
      "lineRange": [
        24,
        33
      ],
      "summary": "Returns (null, image) to the fill callback, where image is a new JS Image that wraps the filled image_ptr.",
      "tags": [
        "async-worker",
        "callback-result",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_fill.cpp:fillSync",
      "type": "function",
      "name": "fillSync",
      "filePath": "src/mapnik_image_fill.cpp",
      "lineRange": [
        55,
        93
      ],
      "summary": "Synchronously fills the image with a numeric value through mapnik::fill<double> or with a mapnik.Color, and throws a TypeError for other argument types.",
      "tags": [
        "napi-binding",
        "image-mutation",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_fill.cpp:fill",
      "type": "function",
      "name": "fill",
      "filePath": "src/mapnik_image_fill.cpp",
      "lineRange": [
        116,
        161
      ],
      "summary": "Calls fillSync when there are fewer than two arguments; otherwise it validates the callback and queues AsyncFill<double> for a number or AsyncFill<mapnik::color> for a mapnik.Color.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-mutation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_image_filter.cpp",
      "type": "file",
      "name": "mapnik_image_filter.cpp",
      "filePath": "src/mapnik_image_filter.cpp",
      "summary": "Implements Image.filterSync and Image.filter, which apply a mapnik image filter expression such as blur, emboss, sharpen, sobel, or gray to the pixels in place, with the AsyncFilter worker for the callback form.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-filter",
        "raster-image"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_image_filter.cpp:AsyncFilter",
      "type": "class",
      "name": "AsyncFilter",
      "filePath": "src/mapnik_image_filter.cpp",
      "lineRange": [
        12,
        47
      ],
      "summary": "AsyncWorker that applies a stored filter string to the image with mapnik::filter::filter_image and returns the same image.",
      "tags": [
        "async-worker",
        "image-filter",
        "raster-image"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_filter.cpp:AsyncFilter::Execute",
      "type": "function",
      "name": "AsyncFilter::Execute",
      "filePath": "src/mapnik_image_filter.cpp",
      "lineRange": [
        22,
        33
      ],
      "summary": "Runs mapnik::filter::filter_image with the filter string on the worker thread and converts a thrown exception into the worker error.",
      "tags": [
        "async-worker",
        "image-filter",
        "error-handling"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_filter.cpp:AsyncFilter::GetResult",
      "type": "function",
      "name": "AsyncFilter::GetResult",
      "filePath": "src/mapnik_image_filter.cpp",
      "lineRange": [
        35,
        44
      ],
      "summary": "Gives the filter callback (null, image) with a new mapnik.Image wrapper around the filtered image_ptr.",
      "tags": [
        "async-worker",
        "callback-result",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_filter.cpp:filterSync",
      "type": "function",
      "name": "filterSync",
      "filePath": "src/mapnik_image_filter.cpp",
      "lineRange": [
        64,
        88
      ],
      "summary": "Requires a filter name string, applies it in place with mapnik::filter::filter_image, and throws a JS Error on failure.",
      "tags": [
        "napi-binding",
        "image-filter",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_filter.cpp:filter",
      "type": "function",
      "name": "filter",
      "filePath": "src/mapnik_image_filter.cpp",
      "lineRange": [
        108,
        129
      ],
      "summary": "Uses filterSync for fewer than two arguments; otherwise it validates the last-argument callback and the filter string and queues AsyncFilter.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-filter"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_image_from_bytes.cpp",
      "type": "file",
      "name": "mapnik_image_from_bytes.cpp",
      "filePath": "src/mapnik_image_from_bytes.cpp",
      "summary": "Implements the static Image.fromBytesSync, Image.fromBytes, and Image.fromBufferSync factories, which decode an encoded image Buffer through mapnik::get_image_reader (the async form enforces max_size and an optional premultiply) or wrap a raw RGBA Buffer of width*height*4 bytes as an rgba8 image.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-decoding",
        "factory"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:src/mapnik_image_from_bytes.cpp:AsyncFromBytes",
      "type": "class",
      "name": "AsyncFromBytes",
      "filePath": "src/mapnik_image_from_bytes.cpp",
      "lineRange": [
        10,
        68
      ],
      "summary": "AsyncWorker that keeps a persistent reference to the input Buffer while it decodes the bytes into an image_any on the thread pool, with a max_size limit and an optional premultiply step.",
      "tags": [
        "async-worker",
        "image-decoding",
        "buffer"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_from_bytes.cpp:AsyncFromBytes::Execute",
      "type": "function",
      "name": "AsyncFromBytes::Execute",
      "filePath": "src/mapnik_image_from_bytes.cpp",
      "lineRange": [
        23,
        48
      ],
      "summary": "Creates a mapnik image_reader from the buffer bytes, fails when a dimension is larger than max_size, reads the full image, and premultiplies it when requested.",
      "tags": [
        "async-worker",
        "image-decoding",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_from_bytes.cpp:AsyncFromBytes::GetResult",
      "type": "function",
      "name": "AsyncFromBytes::GetResult",
      "filePath": "src/mapnik_image_from_bytes.cpp",
      "lineRange": [
        50,
        59
      ],
      "summary": "Returns (null, image) with a new mapnik.Image around the decoded image when decoding succeeded, otherwise the default AsyncWorker error result.",
      "tags": [
        "async-worker",
        "callback-result",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_from_bytes.cpp:fromBytesSync",
      "type": "function",
      "name": "fromBytesSync",
      "filePath": "src/mapnik_image_from_bytes.cpp",
      "lineRange": [
        85,
        129
      ],
      "summary": "Synchronously decodes an encoded image Buffer with mapnik::get_image_reader and returns a new mapnik.Image, and marks images without alpha as premultiplied.",
      "tags": [
        "napi-binding",
        "image-decoding",
        "factory"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_from_bytes.cpp:fromBytes",
      "type": "function",
      "name": "fromBytes",
      "filePath": "src/mapnik_image_from_bytes.cpp",
      "lineRange": [
        150,
        232
      ],
      "summary": "Static Image.fromBytes(buffer, [options], callback): it uses fromBytesSync for one argument, validates the Buffer and the callback, reads premultiply (boolean) and max_size (0-65535, default 2048), and queues AsyncFromBytes.",
      "tags": [
        "napi-binding",
        "async-worker",
        "factory",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_from_bytes.cpp:fromBufferSync",
      "type": "function",
      "name": "fromBufferSync",
      "filePath": "src/mapnik_image_from_bytes.cpp",
      "lineRange": [
        253,
        353
      ],
      "summary": "Builds an rgba8 mapnik.Image over a raw RGBA Buffer that must be exactly width*height*4 bytes, applies the premultiplied and painted options (rejects type), and attaches the Buffer to the result as _buffer because the buffer must outlive the image.",
      "tags": [
        "napi-binding",
        "factory",
        "buffer",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_image_from_svg.cpp",
      "type": "file",
      "name": "mapnik_image_from_svg.cpp",
      "filePath": "src/mapnik_image_from_svg.cpp",
      "summary": "Implements the static Image.fromSVG, fromSVGSync, fromSVGBytes, and fromSVGBytesSync factories, which parse an SVG file or Buffer with the mapnik svg_parser, rasterize it with AGG at a given scale within a max_size limit, and return a demultiplied rgba8 mapnik.Image; strict mode turns parser messages into errors.",
      "tags": [
        "napi-binding",
        "async-worker",
        "svg-rasterization",
        "factory"
      ],
      "complexity": "complex",
      "languageNotes": "The SVG parse and AGG render pipeline (svg_path_adapter, svg_converter, renderer_agg on a premultiplied rgba32 pixel format) appears three times: in both workers and in from_svg_sync_impl."
    },
    {
      "id": "class:src/mapnik_image_from_svg.cpp:AsyncFromSVG",
      "type": "class",
      "name": "AsyncFromSVG",
      "filePath": "src/mapnik_image_from_svg.cpp",
      "lineRange": [
        22,
        139
      ],
      "summary": "AsyncWorker for Image.fromSVG that parses an SVG file by name and rasterizes it into an image_any with the given scale, max_size, and strict settings.",
      "tags": [
        "async-worker",
        "svg-rasterization",
        "file-io"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_from_svg.cpp:AsyncFromSVG::Execute",
      "type": "function",
      "name": "AsyncFromSVG::Execute",
      "filePath": "src/mapnik_image_from_svg.cpp",
      "lineRange": [
        35,
        120
      ],
      "summary": "Parses the SVG file, fails in strict mode when the parser reports errors, rejects a zero or too large scaled size, renders the paths centered and scaled with the AGG SVG renderer into a premultiplied rgba8 image, and demultiplies the result.",
      "tags": [
        "async-worker",
        "svg-rasterization",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_from_svg.cpp:AsyncFromSVG::GetResult",
      "type": "function",
      "name": "AsyncFromSVG::GetResult",
      "filePath": "src/mapnik_image_from_svg.cpp",
      "lineRange": [
        122,
        131
      ],
      "summary": "Gives the image rasterized from an SVG file back to the fromSVG callback as (null, mapnik.Image).",
      "tags": [
        "async-worker",
        "callback-result",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_image_from_svg.cpp:AsyncFromSVGBytes",
      "type": "class",
      "name": "AsyncFromSVGBytes",
      "filePath": "src/mapnik_image_from_svg.cpp",
      "lineRange": [
        141,
        260
      ],
      "summary": "AsyncWorker for Image.fromSVGBytes that holds a persistent reference to the SVG Buffer and rasterizes its contents with the same scale, max_size, and strict rules as the file-based worker.",
      "tags": [
        "async-worker",
        "svg-rasterization",
        "buffer"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_from_svg.cpp:AsyncFromSVGBytes::AsyncFromSVGBytes",
      "type": "function",
      "name": "AsyncFromSVGBytes::AsyncFromSVGBytes",
      "filePath": "src/mapnik_image_from_svg.cpp",
      "lineRange": [
        144,
        154
      ],
      "summary": "Constructor that pins the SVG Buffer with a persistent reference, caches its data pointer and length, and stores the scale, max_size, and strict values.",
      "tags": [
        "constructor",
        "async-worker",
        "buffer"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_from_svg.cpp:AsyncFromSVGBytes::Execute",
      "type": "function",
      "name": "AsyncFromSVGBytes::Execute",
      "filePath": "src/mapnik_image_from_svg.cpp",
      "lineRange": [
        156,
        239
      ],
      "summary": "Copies the Buffer into a std::string, parses it with svg_parser::parse_from_string, applies the strict, zero-size, and max_size checks, and rasterizes it with AGG into a demultiplied rgba8 image.",
      "tags": [
        "async-worker",
        "svg-rasterization",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_from_svg.cpp:AsyncFromSVGBytes::GetResult",
      "type": "function",
      "name": "AsyncFromSVGBytes::GetResult",
      "filePath": "src/mapnik_image_from_svg.cpp",
      "lineRange": [
        241,
        250
      ],
      "summary": "Returns the image rasterized from SVG bytes to the fromSVGBytes callback as a new mapnik.Image wrapper.",
      "tags": [
        "async-worker",
        "callback-result",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_from_svg.cpp:from_svg_sync_impl",
      "type": "function",
      "name": "from_svg_sync_impl",
      "filePath": "src/mapnik_image_from_svg.cpp",
      "lineRange": [
        264,
        445
      ],
      "summary": "Shared synchronous SVG loader behind fromSVGSync, fromSVGBytesSync, and the short form of fromSVGBytes: it validates a filename or Buffer and the scale, max_size, and strict options, parses and rasterizes the SVG with AGG into a size rounded to whole pixels, and returns a new mapnik.Image.",
      "tags": [
        "svg-rasterization",
        "factory",
        "validation"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/mapnik_image_from_svg.cpp:fromSVG",
      "type": "function",
      "name": "fromSVG",
      "filePath": "src/mapnik_image_from_svg.cpp",
      "lineRange": [
        523,
        601
      ],
      "summary": "Static Image.fromSVG(filename, [options], callback): it uses fromSVGSync for fewer than two arguments, validates the filename, the callback, and the scale, max_size, and strict options, and queues AsyncFromSVG.",
      "tags": [
        "napi-binding",
        "async-worker",
        "factory",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_from_svg.cpp:fromSVGBytes",
      "type": "function",
      "name": "fromSVGBytes",
      "filePath": "src/mapnik_image_from_svg.cpp",
      "lineRange": [
        627,
        714
      ],
      "summary": "Static Image.fromSVGBytes(buffer, [options], callback): it uses the synchronous loader for fewer than two arguments, validates the Buffer, the callback, and the options, and queues AsyncFromSVGBytes.",
      "tags": [
        "napi-binding",
        "async-worker",
        "factory",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_image_multiply.cpp",
      "type": "file",
      "name": "mapnik_image_multiply.cpp",
      "filePath": "src/mapnik_image_multiply.cpp",
      "summary": "Implements Image.premultiplySync, premultiply, demultiplySync, and demultiply, which convert the alpha representation of the image with mapnik premultiply_alpha or demultiply_alpha and use the AsyncMultiply<bool> template worker for the callback forms.",
      "tags": [
        "napi-binding",
        "async-worker",
        "alpha-compositing",
        "raster-image"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_image_multiply.cpp:AsyncMultiply",
      "type": "class",
      "name": "AsyncMultiply",
      "filePath": "src/mapnik_image_multiply.cpp",
      "lineRange": [
        10,
        39
      ],
      "summary": "AsyncWorker template with a bool parameter that premultiplies (true) or demultiplies (false) the image alpha on the thread pool; the AsyncPremultiply and AsyncDemultiply aliases select each mode.",
      "tags": [
        "async-worker",
        "template",
        "alpha-compositing"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_multiply.cpp:AsyncMultiply::GetResult",
      "type": "function",
      "name": "AsyncMultiply::GetResult",
      "filePath": "src/mapnik_image_multiply.cpp",
      "lineRange": [
        28,
        37
      ],
      "summary": "Returns (null, image) to the premultiply or demultiply callback with a new mapnik.Image that wraps the converted image_ptr.",
      "tags": [
        "async-worker",
        "callback-result",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_multiply.cpp:premultiply",
      "type": "function",
      "name": "premultiply",
      "filePath": "src/mapnik_image_multiply.cpp",
      "lineRange": [
        79,
        96
      ],
      "summary": "Runs premultiplySync when there are no arguments; otherwise it requires a last-argument callback and queues an AsyncPremultiply worker.",
      "tags": [
        "napi-binding",
        "async-worker",
        "alpha-compositing"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_multiply.cpp:demultiply",
      "type": "function",
      "name": "demultiply",
      "filePath": "src/mapnik_image_multiply.cpp",
      "lineRange": [
        123,
        140
      ],
      "summary": "Runs demultiplySync when there are no arguments; otherwise it requires a last-argument callback and queues an AsyncDemultiply worker that reverses premultiplied alpha.",
      "tags": [
        "napi-binding",
        "async-worker",
        "alpha-compositing"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_image_open.cpp",
      "type": "file",
      "name": "mapnik_image_open.cpp",
      "filePath": "src/mapnik_image_open.cpp",
      "summary": "Implements the static Image.openSync and Image.open factories, which detect the image type from the file name extension, read the file with a mapnik image_reader, and mark images without alpha as premultiplied.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-decoding",
        "file-io"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_image_open.cpp:AsyncOpen",
      "type": "class",
      "name": "AsyncOpen",
      "filePath": "src/mapnik_image_open.cpp",
      "lineRange": [
        11,
        58
      ],
      "summary": "AsyncWorker that loads an image file by path on the thread pool and returns it as a mapnik.Image.",
      "tags": [
        "async-worker",
        "file-io",
        "image-decoding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_open.cpp:AsyncOpen::Execute",
      "type": "function",
      "name": "AsyncOpen::Execute",
      "filePath": "src/mapnik_image_open.cpp",
      "lineRange": [
        18,
        43
      ],
      "summary": "Gets the image type from the file name, creates a mapnik image_reader, reads the whole image, and marks it premultiplied when the source has no alpha; it reports errors for an unknown type or a missing reader.",
      "tags": [
        "async-worker",
        "image-decoding",
        "file-io"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_open.cpp:AsyncOpen::GetResult",
      "type": "function",
      "name": "AsyncOpen::GetResult",
      "filePath": "src/mapnik_image_open.cpp",
      "lineRange": [
        44,
        53
      ],
      "summary": "Returns (null, image) to the open callback with the image loaded from the file wrapped in a new mapnik.Image.",
      "tags": [
        "async-worker",
        "callback-result",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_open.cpp:openSync",
      "type": "function",
      "name": "openSync",
      "filePath": "src/mapnik_image_open.cpp",
      "lineRange": [
        73,
        115
      ],
      "summary": "Synchronously opens an image file by path, uses the file extension to choose a mapnik image_reader, and returns a new mapnik.Image or throws 'Unsupported image format'.",
      "tags": [
        "napi-binding",
        "image-decoding",
        "file-io"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_open.cpp:open",
      "type": "function",
      "name": "open",
      "filePath": "src/mapnik_image_open.cpp",
      "lineRange": [
        131,
        164
      ],
      "summary": "Static Image.open(path, callback): it calls openSync for a single argument, validates the path string and the callback, and queues AsyncOpen.",
      "tags": [
        "napi-binding",
        "async-worker",
        "file-io"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_image_resize.cpp",
      "type": "file",
      "name": "mapnik_image_resize.cpp",
      "filePath": "src/mapnik_image_resize.cpp",
      "summary": "Implements Image.resize and Image.resizeSync, which create a new image of the requested width and height and scale a source window (offset_x, offset_y, offset_width, offset_height) into it with mapnik::scale_image_agg, a scaling_method, and a filter_factor; resize_visitor dispatches on the pixel type.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-scaling",
        "visitor-pattern"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:src/mapnik_image_resize.cpp:resize_visitor",
      "type": "class",
      "name": "resize_visitor",
      "filePath": "src/mapnik_image_resize.cpp",
      "lineRange": [
        8,
        111
      ],
      "summary": "Anonymous-namespace visitor over the output image_any variant that scales the source into each supported pixel type with mapnik::scale_image_agg and throws for null, gray8s, gray16s, gray32, gray32s, gray64, gray64s, and gray64f rasters.",
      "tags": [
        "visitor-pattern",
        "image-scaling",
        "template"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_resize.cpp:resize_visitor::resize_visitor",
      "type": "function",
      "name": "resize_visitor::resize_visitor",
      "filePath": "src/mapnik_image_resize.cpp",
      "lineRange": [
        11,
        23
      ],
      "summary": "Constructor that stores a reference to the source image_any plus the scaling method, the x/y ratios, the filter factor, and the x/y offsets (kept in int fields, so fractional offsets are truncated).",
      "tags": [
        "constructor",
        "visitor-pattern",
        "image-scaling"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_resize.cpp:resize_visitor::operator()(image_rgba8&)",
      "type": "function",
      "name": "resize_visitor::operator()(image_rgba8&)",
      "filePath": "src/mapnik_image_resize.cpp",
      "lineRange": [
        25,
        46
      ],
      "summary": "Overload for an rgba8 output that premultiplies a non-premultiplied source in place before scale_image_agg and demultiplies the output afterward, so the scaling filter works on premultiplied color.",
      "tags": [
        "visitor-pattern",
        "image-scaling",
        "alpha-compositing"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_resize.cpp:resize_visitor::operator()(T&)",
      "type": "function",
      "name": "resize_visitor::operator()(T&)",
      "filePath": "src/mapnik_image_resize.cpp",
      "lineRange": [
        48,
        60
      ],
      "summary": "Generic overload for the other supported pixel types that calls scale_image_agg directly with the source of the same type, the ratios, the offsets, and the filter factor.",
      "tags": [
        "visitor-pattern",
        "image-scaling",
        "template"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_image_resize.cpp:AsyncResize",
      "type": "class",
      "name": "AsyncResize",
      "filePath": "src/mapnik_image_resize.cpp",
      "lineRange": [
        115,
        197
      ],
      "summary": "AsyncWorker for Image.resize that holds the input image, the scaling method, the target width and height, the source window offsets and size, and the filter factor, and produces a new resized image.",
      "tags": [
        "async-worker",
        "image-scaling",
        "thread-pool"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_resize.cpp:AsyncResize::AsyncResize",
      "type": "function",
      "name": "AsyncResize::AsyncResize",
      "filePath": "src/mapnik_image_resize.cpp",
      "lineRange": [
        118,
        133
      ],
      "summary": "Constructor that captures the source image_ptr, the scaling_method_e, the target size, the offset_x, offset_y, offset_width, and offset_height source window, and the filter factor.",
      "tags": [
        "constructor",
        "async-worker",
        "image-scaling"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_resize.cpp:AsyncResize::Execute",
      "type": "function",
      "name": "AsyncResize::Execute",
      "filePath": "src/mapnik_image_resize.cpp",
      "lineRange": [
        135,
        173
      ],
      "summary": "Rejects null images, allocates an output image_any of the target size with the source dtype, offset, and scaling, computes the x/y ratios and corrected offsets from the source window, and applies resize_visitor.",
      "tags": [
        "async-worker",
        "image-scaling",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_resize.cpp:AsyncResize::GetResult",
      "type": "function",
      "name": "AsyncResize::GetResult",
      "filePath": "src/mapnik_image_resize.cpp",
      "lineRange": [
        175,
        184
      ],
      "summary": "Returns (null, image) to the resize callback with the new resized image wrapped as a mapnik.Image.",
      "tags": [
        "async-worker",
        "callback-result",
        "napi-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_resize.cpp:resize",
      "type": "function",
      "name": "resize",
      "filePath": "src/mapnik_image_resize.cpp",
      "lineRange": [
        225,
        387
      ],
      "summary": "Async Image.resize(width, height, [options], callback): it calls resizeSync when there is no callback, validates a positive width and height, offset_x, offset_y, offset_width, offset_height, scaling_method (up to SCALING_BLACKMAN), and filter_factor, and queues AsyncResize.",
      "tags": [
        "napi-binding",
        "async-worker",
        "validation",
        "image-scaling"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_resize.cpp:resizeSync",
      "type": "function",
      "name": "resizeSync",
      "filePath": "src/mapnik_image_resize.cpp",
      "lineRange": [
        411,
        604
      ],
      "summary": "Synchronous Image.resizeSync that applies the same argument checks as resize, rejects null images and a non-positive source window, runs resize_visitor into a new image, and returns that image as a mapnik.Image.",
      "tags": [
        "napi-binding",
        "validation",
        "image-scaling"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_image_save.cpp",
      "type": "file",
      "name": "mapnik_image_save.cpp",
      "filePath": "src/mapnik_image_save.cpp",
      "summary": "Implements Image.saveSync and Image.save, which write the encoded image to a file path with mapnik::save_to_file, take the format from the second argument or guess it from the file extension, and use the AsyncSave worker for the callback form.",
      "tags": [
        "napi-binding",
        "async-worker",
        "file-io",
        "image-encoding"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_image_save.cpp:AsyncSave",
      "type": "class",
      "name": "AsyncSave",
      "filePath": "src/mapnik_image_save.cpp",
      "lineRange": [
        10,
        38
      ],
      "summary": "Anonymous-namespace AsyncWorker that writes the image to a file name in a given format with mapnik::save_to_file and reports only errors to the callback.",
      "tags": [
        "async-worker",
        "file-io",
        "image-encoding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_save.cpp:AsyncSave::Execute",
      "type": "function",
      "name": "AsyncSave::Execute",
      "filePath": "src/mapnik_image_save.cpp",
      "lineRange": [
        22,
        32
      ],
      "summary": "Calls mapnik::save_to_file with the stored file name and format on the worker thread and records an exception as the worker error.",
      "tags": [
        "async-worker",
        "file-io",
        "error-handling"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_save.cpp:saveSync",
      "type": "function",
      "name": "saveSync",
      "filePath": "src/mapnik_image_save.cpp",
      "lineRange": [
        53,
        93
      ],
      "summary": "Synchronously saves the image to a file, takes the format from the second argument or from mapnik::guess_type on the file extension, and throws for an unknown extension.",
      "tags": [
        "napi-binding",
        "file-io",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_save.cpp:save",
      "type": "function",
      "name": "save",
      "filePath": "src/mapnik_image_save.cpp",
      "lineRange": [
        111,
        153
      ],
      "summary": "Validates the file name, calls saveSync when the last argument is not a function, resolves the format from the arguments or the extension, and queues AsyncSave.",
      "tags": [
        "napi-binding",
        "async-worker",
        "file-io"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_image_solid.cpp",
      "type": "file",
      "name": "mapnik_image_solid.cpp",
      "filePath": "src/mapnik_image_solid.cpp",
      "summary": "Implements Image.isSolid and Image.isSolidSync, which report with mapnik::is_solid whether every pixel in the image has the same value; the async AsyncIsSolid worker also returns the value of pixel (0,0) when the image is solid.",
      "tags": [
        "napi-binding",
        "async-worker",
        "raster-image",
        "pixel-access"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_image_solid.cpp:AsyncIsSolid",
      "type": "class",
      "name": "AsyncIsSolid",
      "filePath": "src/mapnik_image_solid.cpp",
      "lineRange": [
        11,
        41
      ],
      "summary": "Anonymous-namespace AsyncWorker that checks with mapnik::is_solid whether all pixels of an image are equal and, when they are, adds the value of pixel (0,0) to the callback arguments.",
      "tags": [
        "async-worker",
        "pixel-access",
        "raster-image"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_solid.cpp:AsyncIsSolid::Execute",
      "type": "function",
      "name": "AsyncIsSolid::Execute",
      "filePath": "src/mapnik_image_solid.cpp",
      "lineRange": [
        20,
        30
      ],
      "summary": "Computes mapnik::is_solid for an image with positive width and height, or sets the error 'image does not have valid dimensions'.",
      "tags": [
        "async-worker",
        "validation",
        "pixel-access"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_solid.cpp:isSolid",
      "type": "function",
      "name": "isSolid",
      "filePath": "src/mapnik_image_solid.cpp",
      "lineRange": [
        58,
        76
      ],
      "summary": "Image.isSolid([callback]): it runs isSolidSync when there are no arguments, otherwise it validates the callback and queues AsyncIsSolid.",
      "tags": [
        "napi-binding",
        "async-worker",
        "pixel-access"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_solid.cpp:isSolidSync",
      "type": "function",
      "name": "isSolidSync",
      "filePath": "src/mapnik_image_solid.cpp",
      "lineRange": [
        92,
        102
      ],
      "summary": "Returns a boolean from mapnik::is_solid for an image with valid dimensions and throws a JS Error for an empty image.",
      "tags": [
        "napi-binding",
        "pixel-access",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_image_view.cpp",
      "type": "file",
      "name": "mapnik_image_view.cpp",
      "filePath": "src/mapnik_image_view.cpp",
      "summary": "Implements the mapnik.ImageView JavaScript class, a read-only rectangular window over a parent mapnik.Image that Image.view creates; it registers width, height, encodeSync, encode, saveSync, isSolid, isSolidSync, and getPixel and implements them on mapnik::image_view_any with local AsyncIsSolid and AsyncEncode workers.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-view",
        "image-encoding"
      ],
      "complexity": "complex",
      "languageNotes": "ImageView::encodeSync serializes *image_ (the full parent image), but the async AsyncEncode worker serializes *image_view_, so encodeSync and encode can return different bytes for a partial view."
    },
    {
      "id": "class:src/mapnik_image_view.cpp:AsyncIsSolid",
      "type": "class",
      "name": "AsyncIsSolid",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        15,
        45
      ],
      "summary": "AsyncWorker for ImageView.isSolid that tests whether all pixels in the view are equal and appends the pixel at (0,0) of the view to the callback result when they are.",
      "tags": [
        "async-worker",
        "image-view",
        "pixel-access"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_view.cpp:AsyncIsSolid::Execute",
      "type": "function",
      "name": "AsyncIsSolid::Execute",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        24,
        34
      ],
      "summary": "Runs mapnik::is_solid on the image_view_any when the view has positive dimensions, or fails with 'image_view does not have valid dimensions'.",
      "tags": [
        "async-worker",
        "image-view",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_view.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        50,
        68
      ],
      "summary": "Defines the JS ImageView class with width, height, encodeSync, encode, saveSync, isSolidSync, isSolid, and getPixel, keeps a persistent constructor reference, and adds ImageView to the exports.",
      "tags": [
        "napi-binding",
        "registration",
        "image-view"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_view.cpp:ImageView",
      "type": "function",
      "name": "ImageView",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        86,
        105
      ],
      "summary": "ImageView constructor that only accepts the internal (External image_ptr, x, y, w, h) call from Image.view, keeps the parent image alive, and creates the view with mapnik::create_view; a direct JS construction throws an Error.",
      "tags": [
        "constructor",
        "image-view",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_view.cpp:isSolid",
      "type": "function",
      "name": "isSolid",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        107,
        125
      ],
      "summary": "ImageView.isSolid([callback]): it calls isSolidSync when there are no arguments, otherwise it checks the callback and queues the view AsyncIsSolid worker.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-view"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_view.cpp:isSolidSync",
      "type": "function",
      "name": "isSolidSync",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        127,
        139
      ],
      "summary": "Returns whether every pixel in the view is equal through mapnik::is_solid, and throws a TypeError when the view has zero width or height.",
      "tags": [
        "napi-binding",
        "image-view",
        "pixel-access"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_view.cpp:getPixel",
      "type": "function",
      "name": "getPixel",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        141,
        206
      ],
      "summary": "Reads the pixel at (x, y) inside the view as a number through visitor_get_pixel<image_view_any>, or as a new mapnik.Color with options.get_color; coordinates outside the view return undefined.",
      "tags": [
        "pixel-access",
        "image-view",
        "color"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_image_view.cpp:encode_common_args_",
      "type": "function",
      "name": "encode_common_args_",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        218,
        259
      ],
      "summary": "Parses the optional format string and an options.palette that must be a mapnik.Palette for ImageView.encode and ImageView.encodeSync.",
      "tags": [
        "parsing",
        "validation",
        "image-view"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_image_view.cpp:AsyncEncode",
      "type": "class",
      "name": "AsyncEncode",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        263,
        316
      ],
      "summary": "AsyncWorker for ImageView.encode that serializes the view region with save_to_string in the requested format and with an optional palette.",
      "tags": [
        "async-worker",
        "image-view",
        "image-encoding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_view.cpp:AsyncEncode::Execute",
      "type": "function",
      "name": "AsyncEncode::Execute",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        274,
        287
      ],
      "summary": "Encodes the image_view_any (not the parent image) to a std::string, with the palette overload of save_to_string when a palette is given.",
      "tags": [
        "async-worker",
        "image-view",
        "image-encoding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_view.cpp:AsyncEncode::GetResult",
      "type": "function",
      "name": "AsyncEncode::GetResult",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        288,
        309
      ],
      "summary": "Passes the encoded view bytes to the ImageView.encode callback as a Napi::Buffer that takes ownership of the string and keeps the V8 external-memory count balanced.",
      "tags": [
        "async-worker",
        "buffer",
        "memory-management"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_view.cpp:encodeSync",
      "type": "function",
      "name": "encodeSync",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        320,
        355
      ],
      "summary": "Synchronously encodes to a Buffer with save_to_string in the chosen format and palette; it passes the parent image_ instead of the view, so it returns the encoded full parent image.",
      "tags": [
        "napi-binding",
        "image-encoding",
        "image-view"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_view.cpp:encode",
      "type": "function",
      "name": "encode",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        357,
        375
      ],
      "summary": "Parses the format and palette, requires a last-argument callback, and queues the view AsyncEncode worker, which encodes only the view region.",
      "tags": [
        "napi-binding",
        "async-worker",
        "image-view"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_image_view.cpp:saveSync",
      "type": "function",
      "name": "saveSync",
      "filePath": "src/mapnik_image_view.cpp",
      "lineRange": [
        377,
        417
      ],
      "summary": "Saves the view region to a file with mapnik::save_to_file, with the explicit format argument or the type that mapnik::guess_type gets from the file extension.",
      "tags": [
        "napi-binding",
        "file-io",
        "image-view"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_image_view.hpp",
      "type": "file",
      "name": "mapnik_image_view.hpp",
      "filePath": "src/mapnik_image_view.hpp",
      "summary": "Declares the ImageView Napi::ObjectWrap class and the image_view_ptr alias (shared_ptr to mapnik::image_view_any); the class also keeps an image_ptr to the parent image to keep it alive and lists the encode, save, size, isSolid, and getPixel methods.",
      "tags": [
        "type-definition",
        "header",
        "napi-binding",
        "image-view"
      ],
      "complexity": "simple",
      "languageNotes": "The header uses image_ptr and palette_ptr without an include of mapnik_image.hpp or mapnik_palette.hpp, so it compiles only when those headers are included before it."
    },
    {
      "id": "class:src/mapnik_image_view.hpp:ImageView",
      "type": "class",
      "name": "ImageView",
      "filePath": "src/mapnik_image_view.hpp",
      "lineRange": [
        16,
        40
      ],
      "summary": "Napi::ObjectWrap class that JavaScript sees as mapnik.ImageView; it stores the image_view_ptr of the window and the parent image_ptr, and Image is a friend so Image.view can use its constructor reference.",
      "tags": [
        "napi-binding",
        "data-model",
        "image-view"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_palette.cpp",
      "type": "file",
      "name": "mapnik_palette.cpp",
      "filePath": "src/mapnik_palette.cpp",
      "summary": "Implements the mapnik.Palette JavaScript class, which builds a mapnik::rgba_palette from a Buffer in rgba, rgb, or act format and exposes toString (a '[Palette N colors #rrggbbaa ...]' summary) and toBuffer (raw RGBA bytes).",
      "tags": [
        "napi-binding",
        "data-model",
        "color-palette",
        "serialization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_palette.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_palette.cpp",
      "lineRange": [
        10,
        22
      ],
      "summary": "Defines the JS Palette class with the toBuffer and toString methods, keeps the constructor reference, and adds Palette to the module exports.",
      "tags": [
        "napi-binding",
        "registration",
        "color-palette"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_palette.cpp:Palette",
      "type": "function",
      "name": "Palette",
      "filePath": "src/mapnik_palette.cpp",
      "lineRange": [
        24,
        72
      ],
      "summary": "Palette constructor that reads a palette Buffer and an optional type string (rgba, rgb, or act), throws for an empty buffer or an unknown type, and builds a shared mapnik::rgba_palette.",
      "tags": [
        "constructor",
        "validation",
        "color-palette"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_palette.cpp:toString",
      "type": "function",
      "name": "toString",
      "filePath": "src/mapnik_palette.cpp",
      "lineRange": [
        74,
        105
      ],
      "summary": "Formats the palette as '[Palette N colors #rrggbb[aa] ...]' and appends the alpha byte for entries that the alpha table covers, with a MAPNIK_VERSION switch between alpha_table() and alphaTable().",
      "tags": [
        "serialization",
        "color-palette",
        "debugging"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_palette.cpp:toBuffer",
      "type": "function",
      "name": "toBuffer",
      "filePath": "src/mapnik_palette.cpp",
      "lineRange": [
        107,
        127
      ],
      "summary": "Serializes the palette into a Buffer of 4 bytes per color (r, g, b, and alpha from the alpha table or 0xFF) through a 1024-byte stack array for up to 256 colors.",
      "tags": [
        "serialization",
        "color-palette",
        "buffer"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_palette.hpp",
      "type": "file",
      "name": "mapnik_palette.hpp",
      "filePath": "src/mapnik_palette.hpp",
      "summary": "Declares the Palette Napi::ObjectWrap class and the palette_ptr alias (shared_ptr to mapnik::rgba_palette) that Image, ImageView, Map, and blend use for paletted PNG encoding.",
      "tags": [
        "type-definition",
        "header",
        "napi-binding",
        "color-palette"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_palette.hpp:Palette",
      "type": "class",
      "name": "Palette",
      "filePath": "src/mapnik_palette.hpp",
      "lineRange": [
        9,
        28
      ],
      "summary": "Napi::ObjectWrap class that JavaScript sees as mapnik.Palette; it owns a palette_ptr, offers toString and toBuffer, and has an inline palette() accessor that blend uses to read the native palette.",
      "tags": [
        "napi-binding",
        "data-model",
        "color-palette"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/pixel_utils.hpp",
      "type": "file",
      "name": "pixel_utils.hpp",
      "filePath": "src/pixel_utils.hpp",
      "summary": "Provides pixel visitor templates in namespace detail: visitor_get_pixel reads the pixel at (x, y) from any mapnik image or image view variant and returns it as a JS Number, and visitor_set_pixel writes a JS Number into a pixel of an image variant.",
      "tags": [
        "utility",
        "visitor-pattern",
        "pixel-access",
        "header"
      ],
      "complexity": "moderate",
      "languageNotes": "A traits::null_image specialization maps image_any to image_null and image_view_any to image_view_null, so one visitor template can handle the null alternative of both variant types."
    },
    {
      "id": "class:src/pixel_utils.hpp:visitor_get_pixel",
      "type": "class",
      "name": "visitor_get_pixel",
      "filePath": "src/pixel_utils.hpp",
      "lineRange": [
        27,
        56
      ],
      "summary": "Visitor template over image_any or image_view_any that returns the pixel value at (x, y) as a Napi::Number for each typed image and undefined for the null image type that traits::null_image selects.",
      "tags": [
        "visitor-pattern",
        "pixel-access",
        "template"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/pixel_utils.hpp:visitor_set_pixel",
      "type": "class",
      "name": "visitor_set_pixel",
      "filePath": "src/pixel_utils.hpp",
      "lineRange": [
        58,
        77
      ],
      "summary": "Visitor that writes a JS Number value (as a double) into pixel (x, y) of each non-null image_any alternative with mapnik::set_pixel and does nothing for image_null.",
      "tags": [
        "visitor-pattern",
        "pixel-access",
        "image-mutation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/tint.hpp",
      "type": "file",
      "name": "tint.hpp",
      "filePath": "src/tint.hpp",
      "summary": "Header-only color math for blend tinting: static inline rgb_to_hsl, hueToRGB, and hsl_to_rgb conversions, plus the Tinter struct that stores [min, max] ranges for hue, saturation, lightness, and alpha and reports whether they are identity ranges.",
      "tags": [
        "utility",
        "color-conversion",
        "header",
        "image-compositing"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/tint.hpp:rgb_to_hsl",
      "type": "function",
      "name": "rgb_to_hsl",
      "filePath": "src/tint.hpp",
      "lineRange": [
        6,
        29
      ],
      "summary": "Converts 0-255 red, green, and blue integers to hue, saturation, and lightness fractions in 0-1 and writes them through output references.",
      "tags": [
        "color-conversion",
        "pixel-math",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/tint.hpp:hueToRGB",
      "type": "function",
      "name": "hueToRGB",
      "filePath": "src/tint.hpp",
      "lineRange": [
        31,
        40
      ],
      "summary": "HSL helper that maps a hue position and the m1/m2 intermediate values to one RGB channel fraction, and wraps the hue into the 0-1 range.",
      "tags": [
        "color-conversion",
        "pixel-math",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/tint.hpp:hsl_to_rgb",
      "type": "function",
      "name": "hsl_to_rgb",
      "filePath": "src/tint.hpp",
      "lineRange": [
        42,
        61
      ],
      "summary": "Converts hue, saturation, and lightness fractions back to 0-255 red, green, and blue integers; it returns gray when saturation is zero and otherwise samples hueToRGB at h+1/3, h, and h-1/3.",
      "tags": [
        "color-conversion",
        "pixel-math",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/tint.hpp:Tinter",
      "type": "class",
      "name": "Tinter",
      "filePath": "src/tint.hpp",
      "lineRange": [
        63,
        98
      ],
      "summary": "Struct with the h0/h1, s0/s1, l0/l1, and a0/a1 range endpoints (default 0 and 1) that blend uses to remap layer colors, plus is_identity and is_alpha_identity checks that let blend skip the tint work.",
      "tags": [
        "data-model",
        "tinting",
        "struct"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_cairo_surface.cpp",
      "type": "file",
      "name": "mapnik_cairo_surface.cpp",
      "filePath": "src/mapnik_cairo_surface.cpp",
      "summary": "Implements the N-API CairoSurface class: it registers the JS constructor with width, height, and getData methods, validates the (format, width, height) constructor arguments, and returns the captured Cairo or SVG output as a string.",
      "tags": [
        "n-api-binding",
        "cairo",
        "rendering-surface",
        "node-mapnik"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_cairo_surface.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_cairo_surface.cpp",
      "lineRange": [
        6,
        19
      ],
      "summary": "Defines the JavaScript CairoSurface class with width, height, and getData instance methods, stores a persistent constructor reference, and sets the class on the module exports object.",
      "tags": [
        "initializer",
        "class-registration",
        "n-api-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_cairo_surface.cpp:CairoSurface",
      "type": "function",
      "name": "CairoSurface",
      "filePath": "src/mapnik_cairo_surface.cpp",
      "lineRange": [
        22,
        46
      ],
      "summary": "CairoSurface constructor that requires exactly three JS arguments (format string, integer width, integer height) and throws a TypeError or Error when the count or a type is wrong.",
      "tags": [
        "constructor",
        "validation",
        "n-api-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_cairo_surface.hpp",
      "type": "file",
      "name": "mapnik_cairo_surface.hpp",
      "filePath": "src/mapnik_cairo_surface.hpp",
      "summary": "Declares the CairoSurface N-API wrapper that holds a format, width, height, and std::stringstream buffer, plus a static Cairo write callback that appends rendered bytes to that stream; a stub compiles when HAVE_CAIRO is not defined.",
      "tags": [
        "header",
        "n-api-binding",
        "cairo",
        "type-definition"
      ],
      "complexity": "simple",
      "languageNotes": "Uses a preprocessor fallback (#define cairo_status_t int) so that the header still compiles in builds without Cairo."
    },
    {
      "id": "class:src/mapnik_cairo_surface.hpp:CairoSurface",
      "type": "class",
      "name": "CairoSurface",
      "filePath": "src/mapnik_cairo_surface.hpp",
      "lineRange": [
        13,
        62
      ],
      "summary": "Napi::ObjectWrap class for an in-memory vector output surface; VectorTile.render writes Cairo or native SVG output into its stringstream, and flush/set_data copy the bytes into the data string that getData returns.",
      "tags": [
        "class",
        "n-api-binding",
        "rendering-surface",
        "cairo"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_cairo_surface.hpp:write_callback",
      "type": "function",
      "name": "write_callback",
      "filePath": "src/mapnik_cairo_surface.hpp",
      "lineRange": [
        24,
        45
      ],
      "summary": "Static cairo_write_func_t callback that casts the closure pointer back to a std::stringstream and appends each chunk of Cairo output bytes; it returns CAIRO_STATUS_WRITE_ERROR for a null stream or when Cairo support is absent.",
      "tags": [
        "callback",
        "cairo",
        "stream-io"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_grid.hpp",
      "type": "file",
      "name": "mapnik_grid.hpp",
      "filePath": "src/mapnik_grid.hpp",
      "summary": "Declares the Grid N-API wrapper around a shared mapnik::grid (UTF grid hit buffer), compiled only when GRID_RENDERER is defined, with encode, addField, fields, view, painted, clear, and key accessor methods.",
      "tags": [
        "header",
        "n-api-binding",
        "utfgrid",
        "type-definition"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_grid.hpp:Grid",
      "type": "class",
      "name": "Grid",
      "filePath": "src/mapnik_grid.hpp",
      "lineRange": [
        13,
        38
      ],
      "summary": "Napi::ObjectWrap class that exposes a mapnik::grid through grid_ptr to JavaScript; Map.render and VectorTile.render accept it as a render target and read its field names and join key to fill UTF grid data.",
      "tags": [
        "class",
        "n-api-binding",
        "utfgrid",
        "interactivity"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_map.hpp",
      "type": "file",
      "name": "mapnik_map.hpp",
      "filePath": "src/mapnik_map.hpp",
      "summary": "Declares the Map N-API wrapper around std::shared_ptr<mapnik::Map>, with the JS methods for stylesheet loading, sync and async rendering, layer management, point queries, and property accessors, plus an atomic in-use flag.",
      "tags": [
        "header",
        "n-api-binding",
        "map",
        "type-definition"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_map.hpp:Map",
      "type": "class",
      "name": "Map",
      "filePath": "src/mapnik_map.hpp",
      "lineRange": [
        18,
        92
      ],
      "summary": "Napi::ObjectWrap class for a Mapnik map; acquire() and release() use an atomic flag so that only one render runs on a Map at a time, and the class grants friend access to AsyncMapLoad, AsyncMapFromString, and VectorTile.",
      "tags": [
        "class",
        "n-api-binding",
        "concurrency-guard",
        "map"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_map_from_string.cpp",
      "type": "file",
      "name": "mapnik_map_from_string.cpp",
      "filePath": "src/mapnik_map_from_string.cpp",
      "summary": "Implements Map.fromStringSync and Map.fromString, which parse a Mapnik XML stylesheet given as a string (with optional strict and base path options) into the wrapped mapnik::Map; the async form runs on a worker thread.",
      "tags": [
        "n-api-binding",
        "stylesheet-loading",
        "async-worker",
        "map"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_map_from_string.cpp:AsyncMapFromString",
      "type": "class",
      "name": "AsyncMapFromString",
      "filePath": "src/mapnik_map_from_string.cpp",
      "lineRange": [
        8,
        47
      ],
      "summary": "Napi::AsyncWorker that holds a map_ptr, the stylesheet XML string, the base path, and the strict flag, loads the stylesheet off the main thread, and then calls back with a new Map wrapper.",
      "tags": [
        "async-worker",
        "stylesheet-loading",
        "n-api"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map_from_string.cpp:AsyncMapFromString.Execute",
      "type": "function",
      "name": "AsyncMapFromString.Execute",
      "filePath": "src/mapnik_map_from_string.cpp",
      "lineRange": [
        19,
        29
      ],
      "summary": "Worker-thread step that calls mapnik::load_map_string on the shared map and converts any std::exception into the worker error that the JS callback receives.",
      "tags": [
        "async-worker",
        "error-handling",
        "stylesheet-loading"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map_from_string.cpp:AsyncMapFromString.GetResult",
      "type": "function",
      "name": "AsyncMapFromString.GetResult",
      "filePath": "src/mapnik_map_from_string.cpp",
      "lineRange": [
        31,
        40
      ],
      "summary": "Builds the fromString callback arguments (null, Map) by wrapping the loaded map_ptr in a Napi::External and passing it to the Map constructor.",
      "tags": [
        "async-worker",
        "result-marshalling",
        "n-api"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map_from_string.cpp:fromStringSync",
      "type": "function",
      "name": "fromStringSync",
      "filePath": "src/mapnik_map_from_string.cpp",
      "lineRange": [
        65,
        126
      ],
      "summary": "Synchronously validates a stylesheet string and an optional {strict, base} options object, then calls mapnik::load_map_string and rethrows Mapnik errors as JS exceptions.",
      "tags": [
        "api-handler",
        "sync",
        "validation",
        "stylesheet-loading"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_map_from_string.cpp:fromString",
      "type": "function",
      "name": "fromString",
      "filePath": "src/mapnik_map_from_string.cpp",
      "lineRange": [
        145,
        205
      ],
      "summary": "Async Map.fromString that requires a stylesheet string, an options object, and a trailing callback, validates the strict and base options, and queues an AsyncMapFromString worker.",
      "tags": [
        "api-handler",
        "async",
        "validation",
        "stylesheet-loading"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_map_load.cpp",
      "type": "file",
      "name": "mapnik_map_load.cpp",
      "filePath": "src/mapnik_map_load.cpp",
      "summary": "Implements Map.load and Map.loadSync, which read a Mapnik XML stylesheet from a file path (with optional strict and base options) into the wrapped mapnik::Map; the async form runs through a Napi::AsyncWorker.",
      "tags": [
        "n-api-binding",
        "stylesheet-loading",
        "async-worker",
        "map"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_map_load.cpp:AsyncMapLoad",
      "type": "class",
      "name": "AsyncMapLoad",
      "filePath": "src/mapnik_map_load.cpp",
      "lineRange": [
        8,
        47
      ],
      "summary": "Napi::AsyncWorker that stores a map_ptr, the stylesheet file path, the base path, and the strict flag so that Map.load can parse the XML file on a background thread.",
      "tags": [
        "async-worker",
        "stylesheet-loading",
        "file-io"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map_load.cpp:AsyncMapLoad.Execute",
      "type": "function",
      "name": "AsyncMapLoad.Execute",
      "filePath": "src/mapnik_map_load.cpp",
      "lineRange": [
        19,
        29
      ],
      "summary": "Runs mapnik::load_map with the stored stylesheet path on the worker thread and records the message of any thrown exception with SetError.",
      "tags": [
        "async-worker",
        "error-handling",
        "file-io"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map_load.cpp:AsyncMapLoad.GetResult",
      "type": "function",
      "name": "AsyncMapLoad.GetResult",
      "filePath": "src/mapnik_map_load.cpp",
      "lineRange": [
        31,
        40
      ],
      "summary": "Returns (null, Map) to the load callback: it wraps the shared map pointer in an External and constructs a new JS Map object from it.",
      "tags": [
        "async-worker",
        "result-marshalling",
        "n-api"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map_load.cpp:load",
      "type": "function",
      "name": "load",
      "filePath": "src/mapnik_map_load.cpp",
      "lineRange": [
        63,
        125
      ],
      "summary": "Async Map.load that validates the stylesheet path string, the options object with strict and base keys, and the last-argument callback, then queues an AsyncMapLoad worker and returns undefined.",
      "tags": [
        "api-handler",
        "async",
        "validation",
        "stylesheet-loading"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_map_load.cpp:loadSync",
      "type": "function",
      "name": "loadSync",
      "filePath": "src/mapnik_map_load.cpp",
      "lineRange": [
        140,
        201
      ],
      "summary": "Loads a stylesheet file into the map on the calling thread: it accepts a path plus at most one options object, validates strict and base, and throws a JS Error when mapnik::load_map fails.",
      "tags": [
        "api-handler",
        "sync",
        "validation",
        "stylesheet-loading"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_map_render.cpp",
      "type": "file",
      "name": "mapnik_map_render.cpp",
      "filePath": "src/mapnik_map_render.cpp",
      "summary": "Implements Map.render, renderSync, renderFile, and renderFileSync: it parses render options, guards the Map with acquire()/release(), and renders to a mapnik.Image with AGG, to a UTF Grid, to a vector tile through the vector_tile_impl processor, or to an image, PDF, or SVG file.",
      "tags": [
        "n-api-binding",
        "rendering",
        "async-worker",
        "map",
        "tile-generation"
      ],
      "complexity": "complex",
      "languageNotes": "Uses std::launch values from <future> as a threading-mode option and a variant visitor (agg_renderer_visitor) that renders only image_rgba8. The non-Cairo branch of renderFileSync references an undeclared `m`, so the file compiles only when HAVE_CAIRO is defined."
    },
    {
      "id": "class:src/mapnik_map_render.cpp:agg_renderer_visitor",
      "type": "class",
      "name": "agg_renderer_visitor",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        31,
        68
      ],
      "summary": "Image variant visitor that renders the map with mapnik::agg_renderer into an image_rgba8 with the stored request, variables, scale factor, offsets, and scale denominator, and throws std::runtime_error for any other image type.",
      "tags": [
        "visitor",
        "rendering",
        "agg"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_map_render.cpp:AsyncRender",
      "type": "class",
      "name": "AsyncRender",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        70,
        90
      ],
      "summary": "Base Napi::AsyncWorker for map render jobs that keeps the Map pointer and, in OnWorkComplete, releases the Map in-use flag and drops the reference that the caller took before it queued the job.",
      "tags": [
        "async-worker",
        "base-class",
        "resource-management"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_map_render.cpp:AsyncRenderImage",
      "type": "class",
      "name": "AsyncRenderImage",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        92,
        147
      ],
      "summary": "AsyncRender subclass that renders the map into a JS mapnik.Image (image_ptr) with buffer size, scale, offsets, and variables, then returns a new Image wrapper to the callback.",
      "tags": [
        "async-worker",
        "rendering",
        "image"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_map_render.cpp:AsyncRenderImage.Execute",
      "type": "function",
      "name": "AsyncRenderImage.Execute",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        110,
        130
      ],
      "summary": "Builds a mapnik::request from the map width, height, and current extent, sets the buffer size, and applies agg_renderer_visitor to the target image on the worker thread.",
      "tags": [
        "rendering",
        "agg",
        "async-worker"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_map_render.cpp:AsyncRenderGrid",
      "type": "class",
      "name": "AsyncRenderGrid",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        149,
        215
      ],
      "summary": "AsyncRender subclass that renders one map layer into a mapnik::grid for UTF grid interactivity and returns a new Grid wrapper to the callback.",
      "tags": [
        "async-worker",
        "utfgrid",
        "rendering"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_map_render.cpp:AsyncRenderGrid.Execute",
      "type": "function",
      "name": "AsyncRenderGrid.Execute",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        165,
        199
      ],
      "summary": "Copies the grid field names, removes the internal __id__ key, adds the grid join key, and runs mapnik::grid_renderer on the selected layer index at the given scale denominator.",
      "tags": [
        "utfgrid",
        "rendering",
        "interactivity"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_map_render.cpp:AsyncRenderFile",
      "type": "class",
      "name": "AsyncRenderFile",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        217,
        292
      ],
      "summary": "AsyncRender subclass that writes the rendered map directly to an output file, with Cairo for pdf, svg, ps, ARGB32, and RGB24 formats or with AGG and an optional palette for raster formats.",
      "tags": [
        "async-worker",
        "file-output",
        "rendering"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_map_render.cpp:AsyncRenderFile.Execute",
      "type": "function",
      "name": "AsyncRenderFile.Execute",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        235,
        276
      ],
      "summary": "Calls mapnik::save_to_cairo_file when use_cairo is set (or reports that Cairo is not available); otherwise it renders into an image_rgba8 with agg_renderer and saves it with mapnik::save_to_file, with or without a palette.",
      "tags": [
        "rendering",
        "file-output",
        "cairo",
        "agg"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_map_render.cpp:AsyncRenderVectorTile",
      "type": "class",
      "name": "AsyncRenderVectorTile",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        294,
        379
      ],
      "summary": "AsyncRender subclass that carries the vector tile encoding options (area threshold, simplify distance, polygon union, fill type, threading mode, image format, scaling method, variables) and fills a merc_tile from the map datasources.",
      "tags": [
        "async-worker",
        "vector-tile",
        "encoding"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_map_render.cpp:AsyncRenderVectorTile.Execute",
      "type": "function",
      "name": "AsyncRenderVectorTile.Execute",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        332,
        354
      ],
      "summary": "Configures a mapnik::vector_tile_impl::processor with the stored simplification, polygon union, fill type, ring processing, scaling, image format, area threshold, and threading options, then calls update_tile on the target tile.",
      "tags": [
        "vector-tile",
        "encoding",
        "async-worker"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_map_render.cpp:render",
      "type": "function",
      "name": "render",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        444,
        887
      ],
      "summary": "Async Map.render entry point: it validates the renderable object and callback, parses buffer_size, scale, scale_denominator, and offsets, and dispatches to AsyncRenderImage, AsyncRenderGrid (layer and fields options), or AsyncRenderVectorTile (encoding options and variables); it throws when the Map is already in use.",
      "tags": [
        "api-handler",
        "rendering",
        "validation",
        "dispatcher"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/mapnik_map_render.cpp:renderSync",
      "type": "function",
      "name": "renderSync",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        890,
        1009
      ],
      "summary": "Renders the map synchronously with AGG into an image_rgba8 and returns an encoded Buffer in the requested format (default png), with optional palette, buffer_size, scale, and scale_denominator options.",
      "tags": [
        "api-handler",
        "sync",
        "rendering",
        "encoding"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_map_render.cpp:renderFile",
      "type": "function",
      "name": "renderFile",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        1011,
        1170
      ],
      "summary": "Validates an output path, an optional options object (format, palette, buffer_size, scale, scale_denominator, variables), and a callback, guesses the format from the file extension when it is empty, and queues an AsyncRenderFile worker.",
      "tags": [
        "api-handler",
        "async",
        "file-output",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_map_render.cpp:renderFileSync",
      "type": "function",
      "name": "renderFileSync",
      "filePath": "src/mapnik_map_render.cpp",
      "lineRange": [
        1172,
        1335
      ],
      "summary": "Synchronously renders the map to a file path: it sends vector formats (pdf, svg, ps, ARGB32, RGB24) to Cairo and raster formats to AGG plus mapnik::save_to_file, and releases the Map lock on success and on error.",
      "tags": [
        "api-handler",
        "sync",
        "file-output",
        "rendering"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_vector_tile.cpp",
      "type": "file",
      "name": "mapnik_vector_tile.cpp",
      "filePath": "src/mapnik_vector_tile.cpp",
      "summary": "Defines the VectorTile N-API class: Initialize binds about 40 JS methods and accessors that the mapnik_vector_tile_*.cpp files implement, the constructor validates z/x/y and the tile_size/buffer_size options, and the file implements the extent, layer-name, layer extraction, and x/y/z/tileSize/bufferSize accessors.",
      "tags": [
        "n-api-binding",
        "vector-tile",
        "entry-point",
        "class-registration",
        "accessor"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        43,
        95
      ],
      "summary": "Registers the JS VectorTile class with x, y, z, tileSize, and bufferSize accessors, the render, data, composite, query, GeoJSON, image, and clear methods, the Boost-gated geometry reports, and the static info method, then sets VectorTile on exports.",
      "tags": [
        "initializer",
        "class-registration",
        "n-api-binding"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:VectorTile",
      "type": "function",
      "name": "VectorTile",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        119,
        208
      ],
      "summary": "VectorTile constructor that either adopts a merc_tile_ptr passed as a Napi::External or validates non-negative integer z, x, y below 2^z and optional tile_size (default 4096) and buffer_size (default 128) before it creates a new merc_tile.",
      "tags": [
        "constructor",
        "validation",
        "vector-tile"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:extent",
      "type": "function",
      "name": "extent",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        222,
        233
      ],
      "summary": "Returns the Web Mercator extent of the tile as a JS array [minx, miny, maxx, maxy].",
      "tags": [
        "accessor",
        "geometry",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:bufferedExtent",
      "type": "function",
      "name": "bufferedExtent",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        247,
        258
      ],
      "summary": "Returns the tile extent grown by the buffer size as a [minx, miny, maxx, maxy] JS array, read from merc_tile::get_buffered_extent.",
      "tags": [
        "accessor",
        "geometry",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:names",
      "type": "function",
      "name": "names",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        273,
        285
      ],
      "summary": "Returns a JS array of every layer name that the tile stores, read from merc_tile::get_layers.",
      "tags": [
        "accessor",
        "layers",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:layer",
      "type": "function",
      "name": "layer",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        303,
        347
      ],
      "summary": "Extracts one named layer into a new VectorTile with the same x, y, z, size, and buffer: it scans the protobuf LAYERS messages, copies the matching layer buffer, and throws when the layer does not exist.",
      "tags": [
        "vector-tile",
        "protobuf",
        "layer-extraction"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:emptyLayers",
      "type": "function",
      "name": "emptyLayers",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        362,
        374
      ],
      "summary": "Returns a JS array of the layer names that the tile marks as empty, meaning layers that kept no features after processing.",
      "tags": [
        "accessor",
        "layers",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:paintedLayers",
      "type": "function",
      "name": "paintedLayers",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        390,
        402
      ],
      "summary": "Returns a JS array of the layer names that the tile marks as painted, meaning that the source dataset had features inside the tile.",
      "tags": [
        "accessor",
        "layers",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:set_tile_x",
      "type": "function",
      "name": "set_tile_x",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        467,
        484
      ],
      "summary": "Setter for vt.x that requires a number, rejects negative values with an Error, and then updates the tile column (x) on the merc_tile.",
      "tags": [
        "accessor",
        "validation",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:set_tile_y",
      "type": "function",
      "name": "set_tile_y",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        486,
        503
      ],
      "summary": "Setter for vt.y that throws on a non-number or a negative value and otherwise stores the new tile row (y) on the merc_tile.",
      "tags": [
        "accessor",
        "validation",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:set_tile_z",
      "type": "function",
      "name": "set_tile_z",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        505,
        522
      ],
      "summary": "Setter for vt.z that validates a non-negative number and writes the zoom level to the underlying merc_tile.",
      "tags": [
        "accessor",
        "validation",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:set_tile_size",
      "type": "function",
      "name": "set_tile_size",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        524,
        541
      ],
      "summary": "Setter for vt.tileSize that requires a number greater than zero and updates the tile grid size that encoding uses.",
      "tags": [
        "accessor",
        "validation",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile.cpp:set_buffer_size",
      "type": "function",
      "name": "set_buffer_size",
      "filePath": "src/mapnik_vector_tile.cpp",
      "lineRange": [
        543,
        560
      ],
      "summary": "Setter for vt.bufferSize that accepts a negative buffer only while tileSize + 2 * buffer stays positive, then updates the tile buffer size.",
      "tags": [
        "accessor",
        "validation",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_vector_tile.hpp",
      "type": "file",
      "name": "mapnik_vector_tile.hpp",
      "filePath": "src/mapnik_vector_tile.hpp",
      "summary": "Declares the VectorTile N-API class around a mapnik::vector_tile_impl::merc_tile_ptr, together with the query structs (query_lonlat, query_result, query_hit, queryMany_result) that VectorTile.query and queryMany return.",
      "tags": [
        "header",
        "n-api-binding",
        "vector-tile",
        "type-definition"
      ],
      "complexity": "moderate",
      "languageNotes": "The reportGeometry* declarations use the guard BOOST_VERSION >= 105800, but Initialize in mapnik_vector_tile.cpp registers them under BOOST_VERSION >= 105600, so the two guards disagree for Boost 1.56 and 1.57."
    },
    {
      "id": "class:src/mapnik_vector_tile.hpp:VectorTile",
      "type": "class",
      "name": "VectorTile",
      "filePath": "src/mapnik_vector_tile.hpp",
      "lineRange": [
        47,
        109
      ],
      "summary": "Napi::ObjectWrap class for a Mapbox Vector Tile at z/x/y; it declares the data I/O, render, composite, query, GeoJSON, image, clear, geometry report, and accessor methods that the mapnik_vector_tile_*.cpp files implement.",
      "tags": [
        "class",
        "n-api-binding",
        "vector-tile",
        "mvt"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_vector_tile.hpp:query_result",
      "type": "class",
      "name": "query_result",
      "filePath": "src/mapnik_vector_tile.hpp",
      "lineRange": [
        19,
        30
      ],
      "summary": "Struct for one query hit: the layer name, the distance, the x/y hit coordinates, and the matched mapnik::feature_ptr, with a constructor that sets the numbers to zero.",
      "tags": [
        "data-model",
        "query",
        "struct"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_vector_tile_clear.cpp",
      "type": "file",
      "name": "mapnik_vector_tile_clear.cpp",
      "filePath": "src/mapnik_vector_tile_clear.cpp",
      "summary": "Implements VectorTile.clearSync and VectorTile.clear, which remove all layer data from the tile; clear uses the sync path when it gets no arguments and otherwise runs an AsyncClear worker.",
      "tags": [
        "n-api-binding",
        "vector-tile",
        "async-worker"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_vector_tile_clear.cpp:AsyncClear",
      "type": "class",
      "name": "AsyncClear",
      "filePath": "src/mapnik_vector_tile_clear.cpp",
      "lineRange": [
        5,
        28
      ],
      "summary": "Anonymous-namespace Napi::AsyncWorker that holds a merc_tile_ptr and empties the tile on a background thread for VectorTile.clear.",
      "tags": [
        "async-worker",
        "vector-tile",
        "n-api"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_clear.cpp:AsyncClear.Execute",
      "type": "function",
      "name": "AsyncClear.Execute",
      "filePath": "src/mapnik_vector_tile_clear.cpp",
      "lineRange": [
        11,
        24
      ],
      "summary": "Calls merc_tile::clear on the worker thread and sets a worker error if that call throws, a path that the tests do not cover.",
      "tags": [
        "async-worker",
        "error-handling"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_clear.cpp:clear",
      "type": "function",
      "name": "clear",
      "filePath": "src/mapnik_vector_tile_clear.cpp",
      "lineRange": [
        61,
        79
      ],
      "summary": "VectorTile.clear entry point that delegates to clearSync when it gets no arguments, requires the last argument to be a callback, and otherwise queues an AsyncClear worker.",
      "tags": [
        "api-handler",
        "async",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_vector_tile_composite.cpp",
      "type": "file",
      "name": "mapnik_vector_tile_composite.cpp",
      "filePath": "src/mapnik_vector_tile_composite.cpp",
      "summary": "Implements VectorTile.composite and compositeSync, which merge an array of source VectorTiles into the target tile by re-rendering them through a vector_tile_impl processor with options such as area_threshold, simplify_distance, reencode, max_extent, fill_type, and threading_mode.",
      "tags": [
        "n-api-binding",
        "vector-tile",
        "compositing",
        "async-worker"
      ],
      "complexity": "complex",
      "languageNotes": "The sync and async entry points duplicate about 250 lines of option parsing, and the two copies differ in small checks: compositeSync requires scale > 0, but composite only rejects scale < 0."
    },
    {
      "id": "function:src/mapnik_vector_tile_composite.cpp:_composite",
      "type": "function",
      "name": "_composite",
      "filePath": "src/mapnik_vector_tile_composite.cpp",
      "lineRange": [
        7,
        55
      ],
      "summary": "Creates a size-by-size EPSG:3857 mapnik::Map whose maximum extent is max_extent or the buffered extent of the target, configures a vector_tile_impl::processor with all composite options, and calls vector_tile_impl::composite to merge the source tiles into the target tile.",
      "tags": [
        "compositing",
        "vector-tile",
        "processor",
        "core-logic"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_composite.cpp:compositeSync",
      "type": "function",
      "name": "compositeSync",
      "filePath": "src/mapnik_vector_tile_composite.cpp",
      "lineRange": [
        73,
        380
      ],
      "summary": "Synchronous VectorTile.compositeSync that validates the tile array and about 15 options (area_threshold, simplify_distance, strictly_simple, fill_type, threading_mode, scale, offsets, reencode, max_extent, image settings), unwraps each source tile, and calls _composite.",
      "tags": [
        "api-handler",
        "sync",
        "validation",
        "compositing"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:src/mapnik_vector_tile_composite.cpp:AsyncCompositeVectorTile",
      "type": "class",
      "name": "AsyncCompositeVectorTile",
      "filePath": "src/mapnik_vector_tile_composite.cpp",
      "lineRange": [
        384,
        477
      ],
      "summary": "Anonymous-namespace Napi::AsyncWorker that copies the target tile, the source tiles, and all composite options, runs _composite on a worker thread, and returns a VectorTile wrapper of the target.",
      "tags": [
        "async-worker",
        "compositing",
        "vector-tile"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_composite.cpp:AsyncCompositeVectorTile.Execute",
      "type": "function",
      "name": "AsyncCompositeVectorTile.Execute",
      "filePath": "src/mapnik_vector_tile_composite.cpp",
      "lineRange": [
        425,
        451
      ],
      "summary": "Worker-thread call of _composite with the stored option fields; any std::exception becomes the error that the composite callback receives.",
      "tags": [
        "async-worker",
        "compositing",
        "error-handling"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_composite.cpp:composite",
      "type": "function",
      "name": "composite",
      "filePath": "src/mapnik_vector_tile_composite.cpp",
      "lineRange": [
        539,
        841
      ],
      "summary": "Async VectorTile.composite that falls back to compositeSync without a trailing callback, otherwise validates the tile array and options in the same way, and queues an AsyncCompositeVectorTile worker.",
      "tags": [
        "api-handler",
        "async",
        "validation",
        "compositing"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:src/mapnik_vector_tile_data.cpp",
      "type": "file",
      "name": "mapnik_vector_tile_data.cpp",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "summary": "Implements raw protobuf I/O for VectorTile: setData/setDataSync replace the tile data, addData/addDataSync merge more data, and getData/getDataSync return the tile bytes as a Buffer with optional gzip compression, level, strategy, and buffer release.",
      "tags": [
        "n-api-binding",
        "vector-tile",
        "protobuf",
        "compression",
        "async-worker"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:src/mapnik_vector_tile_data.cpp:AsyncSetData",
      "type": "class",
      "name": "AsyncSetData",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        6,
        51
      ],
      "summary": "Napi::AsyncWorker that keeps a persistent reference to the input Buffer plus the validate and upgrade flags, and clears and reloads the tile from that buffer off the main thread.",
      "tags": [
        "async-worker",
        "protobuf",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_data.cpp:AsyncSetData.Execute",
      "type": "function",
      "name": "AsyncSetData.Execute",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        22,
        38
      ],
      "summary": "Rejects an empty buffer, clears the tile, and calls merge_from_compressed_buffer with the validate and upgrade flags, storing any exception as the worker error.",
      "tags": [
        "async-worker",
        "protobuf",
        "decoding"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_vector_tile_data.cpp:AsyncGetData",
      "type": "class",
      "name": "AsyncGetData",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        53,
        150
      ],
      "summary": "Napi::AsyncWorker that can zlib-compress the tile bytes on a worker thread and hands back a Buffer, which takes ownership of the internal tile string when release is set.",
      "tags": [
        "async-worker",
        "compression",
        "buffer"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_data.cpp:AsyncGetData.Execute",
      "type": "function",
      "name": "AsyncGetData.Execute",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        71,
        86
      ],
      "summary": "When compression is requested, gzip-compresses the tile data into a new std::string with the chosen zlib level and strategy on the worker thread.",
      "tags": [
        "async-worker",
        "compression",
        "zlib"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_data.cpp:AsyncGetData.GetResult",
      "type": "function",
      "name": "AsyncGetData.GetResult",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        88,
        141
      ],
      "summary": "Returns an empty Buffer for an empty tile; otherwise an external Buffer that owns the compressed string or the released tile buffer (with a finalizer that adjusts V8 external memory), or a plain copy of the raw bytes.",
      "tags": [
        "result-marshalling",
        "memory-management",
        "buffer"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_vector_tile_data.cpp:AsyncAddData",
      "type": "class",
      "name": "AsyncAddData",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        152,
        196
      ],
      "summary": "Napi::AsyncWorker that pins the JS Buffer and merges its vector tile data, compressed or not, into the existing tile without clearing it first.",
      "tags": [
        "async-worker",
        "protobuf",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_data.cpp:AsyncAddData.Execute",
      "type": "function",
      "name": "AsyncAddData.Execute",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        168,
        183
      ],
      "summary": "Fails on a zero-length buffer and otherwise calls merge_from_compressed_buffer to append the decoded layers to the tile, with the validate and upgrade options.",
      "tags": [
        "async-worker",
        "protobuf",
        "decoding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_data.cpp:setDataSync",
      "type": "function",
      "name": "setDataSync",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        216,
        280
      ],
      "summary": "Synchronously replaces the tile data: it validates a non-empty Buffer and the validate/upgrade booleans, clears the tile, and loads the buffer with merge_from_compressed_buffer.",
      "tags": [
        "api-handler",
        "sync",
        "validation",
        "protobuf"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_data.cpp:setData",
      "type": "function",
      "name": "setData",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        301,
        359
      ],
      "summary": "Async VectorTile.setData that delegates to setDataSync without a trailing callback, otherwise validates the Buffer and options and queues an AsyncSetData worker.",
      "tags": [
        "api-handler",
        "async",
        "validation",
        "protobuf"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_data.cpp:getDataSync",
      "type": "function",
      "name": "getDataSync",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        380,
        562
      ],
      "summary": "Returns the tile protobuf as a Buffer: it parses compression ('gzip' or none), release, level (0 to 9), and strategy (FILTERED, HUFFMAN_ONLY, RLE, FIXED, DEFAULT), and then copies, releases, or zlib-compresses the bytes.",
      "tags": [
        "api-handler",
        "sync",
        "compression",
        "buffer"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/mapnik_vector_tile_data.cpp:getData",
      "type": "function",
      "name": "getData",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        600,
        704
      ],
      "summary": "Async VectorTile.getData that falls back to getDataSync without a callback, parses the same compression, release, level, and strategy options, and queues an AsyncGetData worker.",
      "tags": [
        "api-handler",
        "async",
        "compression",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_data.cpp:addDataSync",
      "type": "function",
      "name": "addDataSync",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        724,
        790
      ],
      "summary": "Synchronously merges an extra protobuf Buffer into the tile after it checks for a non-empty Buffer and boolean validate/upgrade options, and rethrows decode errors as JS exceptions.",
      "tags": [
        "api-handler",
        "sync",
        "validation",
        "protobuf"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_data.cpp:addData",
      "type": "function",
      "name": "addData",
      "filePath": "src/mapnik_vector_tile_data.cpp",
      "lineRange": [
        813,
        870
      ],
      "summary": "Async VectorTile.addData that calls addDataSync when the last argument is not a function, else validates the Buffer and options and queues an AsyncAddData worker.",
      "tags": [
        "api-handler",
        "async",
        "validation",
        "protobuf"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_vector_tile_image.cpp",
      "type": "file",
      "name": "mapnik_vector_tile_image.cpp",
      "filePath": "src/mapnik_vector_tile_image.cpp",
      "summary": "Implements VectorTile.addImage, addImageSync, addImageBuffer, and addImageBufferSync, which add a raster layer to the tile either from a mapnik.Image (re-encoded by a vector_tile_impl processor with an image format and scaling method) or from an encoded image Buffer.",
      "tags": [
        "n-api-binding",
        "vector-tile",
        "raster",
        "async-worker"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/mapnik_vector_tile_image.cpp:addImageSync",
      "type": "function",
      "name": "addImageSync",
      "filePath": "src/mapnik_vector_tile_image.cpp",
      "lineRange": [
        43,
        146
      ],
      "summary": "Validates a non-empty mapnik.Image, a layer name, and the image_scaling/image_format options (default bilinear and webp), wraps a copy of the image as a raster feature in a memory_datasource over the tile extent, and encodes it into the tile with a processor.",
      "tags": [
        "api-handler",
        "sync",
        "raster",
        "encoding"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_vector_tile_image.cpp:AsyncAddImage",
      "type": "class",
      "name": "AsyncAddImage",
      "filePath": "src/mapnik_vector_tile_image.cpp",
      "lineRange": [
        150,
        203
      ],
      "summary": "Napi::AsyncWorker that holds the tile, an image_ptr, the layer name, the image format, and the scaling method, and builds and encodes the raster layer on a worker thread.",
      "tags": [
        "async-worker",
        "raster",
        "vector-tile"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_image.cpp:AsyncAddImage.Execute",
      "type": "function",
      "name": "AsyncAddImage.Execute",
      "filePath": "src/mapnik_vector_tile_image.cpp",
      "lineRange": [
        167,
        195
      ],
      "summary": "Copies the image into a mapnik::raster feature, pushes it into a memory_datasource with the tile extent, adds an EPSG:3857 layer to a temporary Map, and runs processor::update_tile on the worker thread.",
      "tags": [
        "async-worker",
        "raster",
        "encoding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_image.cpp:addImage",
      "type": "function",
      "name": "addImage",
      "filePath": "src/mapnik_vector_tile_image.cpp",
      "lineRange": [
        230,
        316
      ],
      "summary": "Async VectorTile.addImage that needs at least an Image and a layer name, delegates to addImageSync when the last argument is not a callback, validates the options, and queues an AsyncAddImage worker.",
      "tags": [
        "api-handler",
        "async",
        "raster",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_image.cpp:addImageBufferSync",
      "type": "function",
      "name": "addImageBufferSync",
      "filePath": "src/mapnik_vector_tile_image.cpp",
      "lineRange": [
        334,
        375
      ],
      "summary": "Synchronously adds an encoded image Buffer as a raster tile layer: it checks for a non-empty Buffer and a layer name string and calls add_image_buffer_as_tile_layer.",
      "tags": [
        "api-handler",
        "sync",
        "raster",
        "buffer"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_vector_tile_image.cpp:AsyncAddImageBuffer",
      "type": "class",
      "name": "AsyncAddImageBuffer",
      "filePath": "src/mapnik_vector_tile_image.cpp",
      "lineRange": [
        394,
        427
      ],
      "summary": "Napi::AsyncWorker that keeps a persistent reference to the image Buffer with its data pointer and length, and adds it as a raster layer off the main thread.",
      "tags": [
        "async-worker",
        "raster",
        "buffer"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_image.cpp:AsyncAddImageBuffer.Execute",
      "type": "function",
      "name": "AsyncAddImageBuffer.Execute",
      "filePath": "src/mapnik_vector_tile_image.cpp",
      "lineRange": [
        409,
        419
      ],
      "summary": "Calls add_image_buffer_as_tile_layer with the pinned buffer bytes and the layer name, and records any exception as the worker error.",
      "tags": [
        "async-worker",
        "raster",
        "error-handling"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_image.cpp:addImageBuffer",
      "type": "function",
      "name": "addImageBuffer",
      "filePath": "src/mapnik_vector_tile_image.cpp",
      "lineRange": [
        450,
        486
      ],
      "summary": "Async VectorTile.addImageBuffer that falls back to addImageBufferSync with fewer than three arguments, validates the callback, Buffer, and layer name, and queues an AsyncAddImageBuffer worker.",
      "tags": [
        "api-handler",
        "async",
        "raster",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_vector_tile_info.cpp",
      "type": "file",
      "name": "mapnik_vector_tile_info.cpp",
      "filePath": "src/mapnik_vector_tile_info.cpp",
      "summary": "Implements the static VectorTile.info(buffer), a debug helper that reports per-layer feature counts, layer versions, and protobuf validity errors for a raw or gzip/zlib-compressed .mvt buffer.",
      "tags": [
        "n-api-binding",
        "vector-tile",
        "diagnostics",
        "protobuf",
        "validation"
      ],
      "complexity": "moderate",
      "languageNotes": "The unsupported-version check compares the running tile `version` variable, not the `layer_version` of the current layer, so a bad version on the first layer is not flagged on that layer."
    },
    {
      "id": "function:src/mapnik_vector_tile_info.cpp:info",
      "type": "function",
      "name": "info",
      "filePath": "src/mapnik_vector_tile_info.cpp",
      "lineRange": [
        37,
        178
      ],
      "summary": "Decompresses the buffer when needed, walks the tile LAYERS with protozero, counts point, linestring, polygon, unknown, and raster features with layer_is_valid, and returns {layers, errors, tile_errors} that flags repeated layer names, mixed versions, unknown tags, and invalid PBF data.",
      "tags": [
        "api-handler",
        "diagnostics",
        "protobuf",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_vector_tile_json.cpp",
      "type": "file",
      "name": "mapnik_vector_tile_json.cpp",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "summary": "Converts vector tiles to and from JSON: toJSON decodes the raw protobuf layers, features, tags, and geometry; toGeoJSON/toGeoJSONSync reproject features to WGS84 and write GeoJSON FeatureCollections; addGeoJSON encodes an inline GeoJSON string as a new tile layer.",
      "tags": [
        "n-api-binding",
        "vector-tile",
        "geojson",
        "serialization",
        "protobuf"
      ],
      "complexity": "complex",
      "languageNotes": "Uses template visitors over the mapnik geometry variant (geometry_type_name, geometry_array_visitor) and over the protobuf attribute value variant (json_value_visitor). addGeoJSON reads area_threshold with Int32Value, so fractional thresholds are truncated."
    },
    {
      "id": "class:src/mapnik_vector_tile_json.cpp:geometry_type_name",
      "type": "class",
      "name": "geometry_type_name",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        22,
        80
      ],
      "summary": "Geometry variant visitor that maps a mapnik geometry to its GeoJSON type name (Point, LineString, Polygon, the Multi* types, GeometryCollection, or Empty) for the decode_geometry output of toJSON.",
      "tags": [
        "visitor",
        "geometry",
        "serialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_vector_tile_json.cpp:geometry_array_visitor",
      "type": "class",
      "name": "geometry_array_visitor",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        88,
        256
      ],
      "summary": "Recursive variant visitor that converts a decoded mapnik geometry (points, line strings, rings, polygons, multi geometries, collections) into nested Napi::Array coordinate arrays.",
      "tags": [
        "visitor",
        "geometry",
        "serialization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_vector_tile_json.cpp:json_value_visitor",
      "type": "class",
      "name": "json_value_visitor",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        264,
        305
      ],
      "summary": "Visitor that sets one decoded vector tile attribute value (string, bool, int64, uint64, double, or float) on a JS properties object under the given key name.",
      "tags": [
        "visitor",
        "attributes",
        "serialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_json.cpp:layer_to_geojson",
      "type": "function",
      "name": "layer_to_geojson",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        315,
        367
      ],
      "summary": "Reads every feature of one protobuf layer through tile_datasource_pbf with an unbounded query, reprojects each geometry from EPSG:3857 to EPSG:4326, and appends comma-separated GeoJSON feature strings to the result; it returns true when it wrote at least one feature.",
      "tags": [
        "geojson",
        "reprojection",
        "serialization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_json.cpp:write_geojson_array",
      "type": "function",
      "name": "write_geojson_array",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        368,
        407
      ],
      "summary": "Writes a JSON array that holds one named FeatureCollection per tile layer, with layer_to_geojson for the features of each layer.",
      "tags": [
        "geojson",
        "serialization",
        "layers"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_json.cpp:write_geojson_all",
      "type": "function",
      "name": "write_geojson_all",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        409,
        438
      ],
      "summary": "Writes a single FeatureCollection that merges the features of all tile layers and skips layers that have no features.",
      "tags": [
        "geojson",
        "serialization",
        "layers"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_json.cpp:write_geojson_layer_index",
      "type": "function",
      "name": "write_geojson_layer_index",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        440,
        462
      ],
      "summary": "Writes a named FeatureCollection for the layer at a zero-based index and returns false when the tile has no layer at that index.",
      "tags": [
        "geojson",
        "serialization",
        "layers"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_json.cpp:write_geojson_layer_name",
      "type": "function",
      "name": "write_geojson_layer_name",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        464,
        482
      ],
      "summary": "Writes a FeatureCollection for the layer with the given name and returns false when the tile has no layer reader for that name.",
      "tags": [
        "geojson",
        "serialization",
        "layers"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_vector_tile_json.cpp:AsyncToGeoJSON",
      "type": "class",
      "name": "AsyncToGeoJSON",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        484,
        536
      ],
      "summary": "Napi::AsyncWorker that builds the GeoJSON string for VectorTile.toGeoJSON on a worker thread for all layers, an array of layers, a named layer, or an indexed layer, as the geojson_write_type selects.",
      "tags": [
        "async-worker",
        "geojson",
        "serialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_json.cpp:AsyncToGeoJSON.Execute",
      "type": "function",
      "name": "AsyncToGeoJSON.Execute",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        498,
        523
      ],
      "summary": "Switches on the stored geojson_write_type and calls write_geojson_all, write_geojson_array, write_geojson_layer_name, or write_geojson_layer_index to fill the result string.",
      "tags": [
        "async-worker",
        "geojson",
        "dispatcher"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_json.cpp:toJSON",
      "type": "function",
      "name": "toJSON",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        564,
        776
      ],
      "summary": "Decodes the tile protobuf into a JS array of layer objects with name, extent, version, and features; each feature gets id, type, properties from the key/value tables, optional raster bytes, and geometry as raw command integers or, with decode_geometry, as coordinate arrays plus geometry_type.",
      "tags": [
        "api-handler",
        "protobuf",
        "decoding",
        "serialization"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/mapnik_vector_tile_json.cpp:toGeoJSONSync",
      "type": "function",
      "name": "toGeoJSONSync",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        794,
        867
      ],
      "summary": "Synchronous GeoJSON export that accepts '__all__', '__array__', a layer name, or a zero-based layer index, validates the index range, and returns the GeoJSON string.",
      "tags": [
        "api-handler",
        "sync",
        "geojson",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_json.cpp:toGeoJSON",
      "type": "function",
      "name": "toGeoJSON",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        889,
        949
      ],
      "summary": "Async GeoJSON export that falls back to toGeoJSONSync without a callback, maps the layer argument to a geojson_write_type after it checks the name or index, and queues an AsyncToGeoJSON worker.",
      "tags": [
        "api-handler",
        "async",
        "geojson",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_json.cpp:addGeoJSON",
      "type": "function",
      "name": "addGeoJSON",
      "filePath": "src/mapnik_vector_tile_json.cpp",
      "lineRange": [
        983,
        1121
      ],
      "summary": "Encodes a GeoJSON string as a new named layer: it builds a temporary EPSG:3857 Map with an inline geojson datasource layer in EPSG:4326 and runs a vector_tile_impl processor with the area_threshold, strictly_simple, simplify_distance, multi_polygon_union, fill_type, and process_all_rings options.",
      "tags": [
        "api-handler",
        "geojson",
        "encoding",
        "validation"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:src/mapnik_vector_tile_render.cpp",
      "type": "file",
      "name": "mapnik_vector_tile_render.cpp",
      "filePath": "src/mapnik_vector_tile_render.cpp",
      "summary": "Implements VectorTile.render, which draws the tile layers with the style of a mapnik.Map onto a mapnik.Image (AGG), a CairoSurface (Cairo or native SVG output), or a Grid (UTF grid for one layer) on a worker thread, with optional z/x/y override, buffer, scale, and variables.",
      "tags": [
        "n-api-binding",
        "vector-tile",
        "rendering",
        "async-worker"
      ],
      "complexity": "complex",
      "languageNotes": "Holds the render target in a mapnik::util::variant<dummy_surface, Image*, CairoSurface*, Grid*> and uses ref/deref visitors to keep the JS object alive during the async job. In the Grid branch of render, a local `std::size_t layer_idx` shadows the outer variable, so the worker always gets layer index 0; also, OnWorkComplete calls Map::release() although render never calls acquire()."
    },
    {
      "id": "function:src/mapnik_vector_tile_render.cpp:process_layers",
      "type": "function",
      "name": "process_layers",
      "filePath": "src/mapnik_vector_tile_render.cpp",
      "lineRange": [
        77,
        117
      ],
      "summary": "Template helper that, for each map layer that is visible at the scale denominator and present in the tile, copies the layer, sets the map SRS, attaches a tile_datasource_pbf for that layer, and calls apply_to_layer on the given AGG, Cairo, or SVG renderer.",
      "tags": [
        "rendering",
        "template",
        "layers"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:src/mapnik_vector_tile_render.cpp:AsyncRenderTile",
      "type": "class",
      "name": "AsyncRenderTile",
      "filePath": "src/mapnik_vector_tile_render.cpp",
      "lineRange": [
        119,
        371
      ],
      "summary": "Napi::AsyncWorker that holds the Map, the tile, the surface variant, variables, layer index, z/x/y, size, buffer, scale, and renderer flags, renders the tile, and releases the Map and surface references when done.",
      "tags": [
        "async-worker",
        "rendering",
        "vector-tile"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/mapnik_vector_tile_render.cpp:AsyncRenderTile.Execute",
      "type": "function",
      "name": "AsyncRenderTile.Execute",
      "filePath": "src/mapnik_vector_tile_render.cpp",
      "lineRange": [
        157,
        309
      ],
      "summary": "Computes the Mercator bbox from the tile or the z/x/y override, builds a request and scale denominator, and renders with grid_renderer for a Grid, cairo_renderer or svg_renderer into the CairoSurface stream, or agg_renderer for an RGBA8 Image.",
      "tags": [
        "rendering",
        "async-worker",
        "cairo",
        "utfgrid"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:src/mapnik_vector_tile_render.cpp:AsyncRenderTile.OnWorkComplete",
      "type": "function",
      "name": "AsyncRenderTile.OnWorkComplete",
      "filePath": "src/mapnik_vector_tile_render.cpp",
      "lineRange": [
        311,
        320
      ],
      "summary": "Releases the Map in-use flag, drops the Map reference, and unreferences the surface through deref_visitor before the worker completes.",
      "tags": [
        "async-worker",
        "resource-management"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_render.cpp:AsyncRenderTile.GetResult",
      "type": "function",
      "name": "AsyncRenderTile.GetResult",
      "filePath": "src/mapnik_vector_tile_render.cpp",
      "lineRange": [
        322,
        353
      ],
      "summary": "Returns a new Image or Grid wrapper for raster targets, or flushes the CairoSurface stream and returns a new CairoSurface with the same format and size that carries the rendered data.",
      "tags": [
        "async-worker",
        "result-marshalling",
        "n-api"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_render.cpp:render",
      "type": "function",
      "name": "render",
      "filePath": "src/mapnik_vector_tile_render.cpp",
      "lineRange": [
        417,
        731
      ],
      "summary": "VectorTile.render entry point that validates the Map, the surface, and the callback, parses z/x/y (all three together, below 2^z), buffer_size, scale, scale_denominator, variables, renderer ('cairo' or 'svg'), and grid layer/fields, then refs the surface and Map and queues AsyncRenderTile.",
      "tags": [
        "api-handler",
        "rendering",
        "validation",
        "vector-tile"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "type": "file",
      "name": "mapnik_vector_tile_simple_valid.cpp",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "summary": "Implements VectorTile.reportGeometrySimplicity(Sync) and reportGeometryValidity(Sync), which check every tile feature with Boost.Geometry is_simple/is_valid and return the failing features with layer, feature id, message, and GeoJSON; the file compiles only when BOOST_VERSION >= 105800.",
      "tags": [
        "n-api-binding",
        "vector-tile",
        "geometry-validation",
        "async-worker",
        "diagnostics"
      ],
      "complexity": "complex",
      "languageNotes": "The whole translation unit is inside #if BOOST_VERSION >= 105800, so the tree-sitter extraction found no definitions; the function and class nodes of this file come from a manual read of the source."
    },
    {
      "id": "function:src/mapnik_vector_tile_simple_valid.cpp:layer_not_simple",
      "type": "function",
      "name": "layer_not_simple",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        56,
        88
      ],
      "summary": "Queries all features of one protobuf layer through tile_datasource_pbf and records a not_simple_feature (layer name, feature id) for each geometry that fails mapnik::geometry::is_simple.",
      "tags": [
        "geometry-validation",
        "protobuf",
        "layers"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_vector_tile_simple_valid.cpp:visitor_geom_valid",
      "type": "class",
      "name": "visitor_geom_valid",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        90,
        343
      ],
      "summary": "Geometry variant visitor that runs mapnik::geometry::is_valid on points, lines, polygons, and multi geometries (part by part when split_multi_features is set) and records a not_valid_feature with the message, layer, id, and a one-feature GeoJSON FeatureCollection.",
      "tags": [
        "visitor",
        "geometry-validation",
        "geojson"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_simple_valid.cpp:layer_not_valid",
      "type": "function",
      "name": "layer_not_valid",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        345,
        451
      ],
      "summary": "Validates one layer through tile_datasource_pbf (reprojected to EPSG:4326 when lat_lon is set, in EPSG:3857 when web_merc is set) or, by default, by decoding raw tile-grid geometry from the protobuf features, and applies visitor_geom_valid to each feature.",
      "tags": [
        "geometry-validation",
        "protobuf",
        "reprojection"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_simple_valid.cpp:vector_tile_not_simple",
      "type": "function",
      "name": "vector_tile_not_simple",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        453,
        466
      ],
      "summary": "Iterates over every LAYERS message in the tile protobuf and calls layer_not_simple with the tile x, y, and z to collect non-simple features.",
      "tags": [
        "geometry-validation",
        "protobuf"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_simple_valid.cpp:make_not_simple_array",
      "type": "function",
      "name": "make_not_simple_array",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        468,
        484
      ],
      "summary": "Converts the collected not_simple_feature records into a JS array of {layer, featureId} objects.",
      "tags": [
        "result-marshalling",
        "n-api",
        "geometry-validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_simple_valid.cpp:vector_tile_not_valid",
      "type": "function",
      "name": "vector_tile_not_valid",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        486,
        505
      ],
      "summary": "Walks each layer of the tile protobuf and calls layer_not_valid with the split_multi_features, lat_lon, and web_merc flags to collect invalid features.",
      "tags": [
        "geometry-validation",
        "protobuf"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_simple_valid.cpp:make_not_valid_array",
      "type": "function",
      "name": "make_not_valid_array",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        507,
        525
      ],
      "summary": "Builds a JS array of {layer, message, featureId, geojson} objects from the collected not_valid_feature records.",
      "tags": [
        "result-marshalling",
        "n-api",
        "geometry-validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometrySimple",
      "type": "class",
      "name": "AsyncGeometrySimple",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        527,
        557
      ],
      "summary": "Napi::AsyncWorker that runs vector_tile_not_simple on a worker thread and returns the array of non-simple features to the reportGeometrySimplicity callback.",
      "tags": [
        "async-worker",
        "geometry-validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometrySimple.Execute",
      "type": "function",
      "name": "AsyncGeometrySimple.Execute",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        534,
        546
      ],
      "summary": "Fills the result vector with vector_tile_not_simple on the worker thread and sets a worker error if the check throws.",
      "tags": [
        "async-worker",
        "geometry-validation",
        "error-handling"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometryValid",
      "type": "class",
      "name": "AsyncGeometryValid",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        559,
        596
      ],
      "summary": "Napi::AsyncWorker that stores the split_multi_features, lat_lon, and web_merc flags, runs vector_tile_not_valid in the background, and returns the array of invalid features.",
      "tags": [
        "async-worker",
        "geometry-validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometryValid.Execute",
      "type": "function",
      "name": "AsyncGeometryValid.Execute",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        573,
        583
      ],
      "summary": "Calls vector_tile_not_valid with the stored flags on the worker thread and converts exceptions into the worker error.",
      "tags": [
        "async-worker",
        "geometry-validation",
        "error-handling"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometrySimplicitySync",
      "type": "function",
      "name": "reportGeometrySimplicitySync",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        612,
        632
      ],
      "summary": "Synchronously collects the tile geometries that are not OGC simple and returns them as an array of {layer, featureId} objects.",
      "tags": [
        "api-handler",
        "sync",
        "geometry-validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometryValiditySync",
      "type": "function",
      "name": "reportGeometryValiditySync",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        653,
        715
      ],
      "summary": "Parses the optional split_multi_features, lat_lon, and web_merc booleans and synchronously returns the array of OGC-invalid features with messages and GeoJSON.",
      "tags": [
        "api-handler",
        "sync",
        "geometry-validation",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometrySimplicity",
      "type": "function",
      "name": "reportGeometrySimplicity",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        731,
        748
      ],
      "summary": "Async simplicity report that runs the sync version when it gets no arguments, otherwise requires a callback and queues an AsyncGeometrySimple worker.",
      "tags": [
        "api-handler",
        "async",
        "geometry-validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometryValidity",
      "type": "function",
      "name": "reportGeometryValidity",
      "filePath": "src/mapnik_vector_tile_simple_valid.cpp",
      "lineRange": [
        771,
        836
      ],
      "summary": "Async validity report that delegates to the sync version for zero arguments or one non-function argument, parses the options when present, and queues an AsyncGeometryValid worker.",
      "tags": [
        "api-handler",
        "async",
        "geometry-validation",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/object_to_container.hpp",
      "type": "file",
      "name": "object_to_container.hpp",
      "filePath": "src/object_to_container.hpp",
      "summary": "Header-only helper that copies the own properties of a JS object into a mapnik::attributes map; the render paths use it to pass the 'variables' option to Mapnik expressions and datasource queries.",
      "tags": [
        "utility",
        "header",
        "n-api",
        "conversion"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/object_to_container.hpp:object_to_container",
      "type": "function",
      "name": "object_to_container",
      "filePath": "src/object_to_container.hpp",
      "lineRange": [
        8,
        40
      ],
      "summary": "Copies boolean, string (UTF-8 transcoded to mapnik unicode), and numeric JS properties into mapnik::attributes, stores whole numbers that fit in Int32 as value_integer and other numbers as double, and skips other value types.",
      "tags": [
        "utility",
        "conversion",
        "attributes"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/PGPool.js",
      "type": "file",
      "name": "PGPool.js",
      "filePath": "greenstand/PGPool.js",
      "summary": "Defines PGPool, an LRU-cached wrapper around a pg Pool that coalesces concurrent identical SQL queries and caches each post-processed result (default 10000 entries, 4-minute expiry). Config uses it to cache the GeoJSON-filled Mapnik XML per tile query.",
      "tags": [
        "service",
        "cache",
        "database",
        "data-access",
        "tested"
      ],
      "complexity": "moderate",
      "languageNotes": "Request coalescing: the queue and isFetching maps keyed by SQL text let concurrent callers for one query share a single pool.query call. The lru-cache options use the older maxAge key."
    },
    {
      "id": "class:greenstand/PGPool.js:PGPool",
      "type": "class",
      "name": "PGPool",
      "filePath": "greenstand/PGPool.js",
      "lineRange": [
        4,
        90
      ],
      "summary": "Holds the injected pg Pool, an lru-cache keyed by SQL text, and a per-SQL callback queue, and exposes getQuery and hasCached so tile requests for the same query share one database round trip.",
      "tags": [
        "cache",
        "database",
        "service",
        "deduplication"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/PGPool.js:fetch",
      "type": "function",
      "name": "fetch",
      "filePath": "greenstand/PGPool.js",
      "lineRange": [
        25,
        58
      ],
      "summary": "Queues the callback under its SQL string and runs pool.query only when no fetch for that SQL is in flight; on success it applies handleResult, drains the queue, and stores the result in the LRU cache, and on error it rejects every queued callback.",
      "tags": [
        "database",
        "request-coalescing",
        "async",
        "error-handling"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/PGPool.js:getQuery",
      "type": "function",
      "name": "getQuery",
      "filePath": "greenstand/PGPool.js",
      "lineRange": [
        65,
        80
      ],
      "summary": "Returns a Promise for a SQL result that resolves from the LRU cache on a hit and otherwise delegates to fetch with the handleResult transformer, which Config uses to turn rows into Mapnik XML.",
      "tags": [
        "cache",
        "promise",
        "database"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/PGPool.spec.js",
      "type": "file",
      "name": "PGPool.spec.js",
      "filePath": "greenstand/PGPool.spec.js",
      "summary": "Jest spec for PGPool that mocks pg's Pool to check LRU eviction and a 1-second expiry with cacheSize 1, and to check that queued getQuery calls for two SQL strings each resolve with their own mocked rows. Both cases build PGPool without the pool option that the constructor reads, so the mocked Pool never reaches the class.",
      "tags": [
        "test",
        "cache",
        "mock",
        "database"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:greenstand/app.js",
      "type": "file",
      "name": "app.js",
      "filePath": "greenstand/app.js",
      "summary": "Express app for the Greenstand tile server: it creates a pg Pool from DB_URL and PG_POOL_SIZE, builds a Config, registers Mapnik fonts and input plugins, and serves 256x256 PNG tiles and UTF grid JSON tiles at /:z/:x/:y and /new/:z/:x/:y. It also serves the static viewer under /viewer and a version banner for every other path.",
      "tags": [
        "api-handler",
        "express",
        "tile-rendering",
        "routing",
        "mapnik",
        "tested"
      ],
      "complexity": "complex",
      "languageNotes": "Each handler wraps the callback-style node-mapnik render, encode, and fromString APIs in Promises; the /new routes duplicate the root handlers line for line."
    },
    {
      "id": "function:greenstand/app.js:buildMapInstance",
      "type": "function",
      "name": "buildMapInstance",
      "filePath": "greenstand/app.js",
      "lineRange": [
        45,
        97
      ],
      "summary": "Creates a 256x256 mapnik.Map for tile x/y/z: it computes 100-pixel buffered lon/lat bounds with xyz_to_envelope_db_buffer, gets the Mapnik XML from Config.getXMLString, loads it with fromString, and sets map.extent to the Web Mercator envelope from xyz_to_envelope.",
      "tags": [
        "tile-rendering",
        "mapnik",
        "factory",
        "async"
      ],
      "complexity": "moderate"
    },
    {
      "id": "endpoint:greenstand/app.js:GET /:z/:x/:y.png",
      "type": "endpoint",
      "name": "GET /:z/:x/:y.png",
      "filePath": "greenstand/app.js",
      "lineRange": [
        99,
        123
      ],
      "summary": "Renders the requested tile through buildMapInstance into a 256x256 mapnik.Image, encodes it as PNG, and returns it with Content-Type image/png; any error returns HTTP 500 with a JSON message.",
      "tags": [
        "api-handler",
        "tile-rendering",
        "png",
        "http-get"
      ],
      "complexity": "simple"
    },
    {
      "id": "endpoint:greenstand/app.js:GET /:z/:x/:y.grid.json",
      "type": "endpoint",
      "name": "GET /:z/:x/:y.grid.json",
      "filePath": "greenstand/app.js",
      "lineRange": [
        125,
        156
      ],
      "summary": "Renders layer l1 of the tile into a 256x256 mapnik.Grid with the fields id, latlon, count, and type (plus zoom_to at zoom 9 and below) and returns the UTF grid, encoded at resolution 4 with features, as JSON.",
      "tags": [
        "api-handler",
        "utf-grid",
        "interactivity",
        "http-get"
      ],
      "complexity": "simple"
    },
    {
      "id": "endpoint:greenstand/app.js:GET /new/:z/:x/:y.png",
      "type": "endpoint",
      "name": "GET /new/:z/:x/:y.png",
      "filePath": "greenstand/app.js",
      "lineRange": [
        158,
        182
      ],
      "summary": "PNG tile route under /new that adds newIcons: true to the query params before buildMapInstance; Config.getXMLString ignores that flag, so the icon choice still comes only from the icon query parameter.",
      "tags": [
        "api-handler",
        "tile-rendering",
        "png",
        "duplicate-route"
      ],
      "complexity": "simple"
    },
    {
      "id": "endpoint:greenstand/app.js:GET /new/:z/:x/:y.grid.json",
      "type": "endpoint",
      "name": "GET /new/:z/:x/:y.grid.json",
      "filePath": "greenstand/app.js",
      "lineRange": [
        184,
        215
      ],
      "summary": "UTF grid route under /new that passes newIcons: true into buildMapInstance and otherwise repeats the root grid handler, including the zoom_to field for zoom 9 and below.",
      "tags": [
        "api-handler",
        "utf-grid",
        "interactivity",
        "duplicate-route"
      ],
      "complexity": "simple"
    },
    {
      "id": "endpoint:greenstand/app.js:ALL *",
      "type": "endpoint",
      "name": "ALL *",
      "filePath": "greenstand/app.js",
      "lineRange": [
        217,
        220
      ],
      "summary": "Catch-all handler that answers every unmatched path with HTTP 200 and the text 'Welcome to Greenstand tile server, version:' followed by the package.json version.",
      "tags": [
        "api-handler",
        "fallback",
        "health-check",
        "version"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/config.js",
      "type": "file",
      "name": "config.js",
      "filePath": "greenstand/config.js",
      "summary": "Builds the Mapnik XML style for each tile request: Config gets SQL from Map.js, then for zoom 1-15 fetches rows through PGPool and inlines them as GeoJSON, and for deeper zooms injects the SQL and DB_URL credentials into a PostGIS template. It also exports replace, config, and configFreetown, which rewrite greenstand/layers/postgis.xml with DB_URL credentials.",
      "tags": [
        "service",
        "mapnik-xml",
        "template",
        "database",
        "tile-rendering",
        "tested"
      ],
      "complexity": "complex",
      "languageNotes": "Template selection is a nested switch on json, tree, and icon. The zoomLevelInt > 15 branch inside the GeoJSON path never runs, because GeoJSON mode applies only to zoom 1-15, and the constructor's newIcons argument is unused."
    },
    {
      "id": "function:greenstand/config.js:replace",
      "type": "function",
      "name": "replace",
      "filePath": "greenstand/config.js",
      "lineRange": [
        16,
        43
      ],
      "summary": "Parses DB_URL (postgresql://user:password@host:port/db) and swaps the hard-coded postgres user, 172.17.0.2 host, 5432 port, greenstand password, and treetracker_dev database name in a Mapnik XML string for the real values.",
      "tags": [
        "configuration",
        "string-templating",
        "database-credentials"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/config.js:config",
      "type": "function",
      "name": "config",
      "filePath": "greenstand/config.js",
      "lineRange": [
        45,
        52
      ],
      "summary": "Reads greenstand/layers/postgis.xml, fills in the DB_URL credentials with replace, and writes the output to greenstand/layers/postgis.prod.xml.",
      "tags": [
        "configuration",
        "file-io",
        "database-credentials"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/config.js:configFreetown",
      "type": "function",
      "name": "configFreetown",
      "filePath": "greenstand/config.js",
      "lineRange": [
        54,
        97
      ],
      "summary": "Like config, but it also swaps the trees table subquery for SQL that keeps active trees whose planters belong to the 'freetown' entity hierarchy (through getEntityRelationshipChildren), then writes greenstand/layers/postgis.freetown.prod.xml.",
      "tags": [
        "configuration",
        "sql",
        "organization-map",
        "file-io"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:greenstand/config.js:Config",
      "type": "class",
      "name": "Config",
      "filePath": "greenstand/config.js",
      "lineRange": [
        100,
        286
      ],
      "summary": "Holds the pg Pool and a PGPool cache sized by the CACHE_SIZE and CACHE_EXPIRE env vars, and exposes getXMLString to turn tile options (zoom, userid, wallet, timeline, map_name, bounds, icon) into a complete Mapnik XML document.",
      "tags": [
        "service",
        "factory",
        "cache",
        "mapnik-xml"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:greenstand/config.js:getXMLString",
      "type": "function",
      "name": "getXMLString",
      "filePath": "greenstand/config.js",
      "lineRange": [
        111,
        283
      ],
      "summary": "Decides GeoJSON mode and bounds use, calls Map.init and Map.getQuery for the tile SQL, then either turns PGPool rows into an inline GeoJSON FeatureCollection (throwing above 5 MB) or substitutes the SQL into a credential-filled PostGIS template.",
      "tags": [
        "tile-rendering",
        "geojson",
        "sql",
        "async"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:greenstand/config.js:getXML",
      "type": "function",
      "name": "getXML",
      "filePath": "greenstand/config.js",
      "lineRange": [
        171,
        238
      ],
      "summary": "Selects one of the xml.js or xml2.js template strings from the json, tree, and icon flags: 'ptk-b' picks the green xml2 variants, 'ptk-s' picks the small variants, and 'o' or no icon falls back to the original orange templates.",
      "tags": [
        "template-selection",
        "mapnik-xml",
        "utility"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/config.js:checkUseBounds",
      "type": "function",
      "name": "checkUseBounds",
      "filePath": "greenstand/config.js",
      "lineRange": [
        128,
        150
      ],
      "summary": "Returns whether the tile SQL gets the bounding box: never above zoom 15, always for map_name org maps, never for wallet or userid maps, and otherwise only above MAXIMUM_ZOOM_LEVEL_USING_GLOBAL_DATASET.",
      "tags": [
        "business-rule",
        "zoom-level",
        "query-planning"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/config.pg.test.js",
      "type": "file",
      "name": "config.pg.test.js",
      "filePath": "greenstand/config.pg.test.js",
      "summary": "Integration Jest suite that needs a live PostGIS database at DB_URL: it runs the 'case1' cluster SQL and builds GeoJSON from the rows, and renders zoom 2 tile 1/1 to map.png from xml.js, from greenstand/stylesheet2.xml, and from getXMLString with a UTF grid. It imports getXMLString from config.js, which no longer exports that name, so the getXMLString cases call undefined.",
      "tags": [
        "test",
        "integration-test",
        "postgis",
        "rendering"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:greenstand/config.test.js",
      "type": "file",
      "name": "config.test.js",
      "filePath": "greenstand/config.test.js",
      "summary": "Jest suite with a mocked pg Pool that checks config() and configFreetown() substitute DB_URL credentials (and the getEntityRelationshipChildren query) into postgis XML, and expects getXMLString to pick SQL 'case1' to 'case4' by zoom, userid, wallet, and map_name. It reads the output from test/ instead of greenstand/layers/ and calls a getXMLString export that config.js no longer provides.",
      "tags": [
        "test",
        "configuration",
        "mock",
        "sql-selection"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:greenstand/experimental.test.js",
      "type": "file",
      "name": "experimental.test.js",
      "filePath": "greenstand/experimental.test.js",
      "summary": "Experimental Jest case without assertions that loads an inline Mapnik XML string, with a pin_29px.png PointSymbolizer over the GeoJSON file greenstand/trees_sample.geojson, through Map.fromString to check that the style parses.",
      "tags": [
        "test",
        "experimental",
        "mapnik-xml",
        "geojson"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/font.test.js",
      "type": "file",
      "name": "font.test.js",
      "filePath": "greenstand/font.test.js",
      "summary": "Jest cases that register the DejaVu fonts from test/data/map-a and map-b on a mapnik.Map, assert that 'DejaVu Serif Condensed Bold' and 'DejaVu Serif Condensed Bold Italic' are available, and render TextSymbolizer maps (one over trees_text.geojson) to PNG files under /tmp/test.",
      "tags": [
        "test",
        "fonts",
        "mapnik",
        "rendering"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:greenstand/server.js",
      "type": "file",
      "name": "server.js",
      "filePath": "greenstand/server.js",
      "summary": "Process entry point that loads .env through dotenv, sets loglevel to info, asserts with expect-runtime that MAXIMUM_ZOOM_LEVEL_USING_GLOBAL_DATASET and MAXIMUM_ZOOM_LEVEL_HANDLING_ZOOM_TARGET are defined, and starts the Express app from app.js on PORT.",
      "tags": [
        "entry-point",
        "server",
        "bootstrap",
        "environment"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/sheet.test.js",
      "type": "file",
      "name": "sheet.test.js",
      "filePath": "greenstand/sheet.test.js",
      "summary": "Jest suite that renders test/stylesheet.xml and test/postgis.xml with node-mapnik to PNG and UTF grid files under /tmp/test, checks the binding version (4.5.6, Mapnik 4.0.0), and calls the Express app with supertest on / and /0/0/0.png; it.only limits a run to the grid case.",
      "tags": [
        "test",
        "rendering",
        "supertest",
        "smoke-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:greenstand/sphericalmercator.js",
      "type": "file",
      "name": "sphericalmercator.js",
      "filePath": "greenstand/sphericalmercator.js",
      "summary": "Exports a singleton SphericalMercator that converts between lon/lat, 256-pixel tile pixels, and Web Mercator envelopes for zoom levels 0-20 through a mapnik.Projection. It also gives a pixel-buffered lon/lat bbox, clipped to +/-85.0511 latitude, for the tile SQL queries.",
      "tags": [
        "utility",
        "geospatial",
        "projection",
        "singleton",
        "tested"
      ],
      "complexity": "moderate",
      "languageNotes": "Prototype-based class: the constructor fills lookup arrays and the methods live on SphericalMercator.prototype; module.exports is one shared instance."
    },
    {
      "id": "function:greenstand/sphericalmercator.js:SphericalMercator",
      "type": "function",
      "name": "SphericalMercator",
      "filePath": "greenstand/sphericalmercator.js",
      "lineRange": [
        10,
        28
      ],
      "summary": "Constructor that precomputes the per-zoom pixel scale tables (Bc, Cc, zc, Ac) for 21 zoom levels at a 256-pixel tile size and stores the Web Mercator proj4 string.",
      "tags": [
        "geospatial",
        "precomputation",
        "constructor"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sphericalmercator.js:xyz_to_envelope",
      "type": "function",
      "name": "xyz_to_envelope",
      "filePath": "greenstand/sphericalmercator.js",
      "lineRange": [
        79,
        87
      ],
      "summary": "Converts tile x/y/zoom (optionally TMS-flipped) to a lon/lat box through px_to_ll and projects it to a Web Mercator envelope with mapnik.Projection.forward; app.js uses the result as the map extent.",
      "tags": [
        "geospatial",
        "tile-math",
        "projection"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sphericalmercator.js:xyz_to_envelope_db_buffer",
      "type": "function",
      "name": "xyz_to_envelope_db_buffer",
      "filePath": "greenstand/sphericalmercator.js",
      "lineRange": [
        112,
        132
      ],
      "summary": "Expands the tile pixel corners by a pixel buffer, converts them to lon/lat, and clips them to valid longitude and Web Mercator latitude ranges, which gives the WGS84 bounds that Config passes into the tree SQL.",
      "tags": [
        "geospatial",
        "tile-math",
        "sql-bounds"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/sphericalmercator.test.js",
      "type": "file",
      "name": "sphericalmercator.test.js",
      "filePath": "greenstand/sphericalmercator.test.js",
      "summary": "Jest spec that checks xyz_to_envelope_db_buffer with a 100-pixel buffer at zoom 2 for tiles 2/1, 1/0, and 1/3 against ST_MakeEnvelope bounds captured from real SQL logs.",
      "tags": [
        "test",
        "geospatial",
        "unit-test"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/xml.js",
      "type": "file",
      "name": "xml.js",
      "filePath": "greenstand/xml.js",
      "summary": "Exports the original orange-icon Mapnik XML templates: xml (PostGIS cluster layer with cluster_46px and cluster_63px shields), xmlTree (PostGIS tree layer with pin_29px.png), and xmlJson and xmlJsonForTree, which use an inline GeoJSON datasource with a json_data placeholder.",
      "tags": [
        "template",
        "mapnik-xml",
        "styling",
        "postgis",
        "tested"
      ],
      "complexity": "moderate",
      "languageNotes": "The templates carry placeholder DB credentials (postgres, 172.17.0.2, greenstand, treetracker_dev) and the literal 'select * from trees', which config.js swaps out at runtime with string replace."
    },
    {
      "id": "file:greenstand/xml2.js",
      "type": "file",
      "name": "xml2.js",
      "filePath": "greenstand/xml2.js",
      "summary": "Exports the green 'ptk' icon variants of the Mapnik XML templates: xml2 and xmlTree2 (PostGIS layers with original_size_shadowless.png shields and tree_new.png points), xmlJson2 and xmlJsonForTree2 (inline GeoJSON with Lato Regular labels and tree_icon.png), and xmlJson3 and xmlTree3, derived by regex replace.",
      "tags": [
        "template",
        "mapnik-xml",
        "styling",
        "icons"
      ],
      "complexity": "moderate",
      "languageNotes": "xmlJson3 shrinks xmlJson2 through chained regex replaces (scale 0.81, shield-dy -2, size 12). The xmlTree3 regex targets scale(0.33), which xmlTree2 does not contain, so xmlTree3 is identical to xmlTree2."
    },
    {
      "id": "file:lib/index.js",
      "type": "file",
      "name": "index.js",
      "filePath": "lib/index.js",
      "summary": "CommonJS barrel that re-exports the node-mapnik binding module from lib/mapnik.js unchanged.",
      "tags": [
        "barrel",
        "entry-point",
        "re-export"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:lib/mapnik.js",
      "type": "file",
      "name": "mapnik.js",
      "filePath": "lib/mapnik.js",
      "summary": "Upstream node-mapnik loader and package main: it finds the native binding with @mapbox/node-pre-gyp, applies env vars from mapnik_settings.js, defaults VRT_SHARED_SOURCE to 0, and adds version plus font and plugin registration helpers. It also registers MAPNIK_FONT_PATH fonts and adds typeName, toWKB, and toWKT prototype helpers.",
      "tags": [
        "entry-point",
        "native-binding",
        "bootstrap",
        "fonts",
        "tested"
      ],
      "complexity": "moderate",
      "languageNotes": "The JavaScript layer monkey-patches prototypes of the native mapnik.Geometry and mapnik.Feature classes after the binding loads."
    },
    {
      "id": "function:lib/mapnik.js:getGeometryType",
      "type": "function",
      "name": "getGeometryType",
      "filePath": "lib/mapnik.js",
      "lineRange": [
        89,
        110
      ],
      "summary": "Maps a numeric mapnik.Geometry type constant to its name (Point, LineString, Polygon, the Multi* types, or GeometryCollection), with 'Unknown' as the fallback; Geometry.prototype.typeName uses it.",
      "tags": [
        "utility",
        "geometry",
        "mapping"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:lib/mapnik.js:register_default_fonts",
      "type": "function",
      "name": "register_default_fonts",
      "filePath": "lib/mapnik.js",
      "lineRange": [
        40,
        44
      ],
      "summary": "Registers the bundled font directory from settings.paths.fonts recursively with mapnik.register_fonts, when the binary package ships one.",
      "tags": [
        "fonts",
        "bootstrap",
        "registration"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:lib/mapnik.js:register_default_input_plugins",
      "type": "function",
      "name": "register_default_input_plugins",
      "filePath": "lib/mapnik.js",
      "lineRange": [
        46,
        50
      ],
      "summary": "Registers the bundled datasource input plugins from settings.paths.input_plugins with mapnik.register_datasources, which the PostGIS and GeoJSON layers of the tile server need.",
      "tags": [
        "datasource",
        "plugins",
        "bootstrap"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:lib/mapnik.js:register_system_fonts",
      "type": "function",
      "name": "register_system_fonts",
      "filePath": "lib/mapnik.js",
      "lineRange": [
        52,
        78
      ],
      "summary": "Registers OS font directories (/usr/share/fonts and ~/.fonts on Linux, BSD, and SunOS; /Library/Fonts on macOS; C:\\Windows\\Fonts on Windows) and returns true only when the font count grows.",
      "tags": [
        "fonts",
        "platform-detection",
        "registration"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/Map.js",
      "type": "file",
      "name": "Map.js",
      "filePath": "greenstand/Map.js",
      "summary": "Defines the Map class that the tile server uses to pick a SQL builder from greenstand/sqls by map mode (single tree, user, wallet, organization map_name, timeline, or default) and zoom level, then runs the query on a pg pool to fetch tree points or clusters.",
      "tags": [
        "service",
        "query-dispatcher",
        "postgis",
        "tile-data",
        "strategy-pattern",
        "tested"
      ],
      "complexity": "moderate",
      "languageNotes": "CommonJS module (module.exports) with async/await. SQLCase1 and SQLZoomTargetCase1V2 are required but never instantiated, and the user and wallet count queries interpolate request values straight into the SQL text instead of bind parameters."
    },
    {
      "id": "class:greenstand/Map.js:Map",
      "type": "class",
      "name": "Map",
      "filePath": "greenstand/Map.js",
      "lineRange": [
        14,
        196
      ],
      "summary": "Holds a pg pool and the active SQL builder: init(settings) selects the builder, getQuery and getZoomTargetQuery expose its SQL, and getPoints and getZoomTargets run it on the pool.",
      "tags": [
        "service",
        "query-dispatcher",
        "data-access"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/Map.js:init",
      "type": "function",
      "name": "init",
      "filePath": "greenstand/Map.js",
      "lineRange": [
        19,
        158
      ],
      "summary": "Reads treeid, zoom_level, userid, wallet, map_name, timeline, and bounds from settings, counts trees for user or wallet maps, and assigns this.sql to SQLCase2, SQLCase2Wallet, SQLCase2Timeline, SQLCase3, SQLCase3Timeline, SQLCase1Timeline, SQLCase1WithZoomTarget, or SQLCase4 by mode, zoom band (>15, 12-15, lower), and a 2000-tree threshold. The capture_id branch never runs because init does not set this.capture_id, and flavor and token are stored but not applied.",
      "tags": [
        "dispatcher",
        "initialization",
        "branching-logic",
        "async"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:greenstand/Map.js:getPoints",
      "type": "function",
      "name": "getPoints",
      "filePath": "greenstand/Map.js",
      "lineRange": [
        172,
        181
      ],
      "summary": "Gets the SQL from the selected builder, runs it on the pg pool, logs the elapsed milliseconds and the first two rows, and returns the result rows for tile rendering.",
      "tags": [
        "data-access",
        "async",
        "logging"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/Map.js:getZoomTargets",
      "type": "function",
      "name": "getZoomTargets",
      "filePath": "greenstand/Map.js",
      "lineRange": [
        183,
        194
      ],
      "summary": "Runs the zoom target query on the pg pool when getZoomTargetQuery returns one and returns its rows; because init never sets sqlZoomTarget, it currently returns undefined.",
      "tags": [
        "data-access",
        "zoom-target",
        "async"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/Map.test.js",
      "type": "file",
      "name": "Map.test.js",
      "filePath": "greenstand/Map.test.js",
      "summary": "Jest suite for Map that mocks pg Pool.prototype.query and checks which SQL case (case1 to case4, case6 zoom target) init selects for normal, user, single tree, wallet, token, flavor, and org map_name settings across zoom levels. Many expectations ({text, values} results, case6 zoom targets, token and flavor filters) do not match the current Map.js output.",
      "tags": [
        "test",
        "jest",
        "mocking",
        "query-selection"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses jest.mock('pg') and replaces Pool.prototype.query, but constructs Map without a pool, so the user-map count query in init has no pool to call."
    },
    {
      "id": "file:greenstand/sqls/SQLCase1.js",
      "type": "file",
      "name": "SQLCase1.js",
      "filePath": "greenstand/sqls/SQLCase1.js",
      "summary": "Base SQL builder (case1) that aggregates tree counts per region from the active_tree_region table at a given zoom level, with optional planter, wallet, organization map_name, tree id, and bounding box filters, and returns cluster rows with K-formatted count_text labels.",
      "tags": [
        "sql-builder",
        "data-access",
        "clustering",
        "postgis",
        "base-class"
      ],
      "complexity": "moderate",
      "languageNotes": "Builds SQL with template literals and string concatenation of filter values (userId, wallet, mapName, bounds) rather than bind parameters."
    },
    {
      "id": "class:greenstand/sqls/SQLCase1.js:SQLCase1",
      "type": "class",
      "name": "SQLCase1",
      "filePath": "greenstand/sqls/SQLCase1.js",
      "lineRange": [
        5,
        147
      ],
      "summary": "Stateful builder whose setters (addFilterByUserId, addFilterByWallet, addMapNameFilter, setZoomLevel, setBounds) store criteria that getQuery assembles into a region-cluster SELECT over active_tree_region; getZoomLevel throws when no zoom level is set.",
      "tags": [
        "sql-builder",
        "base-class",
        "query-builder"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/sqls/SQLCase1.js:getJoin",
      "type": "function",
      "name": "getJoin",
      "filePath": "greenstand/sqls/SQLCase1.js",
      "lineRange": [
        21,
        34
      ],
      "summary": "Returns case1 JOIN clauses: tree_region to trees for user or wallet filters, tree_region to the org_tree_id CTE for a map_name, and trees to wallet.token and wallet.wallet for a wallet.",
      "tags": [
        "sql-fragment",
        "join",
        "query-builder"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase1.js:getFilter",
      "type": "function",
      "name": "getFilter",
      "filePath": "greenstand/sqls/SQLCase1.js",
      "lineRange": [
        36,
        48
      ],
      "summary": "Returns case1 AND clauses that filter by planter_id, by a tree_region.tree_id IN list built from treeIds, and by wallet.wallet.name.",
      "tags": [
        "sql-fragment",
        "filter",
        "query-builder"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase1.js:getWith",
      "type": "function",
      "name": "getWith",
      "filePath": "greenstand/sqls/SQLCase1.js",
      "lineRange": [
        80,
        116
      ],
      "summary": "Returns a placeholder WITH clause, or for a map_name a recursive organization_children CTE over entity_relationship plus an org_tree_id CTE of trees from planters in up to 20 child organizations or from the planting organization.",
      "tags": [
        "sql-fragment",
        "recursive-cte",
        "organization-filter"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/sqls/SQLCase1.js:getQuery",
      "type": "function",
      "name": "getQuery",
      "filePath": "greenstand/sqls/SQLCase1.js",
      "lineRange": [
        118,
        146
      ],
      "summary": "Assembles the case1 SELECT on active_tree_region grouped by region_id, centroid, and type_id with count and count_text; at zoom level 2 it clamps centroid longitude to 170, and options.disableWith omits the WITH clause.",
      "tags": [
        "query-builder",
        "clustering",
        "sql"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:greenstand/sqls/SQLCase1Timeline.js",
      "type": "file",
      "name": "SQLCase1Timeline.js",
      "filePath": "greenstand/sqls/SQLCase1Timeline.js",
      "summary": "Extends SQLCase1 to restrict region cluster counts to trees whose time_created falls inside a 'YYYY-MM-DD_YYYY-MM-DD' timeline, replacing the parent joins with a single join from tree_region to trees.",
      "tags": [
        "sql-builder",
        "timeline-filter",
        "clustering",
        "validation",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:greenstand/sqls/SQLCase1Timeline.js:SQLCase1Timeline",
      "type": "class",
      "name": "SQLCase1Timeline",
      "filePath": "greenstand/sqls/SQLCase1Timeline.js",
      "lineRange": [
        3,
        41
      ],
      "summary": "SQLCase1 subclass with a static checkTimeline regex validator and an addTimeline setter; it overrides getJoin and getFilter to filter region counts by trees.time_created.",
      "tags": [
        "sql-builder",
        "subclass",
        "timeline-filter"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase1Timeline.js:getFilter",
      "type": "function",
      "name": "getFilter",
      "filePath": "greenstand/sqls/SQLCase1Timeline.js",
      "lineRange": [
        31,
        40
      ],
      "summary": "Splits the stored timeline on '_' into begin and end dates and returns an AND trees.time_created range clause that limits case1 region counts to that period.",
      "tags": [
        "sql-fragment",
        "timeline-filter",
        "date-range"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/sqls/SQLCase1Timeline.test.js",
      "type": "file",
      "name": "SQLCase1Timeline.test.js",
      "filePath": "greenstand/sqls/SQLCase1Timeline.test.js",
      "summary": "Minimal Jest test that calls SQLCase1Timeline.checkTimeline with the valid range '2015-01-21_2016-12-31' and expects it not to throw.",
      "tags": [
        "test",
        "jest",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/sqls/SQLCase1V2.js",
      "type": "file",
      "name": "SQLCase1V2.js",
      "filePath": "greenstand/sqls/SQLCase1V2.js",
      "summary": "Variant of SQLCase1 that filters organization trees for a map_name with an inline INNER JOIN derived table on tree_region.tree_id instead of a join to the org_tree_id CTE; Map.js does not import it.",
      "tags": [
        "sql-builder",
        "organization-filter",
        "variant",
        "data-access"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:greenstand/sqls/SQLCase1V2.js:SQLCase1V2",
      "type": "class",
      "name": "SQLCase1V2",
      "filePath": "greenstand/sqls/SQLCase1V2.js",
      "lineRange": [
        7,
        47
      ],
      "summary": "SQLCase1 subclass that overrides getJoin to join tree_region to a derived table of organization tree ids for the stored mapName and redefines addMapNameFilter.",
      "tags": [
        "sql-builder",
        "subclass",
        "organization-filter"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase1V2.js:getJoin",
      "type": "function",
      "name": "getJoin",
      "filePath": "greenstand/sqls/SQLCase1V2.js",
      "lineRange": [
        13,
        41
      ],
      "summary": "Returns a trees join for user filters and, for a map_name, an INNER JOIN to a tree_ids derived table of organization planter trees and planting_organization trees, matched on tree_region.tree_id.",
      "tags": [
        "sql-fragment",
        "join",
        "organization-filter"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/sqls/SQLCase1WithZoomTarget.js",
      "type": "file",
      "name": "SQLCase1WithZoomTarget.js",
      "filePath": "greenstand/sqls/SQLCase1WithZoomTarget.js",
      "summary": "Extends SQLCase1 so that, at zoom levels up to MAXIMUM_ZOOM_LEVEL_HANDLING_ZOOM_TARGET, each region cluster also gets a zoom_to centroid of its most populated subregion two zoom levels deeper; above that level it falls back to the plain case1 query.",
      "tags": [
        "sql-builder",
        "zoom-target",
        "clustering",
        "postgis"
      ],
      "complexity": "moderate",
      "languageNotes": "Reads process.env.MAXIMUM_ZOOM_LEVEL_HANDLING_ZOOM_TARGET at query time; if the variable is unset, parseInt returns NaN and the comparison is always false."
    },
    {
      "id": "class:greenstand/sqls/SQLCase1WithZoomTarget.js:SQLCase1WithZoomTarget",
      "type": "class",
      "name": "SQLCase1WithZoomTarget",
      "filePath": "greenstand/sqls/SQLCase1WithZoomTarget.js",
      "lineRange": [
        4,
        84
      ],
      "summary": "SQLCase1 subclass whose only override, getQuery, wraps the parent cluster query as cluster_1 and LEFT JOINs a zoom_target subquery to fill the zoom_to column.",
      "tags": [
        "sql-builder",
        "subclass",
        "zoom-target"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/sqls/SQLCase1WithZoomTarget.js:getQuery",
      "type": "function",
      "name": "getQuery",
      "filePath": "greenstand/sqls/SQLCase1WithZoomTarget.js",
      "lineRange": [
        6,
        83
      ],
      "summary": "When the zoom level is at or below MAXIMUM_ZOOM_LEVEL_HANDLING_ZOOM_TARGET, nests the parent case1 query (without WITH) and joins, per region, the GeoJSON centroid of the most populated subregion at zoom+2 as zoom_to; otherwise returns the parent query unchanged.",
      "tags": [
        "query-builder",
        "zoom-target",
        "postgis",
        "override"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:greenstand/sqls/SQLCase2.js",
      "type": "file",
      "name": "SQLCase2.js",
      "filePath": "greenstand/sqls/SQLCase2.js",
      "summary": "Base SQL builder (case2) for high zoom levels that selects individual active trees as point rows from the trees table, with optional tree id, uuid, planter, wallet, flavor, certificate token, organization map_name, and bounding box filters.",
      "tags": [
        "sql-builder",
        "data-access",
        "tree-points",
        "postgis",
        "base-class"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:greenstand/sqls/SQLCase2.js:SQLCase2",
      "type": "class",
      "name": "SQLCase2",
      "filePath": "greenstand/sqls/SQLCase2.js",
      "lineRange": [
        8,
        160
      ],
      "summary": "Point query builder with setters for tree id, uuid, planter, wallet, flavor, token, map_name, and bounds; addTreesFilter throws 'dedicated', and getQuery logs and returns the SQL string.",
      "tags": [
        "sql-builder",
        "base-class",
        "tree-points"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/sqls/SQLCase2.js:getFilter",
      "type": "function",
      "name": "getFilter",
      "filePath": "greenstand/sqls/SQLCase2.js",
      "lineRange": [
        44,
        70
      ],
      "summary": "Returns case2 AND clauses that match trees.id, trees.uuid, trees.planter_id, or wallet.wallet.name, and for a map_name keeps trees whose planter is in planter_in_org or whose planting organization has that map_name.",
      "tags": [
        "sql-fragment",
        "filter",
        "query-builder"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase2.js:getJoinCriteria",
      "type": "function",
      "name": "getJoinCriteria",
      "filePath": "greenstand/sqls/SQLCase2.js",
      "lineRange": [
        84,
        93
      ],
      "summary": "Returns extra case2 criteria: an app_flavor key and value check on tree_attributes, or an INNER JOIN to certificates by token; getQuery appends this text after the WHERE conditions.",
      "tags": [
        "sql-fragment",
        "flavor-filter",
        "token-filter"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase2.js:getJoin",
      "type": "function",
      "name": "getJoin",
      "filePath": "greenstand/sqls/SQLCase2.js",
      "lineRange": [
        95,
        105
      ],
      "summary": "Returns case2 INNER JOINs from trees to wallet.token and wallet.wallet for a wallet filter and to tree_attributes for a flavor filter.",
      "tags": [
        "sql-fragment",
        "join",
        "wallet-filter"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase2.js:getWith",
      "type": "function",
      "name": "getWith",
      "filePath": "greenstand/sqls/SQLCase2.js",
      "lineRange": [
        107,
        132
      ],
      "summary": "Returns a placeholder WITH clause, or for a map_name a recursive organization_children CTE and a planter_in_org CTE of planters that belong to up to 20 child organizations.",
      "tags": [
        "sql-fragment",
        "recursive-cte",
        "organization-filter"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/sqls/SQLCase2.js:getQuery",
      "type": "function",
      "name": "getQuery",
      "filePath": "greenstand/sqls/SQLCase2.js",
      "lineRange": [
        134,
        159
      ],
      "summary": "Builds and logs the case2 SELECT of active trees with geometry, GeoJSON latlon, id, lat, lon, and count 1, applying the WITH clause, joins, bounding box, filters, and join criteria, ordered by id descending.",
      "tags": [
        "query-builder",
        "tree-points",
        "sql"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:greenstand/sqls/SQLCase2Timeline.js",
      "type": "file",
      "name": "SQLCase2Timeline.js",
      "filePath": "greenstand/sqls/SQLCase2Timeline.js",
      "summary": "Extends SQLCase2 to select active tree points inside a bounding box whose time_created falls in a timeline range, and returns a pg {text, values} query object instead of a plain SQL string.",
      "tags": [
        "sql-builder",
        "timeline-filter",
        "tree-points"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:greenstand/sqls/SQLCase2Timeline.js:SQLCase2Timeline",
      "type": "class",
      "name": "SQLCase2Timeline",
      "filePath": "greenstand/sqls/SQLCase2Timeline.js",
      "lineRange": [
        3,
        59
      ],
      "summary": "SQLCase2 subclass that adds addTimeline, replaces getFilter with a time_created range, returns an empty getJoin, redefines the bounds methods, and returns a {text, values} object from getQuery.",
      "tags": [
        "sql-builder",
        "subclass",
        "timeline-filter"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/sqls/SQLCase2Timeline.js:getFilter",
      "type": "function",
      "name": "getFilter",
      "filePath": "greenstand/sqls/SQLCase2Timeline.js",
      "lineRange": [
        10,
        19
      ],
      "summary": "Returns an AND trees.time_created range clause from the begin and end dates of the stored timeline, so case2 point rows only include trees created in that period; it does not validate the timeline format.",
      "tags": [
        "sql-fragment",
        "timeline-filter",
        "date-range"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase2Timeline.js:getQuery",
      "type": "function",
      "name": "getQuery",
      "filePath": "greenstand/sqls/SQLCase2Timeline.js",
      "lineRange": [
        38,
        58
      ],
      "summary": "Builds and logs a case2 point SELECT of trees.id, lat, and lon for active trees in the bounding box and timeline range, and wraps the SQL in a pg {text, values: []} object.",
      "tags": [
        "query-builder",
        "tree-points",
        "timeline-filter"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/sqls/SQLCase2Wallet.js",
      "type": "file",
      "name": "SQLCase2Wallet.js",
      "filePath": "greenstand/sqls/SQLCase2Wallet.js",
      "summary": "Extends SQLCase2 for wallet maps: it selects active tree points joined to wallet.token on capture_id, keeps only tokens in the named wallet, and throws 'dedicated' for the user, flavor, token, and map_name filters.",
      "tags": [
        "sql-builder",
        "wallet-filter",
        "tree-points",
        "data-access"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:greenstand/sqls/SQLCase2Wallet.js:SQLCase2Wallet",
      "type": "class",
      "name": "SQLCase2Wallet",
      "filePath": "greenstand/sqls/SQLCase2Wallet.js",
      "lineRange": [
        8,
        87
      ],
      "summary": "SQLCase2 subclass that disables non-wallet filter setters by throwing, returns empty filter, join, and join criteria fragments and a placeholder WITH, and builds a wallet-scoped point query in getQuery.",
      "tags": [
        "sql-builder",
        "subclass",
        "wallet-filter"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/sqls/SQLCase2Wallet.js:getQuery",
      "type": "function",
      "name": "getQuery",
      "filePath": "greenstand/sqls/SQLCase2Wallet.js",
      "lineRange": [
        55,
        86
      ],
      "summary": "Builds and logs a SELECT of active tree points joined to wallet.token by capture_id and lower(trees.uuid), wrapped as tree_token and joined to wallet.wallet to keep rows of the named wallet only.",
      "tags": [
        "query-builder",
        "wallet-filter",
        "tree-points"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:greenstand/sqls/SQLCase3.js",
      "type": "file",
      "name": "SQLCase3.js",
      "filePath": "greenstand/sqls/SQLCase3.js",
      "summary": "SQL builder (case3) that clusters active trees on the fly with PostGIS ST_ClusterWithin, using a zoom-dependent cluster radius, and supports planter, wallet, flavor, certificate token, organization map_name, and bounding box filters.",
      "tags": [
        "sql-builder",
        "clustering",
        "postgis",
        "base-class",
        "data-access"
      ],
      "complexity": "moderate",
      "languageNotes": "The header comment notes that clustering the raw trees table directly is slow for large data sets, which is why Map.js only uses case3 for smaller user and wallet maps and mid zoom levels."
    },
    {
      "id": "class:greenstand/sqls/SQLCase3.js:SQLCase3",
      "type": "class",
      "name": "SQLCase3",
      "filePath": "greenstand/sqls/SQLCase3.js",
      "lineRange": [
        5,
        199
      ],
      "summary": "Cluster query builder with zoom, planter, wallet, flavor, token, map_name, and bounds setters plus getClusterRadius; its getQuery emits an ST_ClusterWithin SELECT with centroid, count, and count_text columns.",
      "tags": [
        "sql-builder",
        "base-class",
        "clustering"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/sqls/SQLCase3.js:getClusterRadius",
      "type": "function",
      "name": "getClusterRadius",
      "filePath": "greenstand/sqls/SQLCase3.js",
      "lineRange": [
        21,
        64
      ],
      "summary": "Maps zoom levels 1 to 19 to an ST_ClusterWithin radius in degrees, from 10 at zoom 1 down to 0.003 at zoom 16 and 0 at zoom 17 and above.",
      "tags": [
        "clustering",
        "zoom-level",
        "lookup-table"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase3.js:getFilter",
      "type": "function",
      "name": "getFilter",
      "filePath": "greenstand/sqls/SQLCase3.js",
      "lineRange": [
        86,
        95
      ],
      "summary": "Returns case3 AND clauses that match trees.planter_id for user maps and wallet.wallet.name for wallet maps before clustering.",
      "tags": [
        "sql-fragment",
        "filter",
        "query-builder"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase3.js:getWith",
      "type": "function",
      "name": "getWith",
      "filePath": "greenstand/sqls/SQLCase3.js",
      "lineRange": [
        97,
        132
      ],
      "summary": "Builds the case3 WITH clause: a placeholder by default, or for a map_name the recursive organization_children CTE and an org_tree_id CTE that getJoin then joins to trees.id.",
      "tags": [
        "sql-fragment",
        "recursive-cte",
        "organization-filter"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/sqls/SQLCase3.js:getJoin",
      "type": "function",
      "name": "getJoin",
      "filePath": "greenstand/sqls/SQLCase3.js",
      "lineRange": [
        134,
        150
      ],
      "summary": "Returns case3 INNER JOINs from trees to the wallet tables, to tree_attributes for a flavor, to certificates for a token, and to org_tree_id for a map_name.",
      "tags": [
        "sql-fragment",
        "join",
        "query-builder"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase3.js:getQuery",
      "type": "function",
      "name": "getQuery",
      "filePath": "greenstand/sqls/SQLCase3.js",
      "lineRange": [
        172,
        198
      ],
      "summary": "Logs 'Calculating clusters directly' and builds the case3 SELECT that unnests ST_ClusterWithin over filtered active trees and returns each cluster centroid as geometry and GeoJSON with count and count_text.",
      "tags": [
        "query-builder",
        "clustering",
        "postgis"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:greenstand/sqls/SQLCase3Timeline.js",
      "type": "file",
      "name": "SQLCase3Timeline.js",
      "filePath": "greenstand/sqls/SQLCase3Timeline.js",
      "summary": "Extends SQLCase3 to cluster only trees whose time_created falls in a validated timeline range and drops all parent joins; it also keeps an unused getQuery2 variant of the cluster query.",
      "tags": [
        "sql-builder",
        "timeline-filter",
        "clustering",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:greenstand/sqls/SQLCase3Timeline.js:SQLCase3Timeline",
      "type": "class",
      "name": "SQLCase3Timeline",
      "filePath": "greenstand/sqls/SQLCase3Timeline.js",
      "lineRange": [
        3,
        68
      ],
      "summary": "SQLCase3 subclass with static checkTimeline validation, addTimeline, an empty getJoin, a time_created getFilter, and a legacy getQuery2; it inherits getQuery from SQLCase3.",
      "tags": [
        "sql-builder",
        "subclass",
        "timeline-filter"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/sqls/SQLCase3Timeline.js:getJoin",
      "type": "function",
      "name": "getJoin",
      "filePath": "greenstand/sqls/SQLCase3Timeline.js",
      "lineRange": [
        22,
        31
      ],
      "summary": "Overrides the SQLCase3 join builder to return an empty string, so timeline cluster queries read the trees table without wallet, flavor, token, or organization joins.",
      "tags": [
        "sql-fragment",
        "override",
        "join"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase3Timeline.js:getFilter",
      "type": "function",
      "name": "getFilter",
      "filePath": "greenstand/sqls/SQLCase3Timeline.js",
      "lineRange": [
        34,
        43
      ],
      "summary": "Replaces the SQLCase3 planter and wallet filters with a trees.time_created range clause built from the timeline, so ST_ClusterWithin only clusters trees created in that period.",
      "tags": [
        "sql-fragment",
        "timeline-filter",
        "date-range"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase3Timeline.js:getQuery2",
      "type": "function",
      "name": "getQuery2",
      "filePath": "greenstand/sqls/SQLCase3Timeline.js",
      "lineRange": [
        45,
        67
      ],
      "summary": "Alternative case3 timeline query that returns only type, GeoJSON centroid, and count per ST_ClusterWithin cluster; no code in this batch calls it, so the inherited SQLCase3.getQuery runs instead.",
      "tags": [
        "query-builder",
        "clustering",
        "unused"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/sqls/SQLCase4.js",
      "type": "file",
      "name": "SQLCase4.js",
      "filePath": "greenstand/sqls/SQLCase4.js",
      "summary": "SQL builder (case4) that reads precomputed clusters at zoom_level 14 from the clusters table, optionally limited to a bounding box, and formats count_text labels; Map.js uses it for default maps at zoom 12 to 15.",
      "tags": [
        "sql-builder",
        "clustering",
        "precomputed-data",
        "postgis"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:greenstand/sqls/SQLCase4.js:SQLCase4",
      "type": "class",
      "name": "SQLCase4",
      "filePath": "greenstand/sqls/SQLCase4.js",
      "lineRange": [
        5,
        44
      ],
      "summary": "Small builder with setBounds, a getBoundingBoxQuery on the location column, and a getQuery that selects from the precomputed clusters table at zoom level 14.",
      "tags": [
        "sql-builder",
        "clustering",
        "precomputed-data"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLCase4.js:getQuery",
      "type": "function",
      "name": "getQuery",
      "filePath": "greenstand/sqls/SQLCase4.js",
      "lineRange": [
        22,
        43
      ],
      "summary": "Returns the case4 SELECT of id, location geometry, GeoJSON centroid and latlon, count, and count_text from the clusters table at zoom_level 14 within the optional bounding box.",
      "tags": [
        "query-builder",
        "precomputed-data",
        "sql"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/sqls/SQLZoomTargetCase1.js",
      "type": "file",
      "name": "SQLZoomTargetCase1.js",
      "filePath": "greenstand/sqls/SQLZoomTargetCase1.js",
      "summary": "Zoom target query builder (case6) that, for each populated region at a zoom level, finds the most populated subregion two levels deeper and returns its centroid, with optional tree id and bounding box filters, as a parameterized {text, values} query.",
      "tags": [
        "sql-builder",
        "zoom-target",
        "postgis",
        "parameterized-query"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:greenstand/sqls/SQLZoomTargetCase1.js:SQLZoomTargetCase1",
      "type": "class",
      "name": "SQLZoomTargetCase1",
      "filePath": "greenstand/sqls/SQLZoomTargetCase1.js",
      "lineRange": [
        5,
        86
      ],
      "summary": "Zoom target builder that stores tree ids, zoom level, and bounds; getZoomLevel throws 'zoom level required' when unset, and getQuery binds zoom and zoom+2 as $1 and $2.",
      "tags": [
        "sql-builder",
        "zoom-target",
        "base-class"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/sqls/SQLZoomTargetCase1.js:getQuery",
      "type": "function",
      "name": "getQuery",
      "filePath": "greenstand/sqls/SQLZoomTargetCase1.js",
      "lineRange": [
        50,
        85
      ],
      "summary": "Returns a {text, values} query that uses DISTINCT ON region.id to pick, per populated region, the subregion at zoom+2 with the highest tree total whose centroid lies inside it, filtered by tree ids and region centroid bounds.",
      "tags": [
        "query-builder",
        "zoom-target",
        "parameterized-query"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:greenstand/sqls/SQLZoomTargetCase1V2.js",
      "type": "file",
      "name": "SQLZoomTargetCase1V2.js",
      "filePath": "greenstand/sqls/SQLZoomTargetCase1V2.js",
      "summary": "Extends SQLZoomTargetCase1 to select organization trees for a map_name through the getEntityRelationshipChildren database function instead of an explicit tree id list; setTreeIds and addTreesFilter throw 'dedicated'.",
      "tags": [
        "sql-builder",
        "zoom-target",
        "organization-filter",
        "variant"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:greenstand/sqls/SQLZoomTargetCase1V2.js:SQLZoomTargetCase1V2",
      "type": "class",
      "name": "SQLZoomTargetCase1V2",
      "filePath": "greenstand/sqls/SQLZoomTargetCase1V2.js",
      "lineRange": [
        7,
        63
      ],
      "summary": "SQLZoomTargetCase1 subclass that adds addMapNameFilter, overrides getFilter with an organization tree id subquery, and blocks setTreeIds and addTreesFilter by throwing.",
      "tags": [
        "sql-builder",
        "subclass",
        "organization-filter"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLZoomTargetCase1V2.js:getFilter",
      "type": "function",
      "name": "getFilter",
      "filePath": "greenstand/sqls/SQLZoomTargetCase1V2.js",
      "lineRange": [
        22,
        57
      ],
      "summary": "For a map_name, returns an AND active_tree_region.tree_id IN clause over trees of planters in getEntityRelationshipChildren organizations and trees planted by the organization; the planter branch appears twice under UNION ALL.",
      "tags": [
        "sql-fragment",
        "organization-filter",
        "stored-function"
      ],
      "complexity": "moderate"
    },
    {
      "id": "config:.dockerignore",
      "type": "config",
      "name": ".dockerignore",
      "filePath": ".dockerignore",
      "summary": "Docker build-context ignore list with a single entry, node_modules, so the Dockerfile's `COPY . ./` does not ship host dependencies into the image; `make release_base` reinstalls them inside the container with `npm install --ignore-scripts --clang`.",
      "tags": [
        "configuration",
        "containerization",
        "build-system",
        "docker"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:Dockerfile",
      "type": "service",
      "name": "Dockerfile",
      "filePath": "Dockerfile",
      "summary": "Single-stage image build for the Greenstand tile server: it copies the repo into /app, installs build-essential, zlib1g-dev, ca-certificates and a Node.js 14.21.3 tarball, compiles the node-mapnik native binding with `make release_base`, and runs `npm start`, which launches greenstand/server.js.",
      "tags": [
        "containerization",
        "infrastructure",
        "deployment",
        "native-build",
        "docker"
      ],
      "complexity": "simple",
      "languageNotes": "Every RUN uses sudo, so the base image runs as a non-root user with sudo rights. Lines 6 and 8 call `apt install` without `-y`; in a non-interactive build that works only when the packages are already present, because a confirmation prompt aborts the step. A TODO on line 9 proposes a rebuild from a Node 14 Alpine image."
    },
    {
      "id": "service:Dockerfile:tile-server-base",
      "type": "service",
      "name": "tile-server-base",
      "filePath": "Dockerfile",
      "lineRange": [
        1,
        13
      ],
      "summary": "The one build stage, based on the prebuilt greenstand/tile-server-base:first image; that base image must supply the Mapnik libraries and the mapnik-config tool that `make release_base` checks for, because this Dockerfile installs no Mapnik packages itself.",
      "tags": [
        "base-image",
        "build-stage",
        "mapnik",
        "containerization"
      ],
      "complexity": "simple"
    },
    {
      "id": "pipeline:.github/workflows/build-deploy.yml",
      "type": "pipeline",
      "name": "build-deploy.yml",
      "filePath": ".github/workflows/build-deploy.yml",
      "summary": "GitHub Actions workflow that runs on pushes to master and next: it cuts a release with semantic-release, then builds the root Dockerfile with Buildx and pushes greenstand/treetracker-map-tile-server to DockerHub, tagged with the package.json version. A second job sets that tag in deployment/base with kustomize and applies the deployment/overlays/development build to the tile-server namespace on the DigitalOcean cluster named by DEV_CLUSTER_NAME.",
      "tags": [
        "ci-cd",
        "deployment",
        "semantic-release",
        "containerization",
        "kubernetes"
      ],
      "complexity": "moderate",
      "languageNotes": "The deploy job gets the image tag from the build job through an uploaded artifact file (image-tag-<sha>) instead of job outputs, and it sets a step output with the deprecated ::set-output command. The Bash brace expansion @semantic-release/{git,exec,changelog} installs three plugins in one npm command."
    },
    {
      "id": "pipeline:.github/workflows/deploy-dev-next.yml",
      "type": "pipeline",
      "name": "deploy-dev-next.yml",
      "filePath": ".github/workflows/deploy-dev-next.yml",
      "summary": "Manually dispatched workflow that checks out a given git-tag, reads the package.json version, and runs kustomize on deployment-next/base and deployment-next/overlays/development to apply that image to the tile-server-next namespace on the DEV_CLUSTER_NAME cluster. The deployment-next/ directory that it uses is not present in this repo.",
      "tags": [
        "ci-cd",
        "deployment",
        "manual-dispatch",
        "kustomize",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "pipeline:.github/workflows/deploy-dev.yml",
      "type": "pipeline",
      "name": "deploy-dev.yml",
      "filePath": ".github/workflows/deploy-dev.yml",
      "summary": "Manually dispatched workflow that redeploys a chosen git-tag to development: it sets greenstand/treetracker-map-tile-server:<package.json version> as the image in deployment/base and applies the deployment/overlays/development kustomize build to the tile-server namespace. It saves the kubeconfig of the cluster in the TEST_CLUSTER_NAME secret, not DEV_CLUSTER_NAME.",
      "tags": [
        "ci-cd",
        "deployment",
        "manual-dispatch",
        "development-env",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "pipeline:.github/workflows/deploy-prod.yml",
      "type": "pipeline",
      "name": "deploy-prod.yml",
      "filePath": ".github/workflows/deploy-prod.yml",
      "summary": "Manually dispatched workflow that promotes a chosen git tag to production: it checks out the tag with actions/checkout@v4, sets the package.json version as the image in deployment/base, and applies the deployment/overlays/production kustomize build to the tile-server namespace. It authenticates with the DIGITALOCEAN_PRODUCTION_TOKEN secret on the cluster named by PRODUCTION_CLUSTER_NAME.",
      "tags": [
        "ci-cd",
        "deployment",
        "manual-dispatch",
        "production",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "pipeline:.github/workflows/deploy-test.yml",
      "type": "pipeline",
      "name": "deploy-test.yml",
      "filePath": ".github/workflows/deploy-test.yml",
      "summary": "Manually dispatched workflow that deploys a chosen git tag to the test environment: it sets the package.json version as the image in deployment/base and applies the deployment/overlays/test kustomize build to the tile-server namespace. It uses the DIGITALOCEAN_TOKEN secret and the DigitalOcean cluster named by TEST_CLUSTER_NAME.",
      "tags": [
        "ci-cd",
        "deployment",
        "manual-dispatch",
        "test-env",
        "kubernetes"
      ],
      "complexity": "simple",
      "languageNotes": "The workflow runs `kustomize edit set image` in deployment/base and then builds the overlay. The overlay gets the new image tag through its `bases: ../../base` reference."
    },
    {
      "id": "config:.env",
      "type": "config",
      "name": ".env",
      "filePath": ".env",
      "summary": "Local dotenv settings for the Greenstand tile server: PORT=23300, CACHE_SIZE=10000 and CACHE_EXPIRE=60 for the query cache, PG_POOL_SIZE=60, and a value of 6 for both MAXIMUM_ZOOM_LEVEL_USING_GLOBAL_DATASET and MAXIMUM_ZOOM_LEVEL_HANDLING_ZOOM_TARGET. It also sets NODE_TLS_REJECT_UNAUTHORIZED='0'.",
      "tags": [
        "configuration",
        "environment-variables",
        "dotenv",
        "tile-server"
      ],
      "complexity": "simple",
      "languageNotes": "NODE_TLS_REJECT_UNAUTHORIZED='0' turns off TLS certificate verification for every outbound TLS connection of the Node process, not only the PostgreSQL connection."
    },
    {
      "id": "config:.prettierrc.json",
      "type": "config",
      "name": ".prettierrc.json",
      "filePath": ".prettierrc.json",
      "summary": "Prettier rules for the repo's JavaScript: semicolons on, trailing commas set to \"all\", and single quotes. The prettier, eslint-plugin-prettier, and eslint-config-prettier devDependencies in package.json apply these rules.",
      "tags": [
        "configuration",
        "code-formatting",
        "prettier",
        "linting"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:.travis.yml",
      "type": "config",
      "name": ".travis.yml",
      "filePath": ".travis.yml",
      "summary": "Legacy upstream node-mapnik Travis CI matrix on Node 12: Linux and macOS (xcode11) release and debug builds through make, plus ASan, g++-6, SSE_MATH=false, clang-format, clang-tidy, and coverage jobs. Most jobs start a local PostGIS with scripts/postgis/setup_and_run.sh, run npm test, and can publish binaries with scripts/publish.sh.",
      "tags": [
        "ci-cd",
        "travis-ci",
        "build-matrix",
        "testing",
        "upstream-node-mapnik"
      ],
      "complexity": "moderate",
      "languageNotes": "Tests run in before_script instead of script so that the first failing command stops the job; matrix entries override the global install and before_script keys to change toolchains or skip publishing."
    },
    {
      "id": "document:CHANGELOG.md",
      "type": "document",
      "name": "CHANGELOG.md",
      "filePath": "CHANGELOG.md",
      "summary": "Release history whose top part is Greenstand semantic-release entries from 4.6.0 (2021) to 4.36.7 (2026-09-29): PostGIS tile rendering, PGPool caching, SQL tuning for org and wallet maps, tree and cluster icons, and Kubernetes deployment fixes. Below the '# Changelog' heading it keeps the upstream node-mapnik history from 4.5.6 back to 0.1.0 (2011).",
      "tags": [
        "documentation",
        "changelog",
        "release-notes",
        "semantic-release",
        "upstream-node-mapnik"
      ],
      "complexity": "complex"
    },
    {
      "id": "document:CONTRIBUTING.md",
      "type": "document",
      "name": "CONTRIBUTING.md",
      "filePath": "CONTRIBUTING.md",
      "summary": "Upstream node-mapnik contributor guide that requires 100% line test coverage (LCOV_EXCL markers for unreachable code) and explains local docs builds with npm run docs. It describes the release flow: Mapnik SDK updates, '[publish binary]' commits, mapnik-swoop downstream tests, git tags, make testpack, and npm publish.",
      "tags": [
        "documentation",
        "development",
        "release-process",
        "testing",
        "upstream-node-mapnik"
      ],
      "complexity": "moderate"
    },
    {
      "id": "document:LICENSE.txt",
      "type": "document",
      "name": "LICENSE.txt",
      "filePath": "LICENSE.txt",
      "summary": "BSD 3-clause license text, copyright 2010-2012 Dane Springmeyer, inherited from upstream node-mapnik; package.json declares the matching BSD-3-Clause license.",
      "tags": [
        "documentation",
        "license",
        "bsd-3-clause",
        "legal"
      ],
      "complexity": "simple"
    },
    {
      "id": "pipeline:Makefile",
      "type": "pipeline",
      "name": "Makefile",
      "filePath": "Makefile",
      "summary": "Build entry point for the native mapnik addon: release and debug fetch the mason Mapnik SDK through scripts/install_deps.sh, then release_base and debug_base check mapnik-config and run node-pre-gyp configure build with SSE_MATH and the glibc workaround (the Dockerfile runs make release_base). Other targets run the coverage, clang-tidy, clang-format, and sanitizer scripts, clean and distclean, Xcode scheme generation, docs, npm test, and an npm pack check (testpack).",
      "tags": [
        "build-system",
        "makefile",
        "native-addon",
        "node-pre-gyp",
        "infrastructure"
      ],
      "complexity": "moderate",
      "languageNotes": "release calls release_base through a recursive $(MAKE) with mason_packages/.link/bin on PATH and -D_GLIBCXX_USE_CXX11_ABI=0; file targets such as ./node_modules/.bin/node-pre-gyp act as install-once prerequisites."
    },
    {
      "id": "document:README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "README.md",
      "summary": "Project README titled treetracker-tile-server (previously node-mapnik-1) that still carries upstream node-mapnik content: JavaScript examples that render a stylesheet to PNG, convert JPEG to PNG, and convert a shapefile to GeoJSON, plus platform requirements, binary install notes, and source builds with make release, make debug, or make release_base against mapnik-config. It does not describe the Greenstand Express tile server under greenstand/.",
      "tags": [
        "documentation",
        "entry-point",
        "build-instructions",
        "upstream-node-mapnik"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:index.html",
      "type": "file",
      "name": "index.html",
      "filePath": "index.html",
      "summary": "Static landing page from upstream node-mapnik (Node Mapnik 3.5.0) with npm install instructions, the README example that renders test/stylesheet.xml to map.png, and links to the 3.5 and 3.4 API reference. It loads highlight.js and the GitHub buttons script from CDNs, and no active code in the repo serves it.",
      "tags": [
        "markup",
        "landing-page",
        "static-html",
        "upstream-node-mapnik"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:map.json",
      "type": "config",
      "name": "map.json",
      "filePath": "map.json",
      "summary": "Stray 15-byte file whose only content is the string '[object Object]', which is what a JavaScript object becomes when it is written to a file without JSON.stringify. It is not valid JSON and no code reads it.",
      "tags": [
        "configuration",
        "artifact",
        "invalid-json",
        "unused"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:package.json",
      "type": "config",
      "name": "package.json",
      "filePath": "package.json",
      "summary": "npm manifest for treetracker-map-tile-server 4.36.7: main is ./lib/mapnik.js, start and start-dev run greenstand/server.js with --max-old-space-size=1024 (node or nodemon), and install fetches or builds the native binding through node-pre-gyp from the binary block. It pins mapnik_version c3eda40e0, lists express, cors, dotenv, lru-cache, loglevel, and node-addon-api as dependencies, and keeps tape, jest, supertest, pg, knex, eslint, prettier, husky, and commitlint for development.",
      "tags": [
        "configuration",
        "npm",
        "dependencies",
        "build-system",
        "entry-point"
      ],
      "complexity": "moderate",
      "languageNotes": "@mapbox/node-pre-gyp reads the binary block (module_name, module_path, host, remote_path, package_name) to find the prebuilt mapnik.node tarball. pg is a devDependency although greenstand/app.js requires it at runtime."
    },
    {
      "id": "file:vcbuild.bat",
      "type": "file",
      "name": "vcbuild.bat",
      "filePath": "vcbuild.bat",
      "summary": "Windows helper from upstream node-mapnik that prints the Node version and arch, points PROJ_LIB, GDAL_DATA, and PATH at a local C:\\code\\mapnik-deps Mapnik SDK, deletes lib\\binding, and runs node-pre-gyp build with --msvs_version=2013.",
      "tags": [
        "script",
        "windows",
        "build-system",
        "native-addon",
        "upstream-node-mapnik"
      ],
      "complexity": "simple",
      "languageNotes": "Batch file with no :LABEL subroutines; its hard-coded SDK paths make it a local developer script, and CHANGELOG 3.7.0 records that upstream removed Windows support."
    },
    {
      "id": "config:deployment/base/database-connection-sealed-secret.yaml",
      "type": "config",
      "name": "database-connection-sealed-secret.yaml",
      "filePath": "deployment/base/database-connection-sealed-secret.yaml",
      "summary": "Bitnami SealedSecret template named database-connection with one encrypted key, db, whose base value is PLACEHOLDER. Each environment overlay patches in the real encrypted PostgreSQL connection string, which the Deployment injects as DB_URL.",
      "tags": [
        "kubernetes",
        "security",
        "secrets",
        "configuration",
        "deployment"
      ],
      "complexity": "simple",
      "languageNotes": "A SealedSecret is encrypted with the public key of the cluster's sealed-secrets controller, so it is safe to commit to git. The controller decrypts it into a normal Secret inside the cluster."
    },
    {
      "id": "config:deployment/base/deployment.yaml",
      "type": "config",
      "name": "deployment.yaml",
      "filePath": "deployment/base/deployment.yaml",
      "summary": "Kubernetes Deployment that runs one replica of the greenstand/treetracker-map-tile-server image (tag VERSION, which CI replaces through kustomize) on the DigitalOcean microservices-node-pool, with soft pod anti-affinity across hosts. It sets PORT=3000, PG_POOL_SIZE=20, CACHE_SIZE, CACHE_EXPIRE, the two MAXIMUM_ZOOM_LEVEL thresholds (6), NODE_TLS_REJECT_UNAUTHORIZED=0, and DB_URL from the database-connection secret.",
      "tags": [
        "kubernetes",
        "deployment",
        "infrastructure",
        "orchestration",
        "configuration"
      ],
      "complexity": "moderate",
      "languageNotes": "containerPort 80 is informational only: the Node process listens on PORT 3000, and service.yaml targets port 3000. NODE_TLS_REJECT_UNAUTHORIZED=0 turns off TLS certificate verification for every outbound TLS connection of the process, including the PostgreSQL connection."
    },
    {
      "id": "config:deployment/base/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "deployment/base/kustomization.yaml",
      "summary": "Kustomize base that puts the tile server into the tile-server namespace and bundles deployment.yaml, mapping.yaml, service.yaml, and the database-connection SealedSecret. The CI workflows set the image tag in this directory, and the beta, development, production, and test overlays patch it; namespace.yaml is not in its resources list.",
      "tags": [
        "kustomize",
        "kubernetes",
        "configuration",
        "deployment",
        "build-system"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/base/mapping.yaml",
      "type": "config",
      "name": "mapping.yaml",
      "filePath": "deployment/base/mapping.yaml",
      "summary": "Ambassador (getambassador.io/v2) Mapping that routes requests with the /tiles/ URL prefix to the treetracker-tile-server Service. It rewrites the prefix to / and allows 60000 ms per request, so slow tile renders do not time out at the gateway.",
      "tags": [
        "api-gateway",
        "routing",
        "kubernetes",
        "configuration",
        "ambassador"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/base/namespace.yaml",
      "type": "config",
      "name": "namespace.yaml",
      "filePath": "deployment/base/namespace.yaml",
      "summary": "Kubernetes Namespace manifest that declares the tile-server namespace, which the base kustomization and the kubectl apply commands of the deploy workflows target. The base kustomization does not include it, so the namespace must already exist in the cluster.",
      "tags": [
        "kubernetes",
        "namespace",
        "configuration",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/base/service.yaml",
      "type": "config",
      "name": "service.yaml",
      "filePath": "deployment/base/service.yaml",
      "summary": "Kubernetes Service named treetracker-tile-server (default ClusterIP type) that selects pods with the label app=treetracker-tile-server. It forwards TCP port 80, named http, to container port 3000, where the Express tile server listens.",
      "tags": [
        "kubernetes",
        "networking",
        "service-discovery",
        "configuration",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/overlays/beta/database-connection-sealed-secret.yaml",
      "type": "config",
      "name": "database-connection-sealed-secret.yaml",
      "filePath": "deployment/overlays/beta/database-connection-sealed-secret.yaml",
      "summary": "Bitnami SealedSecret patch for the beta overlay that replaces the base PLACEHOLDER with the encrypted `db` value of the `database-connection` secret. The sealed-secrets controller decrypts it into the PostGIS connection string that the beta Deployment injects as DB_URL.",
      "tags": [
        "kubernetes",
        "sealed-secret",
        "security",
        "database",
        "beta-environment"
      ],
      "complexity": "simple",
      "languageNotes": "A SealedSecret holds data encrypted with the cluster controller's public key, so the ciphertext can be committed to git; only the controller in the target cluster can decrypt it into a normal Secret."
    },
    {
      "id": "config:deployment/overlays/beta/deployment.yaml",
      "type": "config",
      "name": "deployment.yaml",
      "filePath": "deployment/overlays/beta/deployment.yaml",
      "summary": "Strategic-merge patch for the beta `treetracker-tile-server` Deployment that pins the image to greenstand/treetracker-map-tile-server:4.36.7 with 1 replica. It sets PORT 3000, PG_POOL_SIZE 20, CACHE_SIZE 10000, CACHE_EXPIRE 60000, MAXIMUM_ZOOM_LEVEL_USING_GLOBAL_DATASET 15 (base is 6), MAXIMUM_ZOOM_LEVEL_HANDLING_ZOOM_TARGET 6, and DB_URL from the `database-connection` secret.",
      "tags": [
        "kubernetes",
        "deployment",
        "environment-variables",
        "beta-environment",
        "kustomize-patch"
      ],
      "complexity": "simple",
      "languageNotes": "In a strategic-merge patch, the containers list merges by container name, so fields this patch omits (base node affinity, pod anti-affinity, containerPort) stay from the base Deployment."
    },
    {
      "id": "config:deployment/overlays/beta/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "deployment/overlays/beta/kustomization.yaml",
      "summary": "Kustomize entry point for the beta environment that builds on ../../base, moves all resources into the `tile-server-beta` namespace, and applies the beta sealed-secret, Deployment, and Ambassador Mapping patches. The namespace.yaml patch is commented out, and no GitHub Actions workflow in the repo builds this overlay.",
      "tags": [
        "kustomize",
        "kubernetes",
        "configuration",
        "deployment",
        "beta-environment"
      ],
      "complexity": "simple",
      "languageNotes": "This overlay references the base through `resources:`, while the production overlay uses the older `bases:` field; both resolve to the same base in kustomize."
    },
    {
      "id": "config:deployment/overlays/beta/mapping.yaml",
      "type": "config",
      "name": "mapping.yaml",
      "filePath": "deployment/overlays/beta/mapping.yaml",
      "summary": "Ambassador Mapping patch that exposes the beta tile server under the `/tiles-next/` prefix (base uses `/tiles/`) and rewrites it to `/`. It allows CORS GET requests with Content-Type and Authorization headers from the origin https://prod-k8s.treetracker.org.",
      "tags": [
        "ambassador",
        "routing",
        "cors",
        "api-gateway",
        "beta-environment"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/overlays/beta/namespace.yaml",
      "type": "config",
      "name": "namespace.yaml",
      "filePath": "deployment/overlays/beta/namespace.yaml",
      "summary": "Kubernetes Namespace manifest that declares the `tile-server-beta` namespace for the beta tile server. The beta kustomization.yaml has this file commented out, so `kustomize build` does not emit it and the namespace must already exist.",
      "tags": [
        "kubernetes",
        "namespace",
        "infrastructure",
        "beta-environment"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/overlays/development/database-connection-sealed-secret.yaml",
      "type": "config",
      "name": "database-connection-sealed-secret.yaml",
      "filePath": "deployment/overlays/development/database-connection-sealed-secret.yaml",
      "summary": "Bitnami SealedSecret patch for the development cluster that replaces the base PLACEHOLDER with the real encrypted `db` value of the `database-connection` secret in the `tile-server` namespace. The tile-server Deployment reads this key as its DB_URL PostGIS connection string.",
      "tags": [
        "kubernetes",
        "sealed-secret",
        "security",
        "development-overlay",
        "database"
      ],
      "complexity": "simple",
      "languageNotes": "A SealedSecret holds data encrypted with the cluster controller's public key, so the ciphertext can be committed to git; only the in-cluster sealed-secrets controller can decrypt it into a normal Secret."
    },
    {
      "id": "config:deployment/overlays/development/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "deployment/overlays/development/kustomization.yaml",
      "summary": "Kustomize overlay for the development environment that builds on `../../base` and applies two strategic-merge patches: the CORS-enabled Ambassador Mapping and the dev-encrypted database-connection SealedSecret.",
      "tags": [
        "kubernetes",
        "kustomize",
        "deployment",
        "development-overlay",
        "configuration"
      ],
      "complexity": "simple",
      "languageNotes": "Uses the legacy `bases` and `patchesStrategicMerge` fields; newer Kustomize versions prefer `resources` and `patches`."
    },
    {
      "id": "config:deployment/overlays/development/mapping.yaml",
      "type": "config",
      "name": "mapping.yaml",
      "filePath": "deployment/overlays/development/mapping.yaml",
      "summary": "Ambassador `getambassador.io/v2` Mapping patch for the `treetracker-tile-server` route in development that adds a permissive CORS policy: any origin, the GET/POST/PATCH/PUT/OPTIONS methods, and the Content-Type and Authorization headers.",
      "tags": [
        "kubernetes",
        "ambassador",
        "cors",
        "routing",
        "development-overlay"
      ],
      "complexity": "simple",
      "languageNotes": "As a strategic-merge patch, the file only adds `spec.cors`; the base Mapping keeps the `/tiles/` prefix, service target, rewrite, and timeout settings."
    },
    {
      "id": "config:deployment/overlays/production/database-connection-sealed-secret.yaml",
      "type": "config",
      "name": "database-connection-sealed-secret.yaml",
      "filePath": "deployment/overlays/production/database-connection-sealed-secret.yaml",
      "summary": "Bitnami SealedSecret for production that stores the encrypted `db` key of the `database-connection` secret in the `tile-server` namespace. The in-cluster sealed-secrets controller decrypts it into the PostgreSQL connection string that the tile server container reads as DB_URL.",
      "tags": [
        "configuration",
        "security",
        "kubernetes",
        "sealed-secret",
        "database"
      ],
      "complexity": "simple",
      "languageNotes": "SealedSecrets are encrypted with the cluster controller's public key, so the ciphertext is safe to commit to git; only that cluster's controller can decrypt it."
    },
    {
      "id": "config:deployment/overlays/production/deployment.yaml",
      "type": "config",
      "name": "deployment.yaml",
      "filePath": "deployment/overlays/production/deployment.yaml",
      "summary": "Production strategic-merge patch for the treetracker-tile-server Deployment that runs 2 replicas with a 100m CPU and 768Mi memory request, a 1536Mi memory limit, and deliberately no CPU limit, based on measured pod usage. It also sets the container env vars PORT 3000, PG_POOL_SIZE 20, CACHE_SIZE 10000, CACHE_EXPIRE 60000, zoom thresholds 15 and 6, NODE_TLS_REJECT_UNAUTHORIZED 0, and DB_URL from the database-connection secret.",
      "tags": [
        "configuration",
        "deployment",
        "kubernetes",
        "resource-limits",
        "environment-variables"
      ],
      "complexity": "moderate",
      "languageNotes": "The comment above the env list describes capping glibc malloc arenas, but the list sets no MALLOC_ARENA_MAX variable, so that comment has no matching setting. NODE_TLS_REJECT_UNAUTHORIZED=0 turns off TLS certificate checks for Node.js outbound connections."
    },
    {
      "id": "config:deployment/overlays/production/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "deployment/overlays/production/kustomization.yaml",
      "summary": "Kustomize overlay for the production environment that builds on ../../base and applies deployment.yaml, mapping.yaml, and database-connection-sealed-secret.yaml as strategic merge patches.",
      "tags": [
        "configuration",
        "kustomize",
        "kubernetes",
        "deployment",
        "overlay"
      ],
      "complexity": "simple",
      "languageNotes": "The `bases` and `patchesStrategicMerge` fields are deprecated in Kustomize v5, which uses `resources` and `patches` instead."
    },
    {
      "id": "config:deployment/overlays/production/mapping.yaml",
      "type": "config",
      "name": "mapping.yaml",
      "filePath": "deployment/overlays/production/mapping.yaml",
      "summary": "Production patch for the Ambassador (getambassador.io/v2) Mapping named treetracker-tile-server that turns off the request timeout (timeout_ms 0). It also limits CORS to GET requests from https://prod-k8s.treetracker.org with the Content-Type and Authorization headers.",
      "tags": [
        "configuration",
        "routing",
        "api-gateway",
        "cors",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/overlays/test/database-connection-sealed-secret.yaml",
      "type": "config",
      "name": "database-connection-sealed-secret.yaml",
      "filePath": "deployment/overlays/test/database-connection-sealed-secret.yaml",
      "summary": "Bitnami SealedSecret patch for the test cluster that replaces the base PLACEHOLDER with the encrypted `db` value of the `database-connection` secret in the `tile-server` namespace. The sealed-secrets controller decrypts it into the PostgreSQL connection string that the base Deployment injects into the container as DB_URL.",
      "tags": [
        "configuration",
        "security",
        "kubernetes",
        "sealed-secret",
        "test-environment"
      ],
      "complexity": "simple",
      "languageNotes": "A SealedSecret is encrypted with the public key of one cluster's sealed-secrets controller and is bound to its name and namespace by default, so this ciphertext is safe to commit and decrypts only as tile-server/database-connection in the test cluster."
    },
    {
      "id": "config:deployment/overlays/test/deployment.yaml",
      "type": "config",
      "name": "deployment.yaml",
      "filePath": "deployment/overlays/test/deployment.yaml",
      "summary": "Test-environment strategic-merge patch for the treetracker-tile-server Deployment that scales it to 6 replicas (the base uses 1). It raises MAXIMUM_ZOOM_LEVEL_USING_GLOBAL_DATASET to 8 (the base uses 6), so config.js renders from the global dataset up to zoom 8, and keeps MAXIMUM_ZOOM_LEVEL_HANDLING_ZOOM_TARGET at 6.",
      "tags": [
        "configuration",
        "kubernetes",
        "deployment",
        "environment-variables",
        "scaling"
      ],
      "complexity": "simple",
      "languageNotes": "Strategic merge patches merge the containers list and the env list by their `name` keys, so this patch replaces only the two zoom variables and keeps the other base env vars (PORT, PG_POOL_SIZE, cache settings, DB_URL)."
    },
    {
      "id": "config:deployment/overlays/test/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "deployment/overlays/test/kustomization.yaml",
      "summary": "Kustomize overlay for the test environment that builds on ../../base and applies mapping.yaml, database-connection-sealed-secret.yaml, and deployment.yaml as strategic merge patches. The deploy-test.yml workflow runs `kustomize build deployment/overlays/test` and applies the result to the tile-server namespace.",
      "tags": [
        "configuration",
        "kustomize",
        "kubernetes",
        "overlay",
        "test-environment"
      ],
      "complexity": "simple",
      "languageNotes": "The `bases` and `patchesStrategicMerge` fields are deprecated in current Kustomize releases, which use `resources` and `patches` for the same purpose."
    },
    {
      "id": "config:deployment/overlays/test/mapping.yaml",
      "type": "config",
      "name": "mapping.yaml",
      "filePath": "deployment/overlays/test/mapping.yaml",
      "summary": "Test-environment patch for the Ambassador (getambassador.io/v2) Mapping named treetracker-tile-server that adds a CORS policy. It allows only GET requests from https://test-k8s.treetracker.org with the Content-Type and Authorization headers; the base Mapping still supplies the /tiles/ prefix route to the service.",
      "tags": [
        "configuration",
        "routing",
        "api-gateway",
        "cors",
        "kubernetes"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:greenstand/stylesheet.xml",
      "type": "config",
      "name": "stylesheet.xml",
      "filePath": "greenstand/stylesheet.xml",
      "summary": "Mapnik XML map definition in Web Mercator with a steelblue background: a white world_merc.shp shapefile base layer plus a WGS84 GeoJSON layer that reads ./trees.json and draws every tree point with ./images/pin_29px.png at 0.1 opacity. It also defines simplestyle-like polygon and line rules driven by feature attributes such as [fill] and [stroke].",
      "tags": [
        "configuration",
        "mapnik-stylesheet",
        "map-rendering",
        "geojson",
        "cartography"
      ],
      "complexity": "simple",
      "languageNotes": "Mapnik resolves the relative datasource and marker paths (world_merc.shp, ./trees.json, ./images/pin_29px.png) against the directory of the XML file, so the file only works from greenstand/. The layer srs string ends with a stray '<>' token, and two inline GeoJSON datasource alternatives are commented out."
    },
    {
      "id": "config:greenstand/stylesheet2.xml",
      "type": "config",
      "name": "stylesheet2.xml",
      "filePath": "greenstand/stylesheet2.xml",
      "summary": "Variant of the Greenstand Mapnik stylesheet with the same Web Mercator map, world_merc.shp base layer, and pin_29px.png point style, but its GeoJSON layer embeds two inline CDATA points at [-10,10] and [-10,20] instead of reading trees.json. config.pg.test.js loads it to render a 512x512 PNG for tile z=2, x=1, y=1.",
      "tags": [
        "configuration",
        "mapnik-stylesheet",
        "test-fixture",
        "inline-geojson",
        "map-rendering"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:greenstand/trees.json",
      "type": "config",
      "name": "trees.json",
      "filePath": "greenstand/trees.json",
      "summary": "53 MB GeoJSON FeatureCollection of 547,448 property-less Point features (one per line, [lon, lat] in WGS84) that snapshot real Treetracker tree locations, about 52% in East Africa around Tanzania and 23% in West Africa near Sierra Leone. stylesheet.xml renders it as a Mapnik GeoJSON layer, and the skipped seed test in db.test.js inserts up to about 10,000 of its points into the PostGIS trees3 table.",
      "tags": [
        "sample-data",
        "geojson",
        "tree-locations",
        "seed-data",
        "large-dataset"
      ],
      "complexity": "moderate",
      "languageNotes": "Points span longitude -162.6 to 174.2 and latitude -41.2 to 66.9 with only 268,086 distinct coordinates; one coordinate (37.510118, -2.967832) repeats 1,897 times, so many trees share identical GPS fixes."
    },
    {
      "id": "config:greenstand/trees_sample.json",
      "type": "config",
      "name": "trees_sample.json",
      "filePath": "greenstand/trees_sample.json",
      "summary": "Three-feature GeoJSON FeatureCollection that copies the first three Point features of trees.json (Tanzania coordinates near 37.60E, 3.18S and 36.63E, 3.26S, with one duplicate point). db.test.js names it in a commented-out require as a small alternative seed input.",
      "tags": [
        "sample-data",
        "geojson",
        "test-fixture",
        "tree-locations"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/build_against_sdk.sh",
      "type": "file",
      "name": "build_against_sdk.sh",
      "filePath": "scripts/build_against_sdk.sh",
      "summary": "Builds node-mapnik from source against a prebuilt Mapnik SDK tarball (mapnik-<platform>-sdk-<mapnik_version>.tar.bz2) that it copies from a local mapnik-packaging output or downloads from mapnik.s3.amazonaws.com into sdk/. It then runs npm install --build-from-source with rpath and C++11 ABI flags, copies mapnik-index, shapeindex, libmapnik, input plugins and share data into the node-pre-gyp module path, and writes a mapnik_settings.js there.",
      "tags": [
        "build-system",
        "mapnik-sdk",
        "native-addon",
        "node-pre-gyp",
        "packaging"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses a `: '...'` no-op heredoc as a block comment and parameter expansion defaults such as ${MAPNIK_GIT:-...} so callers can override the SDK version."
    },
    {
      "id": "file:scripts/clang-format.sh",
      "type": "file",
      "name": "clang-format.sh",
      "filePath": "scripts/clang-format.sh",
      "summary": "Bootstraps the mason toolchain through setup.sh, installs clang-format at MASON_LLVM_RELEASE, and reformats every .cpp and .hpp file under src/ in place with the repo style file. It exits 1 and prints a git diff when any file under src/ changed, so CI can flag unformatted C++ code.",
      "tags": [
        "linting",
        "clang-format",
        "c++",
        "ci-check",
        "developer-tooling"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/clang-tidy.sh",
      "type": "file",
      "name": "clang-tidy.sh",
      "filePath": "scripts/clang-tidy.sh",
      "summary": "Installs clang-tidy through mason, generates build/compile_commands.json by piping a clean make run into generate_compile_commands.py when the file is missing, and runs run-clang-tidy.py -fix from the build directory. It exits 1 with a git diff when clang-tidy auto-fixed any file under src/.",
      "tags": [
        "linting",
        "clang-tidy",
        "static-analysis",
        "c++",
        "ci-check"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/coverage.sh",
      "type": "file",
      "name": "coverage.sh",
      "filePath": "scripts/coverage.sh",
      "summary": "Rebuilds the native module in debug mode with clang -fprofile-instr-generate and -fcoverage-mapping, runs npm test with LLVM_PROFILE_FILE set, and merges the code-*.profraw files into code.profdata. It then prints an llvm-cov report and source listing for src/*.cpp and writes an HTML report to /tmp/coverage.html.",
      "tags": [
        "test-coverage",
        "llvm-cov",
        "c++",
        "testing",
        "developer-tooling"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/create_scheme.sh",
      "type": "file",
      "name": "create_scheme.sh",
      "filePath": "scripts/create_scheme.sh",
      "summary": "Generates an Xcode .xcscheme file inside build/binding.xcodeproj/xcshareddata/xcschemes by filling the {{BLUEPRINT_ID}}, {{BUILDABLE_NAME}}, {{NODE_PATH}}, {{NODE_ARGUMENT}} and other placeholders of the scripts/<SCHEME_TYPE>.xcscheme template from environment variables. It reuses an existing 24-character BlueprintIdentifier when the scheme already exists, or generates a random one from /dev/urandom.",
      "tags": [
        "xcode",
        "code-generation",
        "templating",
        "developer-tooling",
        "macos"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/install_deps.sh",
      "type": "file",
      "name": "install_deps.sh",
      "filePath": "scripts/install_deps.sh",
      "summary": "Installs and links the pinned mason packages that Mapnik needs (jpeg_turbo, libpng, libtiff, icu 57.1, proj, pixman, cairo, webp, libgdal, boost 1.74.0 libraries, freetype, harfbuzz) and then Mapnik itself at commit c6fc956a7. It skips all installs when mason_packages/.link/bin/mapnik-config already exists.",
      "tags": [
        "dependency-management",
        "mason",
        "mapnik",
        "build-system",
        "c++"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/install_node.sh",
      "type": "file",
      "name": "install_node.sh",
      "filePath": "scripts/install_node.sh",
      "summary": "Installs the Node.js version given as the first argument by cloning nvm into ./__nvm, sourcing it, and running nvm install and nvm use, after it unloads any nvm that is already active. It prints the node and npm versions so CI logs show which runtime the build uses.",
      "tags": [
        "ci-cd",
        "nvm",
        "node-runtime",
        "environment-setup",
        "installer"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/is_pr_merge.sh",
      "type": "file",
      "name": "is_pr_merge.sh",
      "filePath": "scripts/is_pr_merge.sh",
      "summary": "Detects a Travis CI pull-request merge commit by comparing the latest non-merge commit message from git log with the HEAD message from git show. It prints true when the two messages differ, which means HEAD is a synthetic merge commit such as 'Merge e3b1981 into 615d2a3'.",
      "tags": [
        "ci-cd",
        "travis-ci",
        "git",
        "detection",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/package_osx.sh",
      "type": "file",
      "name": "package_osx.sh",
      "filePath": "scripts/package_osx.sh",
      "summary": "Legacy macOS release script that installs node-pre-gyp and aws-sdk under Node 0.10 and then builds, tests, packages and publishes node-mapnik binaries for Node 0.10.33 and 0.11.14. It switches back to Node 0.10 at the end to avoid an npm publish problem with Node 0.11.",
      "tags": [
        "packaging",
        "release",
        "macos",
        "node-pre-gyp",
        "legacy"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:scripts/package_osx.sh:doit",
      "type": "function",
      "name": "doit",
      "filePath": "scripts/package_osx.sh",
      "lineRange": [
        15,
        29
      ],
      "summary": "Builds node-mapnik for one Node version: it switches nvm to that version, sources build_against_sdk.sh with --target, runs npm test, and runs node-pre-gyp package, testpackage and publish to upload the binary. It then deletes build/ and lib/binding and reinstalls with --fallback-to-build=false to verify that the published binary installs and passes tests.",
      "tags": [
        "release",
        "node-pre-gyp",
        "publishing",
        "testing"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/postinstall.sh",
      "type": "file",
      "name": "postinstall.sh",
      "filePath": "scripts/postinstall.sh",
      "summary": "Post-build action (run from binding.gyp) that writes lib/binding/mapnik_settings.js with the font, input plugin, mapnik-index, shapeindex, ICU, GDAL and PROJ paths that lib/mapnik.js loads at runtime. With a source-installed Mapnik it takes the paths from mapnik-config; with the mason package it copies the binaries, libmapnik, plugins and gdal/proj/icu data into lib/binding to make a portable package and uses __dirname-relative paths.",
      "tags": [
        "build-system",
        "packaging",
        "mapnik-settings",
        "native-addon",
        "post-install"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses the bash `-ef` test to check that `which mapnik-config` resolves to the same file as the mason copy, and switches between `cp -r` (macOS) and `cp -rL` (Linux) to dereference symlinks."
    },
    {
      "id": "file:scripts/publish.sh",
      "type": "file",
      "name": "publish.sh",
      "filePath": "scripts/publish.sh",
      "summary": "CI publish step that prints node-pre-gyp binary metadata and uploads the compiled binary to S3 only when the last commit message contains [publish binary] (package publish) or [republish binary] (package unpublish publish). It skips publishing for Travis PR merge commits and forwards all arguments, such as --debug and --toolset, to node-pre-gyp.",
      "tags": [
        "ci-cd",
        "release",
        "node-pre-gyp",
        "publishing",
        "s3"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:scripts/publish.sh:is_pr_merge",
      "type": "function",
      "name": "is_pr_merge",
      "filePath": "scripts/publish.sh",
      "lineRange": [
        12,
        26
      ],
      "summary": "Compares COMMIT_MESSAGE (the last non-merge git log message) with the HEAD message from git show and echoes true when they differ. publish uses this result to recognize a Travis CI PR merge commit.",
      "tags": [
        "git",
        "travis-ci",
        "detection",
        "ci-cd"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:scripts/publish.sh:publish",
      "type": "function",
      "name": "publish",
      "filePath": "scripts/publish.sh",
      "lineRange": [
        32,
        53
      ],
      "summary": "Runs node-pre-gyp reveal, then chooses the publish action from the commit message: node-pre-gyp package publish for [publish binary], package unpublish publish for [republish binary], or a skip message otherwise. It also skips when is_pr_merge reports a PR merge commit.",
      "tags": [
        "publishing",
        "node-pre-gyp",
        "release",
        "ci-cd"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/sanitize.sh",
      "type": "file",
      "name": "sanitize.sh",
      "filePath": "scripts/sanitize.sh",
      "summary": "Rebuilds the native module in debug mode with the MASON_SANITIZE_CXXFLAGS and MASON_SANITIZE_LDFLAGS (AddressSanitizer and UndefinedBehaviorSanitizer) from local.env and runs the tape tests with the clang ASan runtime preloaded. On macOS it calls node and tape directly with DYLD_INSERT_LIBRARIES; on Linux it runs npm test with LD_PRELOAD.",
      "tags": [
        "testing",
        "sanitizers",
        "address-sanitizer",
        "c++",
        "developer-tooling"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/setup.sh",
      "type": "file",
      "name": "setup.sh",
      "filePath": "scripts/setup.sh",
      "summary": "Toolchain bootstrap script that, when called as setup.sh --config <file>, prepares clang++ (MASON_LLVM_RELEASE 10.0.0) and the mason package manager (MASON_RELEASE 03a3ea40) and writes a sourceable env file such as local.env. The other developer scripts (clang-format, clang-tidy, coverage, sanitize, install_deps) source that file to get PATH, CXX, mason versions and sanitizer settings.",
      "tags": [
        "environment-setup",
        "toolchain",
        "mason",
        "clang",
        "entry-point"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:scripts/setup.sh:run",
      "type": "function",
      "name": "run",
      "filePath": "scripts/setup.sh",
      "lineRange": [
        16,
        97
      ],
      "summary": "Selects a global mason clang++ or llvm install under ~/.mason when one exists, or else downloads the clang++ tarball from the mason-binaries S3 bucket into .toolchain, and downloads mason into .mason. It then writes export lines for PATH, CXX, MASON_LLVM_RT_PRELOAD, ASAN/UBSAN/LSAN options and MASON_SANITIZE flags into the config file, and writes leak suppressions to /tmp/leak_suppressions.txt.",
      "tags": [
        "toolchain",
        "environment-setup",
        "sanitizers",
        "mason"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:scripts/setup_cpp11_toolchain.sh",
      "type": "file",
      "name": "setup_cpp11_toolchain.sh",
      "filePath": "scripts/setup_cpp11_toolchain.sh",
      "summary": "Legacy script, meant to be sourced, that bootstraps a C++11 toolchain on Ubuntu precise or trusty. It downloads clang 3.5 and libstdc++ 4.8 .deb packages, extracts them into ./toolchain, and exports CXX, CC, PATH, CPLUS_INCLUDE_PATH and library paths. On non-Linux systems it does nothing.",
      "tags": [
        "toolchain",
        "c++11",
        "ubuntu",
        "environment-setup",
        "legacy"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:scripts/setup_cpp11_toolchain.sh:main",
      "type": "function",
      "name": "main",
      "filePath": "scripts/setup_cpp11_toolchain.sh",
      "lineRange": [
        12,
        70
      ],
      "summary": "Checks that the host is Ubuntu, reads the release codename with lsb_release, and uses the nested dpack helper to wget and dpkg -x the matching clang-3.5, libllvm3.5 and libstdc++-4.8 packages from llvm.org and the ubuntu-toolchain-r PPA. It then exports the include, library, PATH, CXX and CC variables, and exits 1 for unsupported distros.",
      "tags": [
        "toolchain",
        "ubuntu",
        "package-download",
        "environment-setup"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:scripts/show_module_runtime.ps1",
      "type": "file",
      "name": "show_module_runtime.ps1",
      "filePath": "scripts/show_module_runtime.ps1",
      "summary": "Windows PowerShell check that recursively finds every .node binary under the directory given as the first argument and runs dumpbin /DEPENDENTS on each one. It reports whether each module links VCRUNTIME140.dll and prints the full dependency list in red for modules that do not.",
      "tags": [
        "windows",
        "powershell",
        "native-addon",
        "diagnostics",
        "build-verification"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/ubuntu_ppa_tests.sh",
      "type": "file",
      "name": "ubuntu_ppa_tests.sh",
      "filePath": "scripts/ubuntu_ppa_tests.sh",
      "summary": "Legacy Ubuntu test script that adds the mapnik v2.2.0, nightly-2.3 and nightly-trunk PPAs and, in turn, installs libmapnik 2.2.0, 2.3.0 and 3.0.0 packages. For each version it rebuilds node-mapnik with npm install --build-from-source and runs npm test, and it purges the old packages before it installs the next version.",
      "tags": [
        "testing",
        "ubuntu",
        "compatibility",
        "mapnik",
        "legacy"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/validate_tag.sh",
      "type": "file",
      "name": "validate_tag.sh",
      "filePath": "scripts/validate_tag.sh",
      "summary": "Travis CI guard that, when HEAD is on a git tag equal to TRAVIS_BRANCH, reads the version field from package.json and exits 1 when neither <version> nor v<version> matches the tag. It catches releases that were tagged without a version bump in package.json.",
      "tags": [
        "ci-cd",
        "release",
        "validation",
        "versioning",
        "travis-ci"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/postgis/initialize.sh",
      "type": "file",
      "name": "initialize.sh",
      "filePath": "scripts/postgis/initialize.sh",
      "summary": "One-time bootstrap of a local PostGIS cluster from mason binaries: it sources mason-postgis-config.env, creates the PGHOST socket and PGTEMP_DIR directories, runs initdb, and starts postgres in the background. It then adds a temp_disk tablespace and plpythonu, creates the template_postgis database with the postgis, hstore, fuzzystrmatch, and unaccent extensions, and stops the server with pg_ctl.",
      "tags": [
        "postgis",
        "database",
        "bootstrap",
        "shell-script",
        "test-setup"
      ],
      "complexity": "simple",
      "languageNotes": "Uses set -eu with pipefail so any failed psql or initdb step aborts the bootstrap, and sleep 2 pauses to let the backgrounded postgres process accept connections."
    },
    {
      "id": "file:scripts/postgis/run.sh",
      "type": "file",
      "name": "run.sh",
      "filePath": "scripts/postgis/run.sh",
      "summary": "Starts the already-initialized local mason PostGIS server in the background on the PGHOST Unix socket, with output to postgres.log. It exits with an error if mason-postgis-config.env is missing and prints the pg_ctl command that stops the server.",
      "tags": [
        "postgis",
        "database",
        "shell-script",
        "server-startup",
        "test-setup"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/postgis/setup.sh",
      "type": "file",
      "name": "setup.sh",
      "filePath": "scripts/postgis/setup.sh",
      "summary": "Installs libgdal 2.1.3 and postgis 2.3.2-1 with the mason package manager, links postgis into mason_packages/.link, and checks that the GDAL share/gdal data directory exists. It then writes mason-postgis-config.env, which exports PGDATA, PGHOST, PGTEMP_DIR, PGPORT=1111, PATH, and GDAL_DATA for the other PostGIS scripts.",
      "tags": [
        "postgis",
        "dependency-install",
        "configuration",
        "shell-script",
        "build-system"
      ],
      "complexity": "simple",
      "languageNotes": "Single-quoted echo lines write literal ${CURRENT_DIR} references into the env file so they expand when the file is sourced, while the double-quoted GDAL_DATA line expands at generation time."
    },
    {
      "id": "file:scripts/postgis/setup_and_run.sh",
      "type": "file",
      "name": "setup_and_run.sh",
      "filePath": "scripts/postgis/setup_and_run.sh",
      "summary": "Four-line wrapper that the legacy Travis CI jobs source to get a running local PostGIS: it calls setup.sh, initialize.sh, and run.sh in order, then sources mason-postgis-config.env into the calling shell.",
      "tags": [
        "postgis",
        "entry-point",
        "ci-cd",
        "shell-script",
        "orchestration"
      ],
      "complexity": "simple",
      "languageNotes": "Has no shebang because it is meant to be sourced, so the final source of the env file leaves PGHOST, PGPORT, and PATH set in the caller's shell."
    },
    {
      "id": "file:scripts/postgis/stop.sh",
      "type": "file",
      "name": "stop.sh",
      "filePath": "scripts/postgis/stop.sh",
      "summary": "Shuts down the local mason PostGIS server: it sources mason-postgis-config.env to locate PGDATA and runs mason_packages/.link/bin/pg_ctl -w stop, which waits until the server exits.",
      "tags": [
        "postgis",
        "database",
        "shell-script",
        "teardown"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:.clang-format",
      "type": "file",
      "name": ".clang-format",
      "filePath": ".clang-format",
      "summary": "clang-format style file (the Mapbox.Variant C++ style) for the upstream node-mapnik C++ sources: 4-space indent, no tabs, no column limit, braces on new lines after classes and functions, left pointer alignment, C++11, and include sorting off. scripts/clang-format.sh applies it with -style=file to every .cpp and .hpp file under src/.",
      "tags": [
        "configuration",
        "code-style",
        "cpp",
        "formatting",
        "upstream-node-mapnik"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:.clang-tidy",
      "type": "file",
      "name": ".clang-tidy",
      "filePath": ".clang-tidy",
      "summary": "clang-tidy configuration that enables only the clang-analyzer-* checks (minus the macOS and optin UninitializedObject checks), treats every warning as an error, and limits header diagnostics to paths that match /src/. scripts/clang-tidy.sh runs these checks over the upstream C++ binding code.",
      "tags": [
        "configuration",
        "static-analysis",
        "cpp",
        "linting",
        "upstream-node-mapnik"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:.gitattributes",
      "type": "file",
      "name": ".gitattributes",
      "filePath": ".gitattributes",
      "summary": "Git attributes file that marks the world_merc.json and world_merc.converted.geojson fixtures as text with LF line endings, so that these GeoJSON fixtures keep the same bytes on every platform.",
      "tags": [
        "configuration",
        "git",
        "line-endings",
        "test-fixtures"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:.gitmodules",
      "type": "file",
      "name": ".gitmodules",
      "filePath": ".gitmodules",
      "summary": "Git submodule map that pins three Mapbox header-only C++ libraries into deps/: wagyu (polygon clipping), geometry.hpp, and protozero (protobuf decoding). binding.gyp adds their include/ folders, and the Makefile fetches them with git submodule update --init.",
      "tags": [
        "configuration",
        "git",
        "dependencies",
        "cpp",
        "build-system"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:.huskyrc",
      "type": "file",
      "name": ".huskyrc",
      "filePath": ".huskyrc",
      "summary": "Husky v4 hook configuration that runs commitlint -E HUSKY_GIT_PARAMS on every commit-msg event, so that each commit message is checked against the Conventional Commits rules from commitlint.config.js.",
      "tags": [
        "configuration",
        "git-hooks",
        "commit-lint",
        "development"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:.npmignore",
      "type": "file",
      "name": ".npmignore",
      "filePath": ".npmignore",
      "summary": "npm packaging exclude list that keeps build output (lib/binding, build), tests, benchmarks, docs, CI files (.travis.yml, appveyor.yml), mason toolchain folders, vcbuild.bat, local PostGIS artifacts (local-postgres, postgres.log, local.env), and the deps/ submodule tests and docs out of the published npm tarball.",
      "tags": [
        "configuration",
        "packaging",
        "npm",
        "build-system"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:.releaserc",
      "type": "file",
      "name": ".releaserc",
      "filePath": ".releaserc",
      "summary": "semantic-release configuration that releases from master and publishes prereleases from next with the commit-analyzer, release-notes-generator, changelog, npm, git, and github plugins; the git plugin commits docs, package.json, and CHANGELOG.md as 'chore(release): <version> [skip ci]'. The build-deploy GitHub Actions workflow runs semantic-release with this file.",
      "tags": [
        "configuration",
        "release",
        "semantic-release",
        "ci-cd",
        "versioning"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:bin/mapnik-index.js",
      "type": "file",
      "name": "mapnik-index.js",
      "filePath": "bin/mapnik-index.js",
      "summary": "CLI shim (the mapnik-index.js bin entry in package.json) that finds the native binding folder through @mapbox/node-pre-gyp, spawns the bundled mapnik-index executable from its bin/ folder (or mapnik-index on PATH), forwards the arguments and stdio, and exits with the child's exit code.",
      "tags": [
        "cli",
        "entry-point",
        "process-spawn",
        "upstream-node-mapnik"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:bin/mapnik-inspect.js",
      "type": "file",
      "name": "mapnik-inspect.js",
      "filePath": "bin/mapnik-inspect.js",
      "summary": "Upstream node-mapnik inspection CLI that picks a handler from the input file extension: it opens shapefile, CSV/TSV, OSM, SQLite, GeoJSON, OGR (KML/GML/DBF), and GDAL raster files as mapnik.Datasource objects and prints their description, extent, and feature count. It also prints VectorTile.info for .mvt/.vector.pbf, renders .svg to /tmp/mapnik-inspect.png, dumps place_label attributes from .xml stylesheets, parses .prj files with srs, and prints .zip contents.",
      "tags": [
        "cli",
        "entry-point",
        "datasource",
        "inspection",
        "upstream-node-mapnik"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:bin/mapnik-render.js",
      "type": "file",
      "name": "mapnik-render.js",
      "filePath": "bin/mapnik-render.js",
      "summary": "Upstream node-mapnik render CLI (render.js <stylesheet> <image>) that loads a Mapnik XML stylesheet in strict mode into a 600x400 map, zooms to all layers, writes the image file, and tries to open it. For a .mml CartoCSS project it first compiles the project to XML with the optional carto package.",
      "tags": [
        "cli",
        "entry-point",
        "rendering",
        "cartocss",
        "upstream-node-mapnik"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:bin/mapnik-shapeindex.js",
      "type": "file",
      "name": "mapnik-shapeindex.js",
      "filePath": "bin/mapnik-shapeindex.js",
      "summary": "CLI shim (the mapnik-shapeindex.js bin entry) that resolves the node-pre-gyp binding path and runs the bundled shapeindex executable (or shapeindex on PATH) to build spatial indexes for shapefiles; it pipes stdout and stderr, propagates the exit code, and throws 'shapeindex not found' when the binary is missing.",
      "tags": [
        "cli",
        "entry-point",
        "process-spawn",
        "spatial-index",
        "upstream-node-mapnik"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:binding.gyp",
      "type": "file",
      "name": "binding.gyp",
      "filePath": "binding.gyp",
      "summary": "node-gyp build definition for the native mapnik addon: it compiles the src/*.cpp N-API wrappers plus the mapnik-vector-tile sources into <(module_path), and takes include paths, defines, and libraries from mapnik-config and the deps/ submodules, with per-OS settings for MSVC, Linux rpath, and Xcode C++14. It also adds glibc_workaround.cpp and SSE_MATH through variables, and its action_after_build target runs scripts/postinstall.sh on non-Windows hosts.",
      "tags": [
        "build-system",
        "native-addon",
        "node-gyp",
        "cpp",
        "upstream-node-mapnik"
      ],
      "complexity": "moderate",
      "languageNotes": "GYP files are Python-literal dictionaries: '<!@(cmd)' expands a shell command into a list at configure time, a trailing '%' on a variable makes it a default that the command line can override, and keys that end in '!' remove items from an inherited list."
    },
    {
      "id": "file:commitlint.config.js",
      "type": "file",
      "name": "commitlint.config.js",
      "filePath": "commitlint.config.js",
      "summary": "One-line commitlint configuration that extends @commitlint/config-conventional, so that the husky commit-msg hook rejects commit messages that do not follow the Conventional Commits format.",
      "tags": [
        "configuration",
        "commit-lint",
        "development",
        "conventional-commits"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:common.gypi",
      "type": "file",
      "name": "common.gypi",
      "filePath": "common.gypi",
      "summary": "Shared gyp target_defaults that binding.gyp includes: it makes Release the default configuration, compiles with -std=c++14 with RTTI and exceptions on, and defines Debug (no NDEBUG, -O0, debug symbols) and Release (NDEBUG, -O3, dead-code stripping) settings for Xcode and for MSVC (v140 toolset, /MP, /bigobj, /MD).",
      "tags": [
        "build-system",
        "node-gyp",
        "compiler-flags",
        "cpp",
        "upstream-node-mapnik"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:greenstand/XMLConfig.js",
      "type": "file",
      "name": "XMLConfig.js",
      "filePath": "greenstand/XMLConfig.js",
      "summary": "Holds a hard-coded Mapnik XML map template for clustered tree markers (cluster_46px.png icon with a [count] text label in DejaVu Serif Condensed Bold Italic) over a PostGIS layer on the trees table of treetracker_dev, and exports the XMLConfig class that swaps the layer SQL. No server module requires it; only XMLConfig.test.js uses it.",
      "tags": [
        "mapnik-stylesheet",
        "template",
        "postgis",
        "clustering",
        "unused-at-runtime",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/XMLConfig.test.js",
      "type": "file",
      "name": "XMLConfig.test.js",
      "filePath": "greenstand/XMLConfig.test.js",
      "summary": "Jest test that creates an XMLConfig, calls select with 'select * from tree2', and checks that the toString() output now contains that SQL.",
      "tags": [
        "test",
        "jest",
        "mapnik-stylesheet",
        "sql"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/app.test.js",
      "type": "file",
      "name": "app.test.js",
      "filePath": "greenstand/app.test.js",
      "summary": "Empty placeholder test file (0 bytes) next to the Express tile app; it has no test cases, so Jest (npm run jest) reports it as a failed suite that must contain at least one test.",
      "tags": [
        "test",
        "jest",
        "placeholder",
        "empty"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/db.test.js",
      "type": "file",
      "name": "db.test.js",
      "filePath": "greenstand/db.test.js",
      "summary": "Jest 'seed' suite that writes points into a local PostGIS database (postgres@172.17.0.4, database treetracker) through knex: the active case clears trees4 and inserts a 7-degree lon/lat grid, and the skipped case loads up to 10,000 points from trees.json into trees3. Both cases then set estimated_geometric_location with ST_SetSRID(ST_MakePoint(lon, lat), 4326).",
      "tags": [
        "test",
        "database",
        "seed-data",
        "postgis",
        "knex"
      ],
      "complexity": "moderate"
    },
    {
      "id": "config:greenstand/layers/postgis.xml",
      "type": "config",
      "name": "postgis.xml",
      "filePath": "greenstand/layers/postgis.xml",
      "summary": "Mapnik XML stylesheet template for the tile server: a Web Mercator map with a pin_29px.png point style (layer0, interactive on id) over layer l1, a PostGIS datasource that selects active trees ordered by id DESC from treetracker_dev with geometry column estimated_geometric_location. config.js reads it, substitutes host, port, user, password, and database from DB_URL, and writes layers/postgis.prod.xml.",
      "tags": [
        "configuration",
        "mapnik-stylesheet",
        "postgis",
        "template",
        "database"
      ],
      "complexity": "simple",
      "languageNotes": "The literal connection values (172.17.0.2, 5432, postgres, greenstand, treetracker_dev) are placeholders that config.js replaces with regexes. configFreetown in config.js searches for '(SELECT * FROM trees) as cdbq', but this file uses a different table subquery, so that replacement does not match."
    },
    {
      "id": "file:greenstand/sqls/SQLTree.js",
      "type": "file",
      "name": "SQLTree.js",
      "filePath": "greenstand/sqls/SQLTree.js",
      "summary": "Builds parameterized PostgreSQL queries for one tree's detail record: the SQLTree class joins trees with planter, tree_species, wallet.token, and wallet.wallet to add the species name, planter name and image, token UUID, and wallet name. No server module requires it; only SQLTree.test.js uses it.",
      "tags": [
        "sql",
        "query-builder",
        "postgresql",
        "data-access",
        "unused-at-runtime",
        "tested"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:greenstand/sqls/SQLTree.test.js",
      "type": "file",
      "name": "SQLTree.test.js",
      "filePath": "greenstand/sqls/SQLTree.test.js",
      "summary": "Jest test (with an empty test name) that sets tree ID 1 and matches getQuery() output against a regex that expects 'left join token' and 'left join entity' clauses. The current query joins wallet.token and has no entity join, so this assertion fails.",
      "tags": [
        "test",
        "jest",
        "sql",
        "stale-test"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/trees_sample.geojson",
      "type": "file",
      "name": "trees_sample.geojson",
      "filePath": "greenstand/trees_sample.geojson",
      "summary": "Three-point GeoJSON FeatureCollection near 37.6E, 3.2S in northern Tanzania (the first and third points are duplicates, and no feature has properties); experimental.test.js uses it as a file-based geojson datasource in its rendering experiment.",
      "tags": [
        "test-fixture",
        "geojson",
        "sample-data",
        "trees"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/trees_text.geojson",
      "type": "file",
      "name": "trees_text.geojson",
      "filePath": "greenstand/trees_text.geojson",
      "summary": "Single-feature GeoJSON fixture with one point at [0,0] and the property sss = '2k'; font.test.js loads it as a geojson datasource to test text label rendering with registered fonts.",
      "tags": [
        "test-fixture",
        "geojson",
        "text-labels",
        "fonts"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/utils.js",
      "type": "file",
      "name": "utils.js",
      "filePath": "greenstand/utils.js",
      "summary": "Exports setSql, a string helper that rewrites the table subquery in a Mapnik PostGIS table Parameter (the CDATA[(...) as cdbq] block) to a new SQL statement. Only utils.test.js uses it; the server does not require it.",
      "tags": [
        "utility",
        "mapnik-stylesheet",
        "sql",
        "string-replace",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:greenstand/utils.test.js",
      "type": "file",
      "name": "utils.test.js",
      "filePath": "greenstand/utils.test.js",
      "summary": "Jest test that runs setSql on a multi-line PostGIS table Parameter and checks that the result contains the new 'select * from ddd' SQL.",
      "tags": [
        "test",
        "jest",
        "utility",
        "sql"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:bin/mapnik-inspect.js:meta",
      "type": "function",
      "name": "meta",
      "filePath": "bin/mapnik-inspect.js",
      "lineRange": [
        30,
        44
      ],
      "summary": "Prints a datasource's describe() output and extent, then walks its featureset with next() to count and print the number of features; mapnik-inspect.js calls it for every datasource-backed file type.",
      "tags": [
        "inspection",
        "datasource",
        "feature-count"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:greenstand/XMLConfig.js:XMLConfig",
      "type": "class",
      "name": "XMLConfig",
      "filePath": "greenstand/XMLConfig.js",
      "lineRange": [
        76,
        88
      ],
      "summary": "Wraps the cluster map template string: the constructor copies the template, select(sentence) replaces the literal '(SELECT * FROM trees) as cdbq' table subquery with the given SQL, and toString() returns the resulting XML.",
      "tags": [
        "class",
        "template",
        "mapnik-stylesheet",
        "sql"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:greenstand/sqls/SQLTree.js:SQLTree",
      "type": "class",
      "name": "SQLTree",
      "filePath": "greenstand/sqls/SQLTree.js",
      "lineRange": [
        2,
        73
      ],
      "summary": "Stateful query builder with setTreeId/getQuery for lookup by numeric trees.id and setTreeUUID/getQueryUUID for lookup by trees.uuid; each getter throws when its key is unset and returns a { text, values } object for the pg driver.",
      "tags": [
        "class",
        "query-builder",
        "sql",
        "postgresql"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:greenstand/sqls/SQLTree.js:getQuery",
      "type": "function",
      "name": "getQuery",
      "filePath": "greenstand/sqls/SQLTree.js",
      "lineRange": [
        8,
        37
      ],
      "summary": "Returns the { text, values: [treeId] } query that selects an active tree by trees.id with the joined species name, planter first/last name and image_url, token id as token_uuid, and wallet name; it throws 'treeId required' when no ID is set and logs the query.",
      "tags": [
        "sql",
        "query-builder",
        "tree-details"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/sqls/SQLTree.js:getQueryUUID",
      "type": "function",
      "name": "getQueryUUID",
      "filePath": "greenstand/sqls/SQLTree.js",
      "lineRange": [
        43,
        72
      ],
      "summary": "Variant of the tree detail query that filters on trees.uuid = $1 with the UUID from setTreeUUID; it throws 'treeUUID required' when that UUID is missing and logs the { text, values } object before it returns it.",
      "tags": [
        "sql",
        "query-builder",
        "uuid-lookup"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:greenstand/utils.js:setSql",
      "type": "function",
      "name": "setSql",
      "filePath": "greenstand/utils.js",
      "lineRange": [
        1,
        4
      ],
      "summary": "Replaces the multi-line 'CDATA[(...) as cdbq]' table subquery in the given XML string with 'CDATA[(<sql>) as cdbq]' through a dotAll regex and returns the new string.",
      "tags": [
        "utility",
        "regex",
        "sql"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/generate_compile_commands.py",
      "type": "file",
      "name": "generate_compile_commands.py",
      "filePath": "scripts/generate_compile_commands.py",
      "summary": "Reads verbose `make` output from stdin, keeps the compiler lines that contain NODE_GYP_MODULE_NAME, and prints a clang JSON compilation database (directory, command, file) for the node-gyp `build/` directory to stdout.",
      "tags": [
        "build-tooling",
        "clang-tooling",
        "compile-commands",
        "cli-script",
        "utility"
      ],
      "complexity": "simple",
      "languageNotes": "The regex `^(.*) (.+cpp)\\n` assumes that each compile line ends with the .cpp source path. A line that has the token but does not match makes `match.group(2)` raise AttributeError."
    },
    {
      "id": "function:scripts/generate_compile_commands.py:generate",
      "type": "function",
      "name": "generate",
      "filePath": "scripts/generate_compile_commands.py",
      "lineRange": [
        26,
        36
      ],
      "summary": "Iterates over the stdin lines, builds one {directory, command, file} record per node-gyp compile line with the source path normalized against `<cwd>/build`, and dumps the list as indented JSON.",
      "tags": [
        "compile-commands",
        "json-output",
        "parser"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/library.xcscheme",
      "type": "file",
      "name": "library.xcscheme",
      "filePath": "scripts/library.xcscheme",
      "summary": "Xcode scheme template (format version 1.3) for the node-mapnik library target, with {{BLUEPRINT_ID}}, {{BUILDABLE_NAME}}, {{BLUEPRINT_NAME}} and {{CONTAINER}} placeholders; it uses Debug for test, launch and analyze, and Release for profile and archive.",
      "tags": [
        "xcode",
        "build-system",
        "template",
        "macos",
        "configuration"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/node.xcscheme",
      "type": "file",
      "name": "node.xcscheme",
      "filePath": "scripts/node.xcscheme",
      "summary": "Xcode scheme template that launches {{NODE_PATH}}/node with {{NODE_ARGUMENT}} in {{WORKING_DIRECTORY}} and prepends {{NODE_PATH}} to PATH, so a developer can debug the native addon under LLDB while a Node.js script runs it.",
      "tags": [
        "xcode",
        "debugging",
        "template",
        "macos",
        "build-system"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/glibc_workaround.cpp",
      "type": "file",
      "name": "glibc_workaround.cpp",
      "filePath": "src/glibc_workaround.cpp",
      "summary": "Linux-only shim, compiled when MAPNIK_ENABLE_GLIBC_WORKAROUND is defined, that supplies its own std::__throw_out_of_range_fmt so the addon can be built with libstdc++ 4.9 without a runtime dependency on the GLIBCXX_3.4.20 symbol version.",
      "tags": [
        "portability",
        "linker-workaround",
        "libstdcxx",
        "build-compatibility"
      ],
      "complexity": "simple",
      "languageNotes": "A definition inside namespace std is normally undefined behavior. Here it is a deliberate link-time override: the local definition satisfies the references that the libstdc++ 4.9 headers emit."
    },
    {
      "id": "function:src/glibc_workaround.cpp:__throw_out_of_range_fmt",
      "type": "function",
      "name": "__throw_out_of_range_fmt",
      "filePath": "src/glibc_workaround.cpp",
      "lineRange": [
        16,
        20
      ],
      "summary": "Replacement for the libstdc++ formatted out_of_range thrower: it ignores the printf-style arguments and calls std::__throw_out_of_range with the raw format string; it is declared __noreturn__.",
      "tags": [
        "exception-handling",
        "linker-workaround",
        "libstdcxx"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:src/mapnik_grid.cpp",
      "type": "file",
      "name": "mapnik_grid.cpp",
      "filePath": "src/mapnik_grid.cpp",
      "summary": "Implements the N-API `mapnik.Grid` class (only when GRID_RENDERER is defined): it builds a mapnik::grid hit buffer from width, height and an optional `key` (default `__id__`), and offers field registration, clear, sub-views, and sync or async encoding into UTFGrid JSON with `grid`, `keys` and `data` members.",
      "tags": [
        "n-api-binding",
        "utfgrid",
        "async-worker",
        "interactivity",
        "native-addon"
      ],
      "complexity": "complex",
      "languageNotes": "Each async method pairs a JS-facing wrapper with a Napi::AsyncWorker subclass. Execute() runs on the libuv thread pool and does not touch JS values; GetResult() builds the JS callback arguments back on the main thread."
    },
    {
      "id": "class:src/mapnik_grid.cpp:AsyncGridClear",
      "type": "class",
      "name": "AsyncGridClear",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        18,
        43
      ],
      "summary": "Napi::AsyncWorker that clears the shared mapnik::grid off the main thread and then passes the callback a new JS Grid object that wraps the same grid_ptr.",
      "tags": [
        "async-worker",
        "utfgrid",
        "background-task"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid.cpp:AsyncGridClear::GetResult",
      "type": "function",
      "name": "AsyncGridClear::GetResult",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        32,
        41
      ],
      "summary": "Wraps the cleared grid_ptr in a Napi::External and calls Grid::constructor.New to return (null, Grid) to the JS callback; without a grid it falls back to the AsyncWorker default result.",
      "tags": [
        "async-worker",
        "result-marshalling",
        "utfgrid"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_grid.cpp:AsyncGridEncode",
      "type": "class",
      "name": "AsyncGridEncode",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        45,
        111
      ],
      "summary": "Napi::AsyncWorker that holds the grid_ptr, the resolution and the feature flag, runs grid2utf on a worker thread, and stores the encoded UTF lines and key order for the callback.",
      "tags": [
        "async-worker",
        "utfgrid",
        "encoding"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_grid.cpp:AsyncGridEncode::Execute",
      "type": "function",
      "name": "AsyncGridEncode::Execute",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        56,
        69
      ],
      "summary": "Calls node_mapnik::grid2utf<mapnik::grid> on the worker thread to fill lines_ and key_order_ at the requested resolution, and turns any std::exception into a callback error with SetError.",
      "tags": [
        "async-worker",
        "utfgrid",
        "error-handling"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid.cpp:AsyncGridEncode::GetResult",
      "type": "function",
      "name": "AsyncGridEncode::GetResult",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        70,
        103
      ],
      "summary": "On the main thread, converts key_order_ into a JS array, optionally fills feature attributes with write_features<mapnik::grid>, and returns (null, {grid, keys, data}) to the Grid.encode callback.",
      "tags": [
        "async-worker",
        "result-marshalling",
        "utfgrid"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        117,
        139
      ],
      "summary": "Registers the `Grid` JS class with DefineClass (key accessor; encode/encodeSync, clear/clearSync, painted, fields, addField, view, width, height; static base_mask), keeps a persistent constructor reference, and sets `exports.Grid`.",
      "tags": [
        "n-api-binding",
        "class-registration",
        "initialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid.cpp:Grid",
      "type": "function",
      "name": "Grid",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        154,
        205
      ],
      "summary": "JS constructor for Grid: it adopts an existing grid_ptr when it gets one Napi::External; otherwise it validates numeric width and height plus an optional options object with a string `key`, and allocates a new mapnik::grid. Bad arguments throw TypeError or Error.",
      "tags": [
        "constructor",
        "validation",
        "n-api-binding"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_grid.cpp:clear",
      "type": "function",
      "name": "clear",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        214,
        232
      ],
      "summary": "Clears the grid synchronously through clearSync when it gets no arguments; otherwise it requires a trailing callback function and queues an AsyncGridClear worker.",
      "tags": [
        "async-api",
        "utfgrid",
        "callback"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid.cpp:key",
      "type": "function",
      "name": "key",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        263,
        277
      ],
      "summary": "Getter and setter pair behind the `grid.key` JS property: the getter returns the join key string of the grid, and the setter calls set_key after a check that the new value is a string.",
      "tags": [
        "property-accessor",
        "validation",
        "utfgrid"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid.cpp:addField",
      "type": "function",
      "name": "addField",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        286,
        303
      ],
      "summary": "Adds one attribute name to the output field set of the grid through mapnik::grid::add_field; it throws TypeError unless it gets exactly one string argument.",
      "tags": [
        "utfgrid",
        "feature-attributes",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid.cpp:fields",
      "type": "function",
      "name": "fields",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        312,
        326
      ],
      "summary": "Copies the std::set of field names that are registered on the mapnik::grid into a new JS array and returns it through an EscapableHandleScope.",
      "tags": [
        "utfgrid",
        "feature-attributes",
        "accessor"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid.cpp:view",
      "type": "function",
      "name": "view",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        339,
        356
      ],
      "summary": "Creates a GridView over the x, y, width, height window of this grid: it passes an External grid_ptr and the four numbers to GridView::constructor.New. Its argument check joins the IsNumber tests with &&, so it rejects only calls where all four arguments are non-numeric.",
      "tags": [
        "utfgrid",
        "sub-view",
        "factory"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid.cpp:encodeSync",
      "type": "function",
      "name": "encodeSync",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        367,
        464
      ],
      "summary": "Synchronously encodes the full grid to UTFGrid JSON: it validates the options `resolution` (non-zero integer, default 4) and `features` (boolean, default true although the doc comment says false), runs grid2utf and write_features, and returns {grid, keys, data}.",
      "tags": [
        "utfgrid",
        "encoding",
        "validation",
        "synchronous"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_grid.cpp:encode",
      "type": "function",
      "name": "encode",
      "filePath": "src/mapnik_grid.cpp",
      "lineRange": [
        466,
        525
      ],
      "summary": "Async counterpart of Grid.encodeSync: it applies the same `resolution` and `features` option checks, requires a trailing callback function, and queues an AsyncGridEncode worker.",
      "tags": [
        "utfgrid",
        "async-api",
        "encoding",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_grid_view.cpp",
      "type": "file",
      "name": "mapnik_grid_view.cpp",
      "filePath": "src/mapnik_grid_view.cpp",
      "summary": "Implements the N-API `mapnik.GridView` class (only when GRID_RENDERER is defined), a rectangular window over a parent mapnik::grid that JS code can get only from Grid.view(); it offers width, height, fields, getPixel, sync and async isSolid, and sync and async UTFGrid encoding.",
      "tags": [
        "n-api-binding",
        "utfgrid",
        "async-worker",
        "native-addon",
        "sub-view"
      ],
      "complexity": "complex",
      "languageNotes": "The option parsing for `resolution` and `features` is copied verbatim into encodeSync and encode here and again in mapnik_grid.cpp, so a fix to the option validation must be applied in four places."
    },
    {
      "id": "class:src/mapnik_grid_view.cpp:AsyncIsSolid",
      "type": "class",
      "name": "AsyncIsSolid",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        14,
        59
      ],
      "summary": "Napi::AsyncWorker that scans every row of a grid_view on a worker thread to decide whether all pixels share the feature id of the first pixel, and returns (null, solid) plus that pixel value when the view is solid.",
      "tags": [
        "async-worker",
        "pixel-scan",
        "utfgrid"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid_view.cpp:AsyncIsSolid::Execute",
      "type": "function",
      "name": "AsyncIsSolid::Execute",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        23,
        46
      ],
      "summary": "Compares each grid_view value with the value at (0,0) and stops at the first difference; a view with zero width or height becomes a 'grid_view does not have valid dimensions' error, while isSolidSync returns true for that case.",
      "tags": [
        "async-worker",
        "pixel-scan",
        "error-handling"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_grid_view.cpp:AsyncGridViewEncode",
      "type": "class",
      "name": "AsyncGridViewEncode",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        61,
        127
      ],
      "summary": "Napi::AsyncWorker that encodes a grid_view (not the whole parent grid) to UTF lines with grid2utf<mapnik::grid_view>, and keeps the key order and the feature flag for the callback result.",
      "tags": [
        "async-worker",
        "utfgrid",
        "encoding"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_grid_view.cpp:AsyncGridViewEncode::Execute",
      "type": "function",
      "name": "AsyncGridViewEncode::Execute",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        72,
        85
      ],
      "summary": "Runs node_mapnik::grid2utf<mapnik::grid_view> on the thread pool for the window of the view at resolution_, and reports any std::exception to the callback through SetError.",
      "tags": [
        "async-worker",
        "utfgrid",
        "error-handling"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid_view.cpp:AsyncGridViewEncode::GetResult",
      "type": "function",
      "name": "AsyncGridViewEncode::GetResult",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        86,
        119
      ],
      "summary": "Builds the GridView encode result on the main thread: a JS keys array from key_order_, optional feature data from write_features<mapnik::grid_view>, and the grid line strings, returned as (null, {grid, keys, data}).",
      "tags": [
        "async-worker",
        "result-marshalling",
        "utfgrid"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid_view.cpp:Initialize",
      "type": "function",
      "name": "Initialize",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        133,
        151
      ],
      "summary": "Registers the `GridView` JS class with eight instance methods (encodeSync, encode, fields, width, height, isSolid, isSolidSync, getPixel), stores the persistent constructor that Grid.view uses, and sets `exports.GridView`.",
      "tags": [
        "n-api-binding",
        "class-registration",
        "initialization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid_view.cpp:GridView",
      "type": "function",
      "name": "GridView",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        153,
        173
      ],
      "summary": "Accepts only an External grid_ptr plus four numbers (x, y, w, h), keeps the parent grid_ptr alive in grid_, and wraps grid_->get_view(x, y, w, h) in a shared mapnik::grid_view; any other call throws 'Cannot create this object from Javascript'.",
      "tags": [
        "constructor",
        "sub-view",
        "n-api-binding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid_view.cpp:fields",
      "type": "function",
      "name": "fields",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        185,
        199
      ],
      "summary": "Returns the field names of the underlying grid_view as a JS array, which it fills from the std::set that get_fields() gives.",
      "tags": [
        "utfgrid",
        "feature-attributes",
        "accessor"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid_view.cpp:isSolid",
      "type": "function",
      "name": "isSolid",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        201,
        218
      ],
      "summary": "Delegates to isSolidSync when it gets no arguments; otherwise it checks that the last argument is a callback function and queues an AsyncIsSolid worker over grid_view_.",
      "tags": [
        "async-api",
        "pixel-scan",
        "callback"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid_view.cpp:isSolidSync",
      "type": "function",
      "name": "isSolidSync",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        220,
        240
      ],
      "summary": "Synchronously reports whether every value in the grid view equals the top-left value, and returns true for an empty view.",
      "tags": [
        "pixel-scan",
        "synchronous",
        "utfgrid"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid_view.cpp:getPixel",
      "type": "function",
      "name": "getPixel",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        242,
        277
      ],
      "summary": "Returns the grid_view value (the feature id) at integer coordinates x, y, returns undefined for out-of-bounds coordinates, and throws TypeError when x or y is missing or is not a number.",
      "tags": [
        "pixel-access",
        "validation",
        "utfgrid"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:src/mapnik_grid_view.cpp:encodeSync",
      "type": "function",
      "name": "encodeSync",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        279,
        378
      ],
      "summary": "Synchronously encodes only the view window into UTFGrid JSON with the same `resolution` (default 4, non-zero) and `features` (default true) options as Grid.encodeSync, and returns {grid, keys, data}; a std::exception becomes a JS Error.",
      "tags": [
        "utfgrid",
        "encoding",
        "synchronous",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:src/mapnik_grid_view.cpp:encode",
      "type": "function",
      "name": "encode",
      "filePath": "src/mapnik_grid_view.cpp",
      "lineRange": [
        394,
        453
      ],
      "summary": "Callback form of GridView.encodeSync: it validates the same options, requires the last argument to be a function, and queues an AsyncGridViewEncode worker for the view.",
      "tags": [
        "utfgrid",
        "async-api",
        "encoding"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:src/mapnik_grid_view.hpp",
      "type": "file",
      "name": "mapnik_grid_view.hpp",
      "filePath": "src/mapnik_grid_view.hpp",
      "summary": "Header (GRID_RENDERER builds only) that declares the GridView N-API wrapper and the grid_view_ptr alias for std::shared_ptr<mapnik::grid_view>; it includes mapnik_grid.hpp and makes Grid a friend so that Grid.view can construct views.",
      "tags": [
        "header",
        "n-api-binding",
        "type-definition",
        "utfgrid"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:src/mapnik_grid_view.hpp:GridView",
      "type": "class",
      "name": "GridView",
      "filePath": "src/mapnik_grid_view.hpp",
      "lineRange": [
        16,
        40
      ],
      "summary": "Napi::ObjectWrap<GridView> declaration with a static Initialize, a CallbackInfo constructor, the encode, encodeSync, fields, width, height, isSolid, isSolidSync and getPixel methods, an impl() accessor, and private grid_view_ and parent grid_ shared pointers.",
      "tags": [
        "class",
        "n-api-binding",
        "sub-view",
        "utfgrid"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:tools/cpp.el",
      "type": "file",
      "name": "cpp.el",
      "filePath": "tools/cpp.el",
      "summary": "Emacs Lisp helper that defines the `fixup` command, which tools/fix_cpp_style.sh runs in batch mode to reformat C++ sources with BSD style and 4-space indentation.",
      "tags": [
        "code-style",
        "formatter",
        "emacs",
        "developer-tooling"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:tools/cpp.el:fixup",
      "type": "function",
      "name": "fixup",
      "filePath": "tools/cpp.el",
      "lineRange": [
        1,
        10
      ],
      "summary": "Sets c-set-style \"bsd\", zero indentation inside namespaces, template-argument continuation lineup and c-basic-offset 4, then reindents the whole buffer, converts tabs to spaces, deletes trailing whitespace and saves the file.",
      "tags": [
        "code-style",
        "formatter",
        "emacs"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:tools/fix_cpp_style.sh",
      "type": "file",
      "name": "fix_cpp_style.sh",
      "filePath": "tools/fix_cpp_style.sh",
      "summary": "Shell loop that finds every file under ./src/ and runs `emacs -batch <file> -l $(pwd)/tools/cpp.el -f fixup` on it, so it must run from the repository root; it has no shebang and does not quote $file, so paths with spaces break it.",
      "tags": [
        "code-style",
        "developer-tooling",
        "batch-processing",
        "shell-script"
      ],
      "complexity": "simple"
    }
  ],
  "edges": [
    {
      "source": "file:src/ds_emitter.hpp",
      "target": "function:src/ds_emitter.hpp:get_fields",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/ds_emitter.hpp",
      "target": "function:src/ds_emitter.hpp:get_fields",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/ds_emitter.hpp",
      "target": "function:src/ds_emitter.hpp:describe_datasource",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/ds_emitter.hpp",
      "target": "function:src/ds_emitter.hpp:describe_datasource",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/js_grid_utils.hpp",
      "target": "function:src/js_grid_utils.hpp:grid2utf",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/js_grid_utils.hpp",
      "target": "function:src/js_grid_utils.hpp:grid2utf",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/js_grid_utils.hpp",
      "target": "function:src/js_grid_utils.hpp:write_features",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/js_grid_utils.hpp",
      "target": "function:src/js_grid_utils.hpp:write_features",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_datasource.cpp",
      "target": "function:src/mapnik_datasource.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_datasource.cpp",
      "target": "function:src/mapnik_datasource.cpp:Datasource",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_datasource.cpp",
      "target": "function:src/mapnik_datasource.cpp:parameters",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_datasource.cpp",
      "target": "function:src/mapnik_datasource.cpp:extent",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_datasource.cpp",
      "target": "function:src/mapnik_datasource.cpp:describe",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_datasource.cpp",
      "target": "function:src/mapnik_datasource.cpp:featureset",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_datasource.hpp",
      "target": "class:src/mapnik_datasource.hpp:Datasource",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_datasource.hpp",
      "target": "class:src/mapnik_datasource.hpp:Datasource",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_expression.cpp",
      "target": "function:src/mapnik_expression.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_expression.cpp",
      "target": "function:src/mapnik_expression.cpp:Expression",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_expression.cpp",
      "target": "function:src/mapnik_expression.cpp:evaluate",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_expression.hpp",
      "target": "class:src/mapnik_expression.hpp:Expression",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_expression.hpp",
      "target": "class:src/mapnik_expression.hpp:Expression",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_feature.cpp",
      "target": "function:src/mapnik_feature.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_feature.cpp",
      "target": "function:src/mapnik_feature.cpp:Feature",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_feature.cpp",
      "target": "function:src/mapnik_feature.cpp:fromJSON",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_feature.cpp",
      "target": "function:src/mapnik_feature.cpp:extent",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_feature.cpp",
      "target": "function:src/mapnik_feature.cpp:attributes",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_feature.cpp",
      "target": "function:src/mapnik_feature.cpp:toJSON",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_feature.hpp",
      "target": "class:src/mapnik_feature.hpp:Feature",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_feature.hpp",
      "target": "class:src/mapnik_feature.hpp:Feature",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_featureset.cpp",
      "target": "function:src/mapnik_featureset.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_featureset.cpp",
      "target": "function:src/mapnik_featureset.cpp:Featureset",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_featureset.cpp",
      "target": "function:src/mapnik_featureset.cpp:next",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "function:src/ds_emitter.hpp:describe_datasource",
      "target": "function:src/ds_emitter.hpp:get_fields",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/ds_emitter.hpp:describe_datasource",
      "target": "function:src/utils.hpp:params_to_object",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/js_grid_utils.hpp:grid2utf",
      "target": "function:src/utf8.hpp:utf8catcodepoint",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/js_grid_utils.hpp:write_features",
      "target": "class:src/utils.hpp:value_converter",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_datasource.cpp:parameters",
      "target": "function:src/utils.hpp:params_to_object",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_datasource.cpp:describe",
      "target": "function:src/ds_emitter.hpp:describe_datasource",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_datasource.cpp:featureset",
      "target": "function:src/mapnik_featureset.cpp:Featureset",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_expression.cpp:evaluate",
      "target": "class:src/utils.hpp:value_converter",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_feature.cpp:fromJSON",
      "target": "function:src/mapnik_feature.cpp:Feature",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_feature.cpp:attributes",
      "target": "class:src/utils.hpp:value_converter",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_featureset.cpp:next",
      "target": "function:src/mapnik_feature.cpp:Feature",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/ds_emitter.hpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/js_grid_utils.hpp",
      "target": "file:src/utf8.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/js_grid_utils.hpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_datasource.cpp",
      "target": "file:src/ds_emitter.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_datasource.cpp",
      "target": "file:src/mapnik_datasource.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_datasource.cpp",
      "target": "file:src/mapnik_featureset.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_datasource.cpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_expression.cpp",
      "target": "file:src/mapnik_expression.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_expression.cpp",
      "target": "file:src/mapnik_feature.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_expression.cpp",
      "target": "file:src/object_to_container.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_expression.cpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_feature.cpp",
      "target": "file:src/mapnik_feature.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_feature.cpp",
      "target": "file:src/mapnik_geometry.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_feature.cpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_featureset.cpp",
      "target": "file:src/mapnik_feature.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_featureset.cpp",
      "target": "file:src/mapnik_featureset.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_featureset.hpp",
      "target": "class:src/mapnik_featureset.hpp:Featureset",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_featureset.hpp",
      "target": "class:src/mapnik_featureset.hpp:Featureset",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_fonts.hpp",
      "target": "function:src/mapnik_fonts.hpp:register_fonts",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_fonts.hpp",
      "target": "function:src/mapnik_fonts.hpp:register_fonts",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_fonts.hpp",
      "target": "function:src/mapnik_fonts.hpp:available_font_faces",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_fonts.hpp",
      "target": "function:src/mapnik_fonts.hpp:available_font_faces",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_fonts.hpp",
      "target": "function:src/mapnik_fonts.hpp:memory_fonts",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_fonts.hpp",
      "target": "function:src/mapnik_fonts.hpp:memory_fonts",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_fonts.hpp",
      "target": "function:src/mapnik_fonts.hpp:available_font_files",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_fonts.hpp",
      "target": "function:src/mapnik_fonts.hpp:available_font_files",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_geometry.cpp",
      "target": "class:src/mapnik_geometry.cpp:AsyncToJSON",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_geometry.cpp",
      "target": "function:src/mapnik_geometry.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_geometry.cpp",
      "target": "function:src/mapnik_geometry.cpp:Geometry",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_geometry.cpp",
      "target": "function:src/mapnik_geometry.cpp:toJSONSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_geometry.cpp",
      "target": "function:src/mapnik_geometry.cpp:toJSON",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_geometry.cpp",
      "target": "function:src/mapnik_geometry.cpp:extent",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_geometry.cpp",
      "target": "function:src/mapnik_geometry.cpp:toWKT",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_geometry.cpp",
      "target": "function:src/mapnik_geometry.cpp:toWKB",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_geometry.hpp",
      "target": "class:src/mapnik_geometry.hpp:Geometry",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_geometry.hpp",
      "target": "class:src/mapnik_geometry.hpp:Geometry",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_layer.cpp",
      "target": "function:src/mapnik_layer.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_layer.cpp",
      "target": "function:src/mapnik_layer.cpp:Layer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_layer.cpp",
      "target": "function:src/mapnik_layer.cpp:styles",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_layer.cpp",
      "target": "function:src/mapnik_layer.cpp:datasource",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_layer.cpp",
      "target": "function:src/mapnik_layer.cpp:describe",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_layer.hpp",
      "target": "class:src/mapnik_layer.hpp:Layer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_layer.hpp",
      "target": "class:src/mapnik_layer.hpp:Layer",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_logger.cpp",
      "target": "function:src/mapnik_logger.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_logger.cpp",
      "target": "function:src/mapnik_logger.cpp:set_severity",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_logger.hpp",
      "target": "class:src/mapnik_logger.hpp:Logger",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_logger.hpp",
      "target": "class:src/mapnik_logger.hpp:Logger",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:Map",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:extent",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:maximumExtent",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:bufferedExtent",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:aspect_fix_mode",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:background",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:parameters",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:memoryFonts",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:registerFonts",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:fonts",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:fontFiles",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:fontDirectory",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:layers",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:add_layer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:remove_layer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:get_layer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:resize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:clone",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:save",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:toXML",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:zoomAll",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "function:src/mapnik_map.cpp:zoomToBox",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "function:src/mapnik_geometry.cpp:toJSON",
      "target": "function:src/mapnik_geometry.cpp:toJSONSync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_geometry.cpp:toJSON",
      "target": "class:src/mapnik_geometry.cpp:AsyncToJSON",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_layer.cpp:datasource",
      "target": "function:src/mapnik_datasource.cpp:Datasource",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_layer.cpp:describe",
      "target": "function:src/utils.hpp:params_to_object",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map.cpp:parameters",
      "target": "function:src/utils.hpp:params_to_object",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map.cpp:background",
      "target": "class:src/mapnik_color.hpp:Color",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map.cpp:layers",
      "target": "function:src/mapnik_layer.cpp:Layer",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map.cpp:get_layer",
      "target": "function:src/mapnik_layer.cpp:Layer",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map.cpp:clone",
      "target": "function:src/mapnik_map.cpp:Map",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_geometry.cpp",
      "target": "file:src/mapnik_geometry.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_geometry.cpp",
      "target": "file:src/mapnik_projection.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_geometry.cpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_layer.cpp",
      "target": "file:src/mapnik_datasource.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_layer.cpp",
      "target": "file:src/mapnik_layer.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_layer.cpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_logger.cpp",
      "target": "file:src/mapnik_logger.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "file:src/mapnik_color.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "file:src/mapnik_layer.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "file:src/mapnik_map.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "file:src/mapnik_palette.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map.cpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map_query_point.cpp",
      "target": "class:src/mapnik_map_query_point.cpp:AsyncQueryPoint",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_query_point.cpp",
      "target": "function:src/mapnik_map_query_point.cpp:query_point_impl",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_plugins.hpp",
      "target": "function:src/mapnik_plugins.hpp:available_input_plugins",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_plugins.hpp",
      "target": "function:src/mapnik_plugins.hpp:available_input_plugins",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_plugins.hpp",
      "target": "function:src/mapnik_plugins.hpp:register_datasource",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_plugins.hpp",
      "target": "function:src/mapnik_plugins.hpp:register_datasource",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_plugins.hpp",
      "target": "function:src/mapnik_plugins.hpp:register_datasources",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_plugins.hpp",
      "target": "function:src/mapnik_plugins.hpp:register_datasources",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_projection.cpp",
      "target": "function:src/mapnik_projection.cpp:Projection::Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_projection.cpp",
      "target": "function:src/mapnik_projection.cpp:Projection",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_projection.cpp",
      "target": "function:src/mapnik_projection.cpp:Projection::forward",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_projection.cpp",
      "target": "function:src/mapnik_projection.cpp:inverse",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_projection.cpp",
      "target": "function:src/mapnik_projection.cpp:ProjTransform::Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_projection.cpp",
      "target": "function:src/mapnik_projection.cpp:ProjTransform",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_projection.cpp",
      "target": "function:src/mapnik_projection.cpp:ProjTransform::forward",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_projection.cpp",
      "target": "function:src/mapnik_projection.cpp:backward",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_projection.hpp",
      "target": "class:src/mapnik_projection.hpp:Projection",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_projection.hpp",
      "target": "class:src/mapnik_projection.hpp:Projection",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_projection.hpp",
      "target": "class:src/mapnik_projection.hpp:ProjTransform",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_projection.hpp",
      "target": "class:src/mapnik_projection.hpp:ProjTransform",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_query.cpp",
      "target": "class:src/mapnik_vector_tile_query.cpp:p2p_distance",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_query.cpp",
      "target": "function:src/mapnik_vector_tile_query.cpp:_query",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_query.cpp",
      "target": "function:src/mapnik_vector_tile_query.cpp:_queryResultToV8",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_query.cpp",
      "target": "class:src/mapnik_vector_tile_query.cpp:AsyncQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_query.cpp",
      "target": "function:src/mapnik_vector_tile_query.cpp:_queryManyResultToV8",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_query.cpp",
      "target": "function:src/mapnik_vector_tile_query.cpp:_queryMany",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_query.cpp",
      "target": "class:src/mapnik_vector_tile_query.cpp:AsyncQueryMany",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_query.cpp",
      "target": "function:src/mapnik_vector_tile_query.cpp:query",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_query.cpp",
      "target": "function:src/mapnik_vector_tile_query.cpp:queryMany",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "function:src/node_mapnik.cpp:init_image_comp_op",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "function:src/node_mapnik.cpp:init_image_comp_op",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "function:src/node_mapnik.cpp:init_image_types",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "function:src/node_mapnik.cpp:init_image_types",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "function:src/node_mapnik.cpp:init_image_scalings",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "function:src/node_mapnik.cpp:init_image_scalings",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "function:src/node_mapnik.cpp:init_polygon_fill_types",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "function:src/node_mapnik.cpp:init_polygon_fill_types",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "function:src/node_mapnik.cpp:init_threading_mode_types",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "function:src/node_mapnik.cpp:init_threading_mode_types",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "function:src/node_mapnik.cpp:init",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "function:src/node_mapnik.cpp:init",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/utf8.hpp",
      "target": "function:src/utf8.hpp:utf8codepoint",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/utf8.hpp",
      "target": "function:src/utf8.hpp:utf8codepoint",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/utf8.hpp",
      "target": "function:src/utf8.hpp:utf8catcodepoint",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/utf8.hpp",
      "target": "function:src/utf8.hpp:utf8catcodepoint",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/utf8.hpp",
      "target": "function:src/utf8.hpp:utf8valid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/utf8.hpp",
      "target": "function:src/utf8.hpp:utf8valid",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/utf8.hpp",
      "target": "function:src/utf8.hpp:utf8lwrcodepoint",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/utf8.hpp",
      "target": "function:src/utf8.hpp:utf8lwrcodepoint",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/utf8.hpp",
      "target": "function:src/utf8.hpp:utf8uprcodepoint",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/utf8.hpp",
      "target": "function:src/utf8.hpp:utf8uprcodepoint",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/utils.hpp",
      "target": "class:src/utils.hpp:value_converter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/utils.hpp",
      "target": "class:src/utils.hpp:value_converter",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/utils.hpp",
      "target": "function:src/utils.hpp:params_to_object",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/utils.hpp",
      "target": "function:src/utils.hpp:params_to_object",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/utils.hpp:params_to_object",
      "target": "class:src/utils.hpp:value_converter",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:src/mapnik_map_query_point.cpp:AsyncQueryPoint",
      "target": "function:src/mapnik_featureset.cpp:Featureset",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map_query_point.cpp:query_point_impl",
      "target": "class:src/mapnik_map_query_point.cpp:AsyncQueryPoint",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_query.cpp:_query",
      "target": "class:src/mapnik_vector_tile_query.cpp:p2p_distance",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_query.cpp:_queryMany",
      "target": "class:src/mapnik_vector_tile_query.cpp:p2p_distance",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_query.cpp:_queryResultToV8",
      "target": "function:src/mapnik_feature.cpp:Feature",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_query.cpp:_queryManyResultToV8",
      "target": "function:src/mapnik_feature.cpp:Feature",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:src/mapnik_vector_tile_query.cpp:AsyncQuery",
      "target": "function:src/mapnik_vector_tile_query.cpp:_query",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:src/mapnik_vector_tile_query.cpp:AsyncQuery",
      "target": "function:src/mapnik_vector_tile_query.cpp:_queryResultToV8",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:src/mapnik_vector_tile_query.cpp:AsyncQueryMany",
      "target": "function:src/mapnik_vector_tile_query.cpp:_queryMany",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:src/mapnik_vector_tile_query.cpp:AsyncQueryMany",
      "target": "function:src/mapnik_vector_tile_query.cpp:_queryManyResultToV8",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_query.cpp:query",
      "target": "function:src/mapnik_vector_tile_query.cpp:_query",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_query.cpp:query",
      "target": "function:src/mapnik_vector_tile_query.cpp:_queryResultToV8",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_query.cpp:query",
      "target": "class:src/mapnik_vector_tile_query.cpp:AsyncQuery",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_query.cpp:queryMany",
      "target": "function:src/mapnik_vector_tile_query.cpp:_queryMany",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_query.cpp:queryMany",
      "target": "function:src/mapnik_vector_tile_query.cpp:_queryManyResultToV8",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_query.cpp:queryMany",
      "target": "class:src/mapnik_vector_tile_query.cpp:AsyncQueryMany",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_plugins.hpp:register_datasource",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_plugins.hpp:register_datasources",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_plugins.hpp:available_input_plugins",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_fonts.hpp:register_fonts",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_fonts.hpp:available_font_faces",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_fonts.hpp:available_font_files",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_fonts.hpp:memory_fonts",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/node_mapnik.cpp:init_image_types",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/node_mapnik.cpp:init_image_scalings",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/node_mapnik.cpp:init_image_comp_op",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/node_mapnik.cpp:init_polygon_fill_types",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/node_mapnik.cpp:init_threading_mode_types",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_datasource.cpp:Initialize",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_projection.cpp:Projection::Initialize",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_projection.cpp:ProjTransform::Initialize",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_geometry.cpp:Initialize",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_feature.cpp:Initialize",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_featureset.cpp:Initialize",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_layer.cpp:Initialize",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_map.cpp:Initialize",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_expression.cpp:Initialize",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_logger.cpp:Initialize",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_vector_tile.cpp:Initialize",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/mapnik_cairo_surface.cpp:Initialize",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "class:src/mapnik_color.hpp:Color",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "class:src/mapnik_image.hpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "class:src/mapnik_image_view.hpp:ImageView",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "class:src/mapnik_palette.hpp:Palette",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/blend.cpp:blend",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/blend.cpp:rgb2hsl",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/node_mapnik.cpp:init",
      "target": "function:src/blend.cpp:hsl2rgb",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_map_query_point.cpp",
      "target": "file:src/mapnik_featureset.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map_query_point.cpp",
      "target": "file:src/mapnik_map.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_plugins.hpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_projection.cpp",
      "target": "file:src/mapnik_projection.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_projection.cpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_query.cpp",
      "target": "file:src/mapnik_feature.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_query.cpp",
      "target": "file:src/mapnik_vector_tile.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/blend.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_cairo_surface.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_color.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_datasource.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_expression.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_feature.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_featureset.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_fonts.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_geometry.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_image_view.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_layer.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_logger.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_map.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_palette.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_plugins.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_projection.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/node_mapnik.cpp",
      "target": "file:src/mapnik_vector_tile.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:hexToUInt32Color",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:rgb2hsl",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:hsl2rgb",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:parseTintOps",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:Blend_CompositePixel",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:TintPixel",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:Blend_Composite",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "class:src/blend.cpp:AsyncBlend",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:AsyncBlend::AsyncBlend",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:AsyncBlend::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:AsyncBlend::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:Blend_Encode",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:blend",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.hpp",
      "target": "class:src/blend.hpp:BImage",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.hpp",
      "target": "function:src/blend.hpp:BImage::BImage",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "function:src/mapnik_color.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "function:src/mapnik_color.cpp:Color",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "function:src/mapnik_color.cpp:red",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "function:src/mapnik_color.cpp:green",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "function:src/mapnik_color.cpp:blue",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "function:src/mapnik_color.cpp:alpha",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_color.hpp",
      "target": "class:src/mapnik_color.hpp:Color",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:getPixel",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:setPixel",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:compare",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:setGrayScaleToAlpha",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:view",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:offset",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:scaling",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image.hpp",
      "target": "class:src/mapnik_image.hpp:Image",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_clear.cpp",
      "target": "class:src/mapnik_image_clear.cpp:AsyncClear",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_clear.cpp",
      "target": "function:src/mapnik_image_clear.cpp:AsyncClear::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_clear.cpp",
      "target": "function:src/mapnik_image_clear.cpp:clearSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_clear.cpp",
      "target": "function:src/mapnik_image_clear.cpp:clear",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_compositing.cpp",
      "target": "class:src/mapnik_image_compositing.cpp:AsyncComposite",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_compositing.cpp",
      "target": "function:src/mapnik_image_compositing.cpp:AsyncComposite::AsyncComposite",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_compositing.cpp",
      "target": "function:src/mapnik_image_compositing.cpp:AsyncComposite::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_compositing.cpp",
      "target": "function:src/mapnik_image_compositing.cpp:composite",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_copy.cpp",
      "target": "class:src/mapnik_image_copy.cpp:AsyncCopy",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_copy.cpp",
      "target": "function:src/mapnik_image_copy.cpp:AsyncCopy::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_copy.cpp",
      "target": "function:src/mapnik_image_copy.cpp:AsyncCopy::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_copy.cpp",
      "target": "function:src/mapnik_image_copy.cpp:copy",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_copy.cpp",
      "target": "function:src/mapnik_image_copy.cpp:copySync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/blend.cpp",
      "target": "file:src/blend.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/blend.cpp",
      "target": "file:src/mapnik_palette.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/blend.cpp",
      "target": "file:src/tint.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/blend.cpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/blend.hpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/blend.hpp",
      "target": "file:src/mapnik_palette.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/blend.hpp",
      "target": "file:src/tint.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "file:src/mapnik_color.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "file:src/mapnik_color.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "file:src/mapnik_image_view.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "file:src/mapnik_palette.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "file:src/pixel_utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image.hpp",
      "target": "file:src/mapnik_palette.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_clear.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_compositing.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_copy.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:rgb2hsl",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:hsl2rgb",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/blend.cpp",
      "target": "function:src/blend.cpp:blend",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/blend.hpp",
      "target": "class:src/blend.hpp:BImage",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "function:src/mapnik_color.cpp:Initialize",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "function:src/mapnik_color.cpp:Color",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "function:src/mapnik_color.cpp:red",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "function:src/mapnik_color.cpp:green",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "function:src/mapnik_color.cpp:blue",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_color.cpp",
      "target": "function:src/mapnik_color.cpp:alpha",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_color.hpp",
      "target": "class:src/mapnik_color.hpp:Color",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:Initialize",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:getPixel",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:setPixel",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:compare",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:setGrayScaleToAlpha",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:view",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:offset",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image.cpp",
      "target": "function:src/mapnik_image.cpp:scaling",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image.hpp",
      "target": "class:src/mapnik_image.hpp:Image",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_clear.cpp",
      "target": "function:src/mapnik_image_clear.cpp:clearSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_clear.cpp",
      "target": "function:src/mapnik_image_clear.cpp:clear",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_compositing.cpp",
      "target": "function:src/mapnik_image_compositing.cpp:composite",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_copy.cpp",
      "target": "function:src/mapnik_image_copy.cpp:copy",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_copy.cpp",
      "target": "function:src/mapnik_image_copy.cpp:copySync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/blend.cpp:rgb2hsl",
      "target": "function:src/tint.hpp:rgb_to_hsl",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/blend.cpp:hsl2rgb",
      "target": "function:src/tint.hpp:hsl_to_rgb",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/blend.cpp:TintPixel",
      "target": "function:src/tint.hpp:rgb_to_hsl",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/blend.cpp:TintPixel",
      "target": "function:src/tint.hpp:hsl_to_rgb",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image.cpp:getPixel",
      "target": "function:src/mapnik_color.cpp:Color",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image.cpp:view",
      "target": "function:src/mapnik_image_view.cpp:ImageView",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_clear.cpp:AsyncClear::GetResult",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_copy.cpp:AsyncCopy::GetResult",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_copy.cpp:copySync",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/blend.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_image_encode.cpp",
      "target": "function:src/mapnik_image_encode.cpp:encode_common_args_",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_encode.cpp",
      "target": "class:src/mapnik_image_encode.cpp:AsyncEncode",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_encode.cpp",
      "target": "function:src/mapnik_image_encode.cpp:AsyncEncode::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_encode.cpp",
      "target": "function:src/mapnik_image_encode.cpp:AsyncEncode::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_encode.cpp",
      "target": "function:src/mapnik_image_encode.cpp:encodeSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_encode.cpp",
      "target": "function:src/mapnik_image_encode.cpp:encode",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_fill.cpp",
      "target": "class:src/mapnik_image_fill.cpp:AsyncFill",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_fill.cpp",
      "target": "function:src/mapnik_image_fill.cpp:AsyncFill::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_fill.cpp",
      "target": "function:src/mapnik_image_fill.cpp:fillSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_fill.cpp",
      "target": "function:src/mapnik_image_fill.cpp:fill",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_filter.cpp",
      "target": "class:src/mapnik_image_filter.cpp:AsyncFilter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_filter.cpp",
      "target": "function:src/mapnik_image_filter.cpp:AsyncFilter::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_filter.cpp",
      "target": "function:src/mapnik_image_filter.cpp:AsyncFilter::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_filter.cpp",
      "target": "function:src/mapnik_image_filter.cpp:filterSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_filter.cpp",
      "target": "function:src/mapnik_image_filter.cpp:filter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_bytes.cpp",
      "target": "class:src/mapnik_image_from_bytes.cpp:AsyncFromBytes",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_bytes.cpp",
      "target": "function:src/mapnik_image_from_bytes.cpp:AsyncFromBytes::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_bytes.cpp",
      "target": "function:src/mapnik_image_from_bytes.cpp:AsyncFromBytes::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_bytes.cpp",
      "target": "function:src/mapnik_image_from_bytes.cpp:fromBytesSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_bytes.cpp",
      "target": "function:src/mapnik_image_from_bytes.cpp:fromBytes",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_bytes.cpp",
      "target": "function:src/mapnik_image_from_bytes.cpp:fromBufferSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "class:src/mapnik_image_from_svg.cpp:AsyncFromSVG",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "function:src/mapnik_image_from_svg.cpp:AsyncFromSVG::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "function:src/mapnik_image_from_svg.cpp:AsyncFromSVG::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "class:src/mapnik_image_from_svg.cpp:AsyncFromSVGBytes",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "function:src/mapnik_image_from_svg.cpp:AsyncFromSVGBytes::AsyncFromSVGBytes",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "function:src/mapnik_image_from_svg.cpp:AsyncFromSVGBytes::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "function:src/mapnik_image_from_svg.cpp:AsyncFromSVGBytes::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "function:src/mapnik_image_from_svg.cpp:from_svg_sync_impl",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "function:src/mapnik_image_from_svg.cpp:fromSVG",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "function:src/mapnik_image_from_svg.cpp:fromSVGBytes",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_multiply.cpp",
      "target": "class:src/mapnik_image_multiply.cpp:AsyncMultiply",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_multiply.cpp",
      "target": "function:src/mapnik_image_multiply.cpp:AsyncMultiply::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_multiply.cpp",
      "target": "function:src/mapnik_image_multiply.cpp:premultiply",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_multiply.cpp",
      "target": "function:src/mapnik_image_multiply.cpp:demultiply",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_open.cpp",
      "target": "class:src/mapnik_image_open.cpp:AsyncOpen",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_open.cpp",
      "target": "function:src/mapnik_image_open.cpp:AsyncOpen::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_open.cpp",
      "target": "function:src/mapnik_image_open.cpp:AsyncOpen::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_open.cpp",
      "target": "function:src/mapnik_image_open.cpp:openSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_open.cpp",
      "target": "function:src/mapnik_image_open.cpp:open",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "class:src/mapnik_image_resize.cpp:resize_visitor",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "function:src/mapnik_image_resize.cpp:resize_visitor::resize_visitor",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "function:src/mapnik_image_resize.cpp:resize_visitor::operator()(image_rgba8&)",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "function:src/mapnik_image_resize.cpp:resize_visitor::operator()(T&)",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "class:src/mapnik_image_resize.cpp:AsyncResize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "function:src/mapnik_image_resize.cpp:AsyncResize::AsyncResize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "function:src/mapnik_image_resize.cpp:AsyncResize::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "function:src/mapnik_image_resize.cpp:AsyncResize::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "function:src/mapnik_image_resize.cpp:resize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "function:src/mapnik_image_resize.cpp:resizeSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_save.cpp",
      "target": "class:src/mapnik_image_save.cpp:AsyncSave",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_save.cpp",
      "target": "function:src/mapnik_image_save.cpp:AsyncSave::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_save.cpp",
      "target": "function:src/mapnik_image_save.cpp:saveSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_save.cpp",
      "target": "function:src/mapnik_image_save.cpp:save",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_encode.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_encode.cpp",
      "target": "file:src/mapnik_palette.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_fill.cpp",
      "target": "file:src/mapnik_color.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_fill.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_filter.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_from_bytes.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_multiply.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_open.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_save.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_encode.cpp",
      "target": "function:src/mapnik_image_encode.cpp:encodeSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_encode.cpp",
      "target": "function:src/mapnik_image_encode.cpp:encode",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_fill.cpp",
      "target": "function:src/mapnik_image_fill.cpp:fillSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_fill.cpp",
      "target": "function:src/mapnik_image_fill.cpp:fill",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_filter.cpp",
      "target": "function:src/mapnik_image_filter.cpp:filterSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_filter.cpp",
      "target": "function:src/mapnik_image_filter.cpp:filter",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_from_bytes.cpp",
      "target": "function:src/mapnik_image_from_bytes.cpp:fromBytesSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_from_bytes.cpp",
      "target": "function:src/mapnik_image_from_bytes.cpp:fromBytes",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_from_bytes.cpp",
      "target": "function:src/mapnik_image_from_bytes.cpp:fromBufferSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "function:src/mapnik_image_from_svg.cpp:fromSVG",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_from_svg.cpp",
      "target": "function:src/mapnik_image_from_svg.cpp:fromSVGBytes",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_multiply.cpp",
      "target": "function:src/mapnik_image_multiply.cpp:premultiply",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_multiply.cpp",
      "target": "function:src/mapnik_image_multiply.cpp:demultiply",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_open.cpp",
      "target": "function:src/mapnik_image_open.cpp:openSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_open.cpp",
      "target": "function:src/mapnik_image_open.cpp:open",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "function:src/mapnik_image_resize.cpp:resize",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_resize.cpp",
      "target": "function:src/mapnik_image_resize.cpp:resizeSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_save.cpp",
      "target": "function:src/mapnik_image_save.cpp:saveSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_save.cpp",
      "target": "function:src/mapnik_image_save.cpp:save",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_fill.cpp:AsyncFill::GetResult",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_filter.cpp:AsyncFilter::GetResult",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_from_bytes.cpp:AsyncFromBytes::GetResult",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_from_bytes.cpp:fromBytesSync",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_from_bytes.cpp:fromBufferSync",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_from_svg.cpp:AsyncFromSVG::GetResult",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_from_svg.cpp:AsyncFromSVGBytes::GetResult",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_from_svg.cpp:from_svg_sync_impl",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_multiply.cpp:AsyncMultiply::GetResult",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_open.cpp:AsyncOpen::GetResult",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_open.cpp:openSync",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_resize.cpp:AsyncResize::GetResult",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_resize.cpp:resizeSync",
      "target": "function:src/mapnik_image.cpp:Image",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_solid.cpp",
      "target": "class:src/mapnik_image_solid.cpp:AsyncIsSolid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_solid.cpp",
      "target": "function:src/mapnik_image_solid.cpp:AsyncIsSolid::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_solid.cpp",
      "target": "function:src/mapnik_image_solid.cpp:isSolid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_solid.cpp",
      "target": "function:src/mapnik_image_solid.cpp:isSolidSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "class:src/mapnik_image_view.cpp:AsyncIsSolid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:AsyncIsSolid::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:ImageView",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:isSolid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:isSolidSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:getPixel",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:encode_common_args_",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "class:src/mapnik_image_view.cpp:AsyncEncode",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:AsyncEncode::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:AsyncEncode::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:encodeSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:encode",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:saveSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_view.hpp",
      "target": "class:src/mapnik_image_view.hpp:ImageView",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_palette.cpp",
      "target": "function:src/mapnik_palette.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_palette.cpp",
      "target": "function:src/mapnik_palette.cpp:Palette",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_palette.cpp",
      "target": "function:src/mapnik_palette.cpp:toString",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_palette.cpp",
      "target": "function:src/mapnik_palette.cpp:toBuffer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_palette.hpp",
      "target": "class:src/mapnik_palette.hpp:Palette",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/pixel_utils.hpp",
      "target": "class:src/pixel_utils.hpp:visitor_get_pixel",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/pixel_utils.hpp",
      "target": "class:src/pixel_utils.hpp:visitor_set_pixel",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/tint.hpp",
      "target": "function:src/tint.hpp:rgb_to_hsl",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/tint.hpp",
      "target": "function:src/tint.hpp:hueToRGB",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/tint.hpp",
      "target": "function:src/tint.hpp:hsl_to_rgb",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/tint.hpp",
      "target": "class:src/tint.hpp:Tinter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_image_solid.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_solid.cpp",
      "target": "file:src/pixel_utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "file:src/mapnik_color.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "file:src/mapnik_image_view.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "file:src/mapnik_palette.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "file:src/pixel_utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_palette.cpp",
      "target": "file:src/mapnik_palette.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_image_solid.cpp",
      "target": "function:src/mapnik_image_solid.cpp:isSolid",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_solid.cpp",
      "target": "function:src/mapnik_image_solid.cpp:isSolidSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:Initialize",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:ImageView",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:isSolid",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:isSolidSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:getPixel",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:encodeSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:encode",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_view.cpp",
      "target": "function:src/mapnik_image_view.cpp:saveSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_view.hpp",
      "target": "class:src/mapnik_image_view.hpp:ImageView",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_palette.cpp",
      "target": "function:src/mapnik_palette.cpp:Initialize",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_palette.cpp",
      "target": "function:src/mapnik_palette.cpp:Palette",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_palette.cpp",
      "target": "function:src/mapnik_palette.cpp:toString",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_palette.cpp",
      "target": "function:src/mapnik_palette.cpp:toBuffer",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_palette.hpp",
      "target": "class:src/mapnik_palette.hpp:Palette",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/pixel_utils.hpp",
      "target": "class:src/pixel_utils.hpp:visitor_get_pixel",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/pixel_utils.hpp",
      "target": "class:src/pixel_utils.hpp:visitor_set_pixel",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/tint.hpp",
      "target": "function:src/tint.hpp:rgb_to_hsl",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/tint.hpp",
      "target": "function:src/tint.hpp:hueToRGB",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/tint.hpp",
      "target": "function:src/tint.hpp:hsl_to_rgb",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/tint.hpp",
      "target": "class:src/tint.hpp:Tinter",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_image_view.cpp:getPixel",
      "target": "function:src/mapnik_color.cpp:Color",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_image_view.hpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_image_view.hpp",
      "target": "file:src/mapnik_palette.hpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_cairo_surface.cpp",
      "target": "function:src/mapnik_cairo_surface.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_cairo_surface.cpp",
      "target": "function:src/mapnik_cairo_surface.cpp:Initialize",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_cairo_surface.cpp",
      "target": "function:src/mapnik_cairo_surface.cpp:CairoSurface",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_cairo_surface.cpp",
      "target": "function:src/mapnik_cairo_surface.cpp:CairoSurface",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_cairo_surface.hpp",
      "target": "class:src/mapnik_cairo_surface.hpp:CairoSurface",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_cairo_surface.hpp",
      "target": "class:src/mapnik_cairo_surface.hpp:CairoSurface",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_cairo_surface.hpp",
      "target": "function:src/mapnik_cairo_surface.hpp:write_callback",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_cairo_surface.hpp",
      "target": "function:src/mapnik_cairo_surface.hpp:write_callback",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid.hpp",
      "target": "class:src/mapnik_grid.hpp:Grid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.hpp",
      "target": "class:src/mapnik_grid.hpp:Grid",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_map.hpp",
      "target": "class:src/mapnik_map.hpp:Map",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map.hpp",
      "target": "class:src/mapnik_map.hpp:Map",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_map_from_string.cpp",
      "target": "class:src/mapnik_map_from_string.cpp:AsyncMapFromString",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_from_string.cpp",
      "target": "function:src/mapnik_map_from_string.cpp:AsyncMapFromString.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_from_string.cpp",
      "target": "function:src/mapnik_map_from_string.cpp:AsyncMapFromString.GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_from_string.cpp",
      "target": "function:src/mapnik_map_from_string.cpp:fromStringSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_from_string.cpp",
      "target": "function:src/mapnik_map_from_string.cpp:fromStringSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_map_from_string.cpp",
      "target": "function:src/mapnik_map_from_string.cpp:fromString",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_from_string.cpp",
      "target": "function:src/mapnik_map_from_string.cpp:fromString",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map_from_string.cpp:fromString",
      "target": "class:src/mapnik_map_from_string.cpp:AsyncMapFromString",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_map_load.cpp",
      "target": "class:src/mapnik_map_load.cpp:AsyncMapLoad",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_load.cpp",
      "target": "function:src/mapnik_map_load.cpp:AsyncMapLoad.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_load.cpp",
      "target": "function:src/mapnik_map_load.cpp:AsyncMapLoad.GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_load.cpp",
      "target": "function:src/mapnik_map_load.cpp:load",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_load.cpp",
      "target": "function:src/mapnik_map_load.cpp:load",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_map_load.cpp",
      "target": "function:src/mapnik_map_load.cpp:loadSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_load.cpp",
      "target": "function:src/mapnik_map_load.cpp:loadSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map_load.cpp:load",
      "target": "class:src/mapnik_map_load.cpp:AsyncMapLoad",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_cairo_surface.cpp",
      "target": "file:src/mapnik_cairo_surface.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_cairo_surface.cpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map_from_string.cpp",
      "target": "file:src/mapnik_map.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map_load.cpp",
      "target": "file:src/mapnik_map.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "class:src/mapnik_map_render.cpp:agg_renderer_visitor",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "class:src/mapnik_map_render.cpp:AsyncRender",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "class:src/mapnik_map_render.cpp:AsyncRenderImage",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "function:src/mapnik_map_render.cpp:AsyncRenderImage.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "class:src/mapnik_map_render.cpp:AsyncRenderGrid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "function:src/mapnik_map_render.cpp:AsyncRenderGrid.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "class:src/mapnik_map_render.cpp:AsyncRenderFile",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "function:src/mapnik_map_render.cpp:AsyncRenderFile.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "class:src/mapnik_map_render.cpp:AsyncRenderVectorTile",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "function:src/mapnik_map_render.cpp:AsyncRenderVectorTile.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "function:src/mapnik_map_render.cpp:render",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "function:src/mapnik_map_render.cpp:render",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "function:src/mapnik_map_render.cpp:renderSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "function:src/mapnik_map_render.cpp:renderSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "function:src/mapnik_map_render.cpp:renderFile",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "function:src/mapnik_map_render.cpp:renderFile",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "function:src/mapnik_map_render.cpp:renderFileSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "function:src/mapnik_map_render.cpp:renderFileSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:src/mapnik_map_render.cpp:AsyncRenderImage",
      "target": "class:src/mapnik_map_render.cpp:AsyncRender",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:src/mapnik_map_render.cpp:AsyncRenderGrid",
      "target": "class:src/mapnik_map_render.cpp:AsyncRender",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:src/mapnik_map_render.cpp:AsyncRenderFile",
      "target": "class:src/mapnik_map_render.cpp:AsyncRender",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:src/mapnik_map_render.cpp:AsyncRenderVectorTile",
      "target": "class:src/mapnik_map_render.cpp:AsyncRender",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "function:src/mapnik_map_render.cpp:render",
      "target": "class:src/mapnik_map_render.cpp:AsyncRenderImage",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map_render.cpp:render",
      "target": "class:src/mapnik_map_render.cpp:AsyncRenderGrid",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map_render.cpp:render",
      "target": "class:src/mapnik_map_render.cpp:AsyncRenderVectorTile",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map_render.cpp:render",
      "target": "function:src/object_to_container.hpp:object_to_container",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map_render.cpp:renderFile",
      "target": "class:src/mapnik_map_render.cpp:AsyncRenderFile",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map_render.cpp:renderFile",
      "target": "function:src/object_to_container.hpp:object_to_container",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_map_render.cpp:AsyncRenderImage.Execute",
      "target": "class:src/mapnik_map_render.cpp:agg_renderer_visitor",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:Initialize",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:VectorTile",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:VectorTile",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:extent",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:extent",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:bufferedExtent",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:bufferedExtent",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:names",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:names",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:layer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:layer",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:emptyLayers",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:emptyLayers",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:paintedLayers",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:paintedLayers",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:set_tile_x",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:set_tile_x",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:set_tile_y",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:set_tile_y",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:set_tile_z",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:set_tile_z",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:set_tile_size",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:set_tile_size",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:set_buffer_size",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "function:src/mapnik_vector_tile.cpp:set_buffer_size",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_vector_tile_render.cpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_vector_tile_data.cpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_vector_tile_composite.cpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_vector_tile_json.cpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_vector_tile_image.cpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_vector_tile_clear.cpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_vector_tile_info.cpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_vector_tile_query.cpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_vector_tile.hpp",
      "target": "class:src/mapnik_vector_tile.hpp:VectorTile",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.hpp",
      "target": "class:src/mapnik_vector_tile.hpp:VectorTile",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile.hpp",
      "target": "class:src/mapnik_vector_tile.hpp:query_result",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile.hpp",
      "target": "class:src/mapnik_vector_tile.hpp:query_result",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_clear.cpp",
      "target": "class:src/mapnik_vector_tile_clear.cpp:AsyncClear",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_clear.cpp",
      "target": "function:src/mapnik_vector_tile_clear.cpp:AsyncClear.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_clear.cpp",
      "target": "function:src/mapnik_vector_tile_clear.cpp:clear",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_clear.cpp",
      "target": "function:src/mapnik_vector_tile_clear.cpp:clear",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_clear.cpp:clear",
      "target": "class:src/mapnik_vector_tile_clear.cpp:AsyncClear",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_composite.cpp",
      "target": "function:src/mapnik_vector_tile_composite.cpp:_composite",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_composite.cpp",
      "target": "function:src/mapnik_vector_tile_composite.cpp:compositeSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_composite.cpp",
      "target": "function:src/mapnik_vector_tile_composite.cpp:compositeSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_composite.cpp",
      "target": "class:src/mapnik_vector_tile_composite.cpp:AsyncCompositeVectorTile",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_composite.cpp",
      "target": "function:src/mapnik_vector_tile_composite.cpp:AsyncCompositeVectorTile.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_composite.cpp",
      "target": "function:src/mapnik_vector_tile_composite.cpp:composite",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_composite.cpp",
      "target": "function:src/mapnik_vector_tile_composite.cpp:composite",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_composite.cpp:compositeSync",
      "target": "function:src/mapnik_vector_tile_composite.cpp:_composite",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_composite.cpp:AsyncCompositeVectorTile.Execute",
      "target": "function:src/mapnik_vector_tile_composite.cpp:_composite",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_composite.cpp:composite",
      "target": "function:src/mapnik_vector_tile_composite.cpp:compositeSync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_composite.cpp:composite",
      "target": "class:src/mapnik_vector_tile_composite.cpp:AsyncCompositeVectorTile",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "class:src/mapnik_vector_tile_data.cpp:AsyncSetData",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:AsyncSetData.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "class:src/mapnik_vector_tile_data.cpp:AsyncGetData",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:AsyncGetData.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:AsyncGetData.GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "class:src/mapnik_vector_tile_data.cpp:AsyncAddData",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:AsyncAddData.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:setDataSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:setDataSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:setData",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:setData",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:getDataSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:getDataSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:getData",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:getData",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:addDataSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:addDataSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:addData",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "function:src/mapnik_vector_tile_data.cpp:addData",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_data.cpp:setData",
      "target": "function:src/mapnik_vector_tile_data.cpp:setDataSync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_data.cpp:setData",
      "target": "class:src/mapnik_vector_tile_data.cpp:AsyncSetData",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_data.cpp:getData",
      "target": "function:src/mapnik_vector_tile_data.cpp:getDataSync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_data.cpp:getData",
      "target": "class:src/mapnik_vector_tile_data.cpp:AsyncGetData",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_data.cpp:addData",
      "target": "function:src/mapnik_vector_tile_data.cpp:addDataSync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_data.cpp:addData",
      "target": "class:src/mapnik_vector_tile_data.cpp:AsyncAddData",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "file:src/mapnik_map.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "file:src/mapnik_vector_tile.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_map_render.cpp",
      "target": "file:src/object_to_container.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_cairo_surface.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_feature.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_map.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/mapnik_vector_tile.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile.cpp",
      "target": "file:src/utils.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_clear.cpp",
      "target": "file:src/mapnik_vector_tile.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_composite.cpp",
      "target": "file:src/mapnik_vector_tile.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_data.cpp",
      "target": "file:src/mapnik_vector_tile.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "function:src/mapnik_vector_tile_image.cpp:addImageSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "function:src/mapnik_vector_tile_image.cpp:addImageSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "class:src/mapnik_vector_tile_image.cpp:AsyncAddImage",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "function:src/mapnik_vector_tile_image.cpp:AsyncAddImage.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "function:src/mapnik_vector_tile_image.cpp:addImage",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "function:src/mapnik_vector_tile_image.cpp:addImage",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "function:src/mapnik_vector_tile_image.cpp:addImageBufferSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "function:src/mapnik_vector_tile_image.cpp:addImageBufferSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "class:src/mapnik_vector_tile_image.cpp:AsyncAddImageBuffer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "function:src/mapnik_vector_tile_image.cpp:AsyncAddImageBuffer.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "function:src/mapnik_vector_tile_image.cpp:addImageBuffer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "function:src/mapnik_vector_tile_image.cpp:addImageBuffer",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_image.cpp:addImage",
      "target": "function:src/mapnik_vector_tile_image.cpp:addImageSync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_image.cpp:addImage",
      "target": "class:src/mapnik_vector_tile_image.cpp:AsyncAddImage",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_image.cpp:addImageBuffer",
      "target": "function:src/mapnik_vector_tile_image.cpp:addImageBufferSync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_image.cpp:addImageBuffer",
      "target": "class:src/mapnik_vector_tile_image.cpp:AsyncAddImageBuffer",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_info.cpp",
      "target": "function:src/mapnik_vector_tile_info.cpp:info",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_info.cpp",
      "target": "function:src/mapnik_vector_tile_info.cpp:info",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "class:src/mapnik_vector_tile_json.cpp:geometry_type_name",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "class:src/mapnik_vector_tile_json.cpp:geometry_array_visitor",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "class:src/mapnik_vector_tile_json.cpp:json_value_visitor",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:layer_to_geojson",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:write_geojson_array",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:write_geojson_all",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:write_geojson_layer_index",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:write_geojson_layer_name",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "class:src/mapnik_vector_tile_json.cpp:AsyncToGeoJSON",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:AsyncToGeoJSON.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:toJSON",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:toJSON",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:toGeoJSONSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:toGeoJSONSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:toGeoJSON",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:toGeoJSON",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:addGeoJSON",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "function:src/mapnik_vector_tile_json.cpp:addGeoJSON",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:write_geojson_array",
      "target": "function:src/mapnik_vector_tile_json.cpp:layer_to_geojson",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:AsyncToGeoJSON.Execute",
      "target": "function:src/mapnik_vector_tile_json.cpp:write_geojson_array",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:toGeoJSONSync",
      "target": "function:src/mapnik_vector_tile_json.cpp:write_geojson_array",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:write_geojson_all",
      "target": "function:src/mapnik_vector_tile_json.cpp:layer_to_geojson",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:AsyncToGeoJSON.Execute",
      "target": "function:src/mapnik_vector_tile_json.cpp:write_geojson_all",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:toGeoJSONSync",
      "target": "function:src/mapnik_vector_tile_json.cpp:write_geojson_all",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:write_geojson_layer_index",
      "target": "function:src/mapnik_vector_tile_json.cpp:layer_to_geojson",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:AsyncToGeoJSON.Execute",
      "target": "function:src/mapnik_vector_tile_json.cpp:write_geojson_layer_index",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:toGeoJSONSync",
      "target": "function:src/mapnik_vector_tile_json.cpp:write_geojson_layer_index",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:write_geojson_layer_name",
      "target": "function:src/mapnik_vector_tile_json.cpp:layer_to_geojson",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:AsyncToGeoJSON.Execute",
      "target": "function:src/mapnik_vector_tile_json.cpp:write_geojson_layer_name",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:toGeoJSONSync",
      "target": "function:src/mapnik_vector_tile_json.cpp:write_geojson_layer_name",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:toGeoJSON",
      "target": "function:src/mapnik_vector_tile_json.cpp:toGeoJSONSync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:toGeoJSON",
      "target": "class:src/mapnik_vector_tile_json.cpp:AsyncToGeoJSON",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:toJSON",
      "target": "class:src/mapnik_vector_tile_json.cpp:json_value_visitor",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:toJSON",
      "target": "class:src/mapnik_vector_tile_json.cpp:geometry_array_visitor",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_json.cpp:toJSON",
      "target": "class:src/mapnik_vector_tile_json.cpp:geometry_type_name",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "function:src/mapnik_vector_tile_render.cpp:process_layers",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "class:src/mapnik_vector_tile_render.cpp:AsyncRenderTile",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "function:src/mapnik_vector_tile_render.cpp:AsyncRenderTile.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "function:src/mapnik_vector_tile_render.cpp:AsyncRenderTile.OnWorkComplete",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "function:src/mapnik_vector_tile_render.cpp:AsyncRenderTile.GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "function:src/mapnik_vector_tile_render.cpp:render",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "function:src/mapnik_vector_tile_render.cpp:render",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_render.cpp:render",
      "target": "class:src/mapnik_vector_tile_render.cpp:AsyncRenderTile",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_render.cpp:render",
      "target": "function:src/object_to_container.hpp:object_to_container",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_render.cpp:AsyncRenderTile.Execute",
      "target": "function:src/mapnik_vector_tile_render.cpp:process_layers",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_render.cpp:AsyncRenderTile.Execute",
      "target": "function:src/mapnik_cairo_surface.hpp:write_callback",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:layer_not_simple",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "class:src/mapnik_vector_tile_simple_valid.cpp:visitor_geom_valid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:layer_not_valid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:vector_tile_not_simple",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:make_not_simple_array",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:vector_tile_not_valid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:make_not_valid_array",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "class:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometrySimple",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometrySimple.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "class:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometryValid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometryValid.Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometrySimplicitySync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometrySimplicitySync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometryValiditySync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometryValiditySync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometrySimplicity",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometrySimplicity",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometryValidity",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometryValidity",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:vector_tile_not_simple",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:layer_not_simple",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:vector_tile_not_valid",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:layer_not_valid",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:layer_not_valid",
      "target": "class:src/mapnik_vector_tile_simple_valid.cpp:visitor_geom_valid",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometrySimple.Execute",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:vector_tile_not_simple",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometryValid.Execute",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:vector_tile_not_valid",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometrySimple",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:make_not_simple_array",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometryValid",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:make_not_valid_array",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometrySimplicitySync",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:vector_tile_not_simple",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometrySimplicitySync",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:make_not_simple_array",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometryValiditySync",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:vector_tile_not_valid",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometryValiditySync",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:make_not_valid_array",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometrySimplicity",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometrySimplicitySync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometrySimplicity",
      "target": "class:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometrySimple",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometryValidity",
      "target": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometryValiditySync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_vector_tile_simple_valid.cpp:reportGeometryValidity",
      "target": "class:src/mapnik_vector_tile_simple_valid.cpp:AsyncGeometryValid",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/object_to_container.hpp",
      "target": "function:src/object_to_container.hpp:object_to_container",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/object_to_container.hpp",
      "target": "function:src/object_to_container.hpp:object_to_container",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_image.cpp",
      "target": "file:src/mapnik_vector_tile.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_info.cpp",
      "target": "file:src/mapnik_vector_tile.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "file:src/mapnik_vector_tile.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_json.cpp",
      "target": "file:src/object_to_container.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "file:src/mapnik_cairo_surface.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "file:src/mapnik_grid.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "file:src/mapnik_image.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "file:src/mapnik_map.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "file:src/mapnik_vector_tile.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_render.cpp",
      "target": "file:src/object_to_container.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:src/mapnik_vector_tile_simple_valid.cpp",
      "target": "file:src/mapnik_vector_tile.hpp",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/PGPool.js",
      "target": "class:greenstand/PGPool.js:PGPool",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/PGPool.js",
      "target": "function:greenstand/PGPool.js:fetch",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/PGPool.js",
      "target": "function:greenstand/PGPool.js:getQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "class:greenstand/PGPool.js:PGPool",
      "target": "function:greenstand/PGPool.js:fetch",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "class:greenstand/PGPool.js:PGPool",
      "target": "function:greenstand/PGPool.js:getQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/PGPool.js",
      "target": "class:greenstand/PGPool.js:PGPool",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/PGPool.js:getQuery",
      "target": "function:greenstand/PGPool.js:fetch",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/app.js",
      "target": "function:greenstand/app.js:buildMapInstance",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/app.js",
      "target": "endpoint:greenstand/app.js:GET /:z/:x/:y.png",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "endpoint:greenstand/app.js:GET /:z/:x/:y.png",
      "target": "function:greenstand/app.js:buildMapInstance",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/app.js",
      "target": "endpoint:greenstand/app.js:GET /:z/:x/:y.grid.json",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "endpoint:greenstand/app.js:GET /:z/:x/:y.grid.json",
      "target": "function:greenstand/app.js:buildMapInstance",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/app.js",
      "target": "endpoint:greenstand/app.js:GET /new/:z/:x/:y.png",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "endpoint:greenstand/app.js:GET /new/:z/:x/:y.png",
      "target": "function:greenstand/app.js:buildMapInstance",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/app.js",
      "target": "endpoint:greenstand/app.js:GET /new/:z/:x/:y.grid.json",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "endpoint:greenstand/app.js:GET /new/:z/:x/:y.grid.json",
      "target": "function:greenstand/app.js:buildMapInstance",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/app.js",
      "target": "endpoint:greenstand/app.js:ALL *",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "function:greenstand/app.js:buildMapInstance",
      "target": "function:greenstand/config.js:getXMLString",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/app.js:buildMapInstance",
      "target": "function:greenstand/sphericalmercator.js:xyz_to_envelope_db_buffer",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/app.js:buildMapInstance",
      "target": "function:greenstand/sphericalmercator.js:xyz_to_envelope",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/app.js",
      "target": "function:lib/mapnik.js:register_default_fonts",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/app.js",
      "target": "function:lib/mapnik.js:register_default_input_plugins",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/config.js",
      "target": "function:greenstand/config.js:replace",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/config.js",
      "target": "function:greenstand/config.js:config",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/config.js",
      "target": "function:greenstand/config.js:configFreetown",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/config.js",
      "target": "class:greenstand/config.js:Config",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/config.js",
      "target": "function:greenstand/config.js:getXMLString",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/config.js",
      "target": "function:greenstand/config.js:getXML",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/config.js",
      "target": "function:greenstand/config.js:checkUseBounds",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "class:greenstand/config.js:Config",
      "target": "function:greenstand/config.js:getXMLString",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/config.js",
      "target": "function:greenstand/config.js:replace",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/config.js",
      "target": "function:greenstand/config.js:config",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/config.js",
      "target": "function:greenstand/config.js:configFreetown",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/config.js",
      "target": "class:greenstand/config.js:Config",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/config.js:getXMLString",
      "target": "function:greenstand/PGPool.js:getQuery",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/config.js:getXMLString",
      "target": "function:greenstand/config.js:replace",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/config.js:getXMLString",
      "target": "function:greenstand/config.js:getXML",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/config.js:getXMLString",
      "target": "function:greenstand/config.js:checkUseBounds",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/config.js:config",
      "target": "function:greenstand/config.js:replace",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/config.js:configFreetown",
      "target": "function:greenstand/config.js:replace",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/config.pg.test.js",
      "target": "function:greenstand/sphericalmercator.js:xyz_to_envelope_db_buffer",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/config.pg.test.js",
      "target": "function:greenstand/sphericalmercator.js:xyz_to_envelope",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/config.test.js",
      "target": "function:greenstand/config.js:config",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/config.test.js",
      "target": "function:greenstand/config.js:configFreetown",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sheet.test.js",
      "target": "function:greenstand/sphericalmercator.js:xyz_to_envelope",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sheet.test.js",
      "target": "file:lib/mapnik.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:greenstand/sphericalmercator.js",
      "target": "function:greenstand/sphericalmercator.js:SphericalMercator",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sphericalmercator.js",
      "target": "function:greenstand/sphericalmercator.js:xyz_to_envelope",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sphericalmercator.js",
      "target": "function:greenstand/sphericalmercator.js:xyz_to_envelope_db_buffer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sphericalmercator.js",
      "target": "function:greenstand/sphericalmercator.js:xyz_to_envelope",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sphericalmercator.js",
      "target": "function:greenstand/sphericalmercator.js:xyz_to_envelope_db_buffer",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sphericalmercator.test.js",
      "target": "function:greenstand/sphericalmercator.js:xyz_to_envelope_db_buffer",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/PGPool.spec.js",
      "target": "function:greenstand/PGPool.js:getQuery",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:lib/mapnik.js",
      "target": "function:lib/mapnik.js:getGeometryType",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:lib/mapnik.js",
      "target": "function:lib/mapnik.js:register_default_fonts",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:lib/mapnik.js",
      "target": "function:lib/mapnik.js:register_default_input_plugins",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:lib/mapnik.js",
      "target": "function:lib/mapnik.js:register_system_fonts",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:lib/mapnik.js",
      "target": "function:lib/mapnik.js:register_default_fonts",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:lib/mapnik.js",
      "target": "function:lib/mapnik.js:register_default_input_plugins",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:lib/mapnik.js",
      "target": "function:lib/mapnik.js:register_system_fonts",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/PGPool.spec.js",
      "target": "file:greenstand/PGPool.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/app.js",
      "target": "file:greenstand/config.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/app.js",
      "target": "file:greenstand/sphericalmercator.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/app.js",
      "target": "file:lib/mapnik.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/config.js",
      "target": "file:greenstand/Map.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/config.js",
      "target": "file:greenstand/PGPool.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/config.js",
      "target": "file:greenstand/xml.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/config.js",
      "target": "file:greenstand/xml2.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/config.pg.test.js",
      "target": "file:greenstand/config.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/config.pg.test.js",
      "target": "file:greenstand/sphericalmercator.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/config.pg.test.js",
      "target": "file:greenstand/xml.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/config.pg.test.js",
      "target": "file:lib/mapnik.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/config.test.js",
      "target": "file:greenstand/config.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/config.test.js",
      "target": "file:greenstand/xml.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/experimental.test.js",
      "target": "file:lib/mapnik.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/font.test.js",
      "target": "file:lib/mapnik.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/server.js",
      "target": "file:greenstand/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sheet.test.js",
      "target": "file:greenstand/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sheet.test.js",
      "target": "file:greenstand/sphericalmercator.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sphericalmercator.js",
      "target": "file:lib/mapnik.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sphericalmercator.test.js",
      "target": "file:greenstand/sphericalmercator.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:lib/index.js",
      "target": "file:lib/mapnik.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/PGPool.js",
      "target": "file:greenstand/PGPool.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/config.js",
      "target": "file:greenstand/config.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/config.js",
      "target": "file:greenstand/config.pg.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/sphericalmercator.js",
      "target": "file:greenstand/sphericalmercator.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/sphericalmercator.js",
      "target": "file:greenstand/config.pg.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/sphericalmercator.js",
      "target": "file:greenstand/sheet.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/app.js",
      "target": "file:greenstand/sheet.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:lib/mapnik.js",
      "target": "file:greenstand/experimental.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:lib/mapnik.js",
      "target": "file:greenstand/font.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:lib/mapnik.js",
      "target": "file:greenstand/config.pg.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:lib/mapnik.js",
      "target": "file:greenstand/sheet.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/xml.js",
      "target": "file:greenstand/config.pg.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "class:greenstand/Map.js:Map",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "class:greenstand/Map.js:Map",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "function:greenstand/Map.js:init",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "function:greenstand/Map.js:getPoints",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "function:greenstand/Map.js:getZoomTargets",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase1.js",
      "target": "class:greenstand/sqls/SQLCase1.js:SQLCase1",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase1.js",
      "target": "class:greenstand/sqls/SQLCase1.js:SQLCase1",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLCase1.js",
      "target": "function:greenstand/sqls/SQLCase1.js:getJoin",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase1.js",
      "target": "function:greenstand/sqls/SQLCase1.js:getFilter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase1.js",
      "target": "function:greenstand/sqls/SQLCase1.js:getWith",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase1.js",
      "target": "function:greenstand/sqls/SQLCase1.js:getQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase1Timeline.js",
      "target": "class:greenstand/sqls/SQLCase1Timeline.js:SQLCase1Timeline",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase1Timeline.js",
      "target": "class:greenstand/sqls/SQLCase1Timeline.js:SQLCase1Timeline",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLCase1Timeline.js",
      "target": "function:greenstand/sqls/SQLCase1Timeline.js:getFilter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase1V2.js",
      "target": "class:greenstand/sqls/SQLCase1V2.js:SQLCase1V2",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase1V2.js",
      "target": "class:greenstand/sqls/SQLCase1V2.js:SQLCase1V2",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLCase1V2.js",
      "target": "function:greenstand/sqls/SQLCase1V2.js:getJoin",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase1WithZoomTarget.js",
      "target": "class:greenstand/sqls/SQLCase1WithZoomTarget.js:SQLCase1WithZoomTarget",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase1WithZoomTarget.js",
      "target": "class:greenstand/sqls/SQLCase1WithZoomTarget.js:SQLCase1WithZoomTarget",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLCase1WithZoomTarget.js",
      "target": "function:greenstand/sqls/SQLCase1WithZoomTarget.js:getQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase2.js",
      "target": "class:greenstand/sqls/SQLCase2.js:SQLCase2",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase2.js",
      "target": "class:greenstand/sqls/SQLCase2.js:SQLCase2",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLCase2.js",
      "target": "function:greenstand/sqls/SQLCase2.js:getFilter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase2.js",
      "target": "function:greenstand/sqls/SQLCase2.js:getJoinCriteria",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase2.js",
      "target": "function:greenstand/sqls/SQLCase2.js:getJoin",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase2.js",
      "target": "function:greenstand/sqls/SQLCase2.js:getWith",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase2.js",
      "target": "function:greenstand/sqls/SQLCase2.js:getQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase2Timeline.js",
      "target": "class:greenstand/sqls/SQLCase2Timeline.js:SQLCase2Timeline",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase2Timeline.js",
      "target": "class:greenstand/sqls/SQLCase2Timeline.js:SQLCase2Timeline",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLCase2Timeline.js",
      "target": "function:greenstand/sqls/SQLCase2Timeline.js:getFilter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase2Timeline.js",
      "target": "function:greenstand/sqls/SQLCase2Timeline.js:getQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase2Wallet.js",
      "target": "class:greenstand/sqls/SQLCase2Wallet.js:SQLCase2Wallet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase2Wallet.js",
      "target": "class:greenstand/sqls/SQLCase2Wallet.js:SQLCase2Wallet",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLCase2Wallet.js",
      "target": "function:greenstand/sqls/SQLCase2Wallet.js:getQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase3.js",
      "target": "class:greenstand/sqls/SQLCase3.js:SQLCase3",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase3.js",
      "target": "class:greenstand/sqls/SQLCase3.js:SQLCase3",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLCase3.js",
      "target": "function:greenstand/sqls/SQLCase3.js:getClusterRadius",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase3.js",
      "target": "function:greenstand/sqls/SQLCase3.js:getFilter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase3.js",
      "target": "function:greenstand/sqls/SQLCase3.js:getWith",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase3.js",
      "target": "function:greenstand/sqls/SQLCase3.js:getJoin",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase3.js",
      "target": "function:greenstand/sqls/SQLCase3.js:getQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase3Timeline.js",
      "target": "class:greenstand/sqls/SQLCase3Timeline.js:SQLCase3Timeline",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase3Timeline.js",
      "target": "class:greenstand/sqls/SQLCase3Timeline.js:SQLCase3Timeline",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLCase3Timeline.js",
      "target": "function:greenstand/sqls/SQLCase3Timeline.js:getJoin",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase3Timeline.js",
      "target": "function:greenstand/sqls/SQLCase3Timeline.js:getFilter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase3Timeline.js",
      "target": "function:greenstand/sqls/SQLCase3Timeline.js:getQuery2",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase4.js",
      "target": "class:greenstand/sqls/SQLCase4.js:SQLCase4",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLCase4.js",
      "target": "class:greenstand/sqls/SQLCase4.js:SQLCase4",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLCase4.js",
      "target": "function:greenstand/sqls/SQLCase4.js:getQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLZoomTargetCase1.js",
      "target": "class:greenstand/sqls/SQLZoomTargetCase1.js:SQLZoomTargetCase1",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLZoomTargetCase1.js",
      "target": "class:greenstand/sqls/SQLZoomTargetCase1.js:SQLZoomTargetCase1",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLZoomTargetCase1.js",
      "target": "function:greenstand/sqls/SQLZoomTargetCase1.js:getQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLZoomTargetCase1V2.js",
      "target": "class:greenstand/sqls/SQLZoomTargetCase1V2.js:SQLZoomTargetCase1V2",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLZoomTargetCase1V2.js",
      "target": "class:greenstand/sqls/SQLZoomTargetCase1V2.js:SQLZoomTargetCase1V2",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLZoomTargetCase1V2.js",
      "target": "function:greenstand/sqls/SQLZoomTargetCase1V2.js:getFilter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "file:greenstand/sqls/SQLCase1.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "file:greenstand/sqls/SQLCase1Timeline.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "file:greenstand/sqls/SQLCase1WithZoomTarget.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "file:greenstand/sqls/SQLCase2.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "file:greenstand/sqls/SQLCase2Timeline.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "file:greenstand/sqls/SQLCase2Wallet.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "file:greenstand/sqls/SQLCase3.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "file:greenstand/sqls/SQLCase3Timeline.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "file:greenstand/sqls/SQLCase4.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "file:greenstand/sqls/SQLZoomTargetCase1V2.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/Map.test.js",
      "target": "file:greenstand/Map.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sqls/SQLCase1Timeline.js",
      "target": "file:greenstand/sqls/SQLCase1.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sqls/SQLCase1Timeline.test.js",
      "target": "file:greenstand/sqls/SQLCase1Timeline.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sqls/SQLCase1V2.js",
      "target": "file:greenstand/sqls/SQLCase1.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sqls/SQLCase1WithZoomTarget.js",
      "target": "file:greenstand/sqls/SQLCase1.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sqls/SQLCase2Timeline.js",
      "target": "file:greenstand/sqls/SQLCase2.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sqls/SQLCase2Wallet.js",
      "target": "file:greenstand/sqls/SQLCase2.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sqls/SQLCase3Timeline.js",
      "target": "file:greenstand/sqls/SQLCase3.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sqls/SQLZoomTargetCase1V2.js",
      "target": "file:greenstand/sqls/SQLZoomTargetCase1.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "class:greenstand/sqls/SQLCase1Timeline.js:SQLCase1Timeline",
      "target": "class:greenstand/sqls/SQLCase1.js:SQLCase1",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:greenstand/sqls/SQLCase1V2.js:SQLCase1V2",
      "target": "class:greenstand/sqls/SQLCase1.js:SQLCase1",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:greenstand/sqls/SQLCase1WithZoomTarget.js:SQLCase1WithZoomTarget",
      "target": "class:greenstand/sqls/SQLCase1.js:SQLCase1",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:greenstand/sqls/SQLCase2Timeline.js:SQLCase2Timeline",
      "target": "class:greenstand/sqls/SQLCase2.js:SQLCase2",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:greenstand/sqls/SQLCase2Wallet.js:SQLCase2Wallet",
      "target": "class:greenstand/sqls/SQLCase2.js:SQLCase2",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:greenstand/sqls/SQLCase3Timeline.js:SQLCase3Timeline",
      "target": "class:greenstand/sqls/SQLCase3.js:SQLCase3",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:greenstand/sqls/SQLZoomTargetCase1V2.js:SQLZoomTargetCase1V2",
      "target": "class:greenstand/sqls/SQLZoomTargetCase1.js:SQLZoomTargetCase1",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "file:greenstand/Map.js",
      "target": "file:greenstand/Map.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/sqls/SQLCase1Timeline.js",
      "target": "file:greenstand/sqls/SQLCase1Timeline.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "function:greenstand/sqls/SQLCase1WithZoomTarget.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase1.js:getQuery",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase1WithZoomTarget.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase1.js:getWith",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase1WithZoomTarget.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase1.js:getJoin",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase1WithZoomTarget.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase1.js:getFilter",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase3Timeline.js:getQuery2",
      "target": "function:greenstand/sqls/SQLCase3.js:getWith",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase3Timeline.js:getQuery2",
      "target": "function:greenstand/sqls/SQLCase3.js:getClusterRadius",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase1.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase1.js:getWith",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase1.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase1.js:getJoin",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase1.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase1.js:getFilter",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase2.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase2.js:getWith",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase2.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase2.js:getJoin",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase2.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase2.js:getFilter",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase2.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase2.js:getJoinCriteria",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase3.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase3.js:getWith",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase3.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase3.js:getClusterRadius",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase3.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase3.js:getJoin",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase3.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase3.js:getFilter",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase3Timeline.js:getQuery2",
      "target": "function:greenstand/sqls/SQLCase3Timeline.js:getJoin",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase3Timeline.js:getQuery2",
      "target": "function:greenstand/sqls/SQLCase3Timeline.js:getFilter",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:greenstand/sqls/SQLCase2Timeline.js:getQuery",
      "target": "function:greenstand/sqls/SQLCase2Timeline.js:getFilter",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "service:Dockerfile",
      "target": "service:Dockerfile:tile-server-base",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "config:.dockerignore",
      "target": "service:Dockerfile",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "service:Dockerfile",
      "target": "file:greenstand/server.js",
      "type": "deploys",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "pipeline:.github/workflows/build-deploy.yml",
      "target": "service:Dockerfile",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/build-deploy.yml",
      "target": "file:.releaserc",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/build-deploy.yml",
      "target": "config:package.json",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/build-deploy.yml",
      "target": "config:deployment/base/kustomization.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/build-deploy.yml",
      "target": "config:deployment/overlays/development/kustomization.yaml",
      "type": "triggers",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/deploy-dev-next.yml",
      "target": "config:package.json",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/deploy-dev-next.yml",
      "target": "pipeline:.github/workflows/deploy-dev.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "pipeline:.github/workflows/deploy-dev.yml",
      "target": "config:package.json",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/deploy-dev.yml",
      "target": "config:deployment/base/kustomization.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/deploy-dev.yml",
      "target": "config:deployment/overlays/development/kustomization.yaml",
      "type": "triggers",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/deploy-dev.yml",
      "target": "pipeline:.github/workflows/build-deploy.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "pipeline:.github/workflows/deploy-prod.yml",
      "target": "config:package.json",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/deploy-prod.yml",
      "target": "config:deployment/base/kustomization.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/deploy-prod.yml",
      "target": "config:deployment/overlays/production/kustomization.yaml",
      "type": "triggers",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/deploy-test.yml",
      "target": "config:package.json",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/deploy-test.yml",
      "target": "config:deployment/base/kustomization.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/deploy-test.yml",
      "target": "config:deployment/overlays/test/kustomization.yaml",
      "type": "triggers",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/deploy-test.yml",
      "target": "pipeline:.github/workflows/deploy-prod.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:.env",
      "target": "file:greenstand/server.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:.env",
      "target": "file:greenstand/app.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:.env",
      "target": "file:greenstand/config.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:.env",
      "target": "file:greenstand/sqls/SQLCase1WithZoomTarget.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:.prettierrc.json",
      "target": "file:greenstand/server.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:.prettierrc.json",
      "target": "file:greenstand/app.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:.travis.yml",
      "target": "pipeline:Makefile",
      "type": "triggers",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:.travis.yml",
      "target": "file:scripts/setup.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:.travis.yml",
      "target": "file:scripts/postgis/setup_and_run.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:.travis.yml",
      "target": "file:scripts/publish.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "document:CHANGELOG.md",
      "target": "file:greenstand/PGPool.js",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:CHANGELOG.md",
      "target": "file:greenstand/app.js",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:CHANGELOG.md",
      "target": "file:greenstand/config.js",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:CHANGELOG.md",
      "target": "config:package.json",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:CONTRIBUTING.md",
      "target": "pipeline:Makefile",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:CONTRIBUTING.md",
      "target": "config:package.json",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:CONTRIBUTING.md",
      "target": "config:.travis.yml",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:CONTRIBUTING.md",
      "target": "document:CHANGELOG.md",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:LICENSE.txt",
      "target": "config:package.json",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:README.md",
      "target": "file:lib/mapnik.js",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:README.md",
      "target": "pipeline:Makefile",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:README.md",
      "target": "config:package.json",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:README.md",
      "target": "document:LICENSE.txt",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "pipeline:Makefile",
      "target": "config:package.json",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:Makefile",
      "target": "file:binding.gyp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:Makefile",
      "target": "file:scripts/install_deps.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:Makefile",
      "target": "file:scripts/coverage.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:Makefile",
      "target": "file:scripts/clang-tidy.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:Makefile",
      "target": "file:scripts/clang-format.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:Makefile",
      "target": "file:scripts/sanitize.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:Makefile",
      "target": "file:scripts/create_scheme.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:Makefile",
      "target": "file:src/node_mapnik.cpp",
      "type": "deploys",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:index.html",
      "target": "document:README.md",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:package.json",
      "target": "file:greenstand/server.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:package.json",
      "target": "file:greenstand/app.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:package.json",
      "target": "file:lib/mapnik.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:package.json",
      "target": "file:bin/mapnik-index.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:package.json",
      "target": "file:bin/mapnik-inspect.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:package.json",
      "target": "file:bin/mapnik-render.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:package.json",
      "target": "file:bin/mapnik-shapeindex.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:vcbuild.bat",
      "target": "file:binding.gyp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:vcbuild.bat",
      "target": "config:package.json",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/kustomization.yaml",
      "target": "config:deployment/base/deployment.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/kustomization.yaml",
      "target": "config:deployment/base/mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/kustomization.yaml",
      "target": "config:deployment/base/service.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/kustomization.yaml",
      "target": "config:deployment/base/database-connection-sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/kustomization.yaml",
      "target": "config:deployment/base/namespace.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:deployment/base/deployment.yaml",
      "target": "config:deployment/base/database-connection-sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/deployment.yaml",
      "target": "service:Dockerfile",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/deployment.yaml",
      "target": "file:greenstand/server.js",
      "type": "deploys",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "config:deployment/base/deployment.yaml",
      "target": "file:greenstand/server.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/deployment.yaml",
      "target": "file:greenstand/app.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/deployment.yaml",
      "target": "file:greenstand/config.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/deployment.yaml",
      "target": "file:greenstand/sqls/SQLCase1WithZoomTarget.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/database-connection-sealed-secret.yaml",
      "target": "file:greenstand/app.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/database-connection-sealed-secret.yaml",
      "target": "file:greenstand/config.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/service.yaml",
      "target": "config:deployment/base/deployment.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/service.yaml",
      "target": "endpoint:greenstand/app.js:GET /:z/:x/:y.png",
      "type": "serves",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "config:deployment/base/service.yaml",
      "target": "endpoint:greenstand/app.js:GET /:z/:x/:y.grid.json",
      "type": "serves",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "config:deployment/base/service.yaml",
      "target": "endpoint:greenstand/app.js:GET /new/:z/:x/:y.png",
      "type": "serves",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "config:deployment/base/service.yaml",
      "target": "endpoint:greenstand/app.js:GET /new/:z/:x/:y.grid.json",
      "type": "serves",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "config:deployment/base/mapping.yaml",
      "target": "config:deployment/base/service.yaml",
      "type": "routes",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/kustomization.yaml",
      "target": "config:deployment/base/kustomization.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/kustomization.yaml",
      "target": "config:deployment/overlays/beta/database-connection-sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/kustomization.yaml",
      "target": "config:deployment/overlays/beta/deployment.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/kustomization.yaml",
      "target": "config:deployment/overlays/beta/mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/namespace.yaml",
      "target": "config:deployment/overlays/beta/kustomization.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:deployment/overlays/beta/database-connection-sealed-secret.yaml",
      "target": "config:deployment/base/database-connection-sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/deployment.yaml",
      "target": "config:deployment/base/deployment.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/mapping.yaml",
      "target": "config:deployment/base/mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/namespace.yaml",
      "target": "config:deployment/base/namespace.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:deployment/overlays/beta/deployment.yaml",
      "target": "config:deployment/overlays/beta/database-connection-sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/deployment.yaml",
      "target": "service:Dockerfile",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/deployment.yaml",
      "target": "file:greenstand/server.js",
      "type": "deploys",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "config:deployment/overlays/beta/deployment.yaml",
      "target": "file:greenstand/server.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/deployment.yaml",
      "target": "file:greenstand/app.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/deployment.yaml",
      "target": "file:greenstand/config.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/deployment.yaml",
      "target": "file:greenstand/sqls/SQLCase1WithZoomTarget.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/database-connection-sealed-secret.yaml",
      "target": "file:greenstand/app.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/database-connection-sealed-secret.yaml",
      "target": "file:greenstand/config.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/beta/mapping.yaml",
      "target": "config:deployment/base/service.yaml",
      "type": "routes",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/development/kustomization.yaml",
      "target": "config:deployment/overlays/development/mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/development/kustomization.yaml",
      "target": "config:deployment/overlays/development/database-connection-sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/production/kustomization.yaml",
      "target": "config:deployment/overlays/production/deployment.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/production/kustomization.yaml",
      "target": "config:deployment/overlays/production/mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/production/kustomization.yaml",
      "target": "config:deployment/overlays/production/database-connection-sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/production/deployment.yaml",
      "target": "config:deployment/overlays/production/database-connection-sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/production/mapping.yaml",
      "target": "config:deployment/overlays/production/deployment.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:deployment/overlays/test/kustomization.yaml",
      "target": "config:deployment/base/kustomization.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/test/kustomization.yaml",
      "target": "config:deployment/overlays/test/mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/test/kustomization.yaml",
      "target": "config:deployment/overlays/test/database-connection-sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/test/kustomization.yaml",
      "target": "config:deployment/overlays/test/deployment.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/test/database-connection-sealed-secret.yaml",
      "target": "config:deployment/base/database-connection-sealed-secret.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/test/database-connection-sealed-secret.yaml",
      "target": "file:greenstand/app.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/test/database-connection-sealed-secret.yaml",
      "target": "file:greenstand/config.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/test/deployment.yaml",
      "target": "config:deployment/base/deployment.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/test/deployment.yaml",
      "target": "file:greenstand/config.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/test/deployment.yaml",
      "target": "file:greenstand/sqls/SQLCase1WithZoomTarget.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/test/deployment.yaml",
      "target": "file:greenstand/server.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/test/mapping.yaml",
      "target": "config:deployment/base/mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:greenstand/stylesheet.xml",
      "target": "config:greenstand/trees.json",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:greenstand/stylesheet2.xml",
      "target": "config:greenstand/stylesheet.xml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:greenstand/trees_sample.json",
      "target": "config:greenstand/trees.json",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:greenstand/trees.json",
      "target": "file:greenstand/db.test.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:scripts/build_against_sdk.sh",
      "target": "config:package.json",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/build_against_sdk.sh",
      "target": "file:lib/mapnik.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:scripts/clang-format.sh",
      "target": "file:scripts/setup.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/clang-tidy.sh",
      "target": "file:scripts/setup.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/clang-tidy.sh",
      "target": "file:scripts/generate_compile_commands.py",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/clang-tidy.sh",
      "target": "pipeline:Makefile",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/coverage.sh",
      "target": "file:scripts/setup.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/coverage.sh",
      "target": "pipeline:Makefile",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/create_scheme.sh",
      "target": "file:scripts/library.xcscheme",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/create_scheme.sh",
      "target": "file:scripts/node.xcscheme",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/install_deps.sh",
      "target": "file:scripts/setup.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/package_osx.sh",
      "target": "function:scripts/package_osx.sh:doit",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:scripts/package_osx.sh",
      "target": "file:scripts/build_against_sdk.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "function:scripts/package_osx.sh:doit",
      "target": "file:scripts/build_against_sdk.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/postinstall.sh",
      "target": "file:lib/mapnik.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:scripts/publish.sh",
      "target": "function:scripts/publish.sh:is_pr_merge",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:scripts/publish.sh",
      "target": "function:scripts/publish.sh:publish",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "function:scripts/publish.sh:publish",
      "target": "function:scripts/publish.sh:is_pr_merge",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:scripts/publish.sh",
      "target": "file:scripts/is_pr_merge.sh",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:scripts/sanitize.sh",
      "target": "file:scripts/setup.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/sanitize.sh",
      "target": "pipeline:Makefile",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/setup.sh",
      "target": "function:scripts/setup.sh:run",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:scripts/setup_cpp11_toolchain.sh",
      "target": "function:scripts/setup_cpp11_toolchain.sh:main",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:scripts/validate_tag.sh",
      "target": "config:package.json",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/postgis/setup_and_run.sh",
      "target": "file:scripts/postgis/setup.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/postgis/setup_and_run.sh",
      "target": "file:scripts/postgis/initialize.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/postgis/setup_and_run.sh",
      "target": "file:scripts/postgis/run.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/postgis/initialize.sh",
      "target": "file:scripts/postgis/setup.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/postgis/run.sh",
      "target": "file:scripts/postgis/setup.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/postgis/stop.sh",
      "target": "file:scripts/postgis/setup.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/postgis/stop.sh",
      "target": "file:scripts/postgis/run.sh",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:bin/mapnik-inspect.js",
      "target": "function:bin/mapnik-inspect.js:meta",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/XMLConfig.js",
      "target": "class:greenstand/XMLConfig.js:XMLConfig",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLTree.js",
      "target": "class:greenstand/sqls/SQLTree.js:SQLTree",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLTree.js",
      "target": "function:greenstand/sqls/SQLTree.js:getQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/sqls/SQLTree.js",
      "target": "function:greenstand/sqls/SQLTree.js:getQueryUUID",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "class:greenstand/sqls/SQLTree.js:SQLTree",
      "target": "function:greenstand/sqls/SQLTree.js:getQuery",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "class:greenstand/sqls/SQLTree.js:SQLTree",
      "target": "function:greenstand/sqls/SQLTree.js:getQueryUUID",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/utils.js",
      "target": "function:greenstand/utils.js:setSql",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:greenstand/XMLConfig.js",
      "target": "class:greenstand/XMLConfig.js:XMLConfig",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/sqls/SQLTree.js",
      "target": "class:greenstand/sqls/SQLTree.js:SQLTree",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/utils.js",
      "target": "function:greenstand/utils.js:setSql",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/XMLConfig.test.js",
      "target": "file:greenstand/XMLConfig.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/db.test.js",
      "target": "config:greenstand/trees.json",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/sqls/SQLTree.test.js",
      "target": "file:greenstand/sqls/SQLTree.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/utils.test.js",
      "target": "file:greenstand/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:greenstand/XMLConfig.js",
      "target": "file:greenstand/XMLConfig.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/sqls/SQLTree.js",
      "target": "file:greenstand/sqls/SQLTree.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/utils.js",
      "target": "file:greenstand/utils.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/sqls/SQLTree.test.js",
      "target": "function:greenstand/sqls/SQLTree.js:getQuery",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/utils.test.js",
      "target": "function:greenstand/utils.js:setSql",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:bin/mapnik-inspect.js:meta",
      "target": "function:src/mapnik_datasource.cpp:describe",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:bin/mapnik-inspect.js:meta",
      "target": "function:src/mapnik_datasource.cpp:extent",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:bin/mapnik-inspect.js:meta",
      "target": "function:src/mapnik_datasource.cpp:featureset",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:bin/mapnik-inspect.js:meta",
      "target": "function:src/mapnik_featureset.cpp:next",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:bin/mapnik-inspect.js",
      "target": "function:lib/mapnik.js:register_default_input_plugins",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:bin/mapnik-inspect.js",
      "target": "function:src/mapnik_image_from_svg.cpp:fromSVGBytes",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:bin/mapnik-inspect.js",
      "target": "function:src/mapnik_vector_tile_info.cpp:info",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:bin/mapnik-inspect.js",
      "target": "function:src/mapnik_map_load.cpp:loadSync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:bin/mapnik-render.js",
      "target": "function:lib/mapnik.js:register_default_input_plugins",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:bin/mapnik-render.js",
      "target": "function:src/mapnik_map_load.cpp:loadSync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:bin/mapnik-render.js",
      "target": "function:src/mapnik_map.cpp:zoomAll",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:bin/mapnik-render.js",
      "target": "function:src/mapnik_map_render.cpp:renderFileSync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:bin/mapnik-inspect.js",
      "target": "file:lib/mapnik.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:bin/mapnik-render.js",
      "target": "file:lib/mapnik.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:bin/mapnik-index.js",
      "target": "config:package.json",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:bin/mapnik-shapeindex.js",
      "target": "config:package.json",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:bin/mapnik-index.js",
      "target": "file:scripts/postinstall.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:bin/mapnik-shapeindex.js",
      "target": "file:scripts/postinstall.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:binding.gyp",
      "target": "file:common.gypi",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:binding.gyp",
      "target": "file:scripts/postinstall.sh",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:.huskyrc",
      "target": "file:commitlint.config.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:binding.gyp",
      "target": "file:src/node_mapnik.cpp",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:binding.gyp",
      "target": "file:src/glibc_workaround.cpp",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:common.gypi",
      "target": "file:src/node_mapnik.cpp",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:.clang-format",
      "target": "file:scripts/clang-format.sh",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:.clang-format",
      "target": "file:src/node_mapnik.cpp",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:.clang-tidy",
      "target": "file:scripts/clang-tidy.sh",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:.clang-tidy",
      "target": "file:src/node_mapnik.cpp",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:.releaserc",
      "target": "pipeline:.github/workflows/build-deploy.yml",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:.releaserc",
      "target": "config:package.json",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:.npmignore",
      "target": "config:package.json",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:greenstand/layers/postgis.xml",
      "target": "file:greenstand/config.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:greenstand/layers/postgis.xml",
      "target": "function:greenstand/config.js:config",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:greenstand/layers/postgis.xml",
      "target": "function:greenstand/config.js:configFreetown",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:.releaserc",
      "target": "document:CHANGELOG.md",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:.gitmodules",
      "target": "file:binding.gyp",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:.gitmodules",
      "target": "pipeline:Makefile",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:greenstand/layers/postgis.xml",
      "target": "file:greenstand/XMLConfig.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/trees_sample.geojson",
      "target": "file:greenstand/experimental.test.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:greenstand/trees_text.geojson",
      "target": "file:greenstand/font.test.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:scripts/generate_compile_commands.py",
      "target": "function:scripts/generate_compile_commands.py:generate",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:scripts/generate_compile_commands.py",
      "target": "function:scripts/generate_compile_commands.py:generate",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:scripts/node.xcscheme",
      "target": "file:scripts/library.xcscheme",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:src/glibc_workaround.cpp",
      "target": "function:src/glibc_workaround.cpp:__throw_out_of_range_fmt",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/glibc_workaround.cpp",
      "target": "function:src/glibc_workaround.cpp:__throw_out_of_range_fmt",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "class:src/mapnik_grid.cpp:AsyncGridClear",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:AsyncGridClear::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "class:src/mapnik_grid.cpp:AsyncGridEncode",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:AsyncGridEncode::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:AsyncGridEncode::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:Initialize",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:Grid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:Grid",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:clear",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:clear",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:key",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:key",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:addField",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:addField",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:fields",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:fields",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:view",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:view",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:encodeSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:encodeSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:encode",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "function:src/mapnik_grid.cpp:encode",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "class:src/mapnik_grid_view.cpp:AsyncIsSolid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:AsyncIsSolid::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "class:src/mapnik_grid_view.cpp:AsyncGridViewEncode",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:AsyncGridViewEncode::Execute",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:AsyncGridViewEncode::GetResult",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:Initialize",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:Initialize",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:GridView",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:GridView",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:fields",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:fields",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:isSolid",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:isSolid",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:isSolidSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:isSolidSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:getPixel",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:getPixel",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:encodeSync",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:encodeSync",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:encode",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "function:src/mapnik_grid_view.cpp:encode",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid_view.hpp",
      "target": "class:src/mapnik_grid_view.hpp:GridView",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:src/mapnik_grid_view.hpp",
      "target": "class:src/mapnik_grid_view.hpp:GridView",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:tools/cpp.el",
      "target": "function:tools/cpp.el:fixup",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:tools/cpp.el",
      "target": "function:tools/cpp.el:fixup",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:src/mapnik_grid.cpp",
      "target": "file:src/mapnik_grid_view.hpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:src/mapnik_grid_view.cpp",
      "target": "file:src/mapnik_grid_view.hpp",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:tools/fix_cpp_style.sh",
      "target": "file:tools/cpp.el",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "function:src/mapnik_grid.cpp:view",
      "target": "function:src/mapnik_grid_view.cpp:GridView",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_grid.cpp:clear",
      "target": "class:src/mapnik_grid.cpp:AsyncGridClear",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_grid.cpp:encode",
      "target": "class:src/mapnik_grid.cpp:AsyncGridEncode",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_grid.cpp:AsyncGridClear::GetResult",
      "target": "function:src/mapnik_grid.cpp:Grid",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_grid_view.cpp:isSolid",
      "target": "class:src/mapnik_grid_view.cpp:AsyncIsSolid",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_grid_view.cpp:isSolid",
      "target": "function:src/mapnik_grid_view.cpp:isSolidSync",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:src/mapnik_grid_view.cpp:encode",
      "target": "class:src/mapnik_grid_view.cpp:AsyncGridViewEncode",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:greenstand/app.js",
      "target": "file:greenstand/app.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:greenstand/app.js",
      "target": "config:package.json",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    }
  ],
  "layers": [
    {
      "id": "layer:api",
      "name": "Tile Server API",
      "description": "server.js loads .env and starts the Express app in app.js, which renders 256x256 PNG tiles and UTF grid JSON tiles at /:z/:x/:y and /new/:z/:x/:y and answers every other path with a version banner.",
      "nodeIds": [
        "file:greenstand/app.js",
        "endpoint:greenstand/app.js:GET /:z/:x/:y.png",
        "endpoint:greenstand/app.js:GET /:z/:x/:y.grid.json",
        "endpoint:greenstand/app.js:GET /new/:z/:x/:y.png",
        "endpoint:greenstand/app.js:GET /new/:z/:x/:y.grid.json",
        "endpoint:greenstand/app.js:ALL *",
        "file:greenstand/server.js"
      ]
    },
    {
      "id": "layer:service",
      "name": "Tile Style Service",
      "description": "config.js turns each tile request into a Mapnik XML style by filling the xml.js and xml2.js icon templates with tree GeoJSON or PostGIS SQL, with sphericalmercator.js for the tile bounding box and layers/postgis.xml as the DB_URL credential template.",
      "nodeIds": [
        "file:greenstand/config.js",
        "file:greenstand/sphericalmercator.js",
        "file:greenstand/xml.js",
        "file:greenstand/xml2.js",
        "file:greenstand/XMLConfig.js",
        "config:greenstand/layers/postgis.xml",
        "file:greenstand/utils.js"
      ]
    },
    {
      "id": "layer:data",
      "name": "Tree Query And Cache",
      "description": "Map.js picks one of the greenstand/sqls query builders by map mode and zoom (region clusters, tree points, on-the-fly or precomputed clusters, zoom targets, and timeline, wallet, and organization variants), and PGPool.js runs these PostGIS queries with an LRU cache that also merges identical concurrent queries.",
      "nodeIds": [
        "file:greenstand/PGPool.js",
        "file:greenstand/Map.js",
        "file:greenstand/sqls/SQLCase1.js",
        "file:greenstand/sqls/SQLCase1Timeline.js",
        "file:greenstand/sqls/SQLCase1V2.js",
        "file:greenstand/sqls/SQLCase1WithZoomTarget.js",
        "file:greenstand/sqls/SQLCase2.js",
        "file:greenstand/sqls/SQLCase2Timeline.js",
        "file:greenstand/sqls/SQLCase2Wallet.js",
        "file:greenstand/sqls/SQLCase3.js",
        "file:greenstand/sqls/SQLCase3Timeline.js",
        "file:greenstand/sqls/SQLCase4.js",
        "file:greenstand/sqls/SQLZoomTargetCase1.js",
        "file:greenstand/sqls/SQLZoomTargetCase1V2.js",
        "file:greenstand/sqls/SQLTree.js"
      ]
    },
    {
      "id": "layer:test",
      "name": "Tile Server Tests And Fixtures",
      "description": "Jest suites for the greenstand/ modules (several are stale or need a live PostGIS) together with the sample tree GeoJSON files, including the 547,448-point trees.json, and the sample Mapnik stylesheets that these tests and experiments load.",
      "nodeIds": [
        "file:greenstand/PGPool.spec.js",
        "file:greenstand/config.pg.test.js",
        "file:greenstand/config.test.js",
        "file:greenstand/experimental.test.js",
        "file:greenstand/font.test.js",
        "file:greenstand/sheet.test.js",
        "file:greenstand/sphericalmercator.test.js",
        "file:greenstand/Map.test.js",
        "file:greenstand/sqls/SQLCase1Timeline.test.js",
        "config:greenstand/stylesheet.xml",
        "config:greenstand/stylesheet2.xml",
        "config:greenstand/trees.json",
        "config:greenstand/trees_sample.json",
        "file:greenstand/XMLConfig.test.js",
        "file:greenstand/app.test.js",
        "file:greenstand/db.test.js",
        "file:greenstand/sqls/SQLTree.test.js",
        "file:greenstand/trees_sample.geojson",
        "file:greenstand/trees_text.geojson",
        "file:greenstand/utils.test.js"
      ]
    },
    {
      "id": "layer:binding-api",
      "name": "Mapnik JS Loader And CLIs",
      "description": "lib/mapnik.js is the package main that loads the compiled node-mapnik addon through node-pre-gyp and adds the font and plugin helpers that the tile server imports, lib/index.js re-exports it, and the bin/ CLIs wrap mapnik-index, shapeindex, datasource inspection, and stylesheet rendering.",
      "nodeIds": [
        "file:lib/index.js",
        "file:lib/mapnik.js",
        "file:bin/mapnik-index.js",
        "file:bin/mapnik-inspect.js",
        "file:bin/mapnik-render.js",
        "file:bin/mapnik-shapeindex.js"
      ]
    },
    {
      "id": "layer:native-binding",
      "name": "Native Mapnik Binding",
      "description": "Upstream node-mapnik C++ N-API wrappers in src/ that node_mapnik.cpp registers to expose Mapnik Map rendering, Image and blend operations, UTF Grid, VectorTile, Datasource, Feature, Geometry, and Projection classes to JavaScript.",
      "nodeIds": [
        "file:src/ds_emitter.hpp",
        "file:src/js_grid_utils.hpp",
        "file:src/mapnik_datasource.cpp",
        "file:src/mapnik_datasource.hpp",
        "file:src/mapnik_expression.cpp",
        "file:src/mapnik_expression.hpp",
        "file:src/mapnik_feature.cpp",
        "file:src/mapnik_feature.hpp",
        "file:src/mapnik_featureset.cpp",
        "file:src/mapnik_featureset.hpp",
        "file:src/mapnik_fonts.hpp",
        "file:src/mapnik_geometry.cpp",
        "file:src/mapnik_geometry.hpp",
        "file:src/mapnik_layer.cpp",
        "file:src/mapnik_layer.hpp",
        "file:src/mapnik_logger.cpp",
        "file:src/mapnik_logger.hpp",
        "file:src/mapnik_map.cpp",
        "file:src/mapnik_map_query_point.cpp",
        "file:src/mapnik_plugins.hpp",
        "file:src/mapnik_projection.cpp",
        "file:src/mapnik_projection.hpp",
        "file:src/mapnik_vector_tile_query.cpp",
        "file:src/node_mapnik.cpp",
        "file:src/utf8.hpp",
        "file:src/utils.hpp",
        "file:src/blend.cpp",
        "file:src/blend.hpp",
        "file:src/mapnik_color.cpp",
        "file:src/mapnik_color.hpp",
        "file:src/mapnik_image.cpp",
        "file:src/mapnik_image.hpp",
        "file:src/mapnik_image_clear.cpp",
        "file:src/mapnik_image_compositing.cpp",
        "file:src/mapnik_image_copy.cpp",
        "file:src/mapnik_image_encode.cpp",
        "file:src/mapnik_image_fill.cpp",
        "file:src/mapnik_image_filter.cpp",
        "file:src/mapnik_image_from_bytes.cpp",
        "file:src/mapnik_image_from_svg.cpp",
        "file:src/mapnik_image_multiply.cpp",
        "file:src/mapnik_image_open.cpp",
        "file:src/mapnik_image_resize.cpp",
        "file:src/mapnik_image_save.cpp",
        "file:src/mapnik_image_solid.cpp",
        "file:src/mapnik_image_view.cpp",
        "file:src/mapnik_image_view.hpp",
        "file:src/mapnik_palette.cpp",
        "file:src/mapnik_palette.hpp",
        "file:src/pixel_utils.hpp",
        "file:src/tint.hpp",
        "file:src/mapnik_cairo_surface.cpp",
        "file:src/mapnik_cairo_surface.hpp",
        "file:src/mapnik_grid.hpp",
        "file:src/mapnik_map.hpp",
        "file:src/mapnik_map_from_string.cpp",
        "file:src/mapnik_map_load.cpp",
        "file:src/mapnik_map_render.cpp",
        "file:src/mapnik_vector_tile.cpp",
        "file:src/mapnik_vector_tile.hpp",
        "file:src/mapnik_vector_tile_clear.cpp",
        "file:src/mapnik_vector_tile_composite.cpp",
        "file:src/mapnik_vector_tile_data.cpp",
        "file:src/mapnik_vector_tile_image.cpp",
        "file:src/mapnik_vector_tile_info.cpp",
        "file:src/mapnik_vector_tile_json.cpp",
        "file:src/mapnik_vector_tile_render.cpp",
        "file:src/mapnik_vector_tile_simple_valid.cpp",
        "file:src/object_to_container.hpp",
        "file:src/glibc_workaround.cpp",
        "file:src/mapnik_grid.cpp",
        "file:src/mapnik_grid_view.cpp",
        "file:src/mapnik_grid_view.hpp"
      ]
    },
    {
      "id": "layer:build",
      "name": "Native Build And Dev Tooling",
      "description": "The upstream Makefile, binding.gyp, and common.gypi compile the addon against a mason Mapnik SDK, and scripts/ and tools/ hold the upstream helpers for dependency install, clang-format and clang-tidy, coverage, sanitizers, Xcode schemes, binary publishing, and a local PostGIS for tests.",
      "nodeIds": [
        "file:scripts/build_against_sdk.sh",
        "file:scripts/clang-format.sh",
        "file:scripts/clang-tidy.sh",
        "file:scripts/coverage.sh",
        "file:scripts/create_scheme.sh",
        "file:scripts/install_deps.sh",
        "file:scripts/install_node.sh",
        "file:scripts/is_pr_merge.sh",
        "file:scripts/package_osx.sh",
        "file:scripts/postinstall.sh",
        "file:scripts/publish.sh",
        "file:scripts/sanitize.sh",
        "file:scripts/setup.sh",
        "file:scripts/setup_cpp11_toolchain.sh",
        "file:scripts/show_module_runtime.ps1",
        "file:scripts/ubuntu_ppa_tests.sh",
        "file:scripts/validate_tag.sh",
        "file:scripts/postgis/initialize.sh",
        "file:scripts/postgis/run.sh",
        "file:scripts/postgis/setup.sh",
        "file:scripts/postgis/setup_and_run.sh",
        "file:scripts/postgis/stop.sh",
        "file:scripts/generate_compile_commands.py",
        "file:scripts/library.xcscheme",
        "file:scripts/node.xcscheme",
        "file:tools/cpp.el",
        "file:tools/fix_cpp_style.sh",
        "pipeline:Makefile",
        "file:vcbuild.bat",
        "file:.clang-format",
        "file:.clang-tidy",
        "file:.gitmodules",
        "file:.npmignore",
        "file:binding.gyp",
        "file:common.gypi"
      ]
    },
    {
      "id": "layer:infrastructure",
      "name": "Container And Kubernetes Deployment",
      "description": "The Dockerfile builds the tile server image on the greenstand/tile-server-base image, and deployment/ holds the kustomize base (Deployment, Service, Ambassador Mapping, and the SealedSecret that supplies DB_URL) with beta, development, production, and test overlays.",
      "nodeIds": [
        "config:deployment/base/database-connection-sealed-secret.yaml",
        "config:deployment/base/deployment.yaml",
        "config:deployment/base/kustomization.yaml",
        "config:deployment/base/mapping.yaml",
        "config:deployment/base/namespace.yaml",
        "config:deployment/base/service.yaml",
        "config:deployment/overlays/beta/database-connection-sealed-secret.yaml",
        "config:deployment/overlays/beta/deployment.yaml",
        "config:deployment/overlays/beta/kustomization.yaml",
        "config:deployment/overlays/beta/mapping.yaml",
        "config:deployment/overlays/beta/namespace.yaml",
        "config:deployment/overlays/development/database-connection-sealed-secret.yaml",
        "config:deployment/overlays/development/kustomization.yaml",
        "config:deployment/overlays/development/mapping.yaml",
        "config:deployment/overlays/production/database-connection-sealed-secret.yaml",
        "config:deployment/overlays/production/deployment.yaml",
        "config:deployment/overlays/production/kustomization.yaml",
        "config:deployment/overlays/production/mapping.yaml",
        "config:deployment/overlays/test/database-connection-sealed-secret.yaml",
        "config:deployment/overlays/test/deployment.yaml",
        "config:deployment/overlays/test/kustomization.yaml",
        "config:deployment/overlays/test/mapping.yaml",
        "config:.dockerignore",
        "service:Dockerfile",
        "service:Dockerfile:tile-server-base"
      ]
    },
    {
      "id": "layer:ci-cd",
      "name": "Release And Deploy Pipelines",
      "description": "GitHub Actions workflows run semantic-release from .releaserc, push the image to DockerHub, and apply the kustomize overlays to the DigitalOcean clusters, and the legacy upstream .travis.yml keeps the old native build matrix.",
      "nodeIds": [
        "pipeline:.github/workflows/build-deploy.yml",
        "pipeline:.github/workflows/deploy-dev-next.yml",
        "pipeline:.github/workflows/deploy-dev.yml",
        "pipeline:.github/workflows/deploy-prod.yml",
        "pipeline:.github/workflows/deploy-test.yml",
        "config:.travis.yml",
        "file:.releaserc"
      ]
    },
    {
      "id": "layer:project",
      "name": "Project Config And Docs",
      "description": "The package.json manifest (start script, dependencies, and node-pre-gyp binary block), the .env runtime settings, the Prettier, commitlint, and husky settings, and the README, CHANGELOG, CONTRIBUTING, LICENSE, and index.html pages, most of which come from upstream node-mapnik.",
      "nodeIds": [
        "config:.env",
        "config:.prettierrc.json",
        "document:CHANGELOG.md",
        "document:CONTRIBUTING.md",
        "document:LICENSE.txt",
        "document:README.md",
        "file:index.html",
        "config:map.json",
        "config:package.json",
        "file:.gitattributes",
        "file:.huskyrc",
        "file:commitlint.config.js"
      ]
    }
  ],
  "tour": [
    {
      "order": 1,
      "title": "Project Overview",
      "description": "The README is titled treetracker-tile-server (previously node-mapnik-1), but most of its text is still upstream node-mapnik documentation: examples that render a Mapnik stylesheet to a PNG, convert a JPEG to PNG, and build the native addon with make release or make release_base. It does not describe the Greenstand tile server, so read package.json next to see the two halves of this fork. The manifest sets main to ./lib/mapnik.js (the Mapnik bindings), its start script runs greenstand/server.js (the Express tile server), and its install step fetches or builds the native binding through node-pre-gyp.",
      "nodeIds": [
        "document:README.md",
        "config:package.json"
      ]
    },
    {
      "order": 2,
      "title": "Server Entry Point",
      "description": "greenstand/server.js is the process that the start script from Step 1 launches. It loads .env through dotenv, sets the log level to info, asserts that MAXIMUM_ZOOM_LEVEL_USING_GLOBAL_DATASET and MAXIMUM_ZOOM_LEVEL_HANDLING_ZOOM_TARGET are defined, and then starts the Express app from app.js on PORT. The local .env supplies these values: PORT=23300, a 10000-entry query cache, a PG_POOL_SIZE of 60, and 6 for both zoom thresholds. Step 6 shows how the zoom-target threshold changes the cluster query.",
      "nodeIds": [
        "file:greenstand/server.js",
        "config:.env"
      ],
      "languageLesson": "dotenv copies the KEY=value lines of a .env file into process.env when the process starts. By default it does not overwrite a variable that is already set, so values from the runtime environment (for example, container env vars) take precedence over the file. All process.env values are strings."
    },
    {
      "order": 3,
      "title": "Express Tile Routes",
      "description": "app.js builds the Express application: it creates a pg Pool from DB_URL and PG_POOL_SIZE, builds a Config object, and registers the Mapnik fonts and input plugins. Its tile routes render a 256x256 tile through buildMapInstance and return either a PNG image or a UTF grid JSON with the id, latlon, count, and type fields (plus zoom_to at zoom 9 and below); a render error returns HTTP 500 with a JSON message. The /new routes add newIcons: true, which Config.getXMLString ignores, and a catch-all route answers every other path with a version banner from package.json.",
      "nodeIds": [
        "file:greenstand/app.js",
        "endpoint:greenstand/app.js:GET /:z/:x/:y.png",
        "endpoint:greenstand/app.js:GET /:z/:x/:y.grid.json",
        "endpoint:greenstand/app.js:GET /new/:z/:x/:y.png",
        "endpoint:greenstand/app.js:ALL *"
      ],
      "languageLesson": "Express route patterns such as /:z/:x/:y.png capture URL segments into req.params, so one handler serves every tile coordinate. Express tries handlers in registration order, so a catch-all route such as ALL * must come after the specific routes to act as a fallback."
    },
    {
      "order": 4,
      "title": "Per-Tile Style Builder",
      "description": "The Config object from Step 3 turns each tile request into a Mapnik XML style. It gets the SQL from Map.js; for zoom 1 to 15 it fetches the rows through PGPool and inlines them as GeoJSON, and for deeper zooms it injects the SQL and the DB_URL credentials into a PostGIS template. sphericalmercator.js supplies the tile geometry: it converts tiles to Web Mercator envelopes and gives a pixel-buffered lon/lat bounding box for the tile SQL queries. layers/postgis.xml is the PostGIS stylesheet template whose host, port, user, password, and database config.js replaces with the DB_URL values.",
      "nodeIds": [
        "file:greenstand/config.js",
        "file:greenstand/sphericalmercator.js",
        "config:greenstand/layers/postgis.xml"
      ],
      "languageLesson": "Web Mercator is the projection of most web map tiles. At zoom z the world is a grid of 2^z by 2^z tiles of 256 pixels, and the projection stops at about +/-85.0511 degrees latitude, which is why sphericalmercator.js clips its lon/lat boxes there."
    },
    {
      "order": 5,
      "title": "Map Modes and Base Queries",
      "description": "Map.js is the query planner behind config.js: it picks a SQL builder from greenstand/sqls by map mode (single tree, user, wallet, organization map_name, timeline, or default) and by zoom level, then runs the query on a pg pool. Four base builders cover the zoom range: SQLCase1 counts trees per region from active_tree_region, SQLCase3 clusters active trees on the fly with PostGIS ST_ClusterWithin, SQLCase4 reads precomputed clusters from the clusters table (Map.js uses it for default maps at zoom 12 to 15), and SQLCase2 returns individual tree points at high zoom. Most builders also accept optional filters such as planter, wallet, organization map_name, and bounding box.",
      "nodeIds": [
        "file:greenstand/Map.js",
        "file:greenstand/sqls/SQLCase1.js",
        "file:greenstand/sqls/SQLCase2.js",
        "file:greenstand/sqls/SQLCase3.js",
        "file:greenstand/sqls/SQLCase4.js"
      ],
      "languageLesson": "ST_ClusterWithin(geom, distance) is a PostGIS aggregate that groups geometries that lie within a given distance of each other. When the distance depends on the zoom level, as in SQLCase3, clusters keep a similar size on screen at every zoom."
    },
    {
      "order": 6,
      "title": "Specialized Query Variants",
      "description": "Specialized map modes extend the base builders from Step 5 instead of copying them. SQLCase1WithZoomTarget, the most referenced builder, adds a zoom_to centroid to each region cluster at zoom levels up to MAXIMUM_ZOOM_LEVEL_HANDLING_ZOOM_TARGET (the threshold that server.js checks in Step 2), and SQLZoomTargetCase1 finds that centroid as the most populated subregion two zoom levels deeper. The Timeline variants keep only trees whose time_created falls in a 'YYYY-MM-DD_YYYY-MM-DD' range, and SQLCase2Wallet keeps only trees whose tokens belong to the named wallet. The UTF grid route from Step 3 lists zoom_to among its fields at zoom 9 and below.",
      "nodeIds": [
        "file:greenstand/sqls/SQLCase1WithZoomTarget.js",
        "file:greenstand/sqls/SQLZoomTargetCase1.js",
        "file:greenstand/sqls/SQLCase1Timeline.js",
        "file:greenstand/sqls/SQLCase2Timeline.js",
        "file:greenstand/sqls/SQLCase2Wallet.js"
      ],
      "languageLesson": "These builders use ES class inheritance: a subclass extends a base builder and overrides only the query parts that it changes, and it can throw for filters that it does not support (SQLCase2Wallet throws 'dedicated'). Some builders return a pg {text, values} object instead of a plain string, which keeps user input in separate $1, $2 parameters rather than in the SQL text."
    },
    {
      "order": 7,
      "title": "Cached Query Pool",
      "description": "PGPool wraps a pg Pool and puts an LRU cache in front of it, by default with 10000 entries and a 4-minute expiry. When several tile requests send the same SQL at the same time, PGPool merges them into one database query, and it caches each post-processed result. config.js from Step 4 uses it to cache the GeoJSON-filled Mapnik XML for each tile query, so a cache hit returns the finished XML for that query.",
      "nodeIds": [
        "file:greenstand/PGPool.js"
      ],
      "languageLesson": "A common way to merge identical concurrent requests is to cache the pending Promise for a key, not only the final value, so every caller that arrives before the query finishes awaits the same Promise. An LRU (least recently used) cache with a size limit and a maximum age bounds both memory use and data staleness."
    },
    {
      "order": 8,
      "title": "Mapnik XML Templates",
      "description": "config.js builds its style by filling these template strings with tree GeoJSON or PostGIS SQL. xml.js holds the original orange-icon templates: PostGIS layers for clusters (cluster_46px and cluster_63px shields) and for single trees (pin_29px.png), plus xmlJson and xmlJsonForTree, which use an inline GeoJSON datasource with a json_data placeholder. xml2.js holds the green 'ptk' icon variants with Lato Regular labels and tree icons, and it derives xmlJson3 and xmlTree3 from them by regex replace.",
      "nodeIds": [
        "file:greenstand/xml.js",
        "file:greenstand/xml2.js"
      ],
      "languageLesson": "A Mapnik XML map pairs Style elements with Layer elements. A Style holds Rules with symbolizers such as PointSymbolizer (an icon) or ShieldSymbolizer (an icon with a text label). A Layer names its styles and holds a Datasource that tells Mapnik where the features come from, for example type postgis with an SQL subquery or type geojson with inline data."
    },
    {
      "order": 9,
      "title": "Mapnik JavaScript Loader",
      "description": "The tile server imports Mapnik through lib/mapnik.js, the package main from Step 1, and app.js uses its font and plugin helpers. The loader finds the compiled native binding with @mapbox/node-pre-gyp, applies environment variables from mapnik_settings.js, registers MAPNIK_FONT_PATH fonts, and adds version information plus the typeName, toWKB, and toWKT prototype helpers. lib/index.js is a CommonJS barrel that re-exports the same module unchanged.",
      "nodeIds": [
        "file:lib/mapnik.js",
        "file:lib/index.js"
      ],
      "languageLesson": "A Node.js native addon is a compiled .node file that require() loads like a JavaScript module. node-pre-gyp computes the platform-specific path of that file from the binary block in package.json, so a thin JavaScript wrapper can require it and add helpers on top."
    },
    {
      "order": 10,
      "title": "Native Binding Core",
      "description": "Below lib/mapnik.js is the upstream node-mapnik C++ code in src/. node_mapnik.cpp, the file with the largest fan-out in the graph, is the N-API module entry point: it registers the plugin, font, cache, and blend functions, initializes every wrapper class, and exports constants, dependency versions, and a supports map. mapnik_map.hpp declares the Map wrapper with stylesheet loading, rendering, and an atomic in-use flag; Map.fromString parses a Mapnik XML stylesheet given as a string, and Map.render guards the Map with acquire() and release() while it draws into a mapnik.Image with AGG or into a UTF Grid. utils.hpp holds the shared value_converter that turns Mapnik values into JavaScript values.",
      "nodeIds": [
        "file:src/node_mapnik.cpp",
        "file:src/mapnik_map.hpp",
        "file:src/mapnik_map_from_string.cpp",
        "file:src/mapnik_map_render.cpp",
        "file:src/utils.hpp"
      ],
      "languageLesson": "node-addon-api wraps the C N-API in C++ classes. A Napi::ObjectWrap<T> subclass binds a C++ object to a JavaScript object and registers its methods, and a Napi::AsyncWorker runs heavy work such as stylesheet parsing or rendering on a worker thread, then calls the JavaScript callback on the main thread. That is why many binding methods come in pairs such as render and renderSync."
    },
    {
      "order": 11,
      "title": "Images, PNG, UTF Grids",
      "description": "The two tile formats from Step 3 come from two native classes. mapnik_image.hpp declares mapnik.Image and is the most depended-on file in the graph; mapnik_image.cpp binds its 33 instance methods and 9 static factories, and mapnik_image_encode.cpp implements Image.encode, which serializes the image in a format such as png and gives the bytes to JavaScript as a Buffer. mapnik_grid.cpp implements mapnik.Grid, a hit buffer of feature ids that encodes into UTFGrid JSON with grid, keys, and data members, and js_grid_utils.hpp does the row-by-row UTF-8 encoding and the attribute collection.",
      "nodeIds": [
        "file:src/mapnik_image.hpp",
        "file:src/mapnik_image.cpp",
        "file:src/mapnik_image_encode.cpp",
        "file:src/mapnik_grid.cpp",
        "file:src/js_grid_utils.hpp"
      ],
      "languageLesson": "A UTFGrid tells a map client which feature lies under each block of pixels. Each character in the grid rows maps through keys to a feature id, and data holds that feature's attributes, so a client can resolve hover and click events without another request. At resolution 4, one character covers a 4x4 pixel block, so a 256-pixel tile becomes 64 rows of 64 characters."
    },
    {
      "order": 12,
      "title": "Native Build Toolchain",
      "description": "The Makefile is the build entry point for the native addon. Its release and debug targets fetch the mason Mapnik SDK through scripts/install_deps.sh, and its release_base and debug_base targets check for mapnik-config and run node-pre-gyp configure build. binding.gyp compiles the src/*.cpp wrappers from Steps 10 and 11 with include paths and libraries from mapnik-config, and it includes the shared C++14 Release and Debug settings from common.gypi. After the build, scripts/postinstall.sh writes lib/binding/mapnik_settings.js with the font, plugin, and data paths that lib/mapnik.js loads at runtime (Step 9).",
      "nodeIds": [
        "pipeline:Makefile",
        "file:binding.gyp",
        "file:common.gypi",
        "file:scripts/install_deps.sh",
        "file:scripts/postinstall.sh"
      ],
      "languageLesson": "GYP is the build description format of node-gyp, which turns targets into platform Makefiles or Visual Studio projects. A .gypi file such as common.gypi holds shared target_defaults that other .gyp files include, and GYP can run a shell command at configure time with <!(...) or <!@(...) to splice in its output, a common way to read flags from a tool such as mapnik-config."
    },
    {
      "order": 13,
      "title": "Container Image",
      "description": "The Dockerfile packages the repo into one image in a single build stage. It starts from the prebuilt greenstand/tile-server-base:first image, which must supply the Mapnik libraries and the mapnik-config tool, because the Dockerfile itself installs only build-essential, zlib1g-dev, ca-certificates, and Node.js 14.21.3. It then compiles the native binding with make release_base from Step 12 and runs npm start, which launches greenstand/server.js from Step 2. The .dockerignore excludes node_modules, so host dependencies do not enter the image.",
      "nodeIds": [
        "service:Dockerfile",
        "service:Dockerfile:tile-server-base",
        "config:.dockerignore"
      ],
      "languageLesson": "A Dockerfile can start FROM a prebuilt base image to move slow, rarely changing setup (here, the Mapnik libraries) out of every build. A .dockerignore file trims the build context, so COPY . ./ does not send excluded paths such as node_modules into the image."
    },
    {
      "order": 14,
      "title": "Kubernetes Deployment",
      "description": "deployment/ holds a kustomize base that puts the tile server into the tile-server namespace, and beta, development, production, and test overlays patch that base. The base Deployment runs the greenstand/treetracker-map-tile-server image with PORT=3000, PG_POOL_SIZE=20, and both zoom thresholds at 6, and it injects DB_URL from the database-connection SealedSecret, whose PLACEHOLDER value each overlay replaces with a real encrypted connection string. The Service forwards port 80 to container port 3000, and the Ambassador Mapping routes the /tiles/ URL prefix to that Service, rewrites it to /, and allows 60000 ms per request so that slow tile renders do not time out at the gateway.",
      "nodeIds": [
        "config:deployment/base/kustomization.yaml",
        "config:deployment/base/deployment.yaml",
        "config:deployment/base/service.yaml",
        "config:deployment/base/mapping.yaml",
        "config:deployment/base/database-connection-sealed-secret.yaml"
      ],
      "languageLesson": "Kustomize composes a base with per-environment overlays: each overlay lists the base as a resource and applies strategic-merge patches, so only the differences (replicas, env values, CORS, secrets) live in the overlay. A Bitnami SealedSecret holds a value that only the in-cluster sealed-secrets controller can decrypt into a normal Secret, so the encrypted manifest can be stored in git."
    },
    {
      "order": 15,
      "title": "Release and Deploy Pipelines",
      "description": "On every push to master or next, build-deploy.yml runs semantic-release with the .releaserc rules, builds the Dockerfile from Step 13, and pushes greenstand/treetracker-map-tile-server to DockerHub with the package.json version as its tag. A second job sets that tag in deployment/base and applies the development overlay from Step 14 to the DigitalOcean cluster. semantic-release also records each release in CHANGELOG.md, whose top part lists the Greenstand releases from 4.6.0 to 4.36.7 above the inherited node-mapnik history. Promotion is manual: deploy-test.yml and deploy-prod.yml take a chosen git tag and apply the test or production overlay.",
      "nodeIds": [
        "pipeline:.github/workflows/build-deploy.yml",
        "file:.releaserc",
        "document:CHANGELOG.md",
        "pipeline:.github/workflows/deploy-test.yml",
        "pipeline:.github/workflows/deploy-prod.yml"
      ],
      "languageLesson": "A GitHub Actions workflow starts from its on: triggers: push to a branch for automatic releases, or workflow_dispatch for a manual run with inputs such as a git tag. semantic-release reads Conventional Commit messages (feat:, fix:) to choose the next version number, and this repo enforces that format with commitlint through a husky commit-msg hook."
    }
  ]
}