Skip to content

p7-s2: GIS vector/raster import (GDAL/PROJ) #242

Closed

Description

@JArmandoAnaya

Part of the Road to Parity roadmap.

Scope

  • Vector + raster ingestion with projection handling (GDAL/PROJ, license-vetted per the dependency policy); imagery/vector underlays for authoring.

Acceptance

  • A geo-referenced raster + vector pair imports, displays under the network, and survives round-trip; diagnostics on unsupported inputs.

Out of scope

OSM semantics (p7-s4).

Supersedes

(none)

Activity

  1. added
    pillar:P7
    on Jul 15, 2026
  2. JArmandoAnaya commented on Jul 27, 2026

    @JArmandoAnaya
    ContributorAuthor

    2026-07-27 roadmap review — corrections and cross-references (issue written before recent landings; body stands, read with these):

  3. JArmandoAnaya commented on Jul 28, 2026

    @JArmandoAnaya
    ContributorAuthor

    #324 landed, and PROJ is yours

    p7-s5 (#324) is merged (#483 → ad542de) and it deliberately did not add PROJ, so this sprint owns that decision.

    What you inherit

    A modelled GeoReference on RoadNetwork (core/include/roadmaker/road/georeference.hpp): the projection string, the §8.5 <offset> affine (geo_to_world/geo_to_local, exact inverses), and Layer-0 read/write of <header><geoReference>/<offset>. There is a world frame to reproject into.

    Why PROJ was deferred here rather than added there

    PROJ needs SQLite3 and a ~9 MB proj.db resource located at runtime, in a kernel that today builds from CMake alone and ships zero runtime data — and nothing in #324's acceptance needed a datum transform. #324 instead authors §8.5's own recommendation ("alternatively define a custom projection using Transverse Mercator"): a TM centred on the scene origin with +k=1 +x_0=0 +y_0=0, in which local OpenDRIVE coordinates ARE the projected coordinates, so nothing is transformed.

    That construction covers authoring. It does not cover CRS↔CRS transformation, which is exactly what importing GIS data in a foreign CRS requires — the first real consumer, and this sprint.

    What #324 leaves explicitly unresolved for you

    tmerc_origin() answers only for the family RoadMaker generates, and returns nullopt for everything else (a UTM zone, an EPSG string, a WKT blob) — because guessing at a UTM origin would be wrong by its 500 km false easting. The editor and the export preview both report such a CRS as carried verbatim, not interpreted. When PROJ lands, those read-outs should start resolving instead of declining.

    Practical notes before you start

    • Dependency policy: pinned tag + URL_HASH in cmake/deps.cmake + a THIRD_PARTY_LICENSES.md row in the same commit, and SQLite3 is a second new dependency under the same rules. RM_BUILD_USD is the closest precedent for gating a heavy optional dep (OFF by default, its own CI job, a capability flag in the API).
    • Shipping proj.db into the editor bundle and the wheels, plus proj_context_set_search_paths(), is real packaging work — budget it.
    • esmini v3.5.0 rejects +no_defs (it rejected the string RoadMaker generated, caught by the esmini smoke gate). Anything this project generates is held to what real consumers accept, not to what the spec's examples illustrate.
  4. moved this from Todo to In Progress in RoadMaker Roadmapon Jul 28, 2026
  5. moved this from In Progress to Done in RoadMaker Roadmapon Jul 28, 2026
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

    pillar:P7

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions