GEO INFER ART

From ActiveInferenceInstitute/GEO-INFER · View interactive version

GEO INFER ART is an AI agent skill from the GitHub repository ActiveInferenceInstitute/GEO-INFER. Generative geospatial art and cartographic visualization. Use when creating artistic map visualizations, procedural spatial art, animation sequences, color palettes, style transfer, or aesthetically-focused geographic rendering.

How to use this skill

Skill file

GEO-INFER-ART

Instructions

Core Capabilities

Key Imports

# Package-level exports (all 10 public classes)
from geo_infer_art import (
    GeoArt,
    MapStyle,
    ColorPalette,
    StyleTransfer,
    GenerativeMap,
    ProceduralArt,
    PlaceArt,
    CulturalMap,
    CustomAlgorithmFramework,
    PerformanceOptimizer,
)

# Or by subpackage
from geo_infer_art.core.visualization import GeoArt, MapStyle
from geo_infer_art.core.aesthetics import StyleTransfer, ColorPalette
from geo_infer_art.core.generation import (
    GenerativeMap,
    ProceduralArt,
    CustomAlgorithmFramework,
    PerformanceOptimizer,
)
from geo_infer_art.core.place import PlaceArt, CulturalMap

Examples

from geo_infer_art import ProceduralArt, GeoArt

# Procedural art seeded by geographic coordinates (works offline)
art = ProceduralArt.from_geo_coordinates(
    lat=40.7128, lon=-74.0060, algorithm="noise_field"
)
art.save("nyc_noise.png")
art.show()

# Styled map from a GeoJSON file
geo_art = GeoArt.load_geojson("data.geojson")
geo_art.apply_style(style="default", color_palette="ocean", legend=True)
geo_art.save("styled_map.png", dpi=300)

# Procedural art with explicit algorithm selection
art = ProceduralArt(
    algorithm="koch_snowflake",
    params={"iterations": 3, "color_palette": "ocean", "seed": 42},
    resolution=(800, 800),
)
art.generate()

Randomness is per instance: ProceduralArt seeds a numpy.random.Generator

from params["seed"]; GenerativeMap, GenerativeMap.from_elevation,

PlaceArt and StyleTransfer take a seed (int or Generator). Saved

custom-algorithm files must carry function_name (as written by

CustomAlgorithmFramework.save_algorithms_to_file); entries without it are

rejected with ValueError before any source is executed.

Neural style transfer (requires tensorflow, packaged as the neural extra;

raises a clear ImportError when absent):

from geo_infer_art import StyleTransfer

styled = StyleTransfer.apply(geo_data=geo_art.data, style="watercolor")
styled.save("stylized.png")

Agent interfaces

Use uv run --frozen geo-infer catalog ART to discover public source

APIs, then geo-infer describe before calling a selected target. Scripts use

geo_infer_api.agent_runtime.AgentSession; the optional stdio MCP server is

geo-infer-mcp. See requests, native objects and composition.

The adapter retains this module's dependencies and authorization requirements.

Guidelines

dispatches to _generate_<name> for every entry (unknown names raise ValueError).

mayavi (viz3d extra), tensorflow (neural extra). Guarded imports raise

informative errors when missing.

Integrations

GeoDataFrames / numpy arrays.

Custom algorithm persistence accepts schema version 1 registry references only.

Supply trusted callables to CustomAlgorithmFramework(algorithm_registry=...);

legacy source-bearing JSON is rejected before any state change. Direct callable

registration remains available, but only registry-listed functions can be saved.

Compose and export maps

GeoArt.apply_style accepts caller-owned ax, a vector column, and shared

scalar vmin/vmax limits for comparable panels. A legend requires its color

attribute; specify column explicitly. Raster inputs support 2D scalar arrays,

band-first (bands, height, width) and channel-last (height, width, channels).

Use raster_layout for ambiguous shapes and zero-based raster_band for a

selected scalar band. Loaded rasters retain band-first layout and NoData masks.

Use a with GeoArt(...) as art context or close() to release owned figures.

Caller-provided axes remain caller-owned. save creates nested directories and

accepts close, transparent and native Matplotlib metadata; retain a figure

with close=False when exporting several formats. Choose .svg for vector

artwork and .png for raster output. Folium exports reproject declared vector

CRS to WGS84 and retain geometry holes/multipart features; Plotly scatter maps

require point geometry.

optimize_for_performance(target_resolution=(height, width), raster_layout=...)

returns a new raster with unchanged band order and spatial footprint. Dimensions

must be positive integers. Bilinear samples use the full pixel extent and

replicated boundary pixels; masked values contribute no weight and cells with

no valid contribution remain masked. Integer inputs retain their dtype, while

masked inputs use floating interpolation. This is a display resampler, without

area-conservation guarantees. The affine transform scales with the pixel grid;

source data and metadata remain unchanged. Vector simplify_tolerance must be

finite and nonnegative, uses CRS units and preserves the active geometry column.

Discover the current signatures with `geo-infer describe

geo_infer_art.core.visualization.geo_art:GeoArt.apply_style`. Use a retained

GeoArt handle in one script, persistent CLI session or MCP session to compose

apply_style, save and close; the shared interfaces preserve native arrays

and GeoDataFrames. See visualization contracts.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.