Skip to content

Commit

Permalink
Update lib/vector/Vlib/copy.c
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
ShubhamDesai and github-actions[bot] authored Oct 24, 2024
1 parent 1559dbf commit 82f64c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/vector/Vlib/copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ int Vect_copy_map_lines_field(struct Map_info *In, int field,
/* check output feature type, centroids can be exported as
* points; boundaries as linestrings */
geometry_type = Vect_get_finfo_geometry_type(Out);
if (geometry_type && strcmp(geometry_type, "polygon") == 0) {
/* copy areas - external formats and simple features access only */
ret += Vect__copy_areas(In, field, Out);
if (geometry_type && strcmp(geometry_type, "polygon") == 0) {
/* copy areas - external formats and simple features access only
*/
ret += Vect__copy_areas(In, field, Out);
}
G_free(geometry_type);
}
Expand Down

0 comments on commit 82f64c8

Please sign in to comment.