Documentation ¶
Overview ¶
Package tiff implements a TIFF image decoder and encoder.
The TIFF specification is at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf
Index ¶
- Constants
- func Decode(r io.Reader) (image.Image, error)
- func DecodeConfig(r io.Reader) (image.Config, error)
- func DecodeConfigLevel(r io.Reader, level int) (image.Config, error)
- func DecodeLevel(r io.Reader, level int) (img image.Image, err error)
- func DecodeLevelSubImage(r io.Reader, level int, rect image.Rectangle) (img image.Image, err error)
- type Citation
- type CompressionType
- type FormatError
- type GeoData
- type GeoInfo
- type GeoTIFF
- type GeogAngularUnits
- type GeogEllipsoid
- type GeogGeodeticDatum
- type GeographicType
- type ImgDesc
- type KeyEntry
- type ModelType
- type ProjCSTType
- type ProjCoordTrans
- type ProjLinearUnits
- type Projection
- type RasterType
- type UnsupportedError
Constants ¶
View Source
const ( //This tag is used to store all of the DOUBLE valued GeoKeys, referenced by the //GeoKeyDirectoryTag. The meaning of any value of this double array is determined //from the GeoKeyDirectoryTag reference pointing to it. FLOAT values should first //be converted to DOUBLE and stored here. GeoDoubleParamsTag = 34736 // Type = DOUBLE (IEEE Double precision) N = variable //This tag is used to store all of the ASCII valued GeoKeys, referenced by the //GeoKeyDirectoryTag. Since keys use offsets into tags, any special comments //may be placed at the beginning of this tag. For the most part, the only keys //that are ASCII valued are "Citation" keys, giving documentation and references //for obscure projections, datums, etc. GeoAsciiParamsTag = 34737 // Type = ASCII N = variable )
View Source
const ( //GeoTIFF Configuration Keys GTModelTypeGeoKey = 1024 // Section 6.3.1.1 Codes GTRasterTypeGeoKey = 1025 // Section 6.3.1.2 Codes GTCitationGeoKey = 1026 // documentation // Geographic CS Parameter Keys GeographicTypeGeoKey = 2048 // Section 6.3.2.1 Codes GeogCitationGeoKey = 2049 // documentation GeogGeodeticDatumGeoKey = 2050 // Section 6.3.2.2 Codes GeogPrimeMeridianGeoKey = 2051 // Section 6.3.2.4 codes GeogLinearUnitsGeoKey = 2052 // Section 6.3.1.3 Codes GeogLinearUnitSizeGeoKey = 2053 // meters GeogAngularUnitsGeoKey = 2054 // Section 6.3.1.4 Codes GeogAngularUnitSizeGeoKey = 2055 // radians GeogEllipsoidGeoKey = 2056 // Section 6.3.2.3 Codes GeogSemiMajorAxisGeoKey = 2057 // GeogLinearUnits GeogSemiMinorAxisGeoKey = 2058 // GeogLinearUnits GeogInvFlatteningGeoKey = 2059 // ratio GeogAzimuthUnitsGeoKey = 2060 // Section 6.3.1.4 Codes GeogPrimeMeridianLongGeoKey = 2061 // GeogAngularUnit // Projected CS Parameter Keys ProjectedCSTypeGeoKey = 3072 // Section 6.3.3.1 codes PCSCitationGeoKey = 3073 // documentation ProjectionGeoKey = 3074 // Section 6.3.3.2 codes ProjCoordTransGeoKey = 3075 // Section 6.3.3.3 codes ProjLinearUnitsGeoKey = 3076 // Section 6.3.1.3 codes ProjLinearUnitSizeGeoKey = 3077 // meters ProjStdParallel1GeoKey = 3078 // GeogAngularUnit ProjStdParallel2GeoKey = 3079 // GeogAngularUnit ProjNatOriginLongGeoKey = 3080 // GeogAngularUnit ProjNatOriginLatGeoKey = 3081 // GeogAngularUnit ProjFalseEastingGeoKey = 3082 // ProjLinearUnits ProjFalseNorthingGeoKey = 3083 // ProjLinearUnits ProjFalseOriginLongGeoKey = 3084 // GeogAngularUnit ProjFalseOriginLatGeoKey = 3085 // GeogAngularUnit ProjFalseOriginEastingGeoKey = 3086 // ProjLinearUnits ProjFalseOriginNorthingGeoKey = 3087 // ProjLinearUnits ProjCenterLongGeoKey = 3088 // GeogAngularUnit ProjCenterLatGeoKey = 3089 // GeogAngularUnit ProjCenterEastingGeoKey = 3090 // ProjLinearUnits ProjCenterNorthingGeoKey = 3091 // ProjLinearUnits ProjScaleAtNatOriginGeoKey = 3092 // ratio ProjScaleAtCenterGeoKey = 3093 // ratio ProjAzimuthAngleGeoKey = 3094 // GeogAzimuthUnit ProjStraightVertPoleLongGeoKey = 3095 // GeogAngularUnit )
Key ID Summary
View Source
const ( Projected ModelType = "Projected" Geographic ModelType = "Geographic" Geocentric ModelType = "Geocentric" PixelIsArea RasterType = "PixelIsArea" PixelIsPoint RasterType = "PixelIsPoint" //Section 6.3.1.3 codes LinearMeter ProjLinearUnits = "metre" //Section 6.3.1.4 codes AngularRadian GeogAngularUnits = "radian" AngularDegree GeogAngularUnits = "degree" //Section 6.3.2.1 codes GCS_WGS84 GeographicType = "WGS_84" UserDefinedGeogType GeographicType = "user-defined" //Section 6.3.2.2 codes DatumWGS84 GeogGeodeticDatum = "WGS_84" UserDefinedGeodDatum GeogGeodeticDatum = "user-defined" //Section 6.3.2.3 codes EllipseWGS84 GeogEllipsoid = "WGS_84" EllipseSphere GeogEllipsoid = "Sphere" UserDefinedGeogEllipsoid GeogEllipsoid = "user-defined" //Section 6.3.3.2 codes UserDefinedProjection Projection = "user-defined" //Section 6.3.3.3 codes EPSG3857 ProjCSTType = "EPSG:3857" UserDefinedCSTType ProjCSTType = "user-defined" //Section 6.3.3.3 codes CTTransverseMercator ProjCoordTrans = "TransverseMercator" CTAlbersEqualArea ProjCoordTrans = "AlbersEqualArea" CTSinusoidal ProjCoordTrans = "Sinusoidal" )
Variables ¶
This section is empty.
Functions ¶
func DecodeConfig ¶
DecodeConfig returns the color model and dimensions of a TIFF image without decoding the entire image.
Types ¶
type CompressionType ¶
type CompressionType int
CompressionType describes the type of compression used in Options.
const ( Uncompressed CompressionType = iota Deflate )
type FormatError ¶
type FormatError string
A FormatError reports that the input is not a valid TIFF image.
func (FormatError) Error ¶
func (e FormatError) Error() string
type GeoData ¶
type GeoData struct { ModelType RasterType Citation string GeographicType GeogCitation string GeogGeodeticDatum GeogAngularUnits GeogEllipsoid GeogSemiMajorAxis float64 GeogSemiMinorAxis float64 GeogInvFlattening float64 GeogPrimeMeridian string GeogPrimeMeridianLong float64 ProjCSTType Projection ProjCoordTrans ProjLinearUnits ProjFalseEasting float64 ProjFalseNorthing float64 ProjCenterLong float64 ProjZone int }
type GeoTIFF ¶
type GeoTIFF struct { Overviews []ImgDesc BBox geometry.BoundingBox NoData float64 GDALMetadata string // contains filtered or unexported fields }
TODO: Does cog need to support stripped files? TODO: stripped files are not implemented for the moment
type GeogAngularUnits ¶
type GeogAngularUnits string
type GeogEllipsoid ¶
type GeogEllipsoid string
type GeogGeodeticDatum ¶
type GeogGeodeticDatum string
type GeographicType ¶
type GeographicType string
type ProjCSTType ¶
type ProjCSTType string
type ProjCoordTrans ¶
type ProjCoordTrans string
type ProjLinearUnits ¶
type ProjLinearUnits string
type Projection ¶
type Projection string
type RasterType ¶
type RasterType string
type UnsupportedError ¶
type UnsupportedError string
An UnsupportedError reports that the input uses a valid but unimplemented feature.
func (UnsupportedError) Error ¶
func (e UnsupportedError) Error() string
Directories ¶
Path | Synopsis |
---|---|
Package lzw implements the Lempel-Ziv-Welch compressed data format, described in T. A. Welch, “A Technique for High-Performance Data Compression”, Computer, 17(6) (June 1984), pp 8-19.
|
Package lzw implements the Lempel-Ziv-Welch compressed data format, described in T. A. Welch, “A Technique for High-Performance Data Compression”, Computer, 17(6) (June 1984), pp 8-19. |
Click to show internal directories.
Click to hide internal directories.