Documentation ¶
Overview ¶
Package gdalservice is a generated protocol buffer package.
It is generated from these files:
gdalservice.proto It has these top-level messages: GeoRPCGranule Raster TimeSeries Overview GeoMetaData GeoFile Result
Index ¶
- Variables
- func RegisterGDALServer(s *grpc.Server, srv GDALServer)
- type ErrorMsg
- type GDALClient
- type GDALServer
- type GeoFile
- type GeoMetaData
- func (*GeoMetaData) Descriptor() ([]byte, []int)
- func (m *GeoMetaData) GetDatasetName() string
- func (m *GeoMetaData) GetGeoTransform() []float64
- func (m *GeoMetaData) GetHeight() []float64
- func (m *GeoMetaData) GetNameSpace() string
- func (m *GeoMetaData) GetOverviews() []*Overview
- func (m *GeoMetaData) GetPolygon() string
- func (m *GeoMetaData) GetProj4() string
- func (m *GeoMetaData) GetProjWKT() string
- func (m *GeoMetaData) GetRasterCount() int32
- func (m *GeoMetaData) GetTimeStamps() []*google_protobuf.Timestamp
- func (m *GeoMetaData) GetType() string
- func (m *GeoMetaData) GetXSize() int32
- func (m *GeoMetaData) GetYSize() int32
- func (*GeoMetaData) ProtoMessage()
- func (m *GeoMetaData) Reset()
- func (m *GeoMetaData) String() string
- type GeoRPCGranule
- func (*GeoRPCGranule) Descriptor() ([]byte, []int)
- func (m *GeoRPCGranule) GetBands() []int32
- func (m *GeoRPCGranule) GetEPSG() int32
- func (m *GeoRPCGranule) GetGeometry() string
- func (m *GeoRPCGranule) GetGeot() []float64
- func (m *GeoRPCGranule) GetHeight() int32
- func (m *GeoRPCGranule) GetPath() string
- func (m *GeoRPCGranule) GetWidth() int32
- func (*GeoRPCGranule) ProtoMessage()
- func (m *GeoRPCGranule) Reset()
- func (m *GeoRPCGranule) String() string
- type Overview
- type Process
- type ProcessPool
- type Raster
- type Result
- type Task
- type TimeSeries
Constants ¶
This section is empty.
Variables ¶
View Source
var LibexecDir = "/usr/local/libexec"
Functions ¶
func RegisterGDALServer ¶
func RegisterGDALServer(s *grpc.Server, srv GDALServer)
Types ¶
type GDALClient ¶
type GDALClient interface {
Process(ctx context.Context, in *GeoRPCGranule, opts ...grpc.CallOption) (*Result, error)
}
func NewGDALClient ¶
func NewGDALClient(cc *grpc.ClientConn) GDALClient
type GDALServer ¶
type GDALServer interface {
Process(context.Context, *GeoRPCGranule) (*Result, error)
}
type GeoFile ¶
type GeoFile struct { FileName string `protobuf:"bytes,1,opt,name=fileName" json:"fileName,omitempty"` Driver string `protobuf:"bytes,2,opt,name=driver" json:"driver,omitempty"` DataSets []*GeoMetaData `protobuf:"bytes,3,rep,name=dataSets" json:"dataSets,omitempty"` }
func (*GeoFile) Descriptor ¶
func (*GeoFile) GetDataSets ¶
func (m *GeoFile) GetDataSets() []*GeoMetaData
func (*GeoFile) GetFileName ¶
func (*GeoFile) ProtoMessage ¶
func (*GeoFile) ProtoMessage()
type GeoMetaData ¶
type GeoMetaData struct { DatasetName string `protobuf:"bytes,1,opt,name=datasetName" json:"datasetName,omitempty"` NameSpace string `protobuf:"bytes,2,opt,name=nameSpace" json:"nameSpace,omitempty"` Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"` RasterCount int32 `protobuf:"varint,4,opt,name=rasterCount" json:"rasterCount,omitempty"` TimeStamps []*google_protobuf.Timestamp `protobuf:"bytes,5,rep,name=timeStamps" json:"timeStamps,omitempty"` Height []float64 `protobuf:"fixed64,6,rep,packed,name=height" json:"height,omitempty"` Overviews []*Overview `protobuf:"bytes,7,rep,name=overviews" json:"overviews,omitempty"` XSize int32 `protobuf:"varint,8,opt,name=xSize" json:"xSize,omitempty"` YSize int32 `protobuf:"varint,9,opt,name=ySize" json:"ySize,omitempty"` GeoTransform []float64 `protobuf:"fixed64,10,rep,packed,name=geoTransform" json:"geoTransform,omitempty"` Polygon string `protobuf:"bytes,11,opt,name=polygon" json:"polygon,omitempty"` ProjWKT string `protobuf:"bytes,12,opt,name=projWKT" json:"projWKT,omitempty"` Proj4 string `protobuf:"bytes,13,opt,name=proj4" json:"proj4,omitempty"` }
func (*GeoMetaData) Descriptor ¶
func (*GeoMetaData) Descriptor() ([]byte, []int)
func (*GeoMetaData) GetDatasetName ¶
func (m *GeoMetaData) GetDatasetName() string
func (*GeoMetaData) GetGeoTransform ¶
func (m *GeoMetaData) GetGeoTransform() []float64
func (*GeoMetaData) GetHeight ¶
func (m *GeoMetaData) GetHeight() []float64
func (*GeoMetaData) GetNameSpace ¶
func (m *GeoMetaData) GetNameSpace() string
func (*GeoMetaData) GetOverviews ¶
func (m *GeoMetaData) GetOverviews() []*Overview
func (*GeoMetaData) GetPolygon ¶
func (m *GeoMetaData) GetPolygon() string
func (*GeoMetaData) GetProj4 ¶
func (m *GeoMetaData) GetProj4() string
func (*GeoMetaData) GetProjWKT ¶
func (m *GeoMetaData) GetProjWKT() string
func (*GeoMetaData) GetRasterCount ¶
func (m *GeoMetaData) GetRasterCount() int32
func (*GeoMetaData) GetTimeStamps ¶
func (m *GeoMetaData) GetTimeStamps() []*google_protobuf.Timestamp
func (*GeoMetaData) GetType ¶
func (m *GeoMetaData) GetType() string
func (*GeoMetaData) GetXSize ¶
func (m *GeoMetaData) GetXSize() int32
func (*GeoMetaData) GetYSize ¶
func (m *GeoMetaData) GetYSize() int32
func (*GeoMetaData) ProtoMessage ¶
func (*GeoMetaData) ProtoMessage()
func (*GeoMetaData) Reset ¶
func (m *GeoMetaData) Reset()
func (*GeoMetaData) String ¶
func (m *GeoMetaData) String() string
type GeoRPCGranule ¶
type GeoRPCGranule struct { Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` Geometry string `protobuf:"bytes,2,opt,name=geometry" json:"geometry,omitempty"` Bands []int32 `protobuf:"varint,3,rep,packed,name=bands" json:"bands,omitempty"` Height int32 `protobuf:"varint,4,opt,name=height" json:"height,omitempty"` Width int32 `protobuf:"varint,5,opt,name=width" json:"width,omitempty"` EPSG int32 `protobuf:"varint,6,opt,name=ePSG" json:"ePSG,omitempty"` Geot []float64 `protobuf:"fixed64,7,rep,packed,name=geot" json:"geot,omitempty"` }
func (*GeoRPCGranule) Descriptor ¶
func (*GeoRPCGranule) Descriptor() ([]byte, []int)
func (*GeoRPCGranule) GetBands ¶
func (m *GeoRPCGranule) GetBands() []int32
func (*GeoRPCGranule) GetEPSG ¶
func (m *GeoRPCGranule) GetEPSG() int32
func (*GeoRPCGranule) GetGeometry ¶
func (m *GeoRPCGranule) GetGeometry() string
func (*GeoRPCGranule) GetGeot ¶
func (m *GeoRPCGranule) GetGeot() []float64
func (*GeoRPCGranule) GetHeight ¶
func (m *GeoRPCGranule) GetHeight() int32
func (*GeoRPCGranule) GetPath ¶
func (m *GeoRPCGranule) GetPath() string
func (*GeoRPCGranule) GetWidth ¶
func (m *GeoRPCGranule) GetWidth() int32
func (*GeoRPCGranule) ProtoMessage ¶
func (*GeoRPCGranule) ProtoMessage()
func (*GeoRPCGranule) Reset ¶
func (m *GeoRPCGranule) Reset()
func (*GeoRPCGranule) String ¶
func (m *GeoRPCGranule) String() string
type Overview ¶
type Overview struct { XSize int32 `protobuf:"varint,1,opt,name=xSize" json:"xSize,omitempty"` YSize int32 `protobuf:"varint,2,opt,name=ySize" json:"ySize,omitempty"` }
func (*Overview) Descriptor ¶
func (*Overview) ProtoMessage ¶
func (*Overview) ProtoMessage()
type Process ¶
type Process struct { Context context.Context CancelFunc context.CancelFunc TaskQueue chan *Task Address string Cmd *exec.Cmd CombinedOutput io.ReadCloser ErrorMsg chan *ErrorMsg }
func NewProcess ¶
type ProcessPool ¶
func CreateProcessPool ¶
func CreateProcessPool(n int, debug bool) *ProcessPool
func (*ProcessPool) AddProcess ¶
func (p *ProcessPool) AddProcess(debug bool)
func (p *ProcessPool) AddProcess(errChan chan error, healthChan chan *HealthMsg) {
func (*ProcessPool) AddQueue ¶
func (p *ProcessPool) AddQueue(task *Task)
func (*ProcessPool) DeleteProcessPool ¶
func (p *ProcessPool) DeleteProcessPool()
type Raster ¶
type Raster struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` NoData float64 `protobuf:"fixed64,2,opt,name=noData" json:"noData,omitempty"` RasterType string `protobuf:"bytes,3,opt,name=rasterType" json:"rasterType,omitempty"` }
func (*Raster) Descriptor ¶
func (*Raster) GetRasterType ¶
func (*Raster) ProtoMessage ¶
func (*Raster) ProtoMessage()
type Result ¶
type Result struct { TimeSeries []*TimeSeries `protobuf:"bytes,1,rep,name=timeSeries" json:"timeSeries,omitempty"` Raster *Raster `protobuf:"bytes,2,opt,name=raster" json:"raster,omitempty"` Info *GeoFile `protobuf:"bytes,3,opt,name=info" json:"info,omitempty"` Error string `protobuf:"bytes,4,opt,name=error" json:"error,omitempty"` }
func (*Result) Descriptor ¶
func (*Result) GetTimeSeries ¶
func (m *Result) GetTimeSeries() []*TimeSeries
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
type Task ¶
type Task struct { Payload *GeoRPCGranule Resp chan *Result Error chan error }
type TimeSeries ¶
type TimeSeries struct { Value float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"` }
func (*TimeSeries) Descriptor ¶
func (*TimeSeries) Descriptor() ([]byte, []int)
func (*TimeSeries) GetCount ¶
func (m *TimeSeries) GetCount() int32
func (*TimeSeries) GetValue ¶
func (m *TimeSeries) GetValue() float64
func (*TimeSeries) ProtoMessage ¶
func (*TimeSeries) ProtoMessage()
func (*TimeSeries) Reset ¶
func (m *TimeSeries) Reset()
func (*TimeSeries) String ¶
func (m *TimeSeries) String() string
Click to show internal directories.
Click to hide internal directories.