Skip to content

Stolstov/update tolerances and wkids #249

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static Geometry difference(Geometry geometry_a, Geometry geometry_b,
env_merged.merge(env_b);

double tolerance = InternalUtils.calculateToleranceFromGeometry(
spatial_reference, env_merged, false);
spatial_reference, env_merged, true);
double tolerance_cluster = tolerance * Math.sqrt(2.0) * 1.00001;

Envelope2D env_a_inflated = new Envelope2D();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Geometry tryNativeImplementation_(Geometry input_geom) {
Envelope2D mergedExtent = InternalUtils.getMergedExtent(input_geom,
m_geomIntersector);
double tolerance = InternalUtils.calculateToleranceFromGeometry(
m_spatial_reference, mergedExtent, false);
m_spatial_reference, mergedExtent, true);

int gtInput = input_geom.getType().value();
boolean bInputEmpty = input_geom.isEmpty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static Geometry symmetricDifference(Geometry geometry_a,
env_merged.merge(env_b);

double tolerance = InternalUtils.calculateToleranceFromGeometry(
spatial_reference, env_merged, false);
spatial_reference, env_merged, true);

int type_a = geometry_a.getType().value();
int type_b = geometry_b.getType().value();
Expand Down
Loading