Missing or Unknown Projection: How to Fix It

Missing or Unknown Projection: How to Fix It

The email arrived on a Monday morning with a zipped folder attached and a single line of text: “Here is the road data you asked for.” I unzipped it and loaded the layer. It appeared as a tiny dot in the middle of the screen, thousands of kilometers from anything. The software shrugged and reported “unknown coordinate system”. I opened the attribute table, and the coordinates told me nothing helpful: 451,203.7 and 5,410,992.4. Meters? Feet? Which zone? The folder contained a .shp, a .shx and a .dbf, and no .prj file. The sender, when I called, had no idea. He had exported it from a colleague’s computer, and the colleague was on vacation.

I have seen this situation hundreds of times, and I have a method for it. The method begins with a rule that I want to put at the very top of this guide, because it is the difference between fixing the problem and making it worse: never guess a coordinate system and apply it to make the data “look right” without verifying it. A wrong guess doesn’t fix a missing projection. It hides it, and passes the error to everyone downstream.

In this guide I’ll explain why coordinate systems go missing, how to recognize the problem, how to investigate like a detective using the clues that every dataset carries, how to assign the right CRS once you have identified it, and how to make sure it never happens again. It is a deep dive into item two of Top 10 Most Common GIS Errors and How to Fix Them, and it builds on Coordinate Reference Systems (CRS) Explained Simply.

Diagram: Define the CRS only when you can prove which one it is; never reproject data whose CRS is unknown.
Define the CRS only when you can prove which one it is; never reproject data whose CRS is unknown.

What “Missing or Unknown CRS” Means

Spatial data stores coordinates as numbers. The numbers only mean something if you know the coordinate reference system that gives them a position on the Earth: the datum, the projection and the units. When that information is absent or unreadable, you have one of these situations.

  • Missing: no CRS information at all. The data is just numbers.
  • Unknown: there is some information, but the software cannot interpret it. For example, a damaged or unusual .prj file.
  • Undefined by design: formats that don’t carry a CRS, such as CSV tables, CAD drawings and plain images.
  • Wrong: a CRS is defined, but it is not the one the coordinates are really in. (This case is covered in Layer Not Aligning? Solving CRS Mismatch Problems.)

Why It Goes Missing

  • A Shapefile without its .prj file. The most common cause. The .shp, .shx and .dbf travel without the small file that holds the CRS, because someone emailed only some files, or because the export tool didn’t write one.
  • Data from CSV or spreadsheets. A table with X and Y columns says nothing about the system the numbers use.
  • CAD and design drawings (DXF, DWG), which use local drawing coordinates without a defined geographic system.
  • Scanned maps and images, which have no coordinates at all until georeferenced. See Georeferencing a Scanned Map Step by Step.
  • GPS data exported without metadata, or in unusual formats.
  • Old or proprietary formats that store the projection in a separate file or in an unsupported way.
  • Corrupted or non-standard .prj files, with unusual names or slightly different wording that the software can’t match.
  • Files downloaded from a website that stripped some files.
  • Conversions that dropped the CRS, by accident or because a tool didn’t support it.
  • Zip files extracted incorrectly, or only partially.
  • GML or XML without an srsName, and GeoJSON with an obsolete CRS member.
  • Datasets from a “local” survey system, such as a construction site grid, which isn’t tied to a national system at all.
  • Databases with SRID 0 or -1, meaning unspecified.

Symptoms

  • A warning in the software: “layer has no CRS”, “unknown spatial reference” or “undefined”.
  • The layer doesn’t appear where it should. It is far away, tiny or invisible.
  • The layer appears at coordinate 0,0 (the “null island” in the Atlantic Ocean), or at a place nowhere near your data.
  • Coordinates look wrong for the area: values like 451203 and 5410992 where you expected something like 2.35 and 48.85.
  • Other layers don’t line up with it when you load them together.
  • Reprojection fails or gives nonsense, because the tool doesn’t know the source system.
  • Distances and areas are impossible, because the software assumes a default unit.
  • A database column has SRID 0, or geometry functions complain about mixed SRIDs.

The Rule: Investigate, Don’t Guess

