MCPcopy Create free account

hub / github.com/cannoneyed/isometric-nyc / functions

Functions1,260 in github.com/cannoneyed/isometric-nyc

↓ 1 callersFunctiondraw_outline
Draw a solid red outline around a rectangular region. The outline is drawn ON TOP of the image (no pixel displacement).
src/isometric_nyc/synthetic_data/create_omni_dataset.py:157
↓ 1 callersFunctionensure_db_exists
Ensure the database exists with the proper schema.
src/isometric_nyc/oxen_sync/import_from_oxen.py:28
↓ 1 callersFunctionensure_is_water_column
Ensure the is_water column exists in the quadrants table.
src/isometric_nyc/generation/detect_water_tiles.py:42
↓ 1 callersFunctionensure_water_mask_columns
Ensure the water_mask and water_type columns exist in the quadrants table.
src/isometric_nyc/generation/populate_water_masks.py:47
↓ 1 callersFunctionexecute_plan
Execute a generation plan, updating status as we go. Stops on first error. Returns exit code (0 for success, 1 for error).
src/isometric_nyc/generation/automatic_generation.py:1283
↓ 1 callersFunctionexport_base_tiles_parallel
Process all base tiles in parallel. Returns: Tuple of (processed_tiles_dict, stats_dict)
src/isometric_nyc/generation/export_pmtiles.py:712
↓ 1 callersFunctionexport_tile
Export a rectangular region of quadrants from the database to a PNG file. Args: db_path: Path to the quadrants.db file. tl: (x, y) c
src/isometric_nyc/generation/export_import_generation_tile.py:205
↓ 1 callersFunctionexport_tiles
Export quadrants from the database to the output directory with padding. Coordinates are normalized so that tl becomes (0, 0) in the output. T
src/isometric_nyc/generation/export_tiles_for_app.py:399
↓ 1 callersFunctionexport_to_dzi
Export all tiles to DZI format. Args: db_path: Path to quadrants.db tl: Top-left coordinate (x, y) br: Bottom-right
src/isometric_nyc/generation/export_dzi.py:632
↓ 1 callersFunctionexport_to_oxen
Export quadrants from the local database to a local oxen directory structure. Saves files to oxen/<dataset>/generations/<xxx>_<yyy>_<hash>.png
src/isometric_nyc/oxen_sync/export_to_oxen.py:64
↓ 1 callersFunctionexport_to_pmtiles
Export all tiles to a PMTiles archive using parallel processing. Returns: Stats dict with counts and timing.
src/isometric_nyc/generation/export_pmtiles.py:886
↓ 1 callersFunctionexport_whitebox
Export screenshot from whitebox.py renderer. Args: output_dir: Directory to save the output view_config: View configuration dictionary
src/isometric_nyc/export_views.py:40
↓ 1 callersFunctionextract_generated_quadrants
Extract the selected quadrants from a generated image. After the model generates the infilled image, this function extracts the quadrants that
src/isometric_nyc/generation/generate_template_test.py:974
↓ 1 callersFunctionextract_polygon_from_geojson
Extract the first polygon from a GeoJSON FeatureCollection. Args: geojson: GeoJSON dictionary (FeatureCollection or single Feature) Retur
src/isometric_nyc/generation/export_pmtiles.py:301
↓ 1 callersFunctionextract_polygon_from_geojson
Extract the first polygon from a GeoJSON FeatureCollection.
src/isometric_nyc/generation/export_dzi.py:172
↓ 1 callersFunctionfetchAvailable
()
src/layers/snow/app/src/App.tsx:45
↓ 1 callersFunctionfetchAvailable
()
src/layers/dark_mode/app/src/App.tsx:45
↓ 1 callersFunctionfetchAvailable
()
src/layers/water_shader/app/src/App.tsx:66
↓ 1 callersFunctionfetchMetadata
()
src/app/src/App.tsx:193
↓ 1 callersFunctionfetch_geometry_v5
Fetches geometry for specific surface classes.
src/isometric_nyc/whitebox.py:348
↓ 1 callersFunctionfetch_satellite_image
Fetch satellite imagery from Google Maps Static API with caching.
src/isometric_nyc/whitebox.py:152
↓ 1 callersFunctionfetch_satellite_tiles
Fetch a grid of satellite tiles and stitch them together. Automatically calculates how many tiles are needed for coverage. Args: center_la
src/isometric_nyc/whitebox.py:179
↓ 1 callersFunctionfill_gaps_efficiently
Fill interior gaps using 1x2, 2x1, or single tiles ONLY. IMPORTANT: - 2x2 tiles can NEVER touch existing generated content. - 1x2 tiles can
src/isometric_nyc/generation/automatic_generation.py:1119
↓ 1 callersFunctionfind_all_valid_2x1_positions
Find all valid positions for 2x1 (horizontal) and 1x2 (vertical) tiles. Returns list of (position, type) where type is "2x1" or "1x2". Follow
src/isometric_nyc/generation/make_rectangle_plan.py:387
↓ 1 callersFunctionfind_best_2x2_tiles
Find all valid 2x2 tile positions along a direction from the generated region. Args: grid: The quadrant grid direction: One of "top"
src/isometric_nyc/generation/automatic_generation.py:915
↓ 1 callersFunctionfind_generatable_quadrant
Find a quadrant that can be generated, starting from target. First checks if target itself can be generated. If not, searches for the closest
src/isometric_nyc/generation/generate_water_masks.py:143
↓ 1 callersFunctionfind_interior_gaps
Find empty quadrants that are inside the generated bounds. These need to be filled before expanding outward.
src/isometric_nyc/generation/automatic_generation.py:725
↓ 1 callersFunctionfix_trees
(input_image_path: str)
src/notebooks/fix-trees.py:44
↓ 1 callersFunctionfix_trees
(tile_dir: Path)
src/isometric_nyc/synthetic_data/fix_trees.py:16
↓ 1 callersFunctionfix_water
(tile_dir: Path)
src/isometric_nyc/synthetic_data/fix_water.py:13
↓ 1 callersFunctionformat_filename
Format a filename for a quadrant or render image. Args: x: Quadrant x coordinate y: Quadrant y coordinate hash_str: Content hash
src/isometric_nyc/oxen_sync/utils.py:26
↓ 1 callersFunctiongenerate_dark_mode_tile
Generate a dark mode version for a 2x2 tile at the specified coordinates. The tile consists of 4 quadrants: (x,y), (x+1,y), (x,y+1), (x+1,y+1).
src/isometric_nyc/generation/generate_dark_mode.py:225
↓ 1 callersFunctiongenerate_dzi
Generate DZI pyramid from a pyvips image. Args: image: pyvips.Image to convert output_path: Base path for output (without ex
src/isometric_nyc/generation/test_dzi_export.py:155
↓ 1 callersFunctiongenerate_editor_html
Generate the HTML content for the bounds editor.
src/isometric_nyc/generation/create_bounds.py:39
↓ 1 callersFunctiongenerate_horizontal_band
Generate a horizontal band (full width, variable height). The band spans from left to right and has height <= 1/2 of image height.
src/isometric_nyc/synthetic_data/create_inpainting_examples.py:118
↓ 1 callersFunctiongenerate_horizontal_rect
Generate a horizontal rectangle (wider than tall). If touch_edge is True, the rectangle will touch at least one edge. Area must be <= 1/2 of t
src/isometric_nyc/synthetic_data/create_inpainting_examples.py:200
↓ 1 callersFunctiongenerate_html
Generate the HTML content for the debug map.
src/isometric_nyc/generation/debug_map.py:173
↓ 1 callersFunctiongenerate_html
Generate the HTML content for the debug map.
src/isometric_nyc/generation/debug_generate_full_map_layer.py:147
↓ 1 callersFunctiongenerate_inner_square
Generate an inner square somewhere in the middle of the tile. The square doesn't touch any edge and has area <= 1/2 of total.
src/isometric_nyc/synthetic_data/create_inpainting_examples.py:261
↓ 1 callersFunctiongenerate_layer
Execute the generation plan for a layer. Args: layer_dir: Path to the layer directory dry_run: If True, don't actually call APIs
src/isometric_nyc/generation/generate_full_map_layer.py:440
↓ 1 callersFunctiongenerate_overview
Extract tiles at the lowest zoom level and stitch into overview image.
src/app/scripts/generate_overview.py:16
↓ 1 callersFunctiongenerate_plan
( name, start_lat, start_lon, rows, cols, view_height_meters, azimuth, elevation, width_px=1
src/isometric_nyc/plan_tiles.py:89
↓ 1 callersFunctiongenerate_plan
( *, name: str, view_json: dict, )
src/isometric_nyc/synthetic_data/create_tile_dirs.py:7
↓ 1 callersFunctiongenerate_quadrants
Generate pixel art for the specified quadrants. Args: generation_dir: Path to the generation directory quadrant_tuples: List of (x,
src/isometric_nyc/generation/generate_tiles_omni.py:74
↓ 1 callersFunctiongenerate_rectangle
Generate a rectangle of the specified type. Args: rect_type: One of the RECT_* constants. width: Image width. height: Image he
src/isometric_nyc/synthetic_data/create_inpainting_examples.py:300
↓ 1 callersFunctiongenerate_snow_tile
Generate a snowy version for a 2x2 tile at the specified coordinates. The tile consists of 4 quadrants: (x,y), (x+1,y), (x,y+1), (x+1,y+1). T
src/isometric_nyc/generation/generate_layer_snow.py:207
↓ 1 callersFunctiongenerate_template
()
src/notebooks/few-shot-gen.py:48
↓ 1 callersFunctiongenerate_template
()
src/notebooks/tile.py:103
↓ 1 callersFunctiongenerate_template
()
src/notebooks/few-shot-checks.py:102
↓ 1 callersFunctiongenerate_template
()
src/notebooks/few-shot-gen-v2.py:44
↓ 1 callersFunctiongenerate_tile
Generates an isometric pixel art image for the given tile directory using Gemini.
src/isometric_nyc/generate_tile.py:20
↓ 1 callersFunctiongenerate_tile
Generate a tile using the Oxen API. Args: tile_dir: Path to the tile directory bucket_name: GCS bucket name for uploading images
src/isometric_nyc/generate_tile_oxen.py:131
↓ 1 callersFunctiongenerate_tile
(tile_dir: str, reference_image_name: Path)
src/isometric_nyc/generate_tile_v2.py:15
↓ 1 callersFunctiongenerate_tile
Generate a tile using the Oxen API with infill strategy.
src/isometric_nyc/generate_tile_oxen_infill.py:360
↓ 1 callersFunctiongenerate_tile
(tile_dir: str, generation_suffix: str)
src/isometric_nyc/tile_generation/generate_tile_006.py:11
↓ 1 callersFunctiongenerate_tile
(tile_dir: str, generation_suffix: str)
src/isometric_nyc/tile_generation/generate_tile_008.py:11
↓ 1 callersFunctiongenerate_tile
(tile_dir: str, generation_suffix: str)
src/isometric_nyc/tile_generation/generate_tile_007.py:11
↓ 1 callersFunctiongenerate_tile
(tile_dir: str, generation_suffix: str)
src/isometric_nyc/tile_generation/generate_tile_004.py:11
↓ 1 callersFunctiongenerate_tile
(tile_dir: str, generation_suffix: str)
src/isometric_nyc/tile_generation/generate_tile_002.py:11
↓ 1 callersFunctiongenerate_tile
(tile_dir: str, generation_suffix: str)
src/isometric_nyc/tile_generation/generate_tile_005.py:11
↓ 1 callersFunctiongenerate_tile
(tile_dir: str, generation_suffix: str)
src/isometric_nyc/tile_generation/generate_tile_011.py:11
↓ 1 callersFunctiongenerate_tile
(tile_dir: str, generation_suffix: str)
src/isometric_nyc/tile_generation/generate_tile_009.py:11
↓ 1 callersFunctiongenerate_tile
(tile_dir: str, generation_suffix: str)
src/isometric_nyc/tile_generation/generate_tile_003.py:11
↓ 1 callersFunctiongenerate_tile
(tile_dir: str, generation_suffix: str)
src/isometric_nyc/tile_generation/generate_tile_001.py:11
↓ 1 callersFunctiongenerate_tile
(tile_dir: str, generation_suffix: str)
src/isometric_nyc/tile_generation/generate_tile_010.py:11
↓ 1 callersFunctiongenerate_tile_nano_banana
Generate pixel art for quadrant(s) using the Gemini nano banana model. This function supports two modes: 1. Arbitrary quadrant selection (pref
src/isometric_nyc/generation/generate_tile_nano_banana.py:1122
↓ 1 callersFunctiongenerate_tile_omni
Generate pixel art for quadrant(s) using the omni model. Args: generation_dir: Path to the generation directory x: Quadrant x coordinate
src/isometric_nyc/generation/generate_tile_omni.py:109
↓ 1 callersFunctiongenerate_tiling_plan
Generate the 3-step tiling plan for the given bounds. Step 1: 2x2 tiles with 1-quadrant gaps (positions: 0, 3, 6, 9, ...) Step 2: 1x2 and 2x1
src/isometric_nyc/generation/init_layer.py:173
↓ 1 callersFunctiongenerate_vertical_band
Generate a vertical band (full height, variable width). The band spans from top to bottom and has width <= 1/2 of image width.
src/isometric_nyc/synthetic_data/create_inpainting_examples.py:97
↓ 1 callersFunctiongenerate_vertical_rect
Generate a vertical rectangle (taller than wide). If touch_edge is True, the rectangle will touch at least one edge. Area must be <= 1/2 of to
src/isometric_nyc/synthetic_data/create_inpainting_examples.py:139
↓ 1 callersFunctiongenerate_water_mask_tile
Generate a water mask for a 2x2 tile at the specified coordinates. The tile consists of 4 quadrants: (x,y), (x+1,y), (x,y+1), (x+1,y+1). This
src/isometric_nyc/generation/generate_water_mask_tile.py:191
↓ 1 callersFunctiongenerate_water_masks
Main function to generate water masks. Args: generation_dir: Path to generation directory start_x: Optional x coordinate to start from (
src/isometric_nyc/generation/generate_water_masks.py:274
↓ 1 callersFunctiongenerate_zoom_levels
Generate zoomed-out tile levels by combining base tiles. Args: base_dir: Directory containing level 0 tiles (e.g., public/tiles/0/).
src/isometric_nyc/generation/export_tiles_for_app.py:554
↓ 1 callersFunctiongenerate_zoom_tiles_parallel
Generate zoom level tiles in parallel. Args: base_tiles: Dict mapping (x, y) to processed base tile bytes. padded_width: Grid width at l
src/isometric_nyc/generation/export_pmtiles.py:820
↓ 1 callersMethodgeocode
Geocode an address to (lat, lng).
src/isometric_nyc/data/google_maps.py:10
↓ 1 callersFunctiongeocode_location
Use Google Maps Geocoding API to get lat/lng for a location name. Adds "NYC" or "New York" context to improve accuracy.
src/isometric_nyc/synthetic_data/verify_coordinates.py:22
↓ 1 callersFunctiongetApiBase
()
src/layers/snow/app/src/App.tsx:27
↓ 1 callersFunctiongetApiBase
()
src/layers/dark_mode/app/src/App.tsx:27
↓ 1 callersFunctiongetApiBase
()
src/layers/water_shader/app/src/App.tsx:47
↓ 1 callersFunctiongetCameraInfo
()
src/web_render/main.js:359
↓ 1 callersFunctiongetCoordsFromUrl
()
src/layers/snow/app/src/App.tsx:10
↓ 1 callersFunctiongetCoordsFromUrl
()
src/layers/dark_mode/app/src/App.tsx:10
↓ 1 callersFunctiongetCoordsFromUrl
()
src/layers/water_shader/app/src/App.tsx:30
↓ 1 callersFunctiongetCorsHeaders
(request: Request)
src/app/worker/src/index.ts:16
↓ 1 callersFunctiongetCurrentViewCenter
()
src/isometric_nyc/generation/static/viewer.js:1929
↓ 1 callersFunctiongetExportDir
()
src/app/src/config.ts:17
↓ 1 callersFunctiongetPixelColorFromImage
(img, x, y)
src/isometric_nyc/generation/static/viewer.js:810
↓ 1 callersFunctiongetProcessingItems
(status)
src/isometric_nyc/generation/static/viewer.js:267
↓ 1 callersFunctiongetSavedModel
()
src/isometric_nyc/generation/static/viewer.js:21
↓ 1 callersFunctiongetSavedQuadrants
()
src/isometric_nyc/generation/static/viewer.js:58
↓ 1 callersFunctiongetSavedTool
()
src/isometric_nyc/generation/static/viewer.js:39
↓ 1 callersFunctiongetTilesBaseUrl
()
src/app/src/config.ts:46
↓ 1 callersFunctionget_1x2_quadrants
Get both quadrants for a 1x2 horizontal tile.
src/isometric_nyc/generation/automatic_generation.py:983
↓ 1 callersFunctionget_2x1_quadrants
Get both quadrants for a 2x1 vertical tile.
src/isometric_nyc/generation/automatic_generation.py:988
↓ 1 callersFunctionget_2x2_quadrants
Get all 4 quadrants for a 2x2 tile starting at top_left.
src/isometric_nyc/generation/automatic_generation.py:973
↓ 1 callersFunctionget_all_quadrant_data_in_range
Load all tile data in range with a single query. This is a major performance optimization - instead of N queries for N tiles, we do a single q
src/isometric_nyc/generation/export_pmtiles.py:178
↓ 1 callersFunctionget_all_quadrant_data_in_range
Load all tile data in range with a single query.
src/isometric_nyc/generation/export_dzi.py:124
↓ 1 callersFunctionget_all_quadrants_with_generations
Get all quadrants that have generation data. Returns: List of (quadrant_x, quadrant_y, generation_bytes) tuples.
src/isometric_nyc/generation/populate_water_masks.py:64
↓ 1 callersFunctionget_all_quadrants_with_generations
Get all quadrants that have generation data. Returns: List of (quadrant_x, quadrant_y, generation_bytes, is_water_status) tuples. is_wat
src/isometric_nyc/generation/detect_water_tiles.py:53
↓ 1 callersFunctionget_black_tile_bytes
()
src/isometric_nyc/generation/export_dzi.py:539
← previousnext →401–500 of 1,260, ranked by callers