CSV Tools

Sample Shapefile

A downloadable sample Esri Shapefile — zipped .shp, .shx, .dbf, and .prj members — containing 15 real US landmark point features with names, descriptions, and elevations. Use it to test GIS imports, DBF parsing, and shapefile converters.

Geo Shapefile Binary format

sample-locations-shapefile.zip

Data Preview

15 rows × 5 columns
1namedescelevationlatitudelongitude
2Mount RainierGlaciated stratovolcano in Washington439246.85230000000001-121.7603
3Half DomeGranite dome above Yosemite Valley269437.7459-119.53320000000001
4Grand Canyon South RimOverlook near Grand Canyon Village209336.0544-112.1401
5Old FaithfulPredictable geyser in Yellowstone224044.4605-110.8281
6DenaliHighest peak in North America619063.0692-151.007
7Angels LandingRidge viewpoint in Zion Canyon176537.269-112.9469
8Longs PeakFourteener in Rocky Mountain National Park434640.2549-105.616
9Mauna KeaDormant volcano on the island of Hawaii420719.8206-155.4681
10Crater LakeDeepest lake in the United States188342.9446-122.10900000000001
11Mount WhitneyHighest summit in the contiguous United States442136.5785-118.29230000000001
12Badwater BasinLowest point in North America, Death Valley-8636.246100000000006-116.81720000000001
13Great Sand DunesTallest dunes in North America259037.7916-105.5943
14Cadillac MountainGranite summit in Acadia National Park46644.3528-68.2247
15Mount MitchellHighest peak east of the Mississippi203735.7648-82.2652
16Guadalupe PeakHighest point in Texas266731.8914-104.8607

Schema

Field Type Description
name string Landmark name, stored as a character field in the .dbf attribute table
desc string One-line description of the landmark; named desc because DBF field names are capped at 10 characters
elevation number Elevation in meters, stored as a numeric DBF field; negative for Badwater Basin
latitude number WGS84 latitude in decimal degrees, from the point geometry in the .shp member
longitude number WGS84 longitude in decimal degrees, from the point geometry in the .shp member

About the Shapefile Format

The Esri Shapefile is the longtime workhorse of GIS data exchange, dating to the early 1990s — and it is famously not a single file. A working shapefile is a set of sibling files sharing one basename, which is why this sample downloads as a zip containing four members:

  • sample-locations.shp — the geometry: 15 point features in a fixed binary layout
  • sample-locations.shx — a positional index so readers can seek to record n without scanning the .shp
  • sample-locations.dbf — a dBase III table with one attribute row per shape: name, desc, and elevation
  • sample-locations.prj — the coordinate reference system (WGS84) as well-known text; without it, coordinates are just unlabeled numbers

The format’s most notorious quirk shows up in this sample’s schema: DBF field names are limited to 10 characters, so the description column ships as desc — “description” simply does not fit and would be truncated by any writer. Other classic limits (2 GB file size, no null geometry distinction, single geometry type per file) do not bite at this scale, but the naming cap does. Note the .shp stores no elevation here; elevation travels as a plain DBF attribute.

How to open it

  • QGIS / ArcGIS — point either at the zip or the extracted .shp; the siblings are picked up automatically
  • geopandasgeopandas.read_file("sample-locations-shapefile.zip") reads the archive directly
  • ogrinfo / ogr2ogr (GDAL) — ogr2ogr -f CSV out.csv sample-locations.shp for a quick dump

Things to test with it

Badwater Basin’s elevation is −86 m, checking signed numeric DBF fields. If converted coordinates show trailing digits like 46.85230000000001, that is ordinary floating-point noise from reprojection passes, not corruption. The same 15 locations ship as GeoJSON, KML, KMZ, and GPX for comparison, and the Shapefile to CSV converter flattens this archive into rows without leaving your browser.

FAQ

4 questions
Why is the shapefile delivered as a zip?
Because a shapefile is not one file — it is a set of sibling files sharing a basename that only work together. Zipping keeps the set intact through a single download; unzip it before opening, or point tools that accept zipped shapefiles at the archive directly.
What is each file inside the zip for?
sample-locations.shp holds the point geometries, .shx is the positional index into the .shp, .dbf is a dBase table holding one attribute row per shape (name, desc, elevation), and .prj declares the coordinate reference system as WGS84 in WKT. Delete any one of them and most GIS tools will refuse the layer or lose information.
Which fields does the shapefile preserve, and why is one called desc?
All five columns survive, but DBF limits field names to 10 characters, so "description" cannot be stored under its full name and ships as desc. Longer names get silently truncated by most writers — a classic shapefile gotcha.
Is anything uploaded when I download or convert this file?
No. The zip is a static file served directly from this site, and the shapefile converter runs entirely in your browser — unzipping, DBF parsing, and reprojection included. Nothing touches a server.

Work With Shapefile Files 5 tools