Skip to content

Commit

Permalink
Use the current major version for the 'exported from' description text
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzeslaus committed Feb 13, 2023
1 parent 461beca commit b0e9db5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions raster/r.out.vtk/writeascii.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void write_vtk_normal_header(FILE *fp, struct Cell_head region,
/*Simple vtk ASCII header */
fprintf(fp, "# vtk DataFile Version 3.0\n");
/* The header line describes the data. */
fprintf(fp, "GRASS GIS Export\n");
fprintf(fp, "GRASS GIS %i Export\n", GRASS_VERSION_MAJOR);
fprintf(fp, "ASCII\n");
fprintf(fp, "DATASET STRUCTURED_POINTS\n"); /*We are using the structured
point dataset. */
Expand Down Expand Up @@ -105,7 +105,7 @@ void write_vtk_structured_elevation_header(FILE *fp, struct Cell_head region)

/*Simple vtk ASCII header */
fprintf(fp, "# vtk DataFile Version 3.0\n");
fprintf(fp, "GRASS GIS Export\n");
fprintf(fp, "GRASS GIS %i Export\n", GRASS_VERSION_MAJOR);
fprintf(fp, "ASCII\n");
fprintf(fp, "DATASET STRUCTURED_GRID\n"); /*We are using the structured grid
dataset. */
Expand All @@ -123,7 +123,7 @@ void write_vtk_polygonal_elevation_header(FILE *fp, struct Cell_head region)

/*Simple vtk ASCII header */
fprintf(fp, "# vtk DataFile Version 3.0\n");
fprintf(fp, "GRASS GIS Export\n");
fprintf(fp, "GRASS GIS %i Export\n", GRASS_VERSION_MAJOR);
fprintf(fp, "ASCII\n");
fprintf(fp, "DATASET POLYDATA\n"); /*We are using polydataset. */
fprintf(fp, "POINTS %i float\n", region.cols * region.rows);
Expand Down
6 changes: 3 additions & 3 deletions raster3d/r3.out.vtk/writeVTKHead.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void write_vtk_structured_point_header(FILE *fp, char *vtkFile,

fprintf(fp, "# vtk DataFile Version 3.0\n");
/* The header line describes the data. */
fprintf(fp, "GRASS GIS Export\n");
fprintf(fp, "GRASS GIS %i Export\n", GRASS_VERSION_MAJOR);
fprintf(fp, "ASCII\n");
fprintf(fp, "DATASET STRUCTURED_POINTS\n"); /*We are using the structured
point dataset. */
Expand Down Expand Up @@ -101,7 +101,7 @@ void write_vtk_structured_grid_header(FILE *fp, char *vtkFile,
3,
"write_vtk_structured_grid_header: Writing VTKStructuredGrid-Header");
fprintf(fp, "# vtk DataFile Version 3.0\n");
fprintf(fp, "GRASS GIS Export\n");
fprintf(fp, "GRASS GIS %i Export\n", GRASS_VERSION_MAJOR);
fprintf(fp, "ASCII\n");
fprintf(fp, "DATASET STRUCTURED_GRID\n"); /*We are using the structured grid
dataset. */
Expand All @@ -123,7 +123,7 @@ void write_vtk_unstructured_grid_header(FILE *fp, char *vtkFile,
G_debug(3, "write_vtk_unstructured_grid_header: Writing "
"VTKUnstructuredGrid-Header");
fprintf(fp, "# vtk DataFile Version 3.0\n");
fprintf(fp, "GRASS GIS Export\n");
fprintf(fp, "GRASS GIS %i Export\n", GRASS_VERSION_MAJOR);
fprintf(fp, "ASCII\n");
fprintf(fp, "DATASET UNSTRUCTURED_GRID\n"); /*We are using the unstructured
grid dataset. */
Expand Down
2 changes: 1 addition & 1 deletion vector/v.out.vtk/head.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int write_vtk_head(FILE *fp, struct Map_info *Map)
G_debug(3, _("writeVTKHeader: Writing VTK-Header"));
fprintf(fp, "# vtk DataFile Version 3.0\n");
/* The header line describes the data. */
fprintf(fp, "GRASS GIS vector map: %s\n", Map->name);
fprintf(fp, "GRASS GIS %d vector map: %s\n", GRASS_VERSION_MAJOR, Map->name);
fprintf(fp, "ASCII\n");
fprintf(fp, "DATASET POLYDATA\n"); /*We are using polydata. If Volume data
is supported, uGrid should be used */
Expand Down

0 comments on commit b0e9db5

Please sign in to comment.