Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Maps] Error on uploading a medium GeoJSON #45510

Closed
jsanz opened this issue Sep 12, 2019 · 3 comments · Fixed by #48595
Closed

[Maps] Error on uploading a medium GeoJSON #45510

jsanz opened this issue Sep 12, 2019 · 3 comments · Fixed by #48595
Labels
bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation

Comments

@jsanz
Copy link
Member

jsanz commented Sep 12, 2019

Kibana version: 7.3.1

Elasticsearch version: 7.3.1

Server OS version: Elastic Cloud

Browser version: Chrome Version 76.0.3809.136 (Official Build) (64-bit)

Browser OS version: Chrome OS Version 76.0.3809.136 (Official Build) (64-bit)

Original install method (e.g. download page, yum, from source, etc.): Elastic Cloud

Describe the bug: Index creation from a GeoJSON upload hangs after processing the file in the browser.

Steps to reproduce:

  1. Get this GML file from Spanish Cadastre and unzip
$ curl -O "http://www.catastro.minhap.es/INSPIRE/Buildings/46/46900-VALENCIA/A.ES.SDGC.BU.46900.zip"
$ unzip A.ES.SDGC.BU.46900.zip
  1. Convert to GeoJSON stripping some fields and adjusting precision to reduce file size
$ ogr2ogr -f GeoJSON -t_srs "EPSG:4326" -lco "COORDINATE_PRECISION=7"  \
-sql "select beginLifespanVersion as life_begin, conditionOfConstruction as condition, reference as ref, currentUse, numberOfBuildingUnits as b_units, numberOfDwellings as dwelings, officialAreaReference as area_reference, value as area_value, value_uom as area_uom, endLifespanVersion as life_end from Building"  \
buildings-46900-mini.geo.json A.ES.SDGC.BU.46900.building.gml
  1. Open a new Maps session and upload buildings-46900-mini.geo.json
  2. An index is generated but not populated
GET /buildings-46900-mini/_mapping

{
  "buildings-46900-mini" : {
    "mappings" : {
      "_meta" : {
        "created_by" : "file-upload-plugin"
      },
      "properties" : {
        "coordinates" : {
          "type" : "geo_shape"
        }
      }
    }
  }
}

Expected behavior: The index is populated and ready to continue with the layer workflow

Screenshots (if relevant):

Screenshot 2019-09-12 at 13 07 51

Errors in browser console (if relevant):

image

Provide logs and/or server output (if relevant):

Any additional context: I can provide a full HAR file if needed.

@jsanz jsanz added the [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation label Sep 12, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis

@jsanz
Copy link
Member Author

jsanz commented Sep 12, 2019

This should be easy to replicate on a dev environment, which unfortunately I can't set up yet 😞, I wonder if it's more an issue with Elastic Cloud itself, given the 413 response.

Forgot to mention the GeoJSON file I tried to upload is around 38MB.

@thomasneirynck thomasneirynck added the bug Fixes for quality problems that affect the customer experience label Oct 7, 2019
@thomasneirynck
Copy link
Contributor

Putting a 7.5.0 label on this, as Geojson is going GA then. This is a small file, under the range we expect. Perhaps recent improvements resolve this.

cc @aaronjcaldwell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation
Projects
None yet
3 participants