But is not working in Kibana as vector map. Please anyone can check what is the problem or the correct way to include the information of the WFS in the config/kibana.yml file.
I have a similar question. In my case the server is CORS enabled. But it is not clear to me which url should I put in Kibana config file. Should it be the path like http://localhost:8080/geoserver/wfs or should it be the direct link to geojson file? If it's a direct link, then I can only extract something like this: http://localhost:8080/geoserver/rober/ows?service=WFS&version=1.1.0&request=GetFeature&typeName=rober:PopulationSites&maxFeatures=50&outputFormat=application%2Fjson. Can the issue be related to the version of WFS? In this case where should I define the version of WFS in Kibana settings?
Hi @ICG the URL needs to return an actual GeoJson featurecollection. So in the case of WFS, it actually needs to point to a GetFeature-call. There is no specific WFS configuration in Kibana.
Thanks.
When I execute http://localhost:8080/geoserver/rober/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=rober:PopulationSites&outputFormat=application%2Fjson, I get geojson featurecollection {"type":"FeatureCollection","totalFeatures":51,"features":[{"type":"Feature","id":"PopulationSites.1","geometry":{"type":"MultiPolygon","coordinates":[[[[19.74776575,42.57890086],[19.74600875,42.57993439],[19.74135787,42.57440501],...... So, I understand that url in kibana config is correct, since it returns featurecollection. However, since it does not work, should I open the issue ticket?
I checked network tab and observed the following message: XMLHttpRequest cannot load http://localhost:8080/geoserver/rober/ows?service=WFS&version=1.1.0&requ…ture&typeName=rober:PopulationSites&outputFormat=application%2Fjson. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:5601' is therefore not allowed access. The response had HTTP status code 403. It looks like the file cannot be found, while I get the file when putting this link in browser. Looks like CORS issue, while I followed all instructions for enabling it. Hmm
Since I get 403 forbidden error when trying to access geojson file from Kibana, I guess that I should configure Kibana proxy. I have already CORS-enabled my WFS server. So,there is some issue on Kibana side because it cannot see the port 8080 (localhost:8080) as if it would be a different domain. How can I indicate to Kibana that /geoserver should be substituted by localhost:8080/geoserver ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.