Geospatial mailing list archives
geospatial@odoo-community.org
Browse archives
Re: Import GIS data to odoo
by
Camptocamp SA, Yannick Payot
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_importIt 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 KavthekarOdoo 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
-
Import GIS data to odoo
by Devendra Kavthekar <devendrakavthekar@gmail.com> - 28/10/2018 07:57:25 - 0