Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GiD_Raster create|interpolate|subsample
To create from the mesh a raster (2D grid) with a value that represents the z, and use a raster to efficiently interpolate values to other points or all points of other raster.

...

GiD_Raster interpolate ?-closest? <raster_interpolation> {nodes <xy_nodes>}|{raster <raster_to_interpolate_without_data>}
To use <raster_interpolation> to calculate interpolated values of a collection of 2D nodes or all grid nodes of another raster
It returns and obj_array of doubles with the interpolated value for each node
<xy_nodes> list of x y coordinates "x1 y1 ... xn yn" of the points to interpolate the value
<raster_to_interpolate_without_data> another raster (its values could be a emtpy empty objarray)

If -closest flag is set, then instead interpolate it get the value of the closest grid node (interesting to map non-continous continuous integer values)

GiD_Raster subsample <raster> <increment_row> ?<increment_col>?
It returns a new raster subsampling the input raster jumping columns and row by increment_row and increment_col

increment_row must be an integer>0 and <num_rows of the input raster
If increment_col is omitted it is assumed equal to increment_row


Some auxiliary Tcl procedures:
GIS::GetRasterFromTriangles { selected_element_ids cellsize far_points_set_nodata far_points_distance }
It returns a raster from the selected mesh of triangles.selected_element_ids is expected sorted increasing.

If cellsize is 0.0an automatic value is used

far_points_set_nodata 0 or 1

GIS::GetRasterFromNodes { selected_node_ids cellsize far_points_set_nodata far_points_distance }
It returns a raster from the selected mesh nodes. selected_node_ids is expected sorted increasing.

...

far_points_set_nodata 0 or 1

if 0 all grid points will have interpolated value, 1 far grid points will be set with special nodata (usually -9999) value 

far_points_distance is only used if far_points_set_nodata is 1, and must be a distance>=0.0 (if  0.0 will use an automatic distance value)GIS::SubsampleRaster { raster increment show_advance_bar }
It returns a new raster subsampling the input raster jumping columns and row by increment
show_advance_bar must be 1 to show and advancing bar during the process


GIS::ImportRaster_Geometry { raster show_advance_bar {value_smoothed_to_nodes 1} }
It creates geometrical surfaces (and its lines and points) from the raster

...