Skip to content

[Feature]: Open ArcGIS Pro projects: maps (.aprx) and layouts (.pagx), with layers that can be repaired #2001

Open

Description

@m-hollis-1

Before you start

  • I searched the existing issues and the roadmap. "Opening ArcGIS Pro projects" is listed
    under Exploratory, so this is a proposal for discussion before any code.

What problem does this solve?

ArcGIS Pro is the desktop GIS most organisations would be moving from, and their work lives in
Pro projects: maps with their symbology and labels, and page layouts built on templates. Today
a Pro user who tries RustGIS starts from an empty map and redraws everything, which is the
largest single cost of switching. RustGIS already opens QGIS projects; Pro projects are the
other half.

Proposed solution

Read Pro's own files, which are zipped JSON in Esri's published CIM format, into RustGIS's
existing maps, layers, symbols, labels and layouts. No dependency is added.

  1. Layouts (.pagx, and the layouts inside an .aprx) through the existing
    layout.import: page, map frames with their extent and scale, legend, scale bar, north arrow,
    text with dynamic text (date, scale, page and map properties), pictures, graphics and element
    groups.
  2. Maps (.aprx) through a new project.importArcgis (and project.inspectArcgis, which
    lists what a project holds): layers from file geodatabases, shapefiles, GeoPackages,
    rasters, feature and map services; simple and unique-value symbology with their symbols;
    labels, including Arcade expressions built from fields, literals, concatenation and
    TextFormatting.NewLine; definition queries; visibility scales; the map's coordinate system.
    An .aprx opens a picker of its maps and layouts.
  3. Layers whose data can't be reached come in as broken layers that keep where Pro read them
    from, show a warning in the Layers pane, and can be repaired (point at the moved folder, sign
    in, connect to the database) instead of being dropped. Real projects nearly always have some.
  4. Long imports run off the UI thread with progress and Cancel, and land as one undo step.
  5. Anything not carried over is reported, never silent: the import returns notes such as "a
    CIMScaleLine element, left out" or "date format short, drawn as RustGIS's".

What this touches that needs coordination (per CONTRIBUTING):

  • Layout and symbol capabilities the import needs that RustGIS lacks today: element groups,
    text bound to a named map frame, more dynamic-text tokens, scale bar and north arrow details,
    legend fitting, per-element border and background, marker symbols drawn from a path.
  • The .rgis format: where a broken layer keeps its original source.
  • New commands (project.importArcgis, project.inspectArcgis, and the repair commands).

Testing. Unit tests on CIM fragments for every element, symbol and renderer read, and a
small Pro project built in ArcGIS Pro from Natural Earth data (the same data as RustGIS's World
Atlas sample) committed as a fixture, with Pro's own PDF export as the visual reference. The
importer has been used on real production projects and layout templates; the sample project
also shows its current gaps, which will be fixed before the code is offered (a GeoPackage layer
read as a query layer, a map's projected coordinate system not carried over, a doubled 1: in
scale text, the scale bar's label format, the legend's field heading).

Proposed pull requests, in order:

  1. The layout and symbol capabilities above, each as a generic feature useful without Pro.
  2. The CIM reader core: colours, units, symbols.
  3. .pagx layout import.
  4. Broken, repairable layers.
  5. .aprx map import with the picker, in the background with progress and Cancel.
  6. Repairing broken layers after an import.

Estimated scope

Large: the work exists (over 30,000 lines including tests and a generated EPSG names table), and would come as the series
above, each pull request reviewable on its own.

Alternatives considered

  • Asking users to export from Pro to QGIS first: it needs third-party tools, loses layouts, and
    doesn't help someone who has already left Pro.
  • Reading only layer files (.lyrx, .mapx): useful, and included, but the project is what a
    user has.

Questions for the maintainers:

  1. Is this welcome as a series, and in that order?
  2. May the layout and symbol capabilities land first as ordinary features?
  3. Where should a broken layer keep its original source in the .rgis format? The current
    approach adds an optional origin to a layer's source; we'll follow whatever shape you
    prefer.

