# How to develop a plugin (ingest node) to convert a field from Lambert II to WGS84 (geographic coordination system) and test it?

**URL:** https://discuss.elastic.co/t/how-to-develop-a-plugin-ingest-node-to-convert-a-field-from-lambert-ii-to-wgs84-geographic-coordination-system-and-test-it/115037
**Category:** Elasticsearch
**Created:** [January 11, 2018, 8:32am UTC](https://discuss.elastic.co/t/how-to-develop-a-plugin-ingest-node-to-convert-a-field-from-lambert-ii-to-wgs84-geographic-coordination-system-and-test-it/115037 "2018-01-11T08:32:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chrigui94](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@chrigui94](https://discuss.elastic.co/u/chrigui94)
#### Post date: [January 11, 2018, 8:32am UTC](https://discuss.elastic.co/t/how-to-develop-a-plugin-ingest-node-to-convert-a-field-from-lambert-ii-to-wgs84-geographic-coordination-system-and-test-it/115037/1 "2018-01-11T08:32:09Z")

</div>

I have an Index contains (Latitude, longitude ) of a position in Lambert II and I need to convert these coordinates to (Lat, long) in WGS84. I have the java code how to change from Lambert II to WGS84 and I need the steps to develop a plugin and use it for my index ?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 11, 2018, 8:41am UTC](https://discuss.elastic.co/t/how-to-develop-a-plugin-ingest-node-to-convert-a-field-from-lambert-ii-to-wgs84-geographic-coordination-system-and-test-it/115037/2 "2018-01-11T08:41:56Z")

</div>

That's a too wide question and I'm afraid we can't really help.

But some resources:

- [https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-authors.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-authors.html)
- [https://www.elastic.co/blog/writing-your-own-ingest-processor-for-elasticsearch](https://www.elastic.co/blog/writing-your-own-ingest-processor-for-elasticsearch)

Also, may be you should not write a plugin for that but do the conversion on the client side instead?

---

<div class="post-metadata">

### Author: ![chrigui94](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@chrigui94](https://discuss.elastic.co/u/chrigui94)
#### Post date: [January 16, 2018, 3:07pm UTC](https://discuss.elastic.co/t/how-to-develop-a-plugin-ingest-node-to-convert-a-field-from-lambert-ii-to-wgs84-geographic-coordination-system-and-test-it/115037/3 "2018-01-16T15:07:24Z")

</div>

I developed the plugin using the same hierarchy of the "ingest-attachement" plugin but I don't know how to test if my plugin is working correctly or no, I have a csv file contains (lat, longitude) in lambert II but I can't see the changement in my index... how to verify that my plugin is working correctly ? and how to use it in kibana dev tools ?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 13, 2018, 3:07pm UTC](https://discuss.elastic.co/t/how-to-develop-a-plugin-ingest-node-to-convert-a-field-from-lambert-ii-to-wgs84-geographic-coordination-system-and-test-it/115037/4 "2018-02-13T15:07:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
