Re: heatmaps

2015-07-02 Thread Joseph Obernberger
Hi - perhaps you do not have enough geospatial data in your index to 
generate a larger image?  Try setting the facet.heatpmap.gridLevel to 
something higher like 4.

I've run queries like:
q=insert whatever 
herewt=jsonindent=truefacet=truefacet.heatmap=geofacet.heatmap.gridLevel=4facet.heatmap.format=ints2Drows=0facet.heatmap.maxCells=35554432


I'm not familiar with the notation you have 
facet.heatmap=store_geohash.  What is that?


I'm very interested in working with heatmaps and have tried integrating 
the results from Solr with GeoTools.  I have access to a very sizable 
index with geospatial content in it, and I've been able to generate 
images like this:

http://lovehorsepower.com/images/Solr/AllDataSinceJan01_2015_Map.jpg
The above is a 1024x1024 raster.

Doing a geospatial filter query around the UK results in an image like this:
http://lovehorsepower.com/images/Solr/TwitterDataOneDayUKGeoSearchMap.jpg

I would love to be able to apply some heatmap visualization to this.  
Anyone have any ideas on what tools to use?


Thank you.

-Joe


On 6/13/2015 4:29 PM, William Bell wrote:

OK. I was able to get a PNG - but it looks tiny and a blob. Not sure how to
use it.

echo iVBORw0KGgoNSUhEUgAAACAgCAYAAABzenr00UlEQVR42mNg
YGD4P8B41AEwBuNAOoD7PwMbP5BmGygHyP9nENf5z8C45D8Dk+ZAp4FNA+
wA5pn/GZfz/GeQzv3PkL3hP4Pw+f8MLGuBctl0cgCv1n+Gton/GSUs/jPGL/jP+
uvCf467IAdMoFcUyPxnaS78zzCN6T+TKMt/5g+T/jNJraZzOXBc6T/D9bv/
mfp//2f8GDqABZFCzX/GQh86OED1338Grm34FVrMoEcITKdDt
msZrYxGHTDqAFIdwDgaBaMOGHXAqANGHTC8HQAAQf8YdbR5KkIASUVORK5CYII= |
base64 --decode  test.png

Very strange.

Maybe I need to zoom in?



On Sat, Jun 13, 2015 at 2:18 PM, William Bell billnb...@gmail.com wrote:


How do you use the heatmaps feature to show the PNG or use the int2D to
show the heatmap easily just for testing?


http://localhost:8983/solr/select?q=*%3A*wt=jsonrows=0indent=truefacet=truefacet.heatmap=store_geohashfacet.heatmap.format=png

{

- responseHeader:
{
   - status: 0,
   - QTime: 163,
   - params:
   {
  - facet.heatmap.format: png,
  - q: *:*,
  - facet.heatmap: store_geohash,
  - indent: true,
  - rows: 0,
  - wt: json,
  - facet: true
  }
   },
- response:
{
   - numFound: 2664396,
   - start: 0,
   - docs: [ ]
   },
- facet_counts:
{
   - facet_queries: { },
   - facet_fields: { },
   - facet_dates: { },
   - facet_ranges: { },
   - facet_intervals: { },
   - facet_heatmaps:
   {
  - store_geohash:
  [
 - gridLevel,
 - 2,
 - columns,
 - 32,
 - rows,
 - 32,
 - minX,
 - -180,
 - maxX,
 - 180,
 - minY,
 - -90,
 - maxY,
 - 90,
 - counts_png,
 -
 
iVBORw0KGgoNSUhEUgAAACAgCAYAAABzenr00UlEQVR42mNgYGD4P8B41AEwBuNAOoD7PwMbP5BmGygHyP9nENf5z8C45D8Dk+ZAp4FNA+wA5pn/GZfz/GeQzv3PkL3hP4Pw+f8MLGuBctl0cgCv1n+Gton/GSUs/jPGL/jP+uvCf467IAdMoFcUyPxnaS78zzCN6T+TKMt/5g+T/jNJraZzOXBc6T/D9bv/mfp//2f8GDqABZFCzX/GQh86OED1338Grm34FVrMoEcITKdDtmsZrYxGHTDqAFIdwDgaBaMOGHXAqANGHTC8HQAAQf8YdbR5KkIASUVORK5CYII=
 ]
  }
   }

}

--
Bill Bell
billnb...@gmail.com
cell 720-256-8076








Re: heatmaps

2015-06-13 Thread William Bell
OK. I was able to get a PNG - but it looks tiny and a blob. Not sure how to
use it.

echo iVBORw0KGgoNSUhEUgAAACAgCAYAAABzenr00UlEQVR42mNg
YGD4P8B41AEwBuNAOoD7PwMbP5BmGygHyP9nENf5z8C45D8Dk+ZAp4FNA+
wA5pn/GZfz/GeQzv3PkL3hP4Pw+f8MLGuBctl0cgCv1n+Gton/GSUs/jPGL/jP+
uvCf467IAdMoFcUyPxnaS78zzCN6T+TKMt/5g+T/jNJraZzOXBc6T/D9bv/
mfp//2f8GDqABZFCzX/GQh86OED1338Grm34FVrMoEcITKdDt
msZrYxGHTDqAFIdwDgaBaMOGHXAqANGHTC8HQAAQf8YdbR5KkIASUVORK5CYII= |
base64 --decode  test.png

Very strange.

Maybe I need to zoom in?



On Sat, Jun 13, 2015 at 2:18 PM, William Bell billnb...@gmail.com wrote:

 How do you use the heatmaps feature to show the PNG or use the int2D to
 show the heatmap easily just for testing?


 http://localhost:8983/solr/select?q=*%3A*wt=jsonrows=0indent=truefacet=truefacet.heatmap=store_geohashfacet.heatmap.format=png

 {

- responseHeader:
{
   - status: 0,
   - QTime: 163,
   - params:
   {
  - facet.heatmap.format: png,
  - q: *:*,
  - facet.heatmap: store_geohash,
  - indent: true,
  - rows: 0,
  - wt: json,
  - facet: true
  }
   },
- response:
{
   - numFound: 2664396,
   - start: 0,
   - docs: [ ]
   },
- facet_counts:
{
   - facet_queries: { },
   - facet_fields: { },
   - facet_dates: { },
   - facet_ranges: { },
   - facet_intervals: { },
   - facet_heatmaps:
   {
  - store_geohash:
  [
 - gridLevel,
 - 2,
 - columns,
 - 32,
 - rows,
 - 32,
 - minX,
 - -180,
 - maxX,
 - 180,
 - minY,
 - -90,
 - maxY,
 - 90,
 - counts_png,
 -
 
 iVBORw0KGgoNSUhEUgAAACAgCAYAAABzenr00UlEQVR42mNgYGD4P8B41AEwBuNAOoD7PwMbP5BmGygHyP9nENf5z8C45D8Dk+ZAp4FNA+wA5pn/GZfz/GeQzv3PkL3hP4Pw+f8MLGuBctl0cgCv1n+Gton/GSUs/jPGL/jP+uvCf467IAdMoFcUyPxnaS78zzCN6T+TKMt/5g+T/jNJraZzOXBc6T/D9bv/mfp//2f8GDqABZFCzX/GQh86OED1338Grm34FVrMoEcITKdDtmsZrYxGHTDqAFIdwDgaBaMOGHXAqANGHTC8HQAAQf8YdbR5KkIASUVORK5CYII=
 ]
  }
   }

 }

 --
 Bill Bell
 billnb...@gmail.com
 cell 720-256-8076




-- 
Bill Bell
billnb...@gmail.com
cell 720-256-8076