Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/issue_70' into issue_70
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vasudeo Desai committed Oct 24, 2024
2 parents 5b92dc2 + 82f64c8 commit cf8e3f6
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 cf8e3f6

Please sign in to comment.