Convert CSV to GSI

What a CSV to GSI conversion changes, where survey data can be truncated or misread, and when a plain CSV is the safer file to keep or share.

Most people looking for a CSV to GSI converter want to turn a spreadsheet of survey points into the GSI format used by Leica surveying instruments and software. This review explains what the conversion changes, where it can damage data without any visible sign, and when plain CSV is the better choice. No specific converter, instrument or firmware version was tested for this article. Claims about particular tools are therefore framed as checks you should run yourself.

What "GSI" means here

In this context, GSI usually means Leica Geo Serial Interchange, a line-based format for exchanging measurements and coordinates. Two variants are commonly documented, GSI-8 and GSI-16. The names refer to the number of characters available for each data value. If your instrument or office software asks for one variant, use that one, because the two are not interchangeable.

The abbreviation has other meanings. In database work, GSI often means a global secondary index on a DynamoDB table. That is a table feature, not a file format. Loading CSV data into such a table is an import task rather than a format conversion, and the rest of this article does not apply to it.

Is the conversion suitable for your use?

Convert to GSI when a device or program you depend on requires GSI for importing points, such as when uploading stakeout coordinates to a field controller. The main benefit is that the target can read the points directly, so nobody has to type them in. The decisive tradeoff is that GSI uses fixed field widths and coded fields. Anything that does not fit may be truncated, rounded or dropped, sometimes without a warning. Long point names, extra columns and high-precision values are the usual casualties.

Plain CSV is the better choice in several situations: when the target accepts a delimited or ASCII import, when people need to read or review the file, when you are archiving data, or when you need attributes that GSI has no field for. In most workflows, keep the CSV as the master copy and treat the GSI file as a generated export.

What the conversion actually changes

This conversion rewrites the stored characters. It does not change how text looks. Mirror text, upside-down text and Unicode "font" styling alter glyph appearance or display direction, but none of that is involved here. The converter restructures the data itself.

  • Structure: comma- or tab-separated columns become a sequence of coded fields, often called words. Each word begins with a word index that identifies what the value means, such as a point identifier or one coordinate component.
  • Width: each value goes into a fixed-width slot padded with leading zeros. GSI-8 allows far fewer characters per value than GSI-16.
  • Numbers: the decimal point is typically removed and the value is stored as a scaled integer with an explicit sign. A code within the field records the unit and the number of decimal places.
  • Content: header rows, blank columns and any column the converter does not map are usually left out.

Word-index assignments and unit codes are defined in Leica's documentation, and the target may expect particular choices. Check the converter's mapping against the reference for your equipment instead of assuming its defaults are correct.

Point,Easting,Northing,Elevation,Code
P101,512345.678,4123456.789,102.345,FENCE

The CSV row above shows how precision interacts with field width. At millimeter resolution, the easting 512345.678 becomes the nine-digit integer 512345678, and the northing becomes ten digits. Neither fits an eight-character GSI-8 value, so a GSI-8 export would have to reduce precision, cut digits or refuse the row. GSI-16 has room for both. The identifier P101 fits either variant, but a name longer than eight characters would not fit GSI-8. Whether FENCE survives at all depends on whether the converter maps a code column. No sample GSI output is shown here, because none could be verified against a specific instrument for this article.

Common ways meaning gets lost

  • Axis order: some CSV sources put easting first and others put northing first, and X and Y labels follow opposite conventions in different fields. A swapped mapping still produces a valid file, but every point lands in the wrong place.
  • Units: values must be in the unit the target expects, whether meters, US survey feet or international feet. The converter has to scale the numbers, because changing the unit label alone does not convert anything.
  • Decimal separators: files that use a comma as the decimal mark often use semicolons as delimiters. A converter that expects commas may split each number in two.
  • Field length: long point names and high-precision coordinates can exceed GSI-8 limits, as the example above shows.
  • Signs and leading zeros: make sure negative values keep their sign. Also make sure a spreadsheet has not stripped leading zeros from point names before conversion.
  • Character set: the target may not support non-ASCII characters in names or codes, so test them before relying on them.

Will the file stay usable after copying or sharing?

GSI depends on exact character positions, so it survives best when moved as a file rather than as pasted text. Pasting it into an email body, a chat message or a word processor can change line endings, trim or collapse spaces, apply automatic formatting or wrap long lines. Any of these can cause an instrument to reject the file or misread fields. Opening a GSI file in a spreadsheet and saving it again carries the same risk. Transfer the file as an attachment or on the storage medium the instrument uses, and edit it only in a plain-text editor, if at all.

GSI is hard for people to read. Values appear as long runs of digits without decimal points, and their meaning is carried by numeric codes. A screen reader will read those digits, but there are no column labels to tell the listener what each value is, so reviewing points by ear or by eye is slow and error-prone. Searching the file is also unreliable, because an elevation such as 102.345 is stored as a padded integer. Anyone who needs to check, discuss or edit the data should get the CSV or another labeled plain-text version alongside the GSI file.

Compatibility depends on the specific target. No instrument, controller or office program was tested for this article. A converter's claim of Leica compatibility, or one successful import on a single device, does not show that every model and firmware version will read the file the same way.

How to check a converted file

  • Confirm which variant, GSI-8 or GSI-16, and which word indexes your target expects.
  • Convert a small sample first. Include your longest point name, your largest coordinate, any negative value and a row with a code.
  • Import the sample into the target and compare every value against the CSV.
  • Count the points before and after conversion. This catches dropped rows and stray ones, such as a header misread as data or a blank line.
  • If the converter can turn GSI back into CSV, do a round trip and compare the result with the original.
  • Keep the original CSV unchanged.

Privacy and online converters

Survey coordinates can identify property, infrastructure or client sites. A converter's appearance or marketing does not tell you whether uploaded files are stored, logged or shared. Rely only on its written policy. If that policy is missing or unclear and the data is sensitive, use offline software or a script you control.

What this review could not confirm

No evidence about specific converters, prices, instrument models or test results was available. This article therefore cannot rank tools or confirm which ones handle the cases above correctly. Confirm field layout, word indexes and unit codes in Leica's documentation for your equipment before relying on any converter's output.