Passage Data

Check a file →

How to get a shapefile into GBIF

Shapefile → Darwin Core Archive

What you are seeing — your survey lives in a shapefile, and every route into GBIF assumes you already have Darwin Core.

The short answer

GBIF does not ingest shapefiles. It wants a Darwin Core Archive: a zip of a delimited table, a meta.xml naming each column's term, and an eml.xml describing the dataset. Most publishers never build that zip by hand. They load a flat table into an IPT (the Integrated Publishing Toolkit, often hosted by their national node), and the IPT builds the archive.

So the hard part is the export, not the publishing. By the time your data reaches an IPT it is a table. Every decision that can silently corrupt it was made on the way out of the shapefile. Four go wrong, in the order they bite.

The rest of the answer — 5 more points

① The CRS, the big one. A shapefile stores coordinates in whatever system its .prj declares, and exporting to CSV does not reproject them unless you ask. If the .prj names a UTM zone, a state plane or a national grid, your latitude column gets metres. Six or seven figures are at least obviously wrong. The quiet case is worse: degrees on a different datum (NAD27, ED50) export as plausible latitudes tens to hundreds of metres off. Nothing downstream will query them.

And Darwin Core does not rescue you, because it does not assume WGS 84. decimalLatitude is defined as "a geographic latitude (in decimal degrees, using the spatial reference system given in dwc:geodeticDatum)". The datum is whatever you declare. So reproject to EPSG:4326 and fill geodeticDatum; TDWG recommends the EPSG code. Without a declared datum, every downstream user has to guess, and they will guess WGS 84.

② Points or polygons: a decision no tool should make for you. Darwin Core's coordinate fields describe a point. Reducing a polygon or line to a centroid invents a coordinate nobody recorded. For a crescent, a ring or a river reach, the centroid is not even inside the feature. Darwin Core has fields for this: footprintWKT for the geometry and footprintSRS for its reference system. footprintSRS is declared independently of the point, so a footprint in the survey's projection and a point in WGS 84 can both be true. We refuse non-point geometry by name rather than turning it into a centroid.

③ Your column names were already cut. Shapefile field names stop at 10 characters, so coordinateUncertaintyInMeters became coordinate when the file was saved. The original spelling cannot be recovered from it. The cap is not in the shapefile specification, which hands the attribute table to dBASE. The dBASE field descriptor holds 11 bytes for a name: ten characters and a terminator. ArcGIS enforces that as error 000142. A tool that maps columns by header name is working from a cut, ambiguous string. That is why we confirm a column from the values inside it.

④ Encoding, which bites last and hardest on names. A .dbf does not reliably state its character set. A .cpg file beside it names the encoding. Without one you are guessing, and the usual answer is a Windows single-byte code page. Get it wrong and accented place names and vernacular names arrive garbled. A garbled species name is not cosmetic: it will not match anything.

The export, in order

  1. Open the .shp in QGIS (free) and read the layer's CRS. Compare it with the .prj: a missing or wrong .prj is common, and QGIS will show you a guess.
  2. Reproject to EPSG:4326 if it is anything else, as an explicit step. Do not rely on the export to do it.
  3. Decide points or footprints before exporting. Points → Save Features As → CSV with Geometry: AS_XY. Polygons → keep the geometry as WKT and plan to land it in footprintWKT with footprintSRS.
  4. Set geodeticDatum to EPSG:4326 in the exported table, as a real column. It is one value repeated on every row and it removes an ambiguity nobody downstream can resolve for you.
  5. Write down the survey's actual positional accuracy in metres while you still remember it — it becomes coordinateUncertaintyInMeters. If the point is a polygon's centroid, the honest uncertainty is the radius of that polygon, not your GPS's accuracy.
  6. Check the encoding on any column holding names, and re-export with an explicit UTF-8 setting if accents look wrong.
Bring the zip: we read the shapefile directly

Upload the zipped set (.shp, .shx, .dbf and .prj together). We read every column, the coordinate system as the .prj states it, and the encoding. We also name each column cut to 10 characters, and any names the cut made identical. We do not reproject your coordinates or turn polygons into points; the steps above are still yours. Free during the testing period. No account needed. Without one, what we read trains our reader (names removed); signed in, nothing is kept.

Check the file you have →

Related