Giter Site home page Giter Site logo

Comments (5)

sjudeng avatar sjudeng commented on June 15, 2024

The first encoded URL is missing the backslash to escape the comma. See below (note the escaped \, %5C).

http://localhost:8080/geoserver/denver/wms?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=denver%3Areport&STYLES=geohashgrid&FORMAT=image%2Fpng&TRANSPARENT=true&HEIGHT=256&WIDTH=256&VIEWPARAMS=a%3A%7B%22agg%22%3A%20%7B%22geohash_grid%22%3A%20%7B%22field%22%3A%20%22location%22%5C%2C%20%22precision%22%3A%203%7D%7D%7D&SRS=EPSG%3A3857&BBOX=-11662456.027639052,4774562.53480525,-11623320.26915704,4813698.293287256

Maybe in the layer definition you need a double backslash to make sure it's included in the request?

from elasticgeo.

nreese avatar nreese commented on June 15, 2024

Thanks for the extra set of eyes - adding an additional backslash resolved the error.

viewparams: 'a:{"agg": {"geohash_grid": {"field": "location"\\, "precision": 3}}}'

Now all of my tiles are empty. Is there a simple SLD that will display grids with counts greater than zero one color and empty grids another?

from elasticgeo.

sjudeng avatar sjudeng commented on June 15, 2024

I'd expect you'd see something with the example SLD from the docs but you could try updating ColorMapEntry quantity values with better max value for your expected doc counts.

<ColorMapEntry color="#FFFFFF" quantity="0" label="nodata" opacity="0"/>
<ColorMapEntry color="#00FF00" quantity="1" label="values"/>
<ColorMapEntry color="#0000FF" quantity="1000" label="label"/>

If this doesn't help you might turn up logging and check the queries that are being executed.

from elasticgeo.

nreese avatar nreese commented on June 15, 2024

Putting some debug code into GeoHashGrid, I get the following when initalize is called.

num buckets: 0
precision: 2
cellWidth: 11.25
cellHeight: 5.625

The number of buckets should not be zero. Is there a way to print the Elasticsearch aggregation request and response?

from elasticgeo.

nreese avatar nreese commented on June 15, 2024

Found the problem. My elastic store was using port 9300 instead of port 9200 for REST client like the documentation stated. I am out of the starting blocks.

from elasticgeo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.