MarvinLitt commented on a change in pull request #3481: [CARBONDATA-3548]Geospatial Support: add hash id create,query condition analyze and generate hash id list
URL:
https://github.com/apache/carbondata/pull/3481#discussion_r357004312
##########
File path: geo/src/main/java/org/apache/carbondata/geo/GeoHashImpl.java
##########
@@ -147,7 +206,18 @@ public void init(String handlerName, Map<String, String> properties) throws Exce
CarbonCommonConstants.INDEX_HANDLER, CONVERSION_RATIO));
}
- // TODO: Fill the values to the instance fields
+ // Fill the values to the instance fields
+ this.oriLatitude = Double.valueOf(originLatitude);
+ this.userDefineMaxLongitude = Double.valueOf(maxLongitude);
+ this.userDefineMaxLatitude = Double.valueOf(maxLatitude);
+ this.userDefineMinLongitude = Double.valueOf(minLongitude);
+ this.userDefineMinLatitude = Double.valueOf(minLatitude);
+ this.gridSize = Integer.parseInt(gridSize);
+ this.conversionRatio = Integer.parseInt(conversionRatio);
+ this.lon0ByRation = userDefineMinLongitude * this.conversionRatio;
+ this.lat0ByRation = userDefineMinLatitude * this.conversionRatio;
+ // calculate the data
Review comment:
okay
----------------------------------------------------------------
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:
[hidden email]
With regards,
Apache Git Services