mml

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package mml parses mml-YAML/JSON files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datasource

type Datasource interface{}

type GDAL

type GDAL struct {
	Id         string
	Filename   string
	SRID       string
	Extent     string
	Band       string
	Processing []string
}

type GeoJson

type GeoJson struct {
	Id       string
	Filename string
}

type GeometryType

type GeometryType string
const (
	Unknown    GeometryType = "Unknown"
	LineString GeometryType = "LineString"
	Polygon    GeometryType = "Polygon"
	Point      GeometryType = "Point"
	Raster     GeometryType = "Raster"
)

type Layer

type Layer struct {
	ID              string
	Classes         []string
	SRS             string
	Datasource      Datasource
	Type            GeometryType
	Active          bool
	GroupBy         string
	ClearLabelCache bool
	PostLabelCache  bool
	CacheFeatures   bool
	ScaleFactor     float64
	Properties      map[string]interface{}
}

type MML

type MML struct {
	Name        string
	Layers      []Layer
	Stylesheets []string
	Map         Map
}

func Parse

func Parse(r io.Reader) (*MML, error)

type Map

type Map struct {
	ZoomScales []int  `yaml:"ZoomScales"`
	SRS        string `yaml:"SRS"`
	BBOX       []int  `yaml:"BBOX"`
}

type OGR

type OGR struct {
	Id       string
	Filename string
	SRID     string
	Layer    string
	Query    string
	Extent   string
}

type PostGIS

type PostGIS struct {
	Id            string
	Host          string
	Port          string
	Database      string
	Username      string
	Password      string
	Query         string
	SRID          string
	GeometryField string
	Extent        string
}

type SQLite

type SQLite struct {
	Id            string
	Filename      string
	SRID          string
	Query         string
	GeometryField string
	Extent        string
}

type Shapefile

type Shapefile struct {
	Id       string
	Filename string
	SRID     string
}

Jump to

Keyboard shortcuts

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