Comments (4)
thanks @skscharr for reporting. There's indeed a geometry that Elasticearch is not accepting, even locally the tools we usually work with (mapshaper
, QGIS) do not complain about it.
Pretty sure the problem is on this vertex where the geometry contacts with a previous vertex:
The main use for EMS File Service is to serve as data layer in Kibana Maps. For that this is not an issue since the geospatial data from this repo is processed on the browser and never ingested in Elasticsearch.
To check this is not a problem you can do the following steps:
- Create a sample index and data view with a single document pointing to the problematic zipcode
# Create the index
PUT ems_error_300
{
"mappings": {
"properties": {
"id": { "type": "keyword"},
"value": { "type": "integer"}
}
}
}
# Insert a document
POST ems_error_300/_doc
{
"id": "85713",
"value": 1
}
# Create the data view
POST kbn:/api/data_views/data_view
{
"data_view": {
"title": "ems_error_300"
}
}
- In Kibana Maps create a new Choropleth Map using the Zip Codes dataset and the new
ems_error_300
data view. - Check the geometry is linked
Still, it is not OK to have a geometry that Elasticsearch does not correctly digest, so I'll see if we can patch that single geometry to behave and look for updating this dataset since there's a newer version from 2020.
cc. @nickpeihl
from ems-file-service.
@skscharr you may want to give this alternate version a try, from the fix in progress at #302
from ems-file-service.
New release of the data has been published to production and https://maps.elastic.co/#file/usa_zip_codes even rendering the same dataset (in TopoJSON format), it points in the GeoJSON
button to the new dataset with the fixed geometry available here and at EMS File Service bucket.
from ems-file-service.
Thank you @jsanz !
from ems-file-service.
Related Issues (20)
- [Meta] EMS 7.16 HOT 1
- [Meta] EMS 8.0 HOT 1
- France Departments winding order incompatible with Vega HOT 5
- Meta: rename master to main
- Upgrade to Node 16
- Upgrade all GeoJSON layers to follow RFC7946
- Remove region identifiers with values that are too common HOT 1
- Telangana and Andhra Pradesh regions names in India are incorrect
- Fix region name for GB-LND in administrative regions layer
- New Zealand EMS administrative map seems to be missing. Can this please be added? HOT 1
- "<svg onload=alert(1337)>%00"><img src=x onerror=alert`1`//"
- Fix Morocco regions label
- Upgrade to NodeJS 18
- [EMS] Include commit identifier in release artifacts
- Generate EMS File Service manifests for serverless
- [EMS] Create a minimal document for root directory
- Update ZCTAs to 2020 data
- Fix the content-type for the index.html file in the vector catalog
- Washington DC borders as County vs State are different HOT 1
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 ems-file-service.