Why am I so insistent? Imagine you assign “WGS 84” to data that is really in a national projected system. The software will now treat 451,203 as a longitude. It is impossible, so the data will draw off the map. Frustrated, you try other codes at random until one looks roughly right. A code that puts the layer in the right country can still be off by hundreds of meters (the wrong datum), or be scaled wrongly (the wrong units), or be accurate in one corner and wrong in another (the wrong zone or projection). If you save that result, you have created a dataset with wrong coordinates and a confident label. Everyone who uses it afterwards will trust the label.

So: gather evidence, form a hypothesis, test it against something you trust, and document it.


Step 1: Look for Clues in the Package

Before analyzing numbers, look for information that already exists.

Check the files

  • Look for other files with the same base name: .prj (projection), .cpg (encoding), .xml or .shp.xml (metadata), .aux.xml (GDAL auxiliary), .qpj (QGIS projection file, which contains a projection definition), .sbn and others. A .qpj or an XML file may contain the CRS even when the .prj is missing.
  • Read any README, documentation, delivery note or email.
  • Check the file name and folder name. Names such as roads_utm31n, parcels_epsg2154 or lambert93 are common and very helpful (and sometimes wrong, so verify).
  • Check the attributes: columns named lat, lon, x_utm, easting, northing or zone.
  • Open the metadata (see Metadata in GIS: Why It Matters and How to Create It), embedded in the file or provided separately.

Check the format

  • GeoPackage and GeoTIFF normally carry their CRS inside. If it says unknown, the data was created without one.
  • GeoJSON per the current standard is always WGS 84 in longitude and latitude order. Older files might declare something else in a CRS member.
  • Read the header with GDAL tools: ogrinfo -so -al file.shp for vectors, gdalinfo file.tif for rasters. They list the CRS, if any, and the extent.

Ask

Ask the provider. A short, specific question usually gets the answer: “What coordinate reference system and datum is this dataset in, and what units?” If the sender doesn’t know, ask who produced it originally. In an organization, someone will remember. See Open Data Portals by Country for how national agencies publish their official systems.

Look at the source of the data

  • A national agency nearly always uses its country’s official system. Find the official CRS for that country.
  • GPS devices and web services nearly always use WGS 84 in latitude and longitude.
  • Web maps and tile services use Web Mercator (EPSG:3857).
  • CAD and engineering plans often use a local grid that may be tied to a national system through a documented transformation.
  • Satellite and aerial imagery usually carries its own georeferencing.

Step 2: Read the Numbers

If the clues don’t give the answer, the coordinates themselves tell you a great deal. Check the extent of the layer: the minimum and maximum X and Y.

First question: degrees or linear units?

  • X between -180 and 180, and Y between -90 and 90: almost certainly geographic coordinates (degrees), probably WGS 84 or a national geographic system.
  • Much larger numbers (thousands to millions): a projected system, with units usually in meters, sometimes in feet.

Typical patterns for common systems

Pattern in the coordinatesLikely system
X from about -180 to 180, Y from -90 to 90Geographic coordinates (degrees)
X and Y between about plus and minus 20,037,508Web Mercator (EPSG:3857)
X (easting) between about 166,000 and 834,000, Y (northing) from 0 to about 9,300,000A UTM zone (northern hemisphere)
Same, but Y near 10,000,000 minus a number (values between about 1,000,000 and 10,000,000)A UTM zone, southern hemisphere
X from about 100,000 to 1,300,000 and Y from about 6,000,000 to 7,200,000The French national projection (Lambert-93)
X from 0 to about 700,000 and Y from 0 to about 1,300,000The British National Grid
Numbers with a false easting of 500,000 and a central X valueAny Transverse Mercator system, such as UTM
Small numbers, from 0 to a few thousandA local engineering grid, or a drawing with arbitrary origin

These are patterns, not proofs. Many systems overlap in range, and numbers alone cannot identify a UTM zone, since the same easting and northing repeat in every zone. That is why you need the place.

Use the location

If you know roughly where the data is, you can narrow the candidates enormously. A dataset of a city in a particular country is almost certainly in that country’s official system, or in the UTM zone that covers the city.

Estimate the latitude from a northing

