Planetary-scale answers, unlocked.
A Hands-On Guide for Working with Large-Scale Spatial Data. Learn more.
Geospatial data is information tied to a location on the Earth's surface. A store, a road, a field of crops, a storm forecast, and a satellite photo of a city are all geospatial data, because each one answers the question "where?" alongside "what?". Each record pairs a location, stored as coordinates, an address, or a shape, with attributes that describe what is there, and often a time. The US Census Bureau describes geospatial data as data that is "clearly geographic in nature," such as maps and data for GIS software.
Every geospatial record has three parts.
Spatial data is any data with a position in some space, which can include a warehouse floor plan. Geospatial data is spatial data referenced to the Earth. GIS data is geospatial data packaged for a geographic information system, usually as map layers. In practice the terms overlap, and this article uses "geospatial data" for all three.
Geospatial data comes in two main types, vector and raster, plus a few specialized forms.
Vector data represents discrete features with geometry. The OGC Simple Feature Access standard, also published as ISO 19125, defines the core geometry types and associates each geometry with a spatial reference system.
Raster data divides an area into a regular grid of cells, and each cell holds a value. A satellite image stores reflectance in each pixel, a digital elevation model stores height, and a weather model such as HRRR stores temperature or wind speed. Cell size sets the resolution: a 10-meter pixel in Sentinel-2 imagery covers 100 square meters on the ground.
Most real questions use both. Counting the buildings inside a flood depth grid joins vector polygons to raster cells. For a full comparison, see raster vs vector data.
Formats differ in how they store geometry, how they compress values, and whether they suit files on a laptop or tables in cloud storage.
Wherobots is a cloud platform for geospatial data, built by the creators of Apache Sedona. WherobotsDB reads and writes vector and raster data in one SQL and Python engine, and stores tables in GeoParquet and Apache Iceberg. The Havasu catalog lists the open datasets ready to query, including Overture places, Sentinel-2 imagery, and NAIP aerial imagery. The Wherobots MCP server lets AI coding tools explore the catalog and run spatial SQL.
The header image above shows one place, Lake Havasu City, Arizona, four ways: NAIP aerial imagery as raster, and Overture buildings, roads, and 2,078 places as vector polygons, lines, and points.
The points in the header come from one table. This query, run in Wherobots, filters Overture places to a bounding box around the island and counts them by category:
SELECT basic_category, COUNT(*) AS places FROM wherobots_open_data.overture_maps_foundation.places_place WHERE ST_Intersects(geometry, ST_PolygonFromEnvelope(-114.375, 34.455, -114.32, 34.49)) AND basic_category IS NOT NULL GROUP BY basic_category ORDER BY places DESC LIMIT 5
ST_PolygonFromEnvelope builds a rectangle from minimum and maximum longitude and latitude, and ST_Intersects keeps the places that fall inside it. The same pattern works on buildings, roads, and boundaries, and raster functions such as RS_ZonalStats bring imagery and elevation into the same query. Each place also carries a geometry column, so the result can be mapped, joined to census tracts, or summarized into H3 cells.
ST_PolygonFromEnvelope
ST_Intersects
RS_ZonalStats
Query vector and raster geospatial data together with a Wherobots free trial at cloud.wherobots.com.
Geospatial data is information tied to a location on the Earth’s surface. Each record has a location, stored as coordinates, an address, or a shape such as a point, line, polygon, or grid cell, plus attributes that describe what is there and often a timestamp for when it was observed.
The two main types are vector data and raster data. Vector data represents discrete features as points, lines, and polygons, such as stores, roads, and building outlines. Raster data divides an area into a grid of cells, or pixels, each holding a value, such as satellite imagery, elevation, or temperature.
Examples include satellite and aerial imagery, building footprints, road networks, points of interest such as restaurants and hospitals, property parcels, census boundaries, GPS tracks from vehicles and ships, elevation models, weather forecasts, and flood zone maps.
Spatial data is any data with a position in some space, which can include the layout of a factory floor or a medical scan. Geospatial data is spatial data whose positions refer to the Earth, through latitude and longitude or another coordinate reference system. In GIS and mapping, people often use the two terms interchangeably.
GIS data is geospatial data prepared for use in a geographic information system, usually as layers such as Shapefiles, geodatabases, or GeoTIFFs. Geospatial data is the broader term and also covers data used outside GIS software, for example in SQL engines, data lakes, and machine learning pipelines.
Common vector formats are Shapefile, GeoJSON, GeoPackage, KML, and GeoParquet. Common raster formats are GeoTIFF, Cloud Optimized GeoTIFF (COG), NetCDF, and Zarr. Table formats such as Apache Iceberg now include native geometry types, so vector data can live in a data lake alongside other tables.
Free sources include the US Census Bureau’s TIGER/Line boundaries, USGS elevation and Landsat imagery, the European Space Agency’s Sentinel-2 imagery, NOAA weather data, and Overture Maps Foundation’s buildings, places, roads, and boundaries. Wherobots hosts many of these as ready-to-query tables in its open data catalog.
What is H3? Uber’s Hexagonal Spatial Index
H3 is Uber's open-source hexagonal grid for indexing locations on Earth. How the H3 index works, its 16 resolutions, H3 vs S2 and geohash, and H3 in SQL.
What is Geospatial Analysis? Methods and Examples
Geospatial analysis, or spatial analysis, examines where things are and how location shapes patterns. Methods, examples, GIS vs spatial analysis, and SQL.
What is a Coordinate Reference System? CRS, EPSG
A coordinate reference system (CRS) ties coordinates to places on Earth. Geographic vs projected systems, datums, EPSG codes, WGS 84, UTM, and ST_Transform.
share this article
Awesome that you’d like to share our articles. Where would you like to share it to: