chenpengchuan opened a new pull request #529:
URL: https://github.com/apache/incubator-sedona/pull/529


   …ase, the wrong match result is returned due to parameter passing errors
   
   ## Is this PR related to a proposed Issue?
   related Issue [SEDONA-41]
   ## What changes were proposed in this PR?
   RangeFilter When the leftCoveredByRight parameter is fase, the second 
parameter of the match() method is called and modified to geometry
   ## How was this patch tested?
   the example for test code
   `
   SpatialRDD pointRDD = new PointRDD(sc, "arealm-small.csv", 0, 
FileDataSplitter.CSV,true);
   Coordinate[] coordinates = new Coordinate[5];
   coordinates[0] = new Coordinate(-90.01, 30.01);
   coordinates[1] = new Coordinate(-90.01, 40.01);
   coordinates[2] = new Coordinate(-80.01, 40.01);
   coordinates[3] = new Coordinate(-80.01, 30.01);
   coordinates[4] = coordinates[0];
   GeometryFactory geometryFactory = new GeometryFactory();
   Polygon queryGeometry = geometryFactory.createPolygon(coordinates);
   JavaRDD<Geometry> rdd = RangeQuery.SpatialRangeQuery(queryGeometry, 
spatialRDD, false, false);
   `
   ## Did this PR include necessary documentation updates?
   this PR Fix RangeFilter when the leftCoveredByRight parameter is fase, the 
wrong match result is returned due to parameter passing errors


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to