ArticleslgStudy

science

GeoJSON

GeoJSON is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand GeoJSON rather than just read about it. In short: GeoJSON is an open standard format designed for representing simple geographical features, along with their non-spatial attributes. It is based on the JSON format.

GeoJSON — main illustration
GeoJSON — illustration

Key takeaways

  • GeoJSON belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect GeoJSON to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of GeoJSON from memory before moving on to harder problems.

Reference excerpt

GeoJSON is an open standard format designed for representing simple geographical features, along with their non-spatial attributes. It is based on the JSON format. The features include points (therefore addresses and locations), line strings (therefore streets, highways and boundaries), polygons (countries, provinces, tracts of land), and multi-part collections of these types. GeoJSON features are not limited to representing entities of the physical world only; mobile routing and navigation apps, for example, might describe their service coverage using GeoJSON. The GeoJSON format differs from other geographic information system standards in that it was written and is maintained not by a formal standards organization, but by an Internet working group of developers. A notable offspring of GeoJSON is TopoJSON, an extension of GeoJSON that encodes geospatial topology and that typically provides smaller file sizes.

History The GeoJSON format working group and discussion were begun in March 2007 and the format specification was finalized in June 2008. In April 2015, the Internet Engineering Task Force founded the Geographic JSON working group which released GeoJSON as RFC 7946 in August 2016.

Example

Geometries Points are [x, y] or [x, y, z]. They may be [longitude, latitude] or [eastings, northings]. Elevation, in meters, is an optional third number. They are decimal numbers. For example, London (51.5074° North, 0.1278° West) is [-0.1278, 51.5074] The coordinate reference system for all GeoJSON coordinates is a geographic coordinate reference system, using the World Geodetic System 1984 (WGS 84) [WGS84] datum, with longitude and latitude units of decimal degrees.

Newline-delimited GeoJSON An alternative to GeoJSON is to encode one geographic feature per line, with line breaks (or record-separator characters) designating the separation between records. This format can be much faster and more efficient to parse than normal GeoJSON, as tooling can read individual records in parallel. This format is similar to newline-delimited JSON. Variants of newline-delimited GeoJSON include:

GeoJSONSeq (short for GeoJSON Text Sequences) - with record-separator (RS) characters separating features GeoJSONL (short for GeoJSON Lines) - with newline characters separating features

TopoJSON TopoJSON is an extension of GeoJSON that encodes topology. Rather than representing geometries discretely, geometries in TopoJSON files are stitched together from shared line segments called arcs. Arcs are sequences of points, while line strings and polygons are defined as sequences of arcs. Each arc is defined only once, but can be referenced several times by different shapes, thus reducing redundancy and decreasing the file size. In addition, TopoJSON facilitates applications that use topology, such as topology-preserving shape simplification, automatic map coloring, and cartograms. A reference implementation of the TopoJSON specification is available as a command-line tool to encode TopoJSON from GeoJSON (or ESRI Shapefiles) and a client side JavaScript library to decode TopoJSON back to GeoJSON again. TopoJSON is also supported by the popular OGR tool as of version 1.11 and PostGIS as of version 2.1.0.

TopoJSON Schema Given a GIS shape near coordinates latitude 0° and longitude 0°, a simple but valid and complete topojson file containing all metadata, Polygon, LineString, Point elements, arcs and properties is defined as follows:

See also Geography Markup Language (GML) GIS vector file format Keyhole Markup Language (KML)

References

Sources Andrews, Christopher (18 September 2007). "Emerging Technology: AJAX and GeoJSON". Archived from the original on 22 May 2009. "Geoweb Guru: Technical Overview: GeoJSON". 16 February 2009. Archived from the original on 21 February 2009. Lambert, Chris (4 May 2009). "Google Geo Developers Blog: Build on top of your public Latitude location with GeoJSON & KML".

External links Official website topojson/topojson

Illustrations

GeoJSON illustration
GeoJSON illustration
GeoJSON illustration
GeoJSON illustration
GeoJSON illustration

Worked examples

Example 1 — a first encounter with GeoJSON

Start with the simplest possible case. Write down what GeoJSON claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to GeoJSON before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about GeoJSON ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of GeoJSON

In research
GeoJSON appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses GeoJSON in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
GeoJSON is common in secondary-school and first-year university syllabi. It links to neighbouring topics GIS vector file formats, JSON, Open formats, so understanding it makes those chapters shorter.
In everyday life
Look for GeoJSON outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “GeoJSON” →

How to study GeoJSON in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what GeoJSON means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain GeoJSON out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is GeoJSON in simple terms?

GeoJSON is an open standard format designed for representing simple geographical features, along with their non-spatial attributes. It is based on the JSON format.

Why does GeoJSON matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study GeoJSON?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on GeoJSON.

Tags

  • GIS vector file formats
  • JSON
  • Open formats

Keep exploring