Geospatial mailing list archives

geospatial@odoo-community.org

Avatar

Re: Import GIS data to odoo

by
Camptocamp SA, Yannick Payot
- 30/10/2018 14:10:34
Thanks for sharing it Devendra!

Importing geometries into odoo is very important to use geoengine module.
Whether it's data you get or data you need to create. As for creation it is better to use more precise external tools especially for lines and polygons.

I used a similar script with shp / shx / dbf files last time I had to import Polygons. (shapefile py lib does the job for you of reading them)

Basically you need to use the write or create method providing the wkt format in the values for you geometry field.

This can also be done with odoorpc (which uses jsonrpc).

Yannick Vaucher
Business Solutions Software Developer

Camptocamp SA
PSE A, CH-1015 Lausanne
Phone: +41 21 619 10 30
Office: +41 21 619 10 10


On Sun, 28 Oct 2018 at 08:02, Devendra Kavthekar <devendrakavthekar@gmail.com> wrote:
Hello GIS guys,

Wanted to share a small tool with you, that helps you import your GIS polygon/multipolygon data to Odoo from a 'geojson' file. You can export your GIS data in 'geojson' format from mostly all softwares.

The tool can be found at:
https://github.com/dek-odoo/odoo-import-scripts/tree/master/gis_geojson_odoo_import

It uses xmlrpc script.

We can also keep it on OCA/geospatial github repo.
It can help beginners import their data to Odoo.

Wanted to thank OCA/Geospatial team for the great work and integration with odoo.  👍👍

Thank you.
Regards,

--
Devendra Kavthekar
Odoo Developer
+91 88499 30873

_______________________________________________
Mailing-List: https://odoo-community.org/groups/geospatial-48
Post to: mailto:geospatial@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe

Reference