In a northern-hemisphere UTM system, the northing (Y) is approximately the distance from the equator in meters. Divide by about 111,000 (the meters in one degree of latitude) to get an approximate latitude. A northing of 5,410,992 gives roughly 48.7 degrees north. Combined with an easting of about 451,000 (which is roughly 49 kilometers west of the central meridian of the zone, since the false easting is 500,000), it suggests a location in the northern mid-latitudes, near the western edge of a zone. Knowing the longitude from context identifies the zone.

Check the units

If distances come out about 3.28 times too large or small compared with a known distance, you may have feet instead of meters. Coordinates for some regional systems, such as certain state plane systems in the United States, use feet, and there is a small difference between the international foot and the US survey foot that matters for large coordinates.


Step 3: Form Hypotheses and Test Them

Now propose candidate systems, usually two to five, and test each one.

The test procedure

  1. Load a trusted reference in a known system: a basemap, a national boundary layer, a satellite image or a dataset that you know is correct.
  2. Assign a candidate CRS to your layer (temporarily, as a layer-level setting, without saving the data).
  3. Compare the position of recognizable features: road intersections, river bends, a coastline, a building corner. Check several places across the extent, not just one, and zoom in close.
  4. Look at the pattern of any error:
    • Aligned everywhere, to the meter: probably correct.
    • Roughly in the right place, consistently shifted by tens to hundreds of meters: the right projection but the wrong datum.
    • Right in one corner, increasingly wrong elsewhere: the wrong zone or the wrong projection.
    • Scale wrong: wrong units.
    • Wildly wrong: completely different system.
  5. Test with a known coordinate. If you can find a landmark whose true coordinates you know, in the candidate system, check that it lands on the landmark.
  6. Eliminate the candidates that fail, and keep the one that fits everywhere.
  7. Write down what you tested and why you decided.

The datum trap

Different datums for the same region can differ by a meter or by hundreds of meters. A candidate that looks “very close” but is consistently shifted is probably the right projection with the wrong datum. Try the alternatives that were commonly used in that country, such as an older national datum and a modern one. Using the right datum matters. See Map Projections: How to Choose the Right One, and the next article in this series, Layer Not Aligning? Solving CRS Mismatch Problems.

How certain can you be?

Sometimes you can’t be 100 percent sure, especially for data with a modest accuracy. Be honest: record the CRS as “assumed, verified against reference X, residual error about Y meters”. Evidence and honesty beat false certainty.


Step 4: Assign the CRS (Without Moving the Data)

Once you are confident, define the CRS: you tell the software what system the coordinates are already in. This changes no numbers. It adds a label.

It is crucial to understand the difference between:

  • Defining (assigning, setting) a CRS: “these coordinates are in EPSG:32631.” Only a label.
  • Reprojecting (transforming): converting the coordinates to a different system. New numbers.

For missing-CRS data, you define first, and reproject afterwards if you need a different system. Doing a “reproject” from an unknown source does not make sense, and doing a “define” with the wrong code corrupts the meaning of the data.

In QGIS

  • Temporarily: right-click the layer, choose Layer CRS, and select the system. This sets the layer’s CRS within the project, without changing the file.
  • Permanently: use the Processing tool Assign projection, or export the layer (Export > Save Features As) choosing the correct CRS in the dialog. For a Shapefile, QGIS then writes a .prj file next to the data.
  • Use the CRS selector’s search box to find a system by its name, its EPSG code or the area where it is used.

In ArcGIS Pro

Use the Define Projection tool (Data Management toolbox), which writes the spatial reference to the data. Use the Project tool only when you want to transform to a different system.

With GDAL

# Vector: assign a CRS without transforming (note -a_srs, not -t_srs)
ogr2ogr -f GPKG roads.gpkg roads.shp -a_srs EPSG:32631

# Raster: set the CRS in the file header
gdal_edit.py -a_srs EPSG:32631 image.tif

# Inspect a file
ogrinfo -so -al roads.shp
gdalinfo image.tif

In ogr2ogr, -a_srs assigns a CRS, and -t_srs transforms to a new one. Confusing them is the same mistake as confusing Define and Project.

In Python

import geopandas as gpd

gdf = gpd.read_file("roads.shp")
print(gdf.crs)                         # None: the CRS is missing

