GitHub

Vector-based Analysis Overview

GeoRetina AI (GRAI) provides powerful tools for analyzing vector data through a natural language interface. Vector data represents geographic features as points, lines, and polygons, allowing for precise spatial analysis of discrete objects.

Vector analysis example showing query results

Key Capabilities

GRAI's vector analysis system offers three main capabilities:

1. Public Data Querying

Access and analyze data from leading open vector datasets:

  • OpenStreetMap: Query global infrastructure data including buildings, roads, points of interest, and natural features
  • Overture Maps: Access Overture's comprehensive mapping data with rich attribution and global coverage
OpenStreetMap query example

2. Custom Data Integration

Upload and query your own geospatial data:

  • Import GeoJSON, Shapefiles, and other vector formats
  • Query your data using the same natural language interface
  • Combine your data with public datasets for comprehensive analysis
Uploading custom geospatial data

3. Query Loops

Perform iterative, multi-step analysis:

  • Query results from one operation can become inputs for subsequent queries
  • Refine and narrow your analysis with each step
  • Build complex analytical workflows through conversation
Query loop example

Types of Vector Analysis

GRAI supports several types of vector-based analysis:

Feature Querying

Query specific features based on their attributes and spatial relationships:

  • Find all buildings within a specified distance of a point
  • Identify roads that intersect with a particular area
  • Count features that match specific criteria

Spatial Relationships

Analyze how different features relate to each other in space:

  • Determine which points fall within a polygon
  • Calculate distances between features
  • Identify overlapping areas between different polygons

Demographic Analysis

Combine census data with geographic boundaries:

  • Analyze population distribution across regions
  • Calculate statistics for specific demographic groups
  • Compare demographic metrics between different areas

Working with Vector Data in GRAI

GRAI allows you to access various vector data sources:

  1. Built-in datasets including OpenStreetMap and Overture Maps Foundation data
  2. User-uploaded data in formats like GeoJSON and Shapefiles
  3. Custom vector databases that you connect to GRAI

Example Workflows

1. Querying Public Infrastructure

You can ask questions about public data sources:

"Show me all schools within 5km of this point"
"Count the number of hospitals in this region"
"Identify the major roads passing through this area"
OpenStreetMap query results table

2. Analyzing Custom Data

After uploading your data, you can analyze it with natural language:

"Show all properties in my uploaded layer that are larger than 5 acres"
"Find points in my dataset that are within flood zones"
"Calculate the total area of agricultural land in my custom layer"
Querying an uploaded data layer

3. Creating Query Loops

Build on previous results for deeper analysis:

"Of these schools, show me only those with playgrounds"
"From these properties, identify those within 1km of a transit station"
"For these buildings, calculate the average distance to the nearest emergency service"

Exporting Results

Analysis results can be exported for use in other tools:

Downloading query results

Vector Data Formats

GRAI supports various vector data formats:

FormatSupport LevelNotes
GeoJSONFull

Recommended for web-based applications

ShapefileFull

Industry standard for GIS applications

KML/KMZPartial

Good for Google Earth integration

GeoPackagePlanned

Coming in a future update

Getting Started

To begin using vector-based analysis with GRAI:

  1. Define your region of interest using the basic workflow
  2. Ask natural language questions about vector features in your region
  3. Refine your queries based on the results
  4. Explore different analysis types using the navigation menu

The following pages provide detailed instructions for specific types of vector analysis, starting with Public Data Querying and User Data Querying.