@@ -122,24 +122,69 @@ class RasterTileSetAssetCreationOptions(StrictBaseModel):
122122 "when input files are in different projections from each other."
123123 )
124124 )
125- pixel_meaning : str
125+ pixel_meaning : str = Field (
126+ ..., description = "Description of what the pixel value in the "
127+ "raster represents. This is used to clarify the meaning of the raster "
128+ "and distinguish multiple raster tile sets based on the same dataset "
129+ "version. The pixel_meaning string should be fairly short, use all "
130+ "lower-case letters, and use underscores instead of spaces."
131+ )
126132 data_type : DataType
127- nbits : Optional [int ]
128- calc : Optional [str ]
133+ nbits : Optional [int ] = Field (
134+ None ,
135+ description = "Advanced option that lets GDAL compress the data even "
136+ "more based on the number of bits you need."
137+ )
138+ calc : Optional [str ] = Field (
139+ None ,
140+ description = "There are two modes for this field, one for rasterizing vector "
141+ "sources and one for transforming and/or combining one or more "
142+ "sources that are already raster. For rasterizing vector sources, "
143+ "this field should be an SQL expression that yields the desired "
144+ "raster value based on the fields of your vector dataset.\n \n For raster "
145+ "sources, this should be a raster algebra expression, similar to that "
146+ "provided to gdal_calc (see "
147+ "https://gdal.org/en/stable/programs/gdal_calc.html), "
148+ "that transforms one or more input bands into one or more output "
149+ "bands. For use in this expression, each band in "
150+ "the sources is assigned an alphabetic variable (A-Z, then AA-AZ, "
151+ "etc.) in the order it exists in those sources, with those of the "
152+ "first source first, continuing with those of the second, and so on. "
153+ "So with two input sources of two bands each, they would be assigned "
154+ "to variables A and B (for the first source) and C and D (for the "
155+ "second source). The NumPy module is in scope, accessible as np"
156+ )
129157 band_count : int = 1
130158 union_bands : bool = False
131159 no_data : Optional [Union [List [NoDataType ], NoDataType ]]
132- rasterize_method : Optional [RasterizeMethod ]
160+ rasterize_method : Optional [RasterizeMethod ] = Field (
161+ RasterizeMethod .value ,
162+ description = "For raster sources or default assets, 'value' (the "
163+ "default) means use the value from the last or only band processed, "
164+ "and 'count' means count the number of bands with data values."
165+ )
133166 resampling : ResamplingMethod = PIXETL_DEFAULT_RESAMPLING
134- order : Optional [Order ]
167+ order : Optional [Order ] = Field (
168+ None ,
169+ description = "For vector default assets, order the features by the "
170+ "calculated raster value. For 'asc', the features are ordered by "
171+ "ascending calculated value so that the largest calculated value is "
172+ "used in the raster when there are overlapping features. For 'desc', "
173+ "the ordering is descending, so that the smallest calculated value "
174+ "is used when there are overlaps."
175+ )
135176 overwrite : bool = False
136177 subset : Optional [str ]
137178 grid : Grid
138179 symbology : Optional [Symbology ] = None
139180 compute_stats : bool = True
140181 compute_histogram : bool = False
141182 process_locally : bool = True
142- auxiliary_assets : Optional [List [UUID ]] = None
183+ auxiliary_assets : Optional [List [UUID ]] = Field (
184+ None ,
185+ description = "Asset IDs of additional rasters you might want to include "
186+ "in your calc expression."
187+ )
143188 photometric : Optional [PhotometricType ] = None
144189 num_processes : Optional [StrictInt ] = None
145190 timeout_sec : Optional [StrictInt ] = Field (
@@ -209,7 +254,15 @@ class VectorSourceCreationOptions(StrictBaseModel):
209254 Index (index_type = IndexType .gist .value , column_names = ["geom_wm" ]),
210255 Index (index_type = IndexType .hash .value , column_names = ["gfw_geostore_id" ]),
211256 ],
212- description = "List of indices to add to table" ,
257+ description = "List of indices to add to the database table representing "
258+ "the vector dataset. Each element of the indices field contains an "
259+ "index_type field (which is a string) and a column_names field (which "
260+ "is a list of field names included in this index). The possibilities "
261+ "for the index_type field are hash, btree, or gist. hash is efficient "
262+ "for standard exact-value lookups, while btree is efficient for range "
263+ "lookups. gist is used for geometry fields and can do "
264+ "intersection-type lookups. See "
265+ "https://www.postgresql.org/docs/current/indexes-types.html"
213266 )
214267 cluster : Optional [Index ] = Field (None , description = "Index to use for clustering." )
215268 table_schema : Optional [List [FieldType ]] = Field (
@@ -331,7 +384,7 @@ class RasterTileCacheCreationOptions(TileCacheBaseModel):
331384 "default" ,
332385 description = "Name space to use for raster tile cache. "
333386 "This will be part of the URI and will "
334- "allow to create multiple raster tile caches per version," ,
387+ "allow creation of multiple raster tile caches per version," ,
335388 )
336389 symbology : Symbology = Field (..., description = "Symbology to use for output tiles" )
337390 source_asset_id : str = Field (
0 commit comments