Skip to main content
v2026.11,986 entries · CC-BY 4.0

Geospatial Data: Vector, Raster and File Formats for Research

What geospatial data is, how vector and raster files differ, and which formats the Library of Congress accepts for preserving research data.

Written and maintained by CASRAI Editorial Board

Published

On this page

Geospatial data is information that describes objects or other features by their location on or near the surface of the Earth. In research it usually arrives as vector data (points, lines and polygons with attribute tables), raster data (georeferenced imagery and gridded surfaces) or plain tables carrying coordinates, and the file format you choose decides whether anyone can open it, reuse it or preserve it in five years.

Short answer

The USDA Forest Service defines geospatial data as “information that describes objects or other features with a location on or near the surface of earth.” For a research team the practical questions are which model the data uses (vector or raster), which file format stores it, and what documentation travels with it. This guide answers those three questions from the Library of Congress Recommended Formats Statement, the Open Geospatial Consortium (OGC) GeoPackage page and Penn State’s open-formats lesson, and ends with a deposit checklist built from the Library of Congress rules.

Definition and scope

Two features make data geospatial: it describes something real, and it says where that something is. A soil survey polygon, a GPS track from a field campaign, a satellite scene and a spreadsheet of sampling sites with longitude and latitude columns all qualify. The same word covers the map you see on screen and the files underneath it, which is why a project can lose its geospatial data while keeping a screenshot of the map.

The wider discipline of managing this material is covered elsewhere on CASRAI. Geospatial information science sets out the field itself, spatial data infrastructure describes the shared systems that publish and exchange it, spatial data analysis covers the statistical methods applied to it, and geovisualization covers how it is turned into maps and displays. This page stays with the data itself: what it is, how it is stored and how to keep it usable.

How geospatial data is stored and used in practice

Vector formats keep geometry and attributes together

Penn State’s GEOG 585 lesson explains that each vector format has some mechanism for storing the geometry of each feature, meaning its vertex coordinates, along with the attributes of that feature. Some formats, such as KML, can also store styling information. The lesson groups the common file-based vector formats as follows.

  • Shapefile. One of the most common formats for exchanging vector data. It is not a single file: it consists of several files sharing a root name with different suffixes, and at a minimum the .shp, .shx and .dbf files must be present. Because of this, shapefiles are usually zipped together for download, upload or email.
  • GeoPackage. Defined by the OGC, it stores vector features, tables and rasterized tiles in a SQLite database. Penn State notes that some people advocate it as a more modern alternative to the shapefile.
  • KML and KMZ. KML (Keyhole Markup Language) is an XML format that became an OGC standard in 2008 and can hold styling information. Raster overlays are not written inside KML itself but travel with it in a zipped KMZ file.
  • GeoJSON and TopoJSON. GeoJSON is a JSON format for vector features and is specified in IETF RFC 7946. TopoJSON stores each line segment once as an arc that several polygons can reference, so a border shared by two features is stored only once and the file is more compact.
  • Other text files. GPX files, popular for GPS tracks, and CSV files with longitude (X) and latitude (Y) columns can be read by many GIS programs.

Raster data and georeferenced images

Penn State notes that most raster formats, including JPEG, PNG, TIFF and BMP, are openly documented and do not require royalties or attribution. A raster file only becomes geospatial when it is georeferenced, that is, tied to a position on the Earth. The Library of Congress recommends GeoTIFF and OGC GeoPackage for raster and georeferenced images, and accepts a plain TIFF only when it is accompanied by a TIFF world file (.tfw or .tifw) that carries the positioning information.

Databases are not file formats

Spatial databases such as PostGIS and SpatiaLite are a different kind of thing from the files above: they are database systems that hold spatial data, not formats you can attach to an email. Mixing the two up is a common reason that a data management plan names a database but never says what will be deposited. GeoPackage sits in between, because it is a single file that is itself a database. The OGC describes it as an open, portable format built on a SQLite container, and says it can store vector features, tile matrix sets of imagery and raster maps, and non-spatial tabular data without intermediate translation. The OGC lists version 1.4.0 (document 12-128r19) as the current release on its standards page.

Types: a format comparison

The data table below compares the formats named by the Library of Congress and Penn State by data model, file structure, governing body and how the Library of Congress places each one for preservation. It combines what no single source publishes together: Penn State describes the formats and the Library of Congress ranks them, and the table lines the two up.

Where it matters for labs and research offices

Depositing and preserving geospatial data

The Library of Congress Recommended Formats Statement section VII covers GIS and geospatial material and is a useful external yardstick for what a repository or archive might prefer, even when you are not depositing with the Library. Three of its rules change what a research team should do.

  1. Prefer the most complete data. The statement asks for all layers and appendices, even if the format is proprietary, with a preference for preserving the native format and projection of the data. Converting everything to a neutral format and discarding the original is therefore not the recommended default.
  2. Keep the multi-file formats whole. A shapefile that arrives as a lone .shp is unusable, because the statement lists the SHP, SHX and DBF files as the minimum, with a PRJ file (the projection) and an XML file (metadata) highly recommended.
  3. Record how the data was made. Where the format allows, include information about how the data was created, collected and processed after collection, and point readers to the ISO 191xx standards and Federal Geographic Data Committee (FGDC) metadata guidance.
Deposit element What the Library of Congress statement says
Vector data, ranked formats Preferred is the most complete data, native format and projection. Acceptable vector formats compatible with widely adopted GIS: Shapefile, Esri File Geodatabase, OGC GeoPackage, GeoJSON, KML and GML
Raster and georeferenced images GeoTIFF, OGC GeoPackage, TIFF with a world file, and GML in JPEG 2000
Vector and raster combined Esri File Geodatabase, OGC GeoPackage, formats supported by open source libraries such as GDAL, OGR and GeoTools, TerraGo GeoPDF and Geospatial PDF
Delivery method, in order Public download URLs, then automated private download URLs with any necessary API keys or credentials, then hard drives
Metadata ISO 191xx standards and FGDC guidance; creation, collection and post-processing information where the format allows
Technological measures No digital rights management or encryption that controls access to or prevents use of the files

The statement also attaches a caution to GeoJSON: it “may have scalability issues.” That matters for large survey layers, where a format that suits a web map may not suit an archive.

Questions to settle before collecting

Because the Library of Congress asks for native format and projection, the coordinate reference system belongs in the project documentation from day one, not in a later clean-up. The same applies to the multi-file question: if the team will share shapefiles, say in the plan that all component files, including the PRJ file, are kept together. Where spatial metadata is part of a wider dataset description, the guide to descriptive metadata for datasets shows how to structure the record that sits next to the spatial files.

Common misunderstandings

“A shapefile is one file”

It is a set of files. Penn State and the Library of Congress agree on the three required components, and the Library of Congress adds the PRJ and XML files as highly recommended. Sharing only the .shp file leaves out components both sources treat as required.

“GeoPackage and PostGIS are the same kind of thing”

PostGIS is a spatial database. GeoPackage is an open file format that uses SQLite as its container, so it can be handed over as a single file.

“A CSV with coordinates is a complete geospatial dataset”

Penn State lists CSV files with X and Y columns as something many GIS programs can read, but a plain table of coordinates has no projection file of its own. The Library of Congress asks for native projection to be preserved, so state the coordinate reference system in the documentation that accompanies any table of coordinates.

“The open format is always the best archive copy”

The Library of Congress statement puts the most complete data first, even if proprietary, and treats the open formats as acceptable alternatives for compatibility. It does not tell depositors to throw away the native copy.

Frequently asked questions

What is geospatial data?

According to the USDA Forest Service, it is information that describes objects or other features with a location on or near the surface of the Earth. In research files it is stored as vector data, raster data or coordinate tables.

What is the difference between vector and raster geospatial data?

Per Penn State’s lesson, vector formats store the geometry (vertex coordinates) and attributes of each feature, while raster formats such as TIFF are image formats that become geospatial once georeferenced. GeoPackage and Esri File Geodatabase can hold both, according to the Library of Congress and OGC pages cited below.

Which geospatial file format is best for preservation?

There is no single answer in the sources. The Library of Congress ranks the most complete native data first, and lists Shapefile, Esri File Geodatabase, OGC GeoPackage, GeoJSON, KML and GML as acceptable vector formats, and GeoTIFF and OGC GeoPackage for raster data.

Which files make up a shapefile?

The minimum is .shp, .shx and .dbf. The Library of Congress also recommends a .prj file for projection information and an XML file for metadata, and allows .sbn and .sbx index files.

What metadata should accompany geospatial data?

The Library of Congress points to the ISO 191xx standards and FGDC guidance, and asks for information on how the data was created, collected and processed after collection, to the extent the format allows.

Sources

Data: Geospatial file formats: data model, structure, governing body and Library of Congress placement

Compares common geospatial file formats by data model, file structure and governing body as described in Penn State's GEOG 585 open-formats lesson and the OGC GeoPackage page, and by placement in the Library of Congress Recommended Formats Statement section VII (checked 2026-11-20). A format is marked not listed when the Library of Congress page does not name it.

Geospatial file formats: data model, structure, governing body and Library of Congress placement
FormatData modelStructure and governing bodyLibrary of Congress vector placementLibrary of Congress raster placement
ShapefileVectorSeveral files with one root name; minimum .shp, .shx, .dbf; specification published by Esri; PRJ and XML highly recommendedAcceptableNot listed
Esri File GeodatabaseVector and rasterNot described in the sources read beyond its listingAcceptableListed for combined vector and raster data
GeoPackageVector features, raster tiles and tabular dataSingle SQLite-based file; defined by OGC; version 1.4.0 is current on the OGC pageAcceptableAcceptable
GeoJSONVectorJSON text; IETF RFC 7946Acceptable, may have scalability issuesNot listed
KMLVector, with raster overlays through KMZXML; OGC standard since 2008AcceptableNot listed
GMLVectorListed by the Library of Congress; not described by Penn StateAcceptableGML in JPEG 2000 acceptable
GeoTIFFRasterListed by the Library of Congress; not described by Penn StateNot listedAcceptable
TIFF with world fileRasterTIFF plus .tfw or .tifw world fileNot listedAcceptable
TopoJSONVectorStores shared borders once as arcs; described by Penn StateNot listedNot listed

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about Geospatial Data: Vector, Raster and File Formats for Research

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →