Documentation ¶
Index ¶
- func Handler(conf Config, g *echo.Group) (bool, error)
- type CMS
- func (c *CMS) Datasets(ctx context.Context, model string) (*DatasetResponse, error)
- func (c *CMS) DatasetsWithIntegrationAPI(ctx context.Context, model string) (*DatasetResponse, error)
- func (c *CMS) DatasetsWithPublicAPI(ctx context.Context, model string) (*DatasetResponse, error)
- func (c *CMS) Files(ctx context.Context, model, id string) (FilesResponse, error)
- func (c *CMS) FilesWithIntegrationAPI(ctx context.Context, model, id string) (FilesResponse, error)
- func (c *CMS) FilesWithPublicAPI(ctx context.Context, model, id string) (FilesResponse, error)
- type Config
- type DatasetCity
- type DatasetPref
- type DatasetResponse
- type File
- type FilesResponse
- type IItem
- type Item
- type Items
- type MaxLODColumn
- type MaxLODColumns
- type MaxLODMap
- type MaxLODMapItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CMS ¶
type CMS struct { Project string PublicAPI bool IntegrationAPIClient cms.Interface PublicAPIClient *cms.PublicAPIClient[Item] }
func (*CMS) DatasetsWithIntegrationAPI ¶
func (*CMS) DatasetsWithPublicAPI ¶
func (*CMS) FilesWithIntegrationAPI ¶
func (*CMS) FilesWithPublicAPI ¶
type Config ¶
type DatasetCity ¶
type DatasetPref ¶
type DatasetPref struct { ID string `json:"id"` Title string `json:"title"` Data []DatasetCity `json:"data"` }
type DatasetResponse ¶
type DatasetResponse struct {
Data []*DatasetPref `json:"data"`
}
type FilesResponse ¶
func MaxLODFiles ¶
func MaxLODFiles(maxLOD MaxLODColumns, assetPaths []string, assetBase *url.URL) (FilesResponse, []string)
type IItem ¶
type IItem struct { ID string `json:"id" cms:"id,text"` Specification string `json:"specification" cms:"specification,select"` Prefecture string `json:"prefecture" cms:"prefecture,text"` CityName string `json:"city_name" cms:"city_name,text"` CityGML any `json:"citygml" cms:"citygml,asset"` Description string `json:"description_bldg" cms:"description_bldg,textarea"` MaxLOD any `json:"max_lod" cms:"max_lod,asset"` Bldg []any `json:"bldg" cms:"bldg,asset"` Tran []any `json:"tran" cms:"tran,asset"` Frn []any `json:"frn" cms:"frn,asset"` Veg []any `json:"veg" cms:"veg,asset"` Fld []any `json:"fld" cms:"fld,asset"` Tnm []any `json:"tnm" cms:"tnm,asset"` Htd []any `json:"htd" cms:"htd,asset"` Ifld []any `json:"ifld" cms:"ifld,asset"` Luse []any `json:"luse" cms:"luse,asset"` Lsld []any `json:"lsld" cms:"lsld,asset"` Urf []any `json:"urf" cms:"veg,asset"` Dem string `json:"dem" cms:"dem,select"` SDKPublication string `json:"sdk_publication" cms:"sdk_publication,select"` }
type Item ¶
type Item struct { ID string `json:"id"` Specification string `json:"specification"` Prefecture string `json:"prefecture"` CityName string `json:"city_name"` CityGML *cms.PublicAsset `json:"citygml"` Description string `json:"description_bldg"` MaxLOD *cms.PublicAsset `json:"max_lod"` Bldg []cms.PublicAsset `json:"bldg"` Tran []cms.PublicAsset `json:"tran"` Frn []cms.PublicAsset `json:"frn"` Veg []cms.PublicAsset `json:"veg"` Luse []cms.PublicAsset `json:"luse"` Lsld []cms.PublicAsset `json:"lsld"` Urf []cms.PublicAsset `json:"urf"` Fld []cms.PublicAsset `json:"fld"` Tnm []cms.PublicAsset `json:"tnm"` Htd []cms.PublicAsset `json:"htd"` Ifld []cms.PublicAsset `json:"ifld"` Dem string `json:"dem"` SDKPublication string `json:"sdk_publication"` }
func ItemFromIntegration ¶
func (Item) FeatureTypes ¶
func (Item) SpecVersion ¶
type Items ¶
type Items []Item
func ItemsFromIntegration ¶
func (Items) DatasetResponse ¶
func (i Items) DatasetResponse() (r *DatasetResponse)
type MaxLODColumn ¶
type MaxLODColumns ¶
type MaxLODColumns []MaxLODColumn
func ReadMaxLODCSV ¶
func ReadMaxLODCSV(b io.Reader) (MaxLODColumns, error)
func (MaxLODColumns) Map ¶
func (mc MaxLODColumns) Map() MaxLODMap
type MaxLODMap ¶
type MaxLODMap map[string]map[string]MaxLODMapItem
type MaxLODMapItem ¶
Click to show internal directories.
Click to hide internal directories.