Skip to main content

How to Combine Multiple GeoJSON Files

R
Written by Ruby Lin
Updated over a month ago

Currently, our platform requires a single GeoJSON file for upload. If you have your location data spread across multiple files, you will need to merge them before importing them into our system.

We are actively building a native feature that will allow you to upload multiple files directly. In the meantime, we recommend the following workaround using ChatGPT to merge your files in seconds.

Prerequisites

To use this method, you must be logged in to ChatGPT.

  • Cost: Free (The free plan supports file uploads).

  • Requirement: An OpenAI account.

Step-by-Step Instructions

Follow these steps to merge your data into a format our system accepts:

1. Prepare your environment: Log in to your ChatGPT account.

2. Upload your files: Click the attachment (paperclip) icon in the message bar to upload your various GeoJSON files.

  • You can also drag and drop the files directly into the browser window.

  • If your files are small, you can copy and paste the raw text from your files directly into the chat.

3. Enter the merge prompt: Copy and paste the following prompt into the chat box and hit send:

"Please combine the following GeoJSON files with different locations into one downloadable GeoJSON file."

4. Download and Import ChatGPT will process the data and provide a download link for a single file (usually named combined.geojson or similar).

  1. Download this new file to your computer.

  2. Return to our platform.

  3. Upload the newly merged file.

Is my data safe with ChatGPT? Please refer to OpenAI’s data privacy policies regarding file uploads. If your GeoJSON files contain sensitive or PII (Personally Identifiable Information), please ensure you are comfortable with OpenAI’s terms before proceeding.

What if the file generation fails? Occasionally, if the files are extremely large, the AI may time out. If this happens, try merging the files in smaller batches (e.g., merge 3 files, then merge that result with the next 3).

Did this answer your question?