the tolerance in intersection of envelopes is not working
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by running the provided Envelope, SpatialReference, and GeometryEngine.intersect example to reproduce the non-empty result. Then inspect the intersect and tolerance behavior exposed by those entry points; done means the result follows the spatial reference tolerance and the relevant regression case passes.
Written by the indexing model from the issue text.
Description
it is not worked when i do the intersection operator by setting the spatial reference which tolerance is 0.001. however the result is not empty.
Envelope env1=new Envelope();
env1.setCoords(110.5657682255, 10, 113.5685453456, 15);
Envelope env2=new Envelope();
env2.setCoords(113.5685451456, 10, 118.568545, 15);
Geometry geo1=(Geometry) env1;
Geometry geo2=(Geometry) env2;
String srs="";
SpatialReference insrs=SpatialReference.create(srs);
System.out.println(insrs.getTolerance());//0.001
Geometry geo3=GeometryEngine.intersect(geo1, geo2, insrs);
if(!geo3.isEmpty()){ //it is not empty
System.out.println(GeometryEngine.geometryToWkt(geo3, 0));
//POLYGON ((113.5685451456 10, 113.5685453456 10, 113.5685453456 15, 113.5685451456 15, 113.5685451456 10))
}
- Dominant language
- Java
- Stars
- 710
- Forks
- 268
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Esri/geometry-api-java
-
bug fixed_to_verify
Esri/geometry-api-java#328 · 3 comments · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Esri/geometry-api-java#324 · 17 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Esri/geometry-api-java#321 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
Esri/geometry-api-java#320 · 1 comment ·
-
cannot reproduce
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Esri/geometry-api-java#316 · 5 comments ·
All issues in Esri/geometry-api-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
checkstyle/test-configs#263 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·