Skip to content

ogrinfo -al should always report a Geometry Column #14293

@jidanni

Description

@jidanni

Feature description

Instead of orginfo -al sometimes revealing the Geometry Column, and
sometimes not, how about it always give an answer no matter what?

We see that orginfo will sometimes even be so helpful as to reveal

Geometry Column = _ogr_geometry_

And if there really really is no Geometry Column, then have it say

Geometry Column = none

instead of the current behavior, where one needs to dig through tons of
documentation to see if there is really no hope in figuring out what the Geometry Column is.

Yes, different answers could be provided according to -dialect, even
with no -sql.

Here we see ogrinfo is quite verbose about things like that. Why not also here?

Another problem is the user apparently needs to use -sql SELECT ... to coax out the name of the Geometry Column. But users usually want to find out column names first before writing random SELECT statements. https://gis.stackexchange.com/a/500471/77230

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementnot for AI loversSee https://gdal.org/en/stable/community/ai_tool_policy.html

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions