I want to map the geographic extents / bounding boxes of a lot of EPSG CRSes. At least, those with a rectangular geographic extent.

For example, take epsg:2004, visiting that page shows the extent (both projected and geographic).

enter image description here

There are several sites with this info, which make it trivial to find the extent for a single CRS at a time

Is there an easy way to extract this information off-line using QGIS, proj4 or other FOSS tools? Preferably without needing to parse the WKT/proj4 strings (which are easy enough to find, they're sitting in any postgis-enabled database)

Online queries (to an API or web service) would be good too.

Other things I've looked at:-

  • I don't see anything in the QgsCoordinateReferenceSystem class for this, so I assume that qgis doesn't do any bounds checking and throws all the points at proj4, which will complain (with a "forward projection failure") if any points fall outside the valid bounds.

  • Also, pyproj (the python wrapper for proj4) doesn't seem to be able to extract this info, it's really just for transforming between CRSes.


Following BradHard's suggestion, I registered on epsg.org and built the postgres database using the scripts provided.

Then it was simple matter to join the CRS to the area...

  epsg_coordinatereferencesystem.area_of_use_code = epsg_area.area_code
  and epsg_coordinatereferencesystem.coord_ref_sys_code = 27700;

3 Answers 3


You can download the EPSG data from http://www.epsg.org/DownloadDataset after you register. No cost to register, and no delay between registration and download.

There are two formats that might be useful - a set of PostgreSQL scripts (also other databases, but PostgreSQL is the one I checked) that insert data, so you can do a query of the epsg_area table. The data going in looks like:

INSERT INTO epsg_area VALUES ( 1027, 
'American Samoa', 
'American Samoa - onshore and offshore.', 
'ISO 3166 Maintenance Agency.  ftp://ftp.fu-berlin.de/pub/doc/iso', 
'2002.341 2005.890 2011.068', 
0 );

So you can see what you'd be able to get out.

There is also a set of Area polygons in shapefile format (i.e. they're all in one shapefile). That might not be so useful if you want to do some finer grained filtering (because of the relative ease of SQL), but if you're just planning to drop them into a GIS application anyway, it might be an easier option.

  • thank you! I built out the postgres database and it looks like it'll do what I was after. I've confirmed by querying a few familiar CRSes, joining them to areas, and extracting the extent fields. After testing with several CRSes it gives the same results as epsg.io, so I suspect that's how they do it.
    – Steven Kay
    Aug 22, 2015 at 15:45

Download the MS Access database and/or the polygon shapefiles from the EPSG Geodetic Dataset Registry (upper right, "export registry"). You do have to register, but we don't spam or sell the list of registered users.

The MS Access database contains the rectangular extent areas of use only.

Or you can download the files from the OGP website, same login requirement.

Disclosure: I'm on the subcommittee that maintains the registry.

  • thank you - have tried both sites. Found problems opening the gml files in QGIS, but that's for another question. I'll have a look at the access db next time I'm at a Windows machine (support for Access can be patchy on Ubuntu)
    – Steven Kay
    Aug 22, 2015 at 15:56

You can pull this out of the DBs that ship with GeoTools as well. There is a method on CRS for it whose name escapes me but should be obvious.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.