Documentation ¶
Overview ¶
Package cmd contains all the helper functions, handlers, and command-line methods for building the tiffany command-line interface.
Index ¶
- func ClipLabelbyExtent(extent gdal.Geometry, shpFile gdal.Layer, outpath string)
- func Execute()
- func GeoReferenceImage(coordinate []string, size []int, zoom int, inpath string, outpath string)
- func GetGSMImage(client *maps.Client, coordinate []string, zoom int, size []int, outpath string)
- func GetRasterExtent(tifPath string) gdal.Geometry
- func GetStaticMapsClient() *maps.Client
- func ReadShapeFile(lblPath string) gdal.Layer
- func ReprojectImage(path string, srs string)
- func RunBatchPipeline(csvPath string, skipFirst bool, zoom int, size []int, path string, noRef bool, ...) (int, int)
- func RunPipeline(coordinate []string, zoom int, size []int, path string, noRef bool, ...) bool
- type Coordinate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClipLabelbyExtent ¶
ClipLabelbyExtent gets the extent of an input raster and clips a shapefile from it
func GeoReferenceImage ¶
GeoReferenceImage converts a Static Maps image into a geo-referenced TIFF
func GetGSMImage ¶
GetGSMImage downloads a single static maps image given a client and set of parameters
func GetRasterExtent ¶
GetRasterExtent computes for the extent of a TIFF image and returns a Geometry
func GetStaticMapsClient ¶
GetStaticMapsClient returns a Client for constructing a StaticMapRequest.
func ReadShapeFile ¶
ReadShapeFile opens an ESRI Shapefile and returns a Layer of Features
func ReprojectImage ¶
ReprojectImage converts image projection into a new spatial reference
Types ¶
type Coordinate ¶
Coordinate defines a lat-long coordinate from a csv file
func ReadCSVFile ¶
func ReadCSVFile(path string, skipFirst bool) []*Coordinate
ReadCSVFile opens a csv file and returns a list of coordinates