> ## Content Index
> Fetch the complete content index at: https://www.interline.io/llms.txt
> Use this file to discover other available public pages before exploring further.

# Even more geospatial tools supporting the "GeoJSONL" format
- URL: https://www.interline.io/blog/here-cli-support-geojsonl/
- Published: 2019-03-08T08:00:00.000Z
- Updated: 2024-11-05T22:18:20.000Z
- Description: "GeoJSONL" has the easy readability of a GeoJSON file without the the performance limitations of the format. Last year we started producing GeoJSONL files from our OSM Extracts service. Now a growing list of long-existing and brand-new geospatial tools.
- Author: Drew Dara-Abrams
- Tags: GeoJSONL, OpenStreetMap

Last year we expanded our [OSM Extracts](https://www.interline.io/osm/extracts/) service to produce what we call GeoJSONL. This is a data format that goes by many names: newline-delimited GeoJSON, line-oriented GeoJSON, GeoJSONSeq, or GeoJSON Text Sequences. Whatever its name, the format enables effficient reading and efficient writing of [vector geo-data](https://en.wikipedia.org/wiki/GIS%5Ffile%5Fformats?ref=interline.io#Vector) features.

For more background, see our [previous blog post on GeoJSONL](https://www.interline.io/blog/geojsonl-extracts/) and see this new [overview of the format’s many names and its defining properties](https://stevage.github.io/ndgeojson/?ref=interline.io).

Over the last year, there’s been even more progress on tools for writing and reading GeoJSONL (or whatever your preferred name is for this format).

## GeoJSONL support in HERE XYZ

HERE XYZ now supports GeoJSONL ingest.

Don’t know what HERE XYZ is? Here’s how we summarized the platform in a [blog post](https://www.interline.io/blog/here-xyz-open-geo-data/) last year:

> HERE XYZ provides the full set of components that "modern" geo developers have come to expect: GeoJSON input and output, "slippy map" libraries, a RESTful API, a JavaScript SDK, a cross-platform CLI, base maps and styles. As we've been experimenting with the HERE XYZ beta, we've found it provides some unique combinations that make it especially well suited to combining open geodata APIs — especially in large quantities.

Using the latest version of the [HERE CLI](https://www.npmjs.com/package/@here/cli?ref=interline.io), you can parse and upload GeoJSONL files to the HERE XYZ platform.

Here’s an update of our [“Use Crowdsourced Data from Interline OSM Extracts in an XYZ Web Map” tutorial](https://www.interline.io/docs/here-xyz/tutorials/tutorial-1/?index=docs) that uses the GeoJSONL format.

Download a GeoJSONL extract from OSM Extracts:

[![terminal showing usage of HERE CLI to upload OSM Extract in GeoJSONL format](https://storage.ghost.io/c/57/10/5710b77b-3fc0-4094-a25f-875ff38c9df1/content/images/2024/11/download-geojsonl-extract-1.png)](https://www.interline.io/osm/extracts/)

Upload to XYZ and set tags:

![screenshot of a terminal window](https://storage.ghost.io/c/57/10/5710b77b-3fc0-4094-a25f-875ff38c9df1/content/images/2024/11/here-cli-upload-geojsonl.png)

Previously you might hit memory limits on your computer if you tried to upload an extract for a big metro region. Now, thanks to GeoJSONL’s efficient parsing, you should be able to upload any extract of any size!

## The growing toolchain

There’s a long history of tools that work with this format, and it’s been growing over the last year. Here are some more highlights:

**Command line** On the command line, read `.geojsonl` and `.geojsons` files using GDAL’s [drv\_geojsonseq](https://gdal.org/drivers/vector/geojsonseq.html?ref=interline.io).

**Desktop GIS** GDAL also powers [QGIS](https://www.qgis.org/?ref=interline.io), so now you can load `.geojsonl` and `.geojsons` files into our favorite desktop GIS sofware.

**Parse in Python**: [Fiona](https://github.com/Toblerity/Fiona?ref=interline.io) is a Python library that wraps GDAL and provides a “neat and nimble” interface. The next release will include [support](https://github.com/Toblerity/Fiona/issues/720?ref=interline.io) for `drv_geojsonseq`.[\*](https://www.interline.io/blog/here-cli-supports-geojsonl/#footnote-1)

**Statistics and data science in R** If you’re loading vector geo-data into R, try the [geojson](https://cran.r-project.org/package=geojson?ref=interline.io) package on CRAN. See these [instructions](https://github.com/ropensci/geojson?ref=interline.io#newline-delimited-geojson) for how to load a `.geojsonl` file directly from Interline OSM Extracts.

**Convert from a shapefile** Install the [shapefile NPM package](https://www.npmjs.com/package/shapefile?ref=interline.io) and run `shp2json --newline-delimited` to convert a shapefile to GeoJSONL. See these [instructions](https://github.com/mbostock/shapefile?ref=interline.io#shp2json%5Fnewline%5Fdelimited).

**Convert to vector tiles** [Tippecanoe](https://github.com/mapbox/tippecanoe/?ref=interline.io) can take GeoJSONL as input and turn it in to [MVT vector tiles](https://github.com/mapbox/awesome-vector-tiles?ref=interline.io). It also provides its own `tippecanoe-json-tool` command to convert a standard GeoJSON file to GeoJSONL format (see [these instructions](https://github.com/mapbox/tippecanoe/?ref=interline.io#tippecanoe-json-tool)).

**Stream in to a web browser** Watch a GeoJSONL file stream into a web in this [interactive JavaScript notebook](https://observablehq.com/@bcamper/streaming-geojsonl?ref=interline.io).[†](https://www.interline.io/blog/here-cli-supports-geojsonl/#footnote-2) If you have an Interline OSM Extracts API key and an Observable account, try [this notebook](https://observablehq.com/@drewda/streaming-geojsonl-from-your-choice-of-openstreetmap-extr?ref=interline.io) to select from any of the 200+ cities and watch the stream arrive:

[![Observable notebook streaming OpenStreetMap data in GeoJSONL format](https://storage.ghost.io/c/57/10/5710b77b-3fc0-4094-a25f-875ff38c9df1/content/images/2024/11/streaming-geojsonl.gif)](https://observablehq.com/@bcamper/streaming-geojsonl?ref=interline.io)

## When to try GeoJSONL

If you like GeoJSON but find your data files are too big to hold in memory, give one of these tools a try.

If you need to run a bunch of vector geo-data through a [MapReduce](https://en.wikipedia.org/wiki/MapReduce?ref=interline.io) operation that, give this format a try. (It’s easy to divide a GeoJSONL file in to chunks before parsing its exact contents.)

If you want to download [OSM Extracts](https://www.interline.io/osm/extracts/) from Interline and explore even the largest of extracts using HERE XYZ, give this a try.

---

#### Notes

\* Shoutout to [Sean Gillies](https://github.com/sgillies?ref=interline.io), the lead creator of Fiona and instigator of [RFC 8142 - GeoJSON Text Sequences](https://tools.ietf.org/html/rfc8142?ref=interline.io). We may have differing views on the [record separator character](https://en.wikipedia.org/wiki/Delimiter?ref=interline.io#ASCII%5Fdelimited%5Ftext). Regardless, his packages like Fiona and [Rasterio](https://rasterio.readthedocs.io/?ref=interline.io) are fabulous and we’re happy users of them.

† Shoutout to [Brett Camper](http://vector.io/?ref=interline.io), the author of this Observable notebook and a fellow alum of [Mapzen](https://mapzen.com/?ref=interline.io).