GridEntry

class geodetic_engine.catalog.GridEntry[source]

Bases: CatalogEntry

A grid file an operation in the active database reads, or PROJ knows.

Listed by grids(). One entry per file PROJ reads: an authority’s name for a grid, such as EPSG’s "A66 National (13.09.01).gsb", is listed under the file PROJ reads for it, "au_icsm_A66_National_13_09_01.tif", where PROJ’s grid_alternatives table maps one to the other. NADCON states two files, such as "conus.las" and "conus.los", where PROJ reads one that holds both, so both are listed under it.

A grid file has no authority code, so this is no RegistryEntry.

name

The file PROJ reads, or the name the database states where PROJ knows no alternative for it.

original_names

The names operations in the database use for it.

old_proj_name

The name of PROJ’s older release of the file, if any.

format

The file format, for example "GTiff", where PROJ knows it.

proj_method

How PROJ applies it, for example "hgridshift", where PROJ knows it.

kind

What it corrects.

url

Where PROJ downloads it from, if known.

direct_download

Whether it can be downloaded without registering.

open_license

Whether its licence is open, or None if unknown.

installed

Whether PROJ finds the file on this machine: under name, or under old_proj_name, which PROJ falls back to, in a directory on PROJ’s search path or in PROJ’s user data directory. A file under one of original_names does not count, since PROJ does not read it under that name.

remote_available

Whether PROJ’s content delivery network lists it; None unless the listing was made with check_remote=True.

used_by

"AUTH:CODE" of the operations that read it, deprecated ones included.

areas_of_use

The areas of use of those operations.

property area_of_use: AreaOfUse | None

The first of areas_of_use, or None.

to_json_dict()[source]

The grid as a listing’s JSON states it.

A grid file has no PROJJSON form, so this is the same as to_summary_dict().

Return type:

dict[str, Any]

to_summary_dict()[source]

The grid as one item of a listing’s JSON.

Return type:

dict[str, Any]

__init__(*, name, original_names=(), old_proj_name=None, format=None, proj_method=None, kind, url=None, direct_download=False, open_license=None, installed=False, remote_available=None, used_by=(), areas_of_use=())