Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/airbusgeo/godal
/ functions
Functions
838 in github.com/airbusgeo/godal
⨍
Functions
838
◇
Types & classes
271
↓ 384 callers
Method
Error
()
godal_test.go:3927
↓ 190 callers
Method
Close
Close releases the dataset
godal.go:1571
↓ 131 callers
Method
cPointer
()
godal.go:4481
↓ 127 callers
Function
godalUnwrap
godal.cpp:84
↓ 126 callers
Function
ErrLogger
ErrLogger is an option to override default error handling. See ErrorHandler.
errors.go:84
↓ 105 callers
Function
eh
()
godal_test.go:60
↓ 104 callers
Function
godalWrap
godal.cpp:69
↓ 96 callers
Method
close
frees the context and returns any error it may contain
godal.go:4486
↓ 96 callers
Function
createCGOContext
(configOptions []string, eh ErrorHandler)
godal.go:4465
↓ 87 callers
Method
Read
godal.cpp:1561
↓ 85 callers
Method
free
()
godal.go:585
↓ 73 callers
Method
Bands
Bands returns all dataset bands.
godal.go:742
↓ 67 callers
Function
Create
Create wraps GDALCreate and uses driver to creates a new raster dataset with the given name (usually filename), size, type and bands.
godal.go:1443
↓ 60 callers
Function
Open
Open calls GDALOpenEx() with the provided options. It returns nil and an error in case there was an error opening the provided dataset name. name may
godal.go:1532
↓ 40 callers
Method
handle
handle returns a pointer to the underlying GDALDatasetH
godal.go:1523
↓ 37 callers
Function
NewGeometryFromWKT
NewGeometryFromWKT creates a new Geometry from its WKT representation
godal.go:3550
↓ 37 callers
Method
Structure
Structure returns the dataset's Structure
godal.go:168
↓ 37 callers
Method
handle
handle() returns a pointer to the underlying GDALRasterBandH
godal.go:163
↓ 35 callers
Function
forceError
godal.cpp:107
↓ 34 callers
Function
forceCPLError
godal.cpp:112
↓ 31 callers
Function
NewSpatialRefFromEPSG
NewSpatialRefFromEPSG creates a SpatialRef from an epsg code
godal.go:2131
↓ 30 callers
Method
Write
Write sets the dataset's pixels contained in the supplied window to the content of the supplied buffer
godal.go:298
↓ 27 callers
Function
CreationOption
CreationOption are options to pass to a driver when creating a dataset, to be passed in the form KEY=VALUE Examples are: BLOCKXSIZE=256, COMPRESS=LZW
options.go:893
↓ 26 callers
Method
SetFieldValue
SetFieldValue set feature's field value
godal.go:2958
↓ 26 callers
Function
VSIUnlink
VSIUnlink deletes path
godal.go:3740
↓ 26 callers
Function
sliceToCStringArray
(in []string)
godal.go:599
↓ 26 callers
Function
tempfile
()
godal_test.go:64
↓ 25 callers
Function
forceOGRError
godal.cpp:117
↓ 24 callers
Function
bufferType
(buffer interface{})
godal.go:1805
↓ 24 callers
Function
cBuffer
cBuffer returns the type of an individual element, and a pointer to the underlying memory array
godal.go:1834
↓ 24 callers
Function
failed
godal.cpp:100
↓ 23 callers
Function
CheckMinVersion
CheckMinVersion will return true if the runtime version is at least major.minor.revision
godal.go:1613
↓ 23 callers
Method
Size
(key string)
godal.go:3784
↓ 23 callers
Method
WKT
WKT returns the Geomtry's WKT representation
godal.go:3588
↓ 22 callers
Function
CreateVector
CreateVector wraps GDALCreate and uses driver to create a new vector dataset with the given name (usually filename) and options
godal.go:1480
↓ 21 callers
Function
ConfigOption
ConfigOption sets a configuration option for a gdal library call. See the specific gdal function doc page and specific driver docs for allowed values.
options.go:935
↓ 20 callers
Method
CreateLayer
CreateLayer creates a new vector layer Available CreateLayerOptions are - FieldDefinition (may be used multiple times) to add attribute fields to the
godal.go:3369
↓ 19 callers
Method
Layers
Layers returns all dataset layers
godal.go:2641
↓ 19 callers
Method
String
String returns the field as a string
godal.go:3105
↓ 17 callers
Method
FeatureCount
FeatureCount returns the number of features in the layer
godal.go:2626
↓ 16 callers
Method
Fill
Fill sets the whole band uniformely to (real,imag)
godal.go:282
↓ 16 callers
Function
NewFieldDefinition
NewFieldDefinition creates a FieldDefinition
godal.go:2509
↓ 16 callers
Function
RegisterVSIHandler
RegisterVSIHandler registers an osio.Adapter on the given prefix. When registering an adapter with RegisterVSIHandler("scheme://",handler) calling
godal.go:3928
↓ 16 callers
Method
SetSpatialRef
SetSpatialRef sets dataset's projection. sr can be set to nil to clear an existing projection
godal.go:850
↓ 16 callers
Function
cDoubleArray
(in []float64)
godal.go:568
↓ 15 callers
Method
Is
Is is the standard error wrapping interface
errors.go:451
↓ 14 callers
Method
Bounds
Bounds returns the layer's envelope in the order minx,miny,maxx,maxy
godal.go:2596
↓ 14 callers
Method
NewFeature
NewFeature creates a feature on Layer from a geometry
godal.go:3312
↓ 14 callers
Method
Type
Type returns the layer geometry type.
godal.go:2591
↓ 14 callers
Function
VSIHandlerStripPrefix
VSIHandlerStripPrefix allows to strip the prefix of the key when calling the underlying VSIKeyReader.
options.go:1661
↓ 13 callers
Method
SetGeoTransform
SetGeoTransform sets the affine transformation coefficients
godal.go:887
↓ 13 callers
Method
SetNoData
SetNoData sets the band's nodata value
godal.go:195
↓ 13 callers
Method
SpatialRef
SpatialRef returns dataset projection.
godal.go:2661
↓ 12 callers
Function
Bands
Bands specifies which dataset bands should be read/written. By default all dataset bands are read/written. Note: bnds is 0-indexed so as to be consis
options.go:706
↓ 12 callers
Method
BuildOverviews
BuildOverviews computes overviews for the dataset. If neither Levels() or MinSize() is specified, will compute overview levels such that the smallest
godal.go:1082
↓ 12 callers
Method
Translate
Translate runs the library version of gdal_translate. See the gdal_translate doc page to determine the valid flags/opts that can be set in switches.
godal.go:936
↓ 12 callers
Method
handle
handle returns a pointer to the underlying GDALRasterBandH
godal.go:2581
↓ 11 callers
Method
Overviews
Overviews returns all overviews of band
godal.go:416
↓ 10 callers
Function
Domain
Domain specifies the gdal metadata domain to use
options.go:688
↓ 10 callers
Method
GeoTransform
GeoTransform returns the affine transformation coefficients
godal.go:867
↓ 10 callers
Method
Int
Int returns the Field as an integer
godal.go:3075
↓ 10 callers
Method
Name
Name returns the layer name
godal.go:2586
↓ 10 callers
Function
RegisterVector
RegisterVector registers a vector driver by name. Calling RegisterVector(DriverName) with one of the predefined DriverNames provided by the library w
godal.go:1337
↓ 9 callers
Method
ActualBlockSize
ActualBlockSize returns the number of pixels in the x and y dimensions that actually contain data for the given x,y block
structure.go:93
↓ 9 callers
Method
ClearOverviews
ClearOverviews deletes all dataset overviews
godal.go:1139
↓ 9 callers
Method
Contains
Contains tests if this geometry contains the other geometry.
godal.go:2856
↓ 9 callers
Method
Grid
Grid runs the library version of gdal_grid. See the gdal_grid doc page to determine the valid flags/opts that can be set in switches. Example switche
godal.go:4062
↓ 9 callers
Method
NextFeature
NextFeature returns the layer's next feature, or nil if there are no mo features
godal.go:3289
↓ 9 callers
Function
PixelStride
PixelStride sets the offset in the provided buffer from one pixel to the next pixel in the same row. If not provided, it will be calculated from the n
options.go:827
↓ 9 callers
Method
RasterizeGeometry
RasterizeGeometry "burns" the provided geometry onto ds. By default, the "0" value is burned into all of ds's bands. This behavior can be modified wit
godal.go:2398
↓ 9 callers
Function
RegisterRaster
RegisterRaster registers a raster driver by name. Calling RegisterRaster(DriverName) with one of the predefined DriverNames provided by the library w
godal.go:1303
↓ 9 callers
Method
SetProjection
SetProjection sets the WKT projection of the dataset. May be empty.
godal.go:826
↓ 9 callers
Function
combine
(e1, e2 error)
errors.go:460
↓ 8 callers
Method
Float
Float returns the field as a float64
godal.go:3090
↓ 8 callers
Method
GCPProjection
GetGCPProjection runs the GDALGetGCPProjection function
godal.go:4344
↓ 8 callers
Method
GCPSpatialRef
GetGCPSpatialRef runs the GDALGetGCPSpatialRef function
godal.go:4333
↓ 8 callers
Method
GCPs
GetGCPs runs the GDALGetGCPs function
godal.go:4338
↓ 8 callers
Method
Intersects
Intersects determines whether two geometries intersect. If GEOS is enabled, then this is done in rigorous fashion otherwise TRUE is returned if the en
godal.go:2800
↓ 8 callers
Method
IsSame
IsSame returns whether two SpatiaRefs describe the same projection.
godal.go:2145
↓ 8 callers
Function
LineStride
LineStride sets the offset in the provided buffer from one pixel to the pixel of the same band one row below. If not provided, it will be calculated f
options.go:836
↓ 8 callers
Method
MaskFlags
MaskFlags returns the mask flags associated with this band. See https://gdal.org/development/rfc/rfc15_nodatabitmask.html for how this flag should be
godal.go:254
↓ 8 callers
Method
SetGCPs
SetGCPs runs the GDALSetGCPs function
godal.go:4349
↓ 7 callers
Method
As
As is the standard error wrapping interface
errors.go:441
↓ 7 callers
Method
Error
godal.cpp:1609
↓ 7 callers
Method
ExecuteSQL
ExecuteSQL executes an SQL statement against the data store. This function may return a nil ResultSet when the SQL statement does not generate any row
godal.go:3433
↓ 7 callers
Method
Len
Len returns the number of buckets contained in the histogram
histogram.go:30
↓ 7 callers
Method
Major
Major returns the GDAL major version (e.g. "3" in 3.2.1)
godal.go:1589
↓ 7 callers
Function
NewSpatialRef
NewSpatialRef creates a SpatialRef from any "user" projection string, e.g. "epsg:4326", "+proj=lonlat", wkt, wkt2 or projjson (as supported by gdal's
godal.go:2083
↓ 7 callers
Method
Polygonize
Polygonize wraps GDALPolygonize
godal.go:349
↓ 7 callers
Method
SetMetadata
(key, value string, opts ...MetadataOption)
godal.go:1913
↓ 7 callers
Method
SieveFilter
SieveFilter wraps GDALSieveFilter
godal.go:394
↓ 7 callers
Function
VSIOpen
VSIOpen opens path. path can be virtual, eg beginning with /vsimem/
godal.go:3710
↓ 7 callers
Function
Values
Values sets the value(s) that must be rasterized in the dataset bands. vals must either be a single value that will be applied to all bands, or exactl
options.go:1196
↓ 7 callers
Method
VectorTranslate
VectorTranslate runs the library version of ogr2ogr See the ogr2ogr doc page to determine the valid flags/opts that can be set in switches. Example s
godal.go:2544
↓ 6 callers
Method
CreateMaskBand
CreateMaskBand creates a mask (nodata) band shared for all bands of this dataset. Any handle returned by a previous call to Band.MaskBand() should no
godal.go:801
↓ 6 callers
Method
Dem
Dem runs the library version of gdaldem. See the gdaldem doc page to determine the valid flags/opts that can be set in switches. Example switches (fo
godal.go:4099
↓ 6 callers
Method
Fields
Fields returns all the Feature's fields
godal.go:3169
↓ 6 callers
Method
FillNoData
FillNoData wraps GDALFillNodata()
godal.go:372
↓ 6 callers
Method
GeoJSON
GeoJSON returns the geometry in geojson format. The geometry is expected to be in epsg:4326 projection per RFCxxx Available GeoJSONOptions are - Sign
godal.go:3664
↓ 6 callers
Method
Geometry
Geometry returns a handle to the feature's geometry
godal.go:2917
next →
1–100 of 838, ranked by callers