Skip to content

Commit

Permalink
fixes #5
Browse files Browse the repository at this point in the history
Add geojson to the formats for which the "attributes" facet can be used
  • Loading branch information
ptaillandier committed Mar 15, 2024
1 parent e9f6f59 commit 911eeb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gama.core/src/gama/gaml/statements/SaveStatement.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ public void validate(final StatementDescription description) {
IGamlIssue.CONFLICTING_FACETS, ATTRIBUTES, WITH);
}

if (ext != null && format == null && !"shp".equals(ext) && !"json".equals(ext) || format != null
&& !"shp".equals(format.literalValue()) && !"json".equals(format.literalValue())) {
desc.warning("Attributes can only be defined for shape or json files", IGamlIssue.WRONG_TYPE,
if (ext != null && format == null && !"shp".equals(ext) && !"json".equals(ext) && !"geojson".equals(ext) || format != null
&& !"shp".equals(format.literalValue()) && !"geojson".equals(format.literalValue()) && !"json".equals(format.literalValue())) {
desc.warning("Attributes can only be defined for shape, geojson or json files", IGamlIssue.WRONG_TYPE,
ATTRIBUTES);
}

Expand Down

0 comments on commit 911eeb6

Please sign in to comment.