Package com.ikanow.infinit.e.data_model.api.knowledge

Examples of com.ikanow.infinit.e.data_model.api.knowledge.GeoAggregationPojo


          geoCounts = new TreeSet<GeoAggregationPojo>();         
        }
        for (TermsFacet.Entry geo: geoFacet.getEntries()) {                   
          String geohash = FacetUtils.getTerm(geo).substring(2);
          double[] loc =  GeoHashUtils.decode(geohash);
          GeoAggregationPojo geoObj = new GeoAggregationPojo(loc[0],loc[1]);
          geoObj.count = geo.getCount();
          geoObj.type = GeoOntologyMapping.decodeOntologyCode(FacetUtils.getTerm(geo).charAt(0));
          geoCounts.add(geoObj);
          // (note this aggregates geo points whose decoded lat/logns are the same, which can result in slightly fewer records than requested)
          // (note the aggregation writes the aggregated count into geoObj.count)
View Full Code Here


        for (EntSigHolder shp: bucket) {
          // Estimated count:
         
          try {
            if (null != shp.geotag) { // will always be the case...
              GeoAggregationPojo geo = new GeoAggregationPojo();
             
              geo.lat = shp.geotag.getDouble(GeoPojo.lat_);
              geo.lon = shp.geotag.getDouble(GeoPojo.lon_);
              geo.type = shp.geotaggedEntity.getString(EntityPojo.ontology_type_);
              if (null == geo.type) {
View Full Code Here

TOP

Related Classes of com.ikanow.infinit.e.data_model.api.knowledge.GeoAggregationPojo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.