Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GEO.UNION and GEO.INTESERCTION to take a list of shapes. #663

Merged
merged 2 commits into from
Feb 11, 2020

Conversation

ftence
Copy link
Contributor

@ftence ftence commented Feb 10, 2020

No description provided.

if (!(element instanceof GeoXPShape)) {
throw new WarpScriptException(getName() + " expects two GeoShape instances as the top 2 elements of the stack or a list of GeoShape instances.");
}
shape = GeoXPLib.intersection(shape, (GeoXPShape) list.get(i));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simply cast element

if (!(element instanceof GeoXPShape)) {
throw new WarpScriptException(getName() + " expects two GeoShape instances as the top 2 elements of the stack or a list of GeoShape instances.");
}
shape = GeoXPLib.union(shape, (GeoXPShape) list.get(i));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simply cast element

@hbs hbs merged commit 1afd931 into senx:master Feb 11, 2020
@ftence ftence deleted the geo_union_intersection_list branch March 26, 2020 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants