Comments (5)
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.
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.
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.
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.
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)
- missing username and password input HOT 2
- Cannot restart Geoserver after installation on Windows Server 2018 HOT 2
- Cannot connect to store (Bonsai - Hosted Elasticsearch) HOT 13
- Support for ElasticSearch 7.0 HOT 1
- NPE on basic usage HOT 4
- [Question] Native query using terms filter HOT 4
- Can elasticgeo support sliced scroll-scan? HOT 4
- Ignoring Attribute Configuration
- Map tile failing when processing multiple simultaneous WMS requests
- sort the layer result from elasticsearch HOT 1
- WFS FeatureID query values HOT 2
- GS 2.19 Clean install view layers issue
- Intermittent error that requires us to restart Geoserver HOT 1
- Point Cluster
- Geohash aggregation when there's no buckets
- Opensearch support 2.X HOT 1
- Highlighting Support
- Unable to retrieve Elastic data by using GeoServer CQL Filters HOT 1
- geojson is being rounded HOT 4
- Elastic search aggregations through view params not working HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticgeo.