api

package
v0.0.0-...-a9fe1cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCorsHeader

func AddCorsHeader(w http.ResponseWriter)

func GetRasterKey

func GetRasterKey(filename string, rasterKeySettings *types.RasterKeySettings) (string, error)

func GetWorldFileExtlist

func GetWorldFileExtlist() map[string]string

func NewRasterFeatureSettings

func NewRasterFeatureSettings(xPosition, yPosition, margin string) (*types.RasterFeatureSettings, error)

func NewRasterKeySettings

func NewRasterKeySettings(category, prefixNumChar, suffixNumChar, regex string) (*types.RasterKeySettings, error)

func ReqVars

func ReqVars(r *http.Request) (map[string]interface{}, error)

func WriteJson

func WriteJson(w http.ResponseWriter, status int, v any) error

Types

type ApiError

type ApiError struct {
	Error string `json:"error"`
}

type ApiSuccess

type ApiSuccess struct {
	Message string `json:"message"`
}

type Dir

type Dir struct {
	Name  string `json:"name"`
	IsDir bool   `json:"is_dir"`
	Size  int64  `json:"size"`
}

type Georeference_response

type Georeference_response struct {
	Dir_path string `json:"dir_path"`
	Success  int    `json:"success"`
	Fail     int    `json:"fail"`
	Err      string `json:"error"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(listenAddr string, store storage.Storage) *Server

func (*Server) GeoreferenceRasterFiles

func (s *Server) GeoreferenceRasterFiles(g *types.GeoreferenceRequest) (int, int, error)

func (*Server) GeoreferenceRasterFiles_backup

func (s *Server) GeoreferenceRasterFiles_backup(g *types.GeoreferenceRequest) error

func (*Server) NewGeoreferenceRequest

func (s *Server) NewGeoreferenceRequest(r *http.Request) (*types.GeoreferenceRequest, error)

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL