Comments (1)
The code used to work up to gdal 3.8.5,
Weird. It should not. radius1, radius2 or nodata (lower case) are not accepted parameters. They should be put inside the algorithm string. Cf:
def GridOptions(options=None, format=None,
outputType=gdalconst.GDT_Unknown,
width=0, height=0,
creationOptions=None,
outputBounds=None,
outputSRS=None,
noData=None,
algorithm=None,
layers=None,
SQLStatement=None,
where=None,
spatFilter=None,
zfield=None,
z_increase=None,
z_multiply=None,
callback=None, callback_data=None):
""" Create a GridOptions() object that can be passed to gdal.Grid()
Parameters
----------
options:
can be be an array of strings, a string or let empty and filled from other keywords.
format:
output format ("GTiff", etc...)
outputType:
output type (gdalconst.GDT_Byte, etc...)
width:
width of the output raster in pixel
height:
height of the output raster in pixel
creationOptions:
list or dict of creation options
outputBounds:
assigned output bounds:
[ulx, uly, lrx, lry]
outputSRS:
assigned output SRS
noData:
nodata value
algorithm:
e.g "invdist:power=2.0:smoothing=0.0:radius1=0.0:radius2=0.0:angle=0.0:max_points=0:min_points=0:nodata=0.0"
layers:
list of layers to convert
SQLStatement:
SQL statement to apply to the source dataset
where:
WHERE clause to apply to source layer(s)
spatFilter:
spatial filter as (minX, minY, maxX, maxY) bounding box
zfield:
Identifies an attribute field on the features to be used to get a Z value from.
This value overrides Z value read from feature geometry record.
z_increase:
Addition to the attribute field on the features to be used to get a Z value from.
The addition should be the same unit as Z value. The result value will be
Z value + Z increase value. The default value is 0.
z_multiply:
Multiplication ratio for Z field. This can be used for shift from e.g. foot to meters
or from elevation to deep. The result value will be
(Z value + Z increase value) * Z multiply value. The default value is 1.
callback:
callback method
callback_data:
user data for callback
"""
There has been no change in the gdal.GridOptions() signature between 3.8.5 and 3.9.0
from gdal.
Related Issues (20)
- `gdal2tiles` crashes if run with `--nodata-values-pct-threshold` but not `--excluded-values` HOT 1
- Support for GML ArcByCenterPoint tag HOT 7
- Option to set CRS of an OGR Layer HOT 1
- Warning 1: PROJ: proj_create_from_database: C:\Program Files\GDAL\projlib\proj.db contains DATABASE.LAY OUT.VERSION.MINOR = 2 whereas a number >= 3 is expected. It comes from another PROJ installation. HOT 2
- Update gdalinfo -json output to support STAC EO extension 2.0
- gdalwarp and vertical transform with Nodata in the transform grid HOT 4
- DXF: cannot read SPLINE without control points HOT 6
- Date type NULL values are treated as '0000/00/00' on PostgreSQL COPY import
- SpatialReference.EPSGTreatsAsNorthingEasting missing from Java bindings HOT 6
- Issue with construction of server path on the OAPIF driver HOT 3
- OGR SQL dialect: it is not possible to set the `\` (backslash) char as the escape char with the `ESCAPE` clause
- GDAL-3.9.1 compilation error
- PDS4 files disp:horizontal_display_direction label should be taken into account.
- C++ API documentation doesn't say which header files to include HOT 1
- cmake --install installs Python bindings without RUNPATH set HOT 4
- libgdal.so.35.3.9.0: undefined reference to `PoDoFo… HOT 2
- PDF driver add trailer/EOF instructions that make them PDF/X invalid HOT 4
- JPEG 12-bit compression for NITF Files HOT 6
- NBIT creation optionsupport for NITF JPEG2000 compression
- Heap corruption in shapefile driver HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdal.