1. Map integration into OpenERP
Partner/community days presentation
Camptocamp / 13. avril 2011 / www.camptocamp.com / info@camptocamp.com
2. History of Maps Module
Camptocamp expertise in both worlds
Cross business needs
Technical challenge
3. Why a new module
BECAUSE WE CAN
Actual tools only provide basic visualization
Nothing to address complex GIS business / technical problems
sp
ati ion
al m
oject
ark re/pr
eti
ng spat
ial tr
a ckin
data aggregation g
spatial query
n
pu tatio
o m spatial catalogue
clo ud/c g
xin
i nde sim
data goe pli
fic
valo a tio
risa n
tion
ing
ti al rout
spa
10. How does it works
OpenERP WebClient
OpenLayers
map_view addon
OpenERP stuff
CherryPy
Geojson based protocol
(Yet encapsulated in RPC)
OpenERP Server
NETSVC/ETC.
GEO OSV
GEO ORM
OSV
ORM
Postgis 1.5.2
Table
Attributs* Postgresql
Geometries
10
11. Into the code
New GeoOSV class
import geo_osv
class PartnerAddress(geo_osv.GeoOsv):
_inherits ....
11
12. Into the code
New GeoOSV class
_georepr = [
{
'geometry': 'the_geom',
'variable': 'partner_id',
'method': 'unique_values',
},
{
'geometry': 'the_geom',
'variable': 'total_sales',
'method': 'proportional_symbols',
},
]
12
13. Into the code
New colum class
'the_geom' : fields.geom('Coordinate')
'the_geom' : fields.geom('Coordinate',
geo_type="POINT", #All postgis supported types
dim=2, #2, 3, 4 are possible values
srid=900913, #Projection of the column
etc.),
13
14. TODO
ORM better Geo operator
Support related geom fields
XML/YAML import export support
Query tool
Shape edition on map
Geo ref on map
Vector simplification based on extend
Geo agregations
XML View definition
View style definition
Now everything can be imagined
15. Contact
Camptocamp SA
PSE A – Parc Scientifique EPFL
1015 Lausanne, Suisse
Camptocamp France SAS
Savoie Technolac
48 avenue du Lac du Bourget
73372 Le Bourget du Lac, France
www.camptocamp.com
Luc Maurer, Directeur et co-fondateur
Tél : +41 21 619 10 12 (CH), +33 479 44 44 95 (FR)
Mobile : +41 79 606 07 73
E-mail : luc.maurer@camptocamp.com
15