mapper icon indicating copy to clipboard operation
mapper copied to clipboard

GeoJSON export failing - driver quirk

Open sduret opened this issue 11 months ago • 1 comments

Steps to reproduce

  1. File -> Export -> Geospatial vector data
  2. Selec GeoJSON (*.json, *.geojson) from the file type dropdown
  3. Type in a filename
  4. Click "save"

Actual behaviour

An error dialog appears and an empty json file is created.

The error dialog reads

The map export generated warnings.
Failed to create layer oomg_lines: GeoJSON driver doesn't support creating more than one layer
Failed to create layer oomg_areas: GeoJSON driver doesn't support creating more than one layer

Expected behaviour

I expected a GeoJSON file to be created. Or multiple GeoJSON files e.g. filename_lines.json filename_areas.json

Configuration

Mapper Version: 0.9.5 Operating System: macOS Sequoia 15.2

sduret avatar Jan 14 '25 16:01 sduret

The line-seperated GeoJSON export do work and might be a potential workaround for others.

Abbe98 avatar Jan 29 '25 21:01 Abbe98