Giter VIP home page Giter VIP logo

Comments (4)

jsanz avatar jsanz commented on July 4, 2024

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:

image


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:

  1. 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"
  }
}
  1. In Kibana Maps create a new Choropleth Map using the Zip Codes dataset and the new ems_error_300 data view.
  2. Check the geometry is linked

image


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.

jsanz avatar jsanz commented on July 4, 2024

@skscharr you may want to give this alternate version a try, from the fix in progress at #302

https://raw.githubusercontent.com/jsanz/ems-file-service/fix/300/usa_zip_codes/data/usa_zip_codes_v7_1.geo.json

from ems-file-service.

jsanz avatar jsanz commented on July 4, 2024

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.

skscharr avatar skscharr commented on July 4, 2024

Thank you @jsanz !

from ems-file-service.

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.