Skip to content

On duplicate Source ID, make ALL dups have a number index, e.g. srcId.N #670

@sharkAndshark

Description

@sharkAndshark

Does this description reflect Martin's actual actions?
Doc says:

For example, points table will be available at /points, unless there is another source with the same name, or if the table has multiple geometry columns, in which case it will be available at /points.1, /points.2, etc.

I start a Martin server with test postgis database and fetch the catalog API:

[
  {
    "id": "table_source_multiple_geom",
    "content_type": "application/x-protobuf",
    "description": "public.table_source_multiple_geom.geom1"
  },
  {
    "id": "table_source_multiple_geom.1",
    "content_type": "application/x-protobuf",
    "description": "public.table_source_multiple_geom.geom2"
  }
]

It's not table.1 and table.2 but table and table.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsservingRelated to web serving component

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions