Guide

What is a shapefile? A guide for landmen

A shapefile is the file format most GIS software uses to store tract boundaries, well locations and survey lines. If you've opened a file from the Railroad Commission, a county appraisal district or your own land team's GIS folder, you've used one. This guide covers what's actually inside a shapefile, why the projection file matters more than people think, where to find public ones, and how to open or convert one yourself.

Updated November 21, 2026

What a shapefile actually is

A shapefile isn't one file - it's a set that has to travel together. At minimum you need three: .shp holds the geometry itself (the points, lines or polygons), .shx is an index that links each shape back to its record, and .dbf is the attribute table, one row per feature, holding whatever data goes with it - a tract ID, an acreage figure, a well's API number.

Esri published the shapefile specification as a technical white paper in 1998, which is why software far beyond Esri's own, QGIS included, reads and writes the format today. Copy or email the whole set, not just the .shp - a .shp without its .dbf opens with no attributes attached, and most software won't open it at all without the .shx.

Diagram of a shapefile's .shp, .shx, .dbf and .prj files, which must stay together, plus the optional .cpg.
A shapefile is really a set of files sharing one base name. The .shp, .shx, .dbf and .prj have to stay together in the same folder; .cpg is optional. Diagram drawn by JB Field Services; file roles per the shapefile format

Why the .prj file matters

The fourth file in a shapefile set, .prj, states the coordinate system and datum the coordinates were measured in. Leave it out, or get it wrong, and your GIS software either guesses or places the tract somewhere it isn't - sometimes off by a few feet, sometimes off by enough to land the polygon in the wrong survey altogether.

The datum is the part that catches people. Texas data still shows up in NAD27 as often as NAD83 - the Railroad Commission's own downloadable layers, for instance, ship in NAD27 geographic coordinates - and the two don't agree: positions shift by tens of meters between them across Texas. Load a NAD27 shapefile into a project set up for NAD83 without accounting for the difference, and every tract in it is off by that much. The State Plane converter handles the NAD27-to-NAD83 conversion, along with the State Plane zones themselves, for Texas, Louisiana and New Mexico.

Where RRC and county shapefiles come from

Start with the Railroad Commission's own data sets available for download page: well, survey, pipeline and base map layers, free, county by county or for the whole state. It's the same survey and well data behind the RRC GIS Viewer, just packaged to load straight into QGIS or ArcGIS instead of a browser.

The survey layer traces back to the original Texas land surveys recorded at the General Land Office when the land left the public domain - see Texas abstract maps and GLO surveys, explained for how those surveys and abstract numbers work.

Many Texas county appraisal districts publish their own parcel shapefiles too. Coverage, format and cost vary by county - most post them free through an open-data site, a few charge or require a request - so check the specific county appraisal district's site for what's current.

Lease and unit boundary shapefiles for your own systems

Once you're past public sources and into shapefiles for your own lease ownership report, the geometry is the easy part. What makes the file useful is the attribute table - the .dbf - keyed to match: a tract ID that ties back to the report, the acreage, the lease or unit name, whatever your system tracks.

The common failure mode isn't bad geometry, it's drift - the polygons get updated and the report doesn't, or the other way around, and the two stop matching. Tract-level polygons that stay keyed to the lease ownership report, with merges and splits updated as title changes, are what keep a map and a report saying the same thing.

Opening one in QGIS or ArcGIS

In QGIS, use Layer > Add Layer > Add Vector Layer, browse to the .shp file and open it - QGIS picks up the matching .shx, .dbf and .prj from the same folder automatically, as long as they're all still together.

In ArcGIS Pro, click Add Data on the Map tab and browse to the .shp, or drag it in from a folder connection in the Catalog pane. Either way, ArcGIS and QGIS are just the two programs most land teams already have open - naming them isn't a partnership claim for either one, just a note on what the files work in.

KMZ to shapefile in QGIS

A KMZ - a zipped KML, the format Google Earth uses - opens in QGIS the same way a shapefile does: Layer > Add Layer > Add Vector Layer, then browse to the .kmz file. If it holds more than one folder of shapes, QGIS asks which to load.

To get a shapefile out of it, right-click the layer in the Layers panel, choose Export > Save Features As, set the format to ESRI Shapefile, set the file name, location and coordinate reference system, and click OK. Add the new .shp back into QGIS afterward to check it before you use it for anything. If you'd rather send over the KMZ, the deed, or the county and play and get the finished shapefile back instead, that's GIS mapping services.

FAQ

Do I need ArcGIS to open a shapefile, or does QGIS work?

QGIS opens a shapefile the same way ArcGIS does, and it's free. Most land teams end up with both open at different points, depending on who sent the file.

Why won't my shapefile open, or why does it look empty?

Usually a missing file from the set - the .dbf or .shx got left behind when the .shp was copied or emailed on its own. Make sure every file that came with it, including the .prj, moved together.

Is RRC's shapefile data really free?

Yes. The Railroad Commission's well, survey, pipeline and base map layers are free downloads, refreshed twice a week.

Would rather hand this off?

Send us the KMZ, the deed, or the county and play, and we'll build the unit and tract shapefiles, keyed to your lease ownership report, instead of you converting and reconciling them yourself.

Please wait for the security check above to finish, then try again.