Skip to main content

Hi,

Im doing some test with elasticsearch and FME writer. I have a very simple workbench that reads (with directory reader) a folder with geojson files, read them with feature reader and dinamically writes to elasticsearch using the elasticsearch writer. The wb works pretty much ok on looping and sending all the jsons to elastic (on different types inside the same index), however it seems that the geometry field is lost when I write it to ES (although present in the geojson

"features" : [

 

{

 

"type" : "Feature",

 

"geometry" : {

 

"type" : "Point",

 

"coordinates" : t -0.8275947, 38.05902 ]

 

},

 

"properties" : {

 

"uwwCode" : "ES10030240001000E",

 

"uwwName" : "BENEJUZAR",

 

"uwwNUTS" : "ES521",

 

"fme_basename" : "EDAR_Q2011",

 

"SHAPE_GEOMETRY" : "shape_point"

 

}

 

},

Clues on this? Not sure if it is done with the dynamic writer but I cannot use this on kibana to map my results.

Hi @geodavid76, Thank you for posting this question. It seems that you may have run into a defect and our team would like to investigate. Would you be able to send your workspace and any supporting materials (e.g. logfile) to our FME Expert team to try and reproduce? You can submit these here: https://support.safe.com/

 

 

Thank you!
geojson2elasticsearch.zip

Hi Brian,

Thanks for your answer. Attached you can find the basic workbench I created for this. Is a dinamyc workspace that reads geojsons and sends to elasticsearch on same index but different types (the type is extracted from fme_feature_type).

Attached you can find the geojson2elasticsearch.fmw and the log file.

 

I did different tryies also changing the name of the field that stored the geometry.

 

 


geojson2elasticsearch.zip

Hi Brian,

Thanks for your answer. Attached you can find the basic workbench I created for this. Is a dinamyc workspace that reads geojsons and sends to elasticsearch on same index but different types (the type is extracted from fme_feature_type).

Attached you can find the geojson2elasticsearch.fmw and the log file.

 

I did different tryies also changing the name of the field that stored the geometry.

 

 

Thank you @geodavid76,

 

 

I have not been able to replicate this problem on my end. Can you send me an example of your source GeoJSON files? Please send them directly to brian.pont@safe.com via email and I will ensure this is looked at quickly.

 

 

Regards,

 

 

Brian

Reply