gdf = gdf.set_crs(epsg=32631)          # assigns the label, changes no coordinates
# If a wrong CRS is already set and you are certain, use: gdf.set_crs(epsg=32631, allow_override=True)

gdf_wgs84 = gdf.to_crs(epsg=4326)      # transforms, when you want a different system
gdf.to_file("roads_fixed.gpkg", driver="GPKG")

In PostGIS

-- SRID 0 means unspecified. Label the data (this does NOT move the geometry):
SELECT UpdateGeometrySRID('roads', 'geom', 32631);

-- Or for one-off geometries:
SELECT ST_SetSRID(geom, 32631) FROM roads;

-- Transform to another system afterwards:
SELECT ST_Transform(ST_SetSRID(geom, 32631), 4326) FROM roads;

See Spatial SQL Cheat Sheet and Python for GIS: Getting Started.

For tables with coordinate columns

When you create points from a CSV, you must say which system the coordinates are in.

  • QGIS: Layer > Add Layer > Add Delimited Text Layer, and choose the Geometry CRS in the dialog.
  • ArcGIS Pro: Display XY Data, with the Coordinate System of Input Coordinates.
  • GeoPandas: gpd.GeoDataFrame(df, geometry=gpd.points_from_xy(df.x, df.y), crs="EPSG:32631").

Finding the right code

  • Use the CRS search of your software, or a reference website for coordinate systems (searching by name, country or code and viewing the area of use).
  • Read an existing .prj file. Its text names the system (for example, a projected system named after a datum and a UTM zone). Tools can often match it to an EPSG code. Tools such as gdalsrsinfo and projinfo can display the details of a definition.
  • Check the area of use. A code is only valid for the region it was designed for.

Special Situations

A .prj file exists but QGIS or ArcGIS says “unknown”

The .prj may use a slightly non-standard wording (a different “flavor” of the WKT text), or a custom definition. The software cannot match it to a known code, but it may still work. Look at the content, identify the system and, if it is a standard one, assign the standard code. If the .prj is empty or corrupted, treat the data as having no CRS.

Georeferencing instead

If the data is a scan or an image with no coordinates, you don’t assign a CRS. You georeference it: place it using control points. See Georeferencing a Scanned Map Step by Step.

CAD drawings

CAD data may be in a local grid. The best answer comes from the surveyor or engineer who made it: which control points tie it to a national system, and what is the transformation? Without that, you can only do an approximate fit by matching features to a reference.

Mixed systems in one dataset

Occasionally a dataset combines features from different systems, typically because several people contributed. Check the extents of subsets of features, and look for clusters in the wrong places.

The CRS is declared, but you doubt it

That is the “wrong CRS” case. The tests in Step 3 work the same way. Compare against a trusted reference, and if the label is wrong, reassign it carefully, with allow_override or the equivalent. See Layer Not Aligning? Solving CRS Mismatch Problems.

Data with unknown vertical datum

Elevations may refer to different vertical references. That is a separate problem from the horizontal CRS, but similar in nature. See Digital Elevation Models (DEM) and Terrain Analysis.


A Worked Example: The Road Layer With No .prj

Problem: a road Shapefile arrives with no .prj. The extent is X from 442,000 to 458,000 and Y from 5,408,000 to 5,420,000.

  1. Look for clues. No README, but the folder is named “roads_paris_2023”. The provider says it came from a regional transport office.
  2. Read the numbers. The values are large and positive, so it’s a projected system in meters. A northing of about 5.4 million suggests a latitude near 48.7 degrees north. An easting around 450,000 is close to the middle of a zone.
  3. Use the location. The study area is Paris, which falls in UTM zone 31 north, and in the French national system. The numbers don’t fit the French national system’s typical ranges (Y would be near 6.8 million), so that candidate fails. UTM zone 31 north remains.
  4. Candidates: WGS 84 / UTM zone 31N (EPSG:32631) and ETRS89 / UTM zone 31N (EPSG:25831). These two differ by about a meter or less.
  5. Test. Assign EPSG:32631 to the layer temporarily, and overlay a trusted street map. The road intersections align everywhere, to within the accuracy of the data.
  6. Check a few intersections at the corners of the extent, to rule out a zone or projection error.
  7. Decide. The data agrees with UTM 31N. Since the two datum candidates differ by far less than the data’s accuracy, the choice isn’t critical, but you record the choice: “assigned EPSG:32631, verified against OpenStreetMap at five locations.”
  8. Define the CRS permanently by exporting the layer to a GeoPackage with the CRS stored inside. Keep the original files untouched.
  9. Write it in the metadata, including the evidence, and tell the provider so that the .prj is included next time.
  10. Reproject to the project’s working CRS if different. See Coordinate Reference Systems (CRS) Explained Simply.

Prevention

  • Always include the CRS when you share data. For Shapefiles, send the whole set, including the .prj, in one zip. Better, use GeoPackage or GeoTIFF, which carry the CRS inside the file. See Shapefile vs. GeoJSON vs. GeoPackage: Which Format to Use?
  • State the EPSG code in your delivery notes and metadata, together with the datum, units and vertical reference. See Metadata in GIS: Why It Matters and How to Create It.
  • For CSV files, add a column for the CRS, or name the columns clearly, such as x_utm31n, y_utm31n, or lon_wgs84, lat_wgs84, and include a README.
  • Check every incoming dataset for its CRS, immediately, before doing anything else.
  • Make it a team rule that no data enters the shared project without a defined CRS.
  • Don’t strip metadata during conversions. Check that tools preserve the CRS.
  • Pick standard systems for your organization and document them.
  • Train colleagues in the difference between defining and reprojecting.
  • Keep a log of the CRS decisions you make for unlabeled data.

Quick Reference: Symptoms and First Actions

SymptomFirst action
Warning “unknown CRS” on loadLook for a .prj, .qpj and metadata, and read the coordinate extent
Layer appears as a dot far away or at 0,0Check the extent values, and suspect a projected system treated as degrees
Coordinates are in the hundreds of thousands or millionsA projected CRS in meters or feet: identify it using the place and the patterns
Coordinates between -180 and 180Probably geographic. Check the datum with a reference
Candidate CRS puts data in the right area but shiftedRight projection, wrong datum: try alternative datums
Distances are 3.28 times too large or smallFeet versus meters
PostGIS reports SRID 0Identify the CRS, then UpdateGeometrySRID
A .prj exists but is “unknown”Read its text, then assign the matching standard code
Image or scan with no coordinatesGeoreference it with control points

Common Mistakes

  • Guessing a CRS to “make it fit” and saving the result.
  • Confusing define with reproject. Reprojecting data with no source CRS makes no sense, and defining the wrong CRS corrupts it.
  • Trusting the first candidate that looks close, without checking in several places.
  • Ignoring the datum, and accepting an error of tens of meters.
  • Assuming that everything is WGS 84 because GPS and web maps use it.
  • Assuming that coordinates alone identify the UTM zone.
  • Forgetting about units (feet versus meters).
  • Not documenting the decision, so the next person starts from scratch.
  • Overwriting the original data with the “fixed” version.
  • Sending data without its CRS to someone else, and perpetuating the problem.
  • Not asking the provider, when a two-line email would answer it.

Final Thoughts

A missing projection feels like a tiny technical glitch. It is actually a missing meaning. The coordinates are still there, but without the system that explains them, they point nowhere. The skill of recovering that meaning, by gathering clues, reading numbers, testing candidates against trusted references and documenting the decision, is one of the most valuable that a GIS professional can have. It turns a dead end into a puzzle, and the puzzle almost always has a solution.

The next time data arrives with no .prj, resist the urge to try codes until something appears on the map. Instead, spend ten minutes as a detective. You will arrive at the answer faster, with confidence, and with a note that tells the next person how you got there.

Where to go next: if your layers have a CRS but still don’t line up, read Layer Not Aligning? Solving CRS Mismatch Problems, and for the container format that never loses its CRS, Shapefile Limitations and Encoding Problems (Field Names, UTF-8).

Rachid Khouri

Rachid Khouri

Rachid Khouri is a CAD, BIM and GIS professional, Autodesk Authorized Developer, trainer and technical author with more than 30 years of experience, working with AutoCAD since 1992. He founded GISauthority.com to share practical guidance on GIS and spatial technologies.