geo.data
4 functions / 8 types
Index
| Function | Description |
|---|---|
| GridsNeeded | 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. |
| InstallGrid | 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. |
| InstallRegistryFile | 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. |
| Status | Report the geospatial data the engine holds. |
| Type | Description |
|---|---|
| AreaOfInterest | An area in WGS 84 longitude and latitude degrees. west greater than east crosses the antimeridian. |
| DataStatus | The geospatial data the engine holds. |
| GridNeed | A grid that a conversion needs. |
| GridsNeeded | 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. |
| GridsNeededResponse | |
| InstallGrid | 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. |
| InstallRegistryFile | 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. |
| Status | Report the geospatial data the engine holds. |
GridsNeeded
RPC
GridsNeeded(request: geo.data.GridsNeeded) -> geo.data.GridsNeededResponseList 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.
InstallGrid
RPC
InstallGrid(request: geo.data.InstallGrid) -> google.protobuf.EmptyInstall 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.EmptyInstall 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.DataStatusReport 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.
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.