cmsintegrationv2

package
v0.0.0-...-e9a8072 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidFMEID = errors.New("invalid fme id")

Functions

func NotifyHandler

func NotifyHandler(conf Config) (echo.HandlerFunc, error)

func WebhookHandler

func WebhookHandler(conf Config) (cmswebhook.Handler, error)

Types

type Config

type Conversion

type Conversion string
const (
	ConversionDisabled Conversion = "変換しない"
	ConversionEnabled  Conversion = "変換する"
)

func (Conversion) Enabled

func (s Conversion) Enabled() bool

type ConversionRequest

type ConversionRequest struct {
	ID     string
	Target string
	// JGD2011平面直角座標第1~19系のEPSGコード(6669〜6687)
	PRCS string
	// 政令指定都市を分割するかしないか
	DevideODC bool
	// 品質検査パラメータファイル
	QualityCheckParams string
	// 品質検査を行うか
	QualityCheck bool
}

func (ConversionRequest) Name

func (r ConversionRequest) Name() string

func (ConversionRequest) Query

func (r ConversionRequest) Query() url.Values

type Item

type Item struct {
	ID string `json:"id,omitempty" cms:"id"`
	// select: specification
	Specification string `json:"specification,omitempty" cms:"specification,select"`
	// asset: citygml
	CityGML string `json:"citygml,omitempty" cms:"citygml,asset"`
	// select: conversion_enabled: 変換する, 変換しない
	ConversionEnabled Conversion `json:"conversion_enabled,omitempty" cms:"conversion_enabled,select"`
	// select: prcs: 第1系~第19系
	PRCS PRCS `json:"prcs" cms:"prcs,select"`
	// asset: quality_check_params
	QualityCheckParams string `json:"quality_check_params,omitempty" cms:"quality_check_params,asset"`
	// select: devide_odc: 分割する, 分割しない
	DevideODC Separation `json:"devide_odc,omitempty" cms:"devide_odc,select"`
	// asset[]: bldg
	Bldg []string `json:"bldg,omitempty" cms:"bldg,asset"`
	// asset: tran
	Tran []string `json:"tran,omitempty" cms:"tran,asset"`
	// asset: frn
	Frn []string `json:"frn,omitempty" cms:"frn,asset"`
	// asset: veg
	Veg []string `json:"veg,omitempty" cms:"veg,asset"`
	// asset: luse
	Luse []string `json:"luse,omitempty" cms:"luse,asset"`
	// asset: lsld
	Lsld []string `json:"lsld,omitempty" cms:"lsld,asset"`
	// asset: urf
	Urf []string `json:"urf,omitempty" cms:"urf,asset"`
	// asset[]: fld
	Fld []string `json:"fld,omitempty" cms:"fld,asset"`
	// asset[]: tnm
	Tnm []string `json:"tnm,omitempty" cms:"tnm,asset"`
	// asset[]: htd
	Htd []string `json:"htd,omitempty" cms:"htd,asset"`
	// asset[]: ifld
	Ifld []string `json:"ifld,omitempty" cms:"ifld,asset"`
	// asset: all
	All string `json:"all,omitempty" cms:"all,asset"`
	// asset: dictionary
	Dictionary string `json:"dictionary,omitempty" cms:"dictionary,asset"`
	// textarea: dic
	Dic string `json:"dic,omitempty" cms:"dic,textarea"`
	// select: conversion_status: 未実行, 実行中, 完了, エラー
	ConversionStatus Status `json:"conversion_status,omitempty" cms:"conversion_status,select"`

	// SDK
	// asset: max_lod
	MaxLOD string `json:"max_lod,omitempty" cms:"max_lod,asset"`
	// select: max_lod_status: 未実行, 実行中, 完了, エラー
	MaxLODStatus Status `json:"max_lod_status,omitempty" cms:"max_lod_status,select"`
	// select: sdk_publication: 公開する・公開しない
	SDKPublication string `json:"sdk_publication,omitempty" cms:"sdk_publication,select"`
	// select: dem: 無し・有り
	Dem       string `json:"dem,omitempty" cms:"dem,select"`
	ProjectID string `json:"-" cms:"-"`
}

func ItemFrom

func ItemFrom(item cms.Item) (i Item)

func (Item) Fields

func (i Item) Fields() (fields []*cms.Field)

func (Item) HasDem

func (i Item) HasDem() bool

func (Item) IsPublicOnSDK

func (i Item) IsPublicOnSDK() bool

type PRCS

type Separation

type Separation string

func (Separation) Enabled

func (s Separation) Enabled() bool

type Services

type Services struct {
	FME       fmeInterface
	CMS       cms.Interface
	FMESecret string
}

func NewServices

func NewServices(c Config) (s Services, _ error)

func (*Services) RequestMaxLODExtraction

func (s *Services) RequestMaxLODExtraction(ctx context.Context, item Item, project string, force bool)

type Status

type Status string
const (
	StatusReady      Status = "未実行"
	StatusProcessing Status = "実行中"
	StatusOK         Status = "完了"
	StatusError      Status = "エラー"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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