Changes between Version 3 and Version 4 of model_data


Ignore:
Timestamp:
Jun 9, 2011, 3:03:53 PM (13 years ago)
Author:
dennisw
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • model_data

    v3 v4  
    11= 2. Model & Data import =
    22== 2.1 Model explained ==
    3 [[Image(model1.png, 409px, align=right)]]
     3[[Image(model2.png, 551px, align=right)]]
    44The image on the right shows the model defined in gheat/models.py
    55
    6 As you can see there is a single table ''Node'' and a larger table tree.
     6This model is used for saving all the collected data. There is a table ''Meting'' which contains the lats & lons, signal strength, and 2 foreign keys which refer to ''Accespoint'', where all the accespoint data is saved, and ''Meetrondje'', a table defining datasets. ''Meetrondje'' has again 2 foreign keys, one to ''Gebruiker'' where the name and email address is saved of the person who owns the dataset, and one to ''Apparatuur'' where device information will be stored.
    77
    8 The ''Node'' table will be used for the Wireless Leiden node locations. This makes it possible to, for example, create an extra layer with a node's maximum range.
    9 
    10 The bigger table tree is used for saving all the collected data. There is a table ''Meting'' which contains the lats & lons, signal strength, and 2 foreign keys which refer to ''Accespoint'', where all the accespoint data is saved, and ''Meetrondje'', a table defining datasets. ''Meetrondje'' has again 2 foreign keys, one to ''Gebruiker'' where the name and email address is saved of the person who owns the dataset, and one to ''Apparatuur'' where device information will be stored.
    11 
    12 NOTE 1: The image is generated by installing [https://github.com/django-extensions/django-extensions django_extentions] and the command: {{{./manage.py graph_models gheat | dot -Tpng -o model.png}}}.
    13 
    14 NOTE 2: On this moment only the gheat_meting(lat, lng, signaal) are used for generating heatmaps, so make sure you at least put some data in those columns.
     8NOTE : The image is generated by installing [https://github.com/django-extensions/django-extensions django_extentions] and the command: {{{./manage.py graph_models gheat | dot -Tpng -o model.png}}}.
    159
    1610== 2.2 Preparing the database ==