Skip to content

geo.data

4 functions / 8 types

Index

FunctionDescription
GridsNeededList the grids that the most precise conversion between two systems needs, and whether each is installed. Call it before adding a layer, and install the grids it lists first.
InstallGridInstall a datum or geoid grid in the GeoTIFF form PROJ-data distributes, under its PROJ-data file name, such as ca_nrc_ntv2_0.tif.
InstallRegistryFileInstall a registry file in the epsg.bin format, whose entries all belong to authority, such as the epsg.bin file shipped with this engine version under the authority EPSG.
StatusReport the geospatial data the engine holds.
TypeDescription
AreaOfInterestAn area in WGS 84 longitude and latitude degrees. west greater than east crosses the antimeridian.
DataStatusThe geospatial data the engine holds.
GridNeedA grid that a conversion needs.
GridsNeededList the grids that the most precise conversion between two systems needs, and whether each is installed. Call it before adding a layer, and install the grids it lists first.
GridsNeededResponse
InstallGridInstall a datum or geoid grid in the GeoTIFF form PROJ-data distributes, under its PROJ-data file name, such as ca_nrc_ntv2_0.tif.
InstallRegistryFileInstall a registry file in the epsg.bin format, whose entries all belong to authority, such as the epsg.bin file shipped with this engine version under the authority EPSG.
StatusReport the geospatial data the engine holds.

GridsNeeded

RPC

GridsNeeded(request: geo.data.GridsNeeded) -> geo.data.GridsNeededResponse

List the grids that the most precise conversion between two systems needs, and whether each is installed. Call it before adding a layer, and install the grids it lists first.

Without an area of interest, the most precise conversion can need a grid for a region the layer does not cover. Fails with InvalidArgument when the registry does not hold a system.

Service method: spatialengine.v1.geo.data.GeoData.GridsNeeded.

Returns geo.data.GridsNeededResponse.

source : geo.CrsId

target : geo.CrsId

area_of_interest optional : geo.data.AreaOfInterest

InstallGrid

RPC

InstallGrid(request: geo.data.InstallGrid) -> google.protobuf.Empty

Install a datum or geoid grid in the GeoTIFF form PROJ-data distributes, under its PROJ-data file name, such as ca_nrc_ntv2_0.tif.

Fails with InvalidArgument when the file is not a GeoTIFF grid, or when a different file is already installed under the name. Installing the same file again does nothing.

Service method: spatialengine.v1.geo.data.GeoData.InstallGrid.

Returns google.protobuf.Empty.

name : string

contents : bytes

The whole file.

InstallRegistryFile

RPC

InstallRegistryFile(request: geo.data.InstallRegistryFile) -> google.protobuf.Empty

Install a registry file in the epsg.bin format, whose entries all belong to authority, such as the epsg.bin file shipped with this engine version under the authority EPSG.

Fails with InvalidArgument for bytes that are not a well-formed registry file, and for a file that defines an entry the registry already holds differently, and installs nothing then. Installing the same file again does nothing.

Service method: spatialengine.v1.geo.data.GeoData.InstallRegistryFile.

Returns google.protobuf.Empty.

authority : string

The authority every entry of the file belongs to, such as EPSG.

contents : bytes

The whole file.

Status

RPC

Status(request: geo.data.Status) -> geo.data.DataStatus

Report the geospatial data the engine holds.

Service method: spatialengine.v1.geo.data.GeoData.Status.

Returns geo.data.DataStatus.

AreaOfInterest

Message

An area in WGS 84 longitude and latitude degrees. west greater than east crosses the antimeridian.

west : double

south : double

east : double

north : double

DataStatus

Message

The geospatial data the engine holds.

registry_files optional : list[string]

The authority of each installed registry file, such as EPSG, in the order installed.

registered : uint32

The number of definitions registered with geo.crs.register.

grids optional : list[string]

The names of the installed grids.

GridNeed

Message

A grid that a conversion needs.

name : string

The PROJ-data GeoTIFF file name, for install_grid.

installed : bool

GridsNeeded

Message

List the grids that the most precise conversion between two systems needs, and whether each is installed. Call it before adding a layer, and install the grids it lists first.

Without an area of interest, the most precise conversion can need a grid for a region the layer does not cover. Fails with InvalidArgument when the registry does not hold a system.

source : geo.CrsId

target : geo.CrsId

area_of_interest optional : geo.data.AreaOfInterest

GridsNeededResponse

Message

value optional : list[geo.data.GridNeed]

InstallGrid

Message

Install a datum or geoid grid in the GeoTIFF form PROJ-data distributes, under its PROJ-data file name, such as ca_nrc_ntv2_0.tif.

Fails with InvalidArgument when the file is not a GeoTIFF grid, or when a different file is already installed under the name. Installing the same file again does nothing.

name : string

contents : bytes

The whole file.

InstallRegistryFile

Message

Install a registry file in the epsg.bin format, whose entries all belong to authority, such as the epsg.bin file shipped with this engine version under the authority EPSG.

Fails with InvalidArgument for bytes that are not a well-formed registry file, and for a file that defines an entry the registry already holds differently, and installs nothing then. Installing the same file again does nothing.

authority : string

The authority every entry of the file belongs to, such as EPSG.

contents : bytes

The whole file.

Status

Message

Report the geospatial data the engine holds.