Activity

  1. Mavrick-F commented on Nov 14, 2026

    @Mavrick-F
    Member

    Thanks for this. Not having to redraw a project's maps and layouts by hand is the biggest single help we could give people switching from Pro, and a working importer is a serious head start. Yes, please: I'd like to see the code. Open the pull requests in the order you proposed, starting with the layout and symbol capabilities.

    One thing first: where the code comes from

    RustGIS takes no code from GPL or other copyleft projects, whether by hand or through an AI tool (where code comes from), and the best-known existing converter for Pro projects is GPL. Writing from Esri's published CIM specification is fine. Could you say in the first pull request what the importer was written from? The same goes for the generated EPSG names table: what it was generated from and under what terms, for its row in ATTRIBUTION.md.

    Your questions

    1. As a series, in that order: yes. Where the CIM core or the map import divide further, split them, so each pull request can be reviewed in one sitting.
    2. The layout and symbol capabilities first, as ordinary features: yes, one per pull request. Element groups and text bound to a named map frame change what a layout saves, so they follow saved files.
    3. Where a broken layer keeps its source: How should RustGIS projects store their data? A proposal for the .rgis format #1378 settled last week on a .rgis that references its data, with a snapshot and provenance model for sources, and the written proposal is being drafted there. Fit origin to that model rather than a separate field, and post your shape in that thread so the two meet. RustGIS also already has Repair Data Source (layer.repairSource) and marks layers whose files are missing on disk; extend those to databases, services and sign-in rather than adding a second set of repair commands.

    Smaller points

    • The test project holds nothing from Esri's own styles, basemaps, fonts or north arrows (plain symbols, no basemap), and Pro's PDF export goes to opengeos/rustgis-assets rather than this repository (assets).
    • Name the commands project.importArcgisPro and project.inspectArcgisPro, since arcgis in RustGIS already means ArcGIS REST services and portals. A .lyrx import can follow style.importQgis.
    • Report what isn't carried over as one notice per kind with a count (never silent).

    Looking forward to it.

  2. m-hollis-1 commented on Nov 14, 2026

    @m-hollis-1
    ContributorAuthor

    Thanks, glad it fits. Answers first, then what changes on my side.

    Where the code comes from

    The importer was written with an AI coding assistant (Claude Code). It worked from the JSON that
    ArcGIS Pro itself writes inside .aprx, .mapx and .pagx files, read from sample projects,
    and checked the results against Pro's own PDF and PNG exports of the same layouts. No GPL or
    other copyleft converter was used: none of its code or documentation was consulted or given to
    the assistant. The type and property names are the ones Pro writes, which are those of Esri's
    published CIM specification. The first pull request will say the same.

    The EPSG names table (crates/data/src/raster/epsg_names.rs) is generated by the script next to
    it, epsg_names.py, from the PROJ 9.7.1 database (MIT) through pyproj 3.7.2. The EPSG names
    come from the EPSG Geodetic Parameter Dataset v12.029 (© IOGP, under its terms of use), and the
    ESRI names come from Esri's projection-engine-db-doc (Apache-2.0), as PROJ holds them. Its
    ATTRIBUTION.md row comes with it.

    Taken as you said

    • A series in the proposed order, split further where the CIM core or the map import would be
      too much for one sitting.
    • The layout and symbol capabilities first, as ordinary features, one per pull request. Element
      groups and text bound to a named map frame come after saved files.
    • A broken layer's origin fits the How should RustGIS projects store their data? A proposal for the .rgis format #1378 source model rather than adding a field of its own.
      I'll post the shape in that thread. Repair extends layer.repairSource and the missing-file
      marks to databases, services and sign-in, with no second set of repair commands.
    • The test project uses plain symbols, no basemap, and nothing from Esri's styles, fonts or north
      arrows. Pro's PDF export goes to opengeos/rustgis-assets.
    • The commands are named project.importArcgisPro and project.inspectArcgisPro. A .lyrx
      import can follow style.importQgis later.
    • Whatever isn't carried over is reported as one notice per kind, with a count, never silently.

    The first pull request will be the first layout capability.

  3. m-hollis-1 commented on Nov 20, 2026

    @m-hollis-1
    ContributorAuthor

    A quick status update. The geodatabase pull requests from #2000 come first: #2349 is merged and #2410 is in progress.
    The sample project is rebuilt without Esri's styles, fonts or north arrows, as you asked (its scale bar is now Pro's plain default).
    After that, the first pull request here will be scale bar details (subdivisions, divisions left of zero,
    label and unit-label placement, decimals and fitting), as an ordinary layout feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions