Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conversion ¶
type Conversion struct { InputPath string OutputPath string OutputType NetOutputType OutputFmt NetOutputFmt }
Conversion holds all parameters required to generate a Cube Network to Shapefile/DBF conversion script.
func (*Conversion) WriteScript ¶
func (c *Conversion) WriteScript(w io.Writer) error
WriteScript writes a conversion script to the provided writer.
type Link ¶
type Link struct{ A, B int64 }
Link holds the A and B node numbers for a network link.
func LinksFromCsv ¶
LinksFromCsv returns a slice of links from a CSV file with A and B columns.
type LinkSet ¶
type LinkSet map[Link]struct{}
LinkSet holds a set of unique links.
func NewLinkSet ¶
NewLinkSet constructs a LinkSet from provided links.
type NetOutputFmt ¶
type NetOutputFmt string
const ( Dbf NetOutputFmt = "DBF" Shp NetOutputFmt = "SHP" )
type NetOutputType ¶
type NetOutputType string
const ( LinkFile NetOutputType = "LINK" NodeFile NetOutputType = "NODE" )
type Route ¶
func RouteFromNodes ¶
RouteFromNodes returns a Route from a name and slice of nodes.
Click to show internal directories.
Click to hide internal directories.