Index: src/common/icon/log-excluded.svg
===================================================================
--- src/common/icon/log-excluded.svg	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
+++ src/common/icon/log-excluded.svg	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
@@ -0,0 +1,15 @@
+<svg viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">
+    <style
+        type="text/css"
+        id="current-color-scheme">
+        .ColorScheme-NegativeText {
+            color:#da4453;
+        }
+        .ColorScheme-Text {
+            color:#232629;
+        }
+    </style>
+    <path style="fill:currentColor;fill-opacity:1;stroke:none" class="ColorScheme-NegativeText" d="M11 0A11 11 0 0 0 0 11a11 11 0 0 0 11 11 11 11 0 0 0 11-11A11 11 0 0 0 11 0z"/>
+    <path d="M3 10v2h16v-2z" fill="#fff"/>
+    <path d="M11 0A11 11 0 0 0 0 11a11 11 0 0 0 11 11 11 11 0 0 0 11-11A11 11 0 0 0 11 0zm0 1a10 10 0 0 1 10 10 10 10 0 0 1-10 10A10 10 0 0 1 1 11 10 10 0 0 1 11 1z" style="fill:currentColor;fill-opacity:0.6;stroke:none" class="ColorScheme-Text"/>
+</svg>
Index: src/common/icon/log-processed.svg
===================================================================
--- src/common/icon/log-processed.svg	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
+++ src/common/icon/log-processed.svg	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
@@ -0,0 +1,15 @@
+<svg height="22" width="22" xmlns="http://www.w3.org/2000/svg">
+    <style
+        type="text/css"
+        id="current-color-scheme">
+        .ColorScheme-PositiveText {
+            color:#27ae60;
+        }
+        .ColorScheme-Text {
+            color:#232629;
+        }
+    </style>
+    <path style="fill:currentColor;fill-opacity:1;stroke:none" class="ColorScheme-PositiveText" d="M11 0A11 11 0 0 0 0 11a11 11 0 0 0 11 11 11 11 0 0 0 11-11A11 11 0 0 0 11 0z"/>
+    <path style="fill:currentColor;fill-opacity:0.6;stroke:none" class="ColorScheme-Text" d="M11 0A11 11 0 0 0 0 11a11 11 0 0 0 11 11 11 11 0 0 0 11-11A11 11 0 0 0 11 0zm0 1a10 10 0 0 1 10 10 10 10 0 0 1-10 10A10 10 0 0 1 1 11 10 10 0 0 1 11 1z"/>
+    <path d="M17.586 5.414L9 14 4.414 9.414 3 10.828l6 6 10-10z" fill="#fff"/>
+</svg>
Index: src/common/icon/log-queued.svg
===================================================================
--- src/common/icon/log-queued.svg	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
+++ src/common/icon/log-queued.svg	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   viewBox="0 0 22 22"
+   version="1.1"
+   id="svg9"
+   sodipodi:docname="log-queued.svg"
+   inkscape:version="0.92.2 5c3e80d, 2017-08-06">
+  <metadata
+     id="metadata15">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <defs
+     id="defs13" />
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="3840"
+     inkscape:window-height="2039"
+     id="namedview11"
+     showgrid="false"
+     inkscape:zoom="10.727273"
+     inkscape:cx="-29.271186"
+     inkscape:cy="11"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg9" />
+  <style
+     type="text/css"
+     id="current-color-scheme">
+        .ColorScheme-NeutralText {
+            color:#f67400;
+        }
+        .ColorScheme-Text {
+            color:#232629;
+        }
+    </style>
+  <path
+     d="M11 0A11 11 0 0 0 0 11a11 11 0 0 0 11 11 11 11 0 0 0 11-11A11 11 0 0 0 11 0z"
+     style="fill:#3daee9;fill-opacity:1;stroke:none"
+     class="ColorScheme-NeutralText"
+     id="path3" />
+  <path
+     d="M11 0A11 11 0 0 0 0 11a11 11 0 0 0 11 11 11 11 0 0 0 11-11A11 11 0 0 0 11 0zm0 1a10 10 0 0 1 10 10 10 10 0 0 1-10 10A10 10 0 0 1 1 11 10 10 0 0 1 11 1z"
+     style="fill:currentColor;fill-opacity:0.6;stroke:none"
+     class="ColorScheme-Text"
+     id="path5" />
+  <path
+     d="M11 1v2a8 8 0 0 0-8 8 8 8 0 0 0 8 8 8 8 0 0 0 8-8h-2a6 6 0 0 1-6 6 6 6 0 0 1-6-6 6 6 0 0 1 6-6v2l4-3z"
+     fill="#fff"
+     id="path7" />
+</svg>
Index: src/common/icon/log-undefined.svg
===================================================================
--- src/common/icon/log-undefined.svg	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
+++ src/common/icon/log-undefined.svg	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   viewBox="0 0 16 16"
+   version="1.1"
+   id="svg9"
+   sodipodi:docname="log-undefined.svg"
+   inkscape:version="0.92.2 5c3e80d, 2017-08-06">
+  <metadata
+     id="metadata15">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <defs
+     id="defs13" />
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="3840"
+     inkscape:window-height="2039"
+     id="namedview11"
+     showgrid="false"
+     inkscape:zoom="20.85965"
+     inkscape:cx="2.1383268"
+     inkscape:cy="7.9219962"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg9" />
+  <style
+     type="text/css"
+     id="current-color-scheme">
+        .ColorScheme-NeutralText {
+            color:#f67400;
+        }
+        .ColorScheme-Text {
+            color:#232629;
+        }
+    </style>
+  <circle
+     style="fill:currentColor;fill-opacity:1;stroke:none"
+     class="ColorScheme-NeutralText"
+     cx="8"
+     cy="8"
+     r="8"
+     id="circle3" />
+  <path
+     style="fill:currentColor;fill-opacity:0.6;stroke:none"
+     class="ColorScheme-Text"
+     d="M8 0a8 8 0 0 0-8 8 8 8 0 0 0 8 8 8 8 0 0 0 8-8 8 8 0 0 0-8-8zm0 1a7 7 0 0 1 7 7 7 7 0 0 1-7 7 7 7 0 0 1-7-7 7 7 0 0 1 7-7z"
+     id="path5" />
+  <text
+     xml:space="preserve"
+     style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:'Bitstream Vera Sans';letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
+     x="4.3265347"
+     y="13.746846"
+     id="text4513"><tspan
+       sodipodi:role="line"
+       id="tspan4511"
+       x="4.3265347"
+       y="13.746846"
+       style="font-size:16px;fill:#ffffff;">?</tspan></text>
+</svg>
Index: src/mapservice-webclient/src/app/logs/logs.component.html
===================================================================
--- src/mapservice-webclient/src/app/logs/logs.component.html	(revision 75adef32255520194233191a346750f5e12c9736)
+++ src/mapservice-webclient/src/app/logs/logs.component.html	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
@@ -12,4 +12,5 @@
         <th>Start</th>
         <th>End</th>
+        <th>Status</th>
         <th>Comment</th>
         <th></th>
@@ -25,4 +26,11 @@
           <td>{{printDate(log.start)}}</td>
           <td>{{printDate(log.end)}}</td>
+          <td [ngSwitch]="log.processingState.id">
+            <img *ngSwitchCase="2" class="pure-img state-icon" src='/resources/log-queued.svg' title='Status: {{log.processingState.label}}'>
+            <img *ngSwitchCase="3" class="pure-img state-icon" src='/resources/processing.svg' title='Status: {{log.processingState.label}}'>
+            <img *ngSwitchCase="4" class="pure-img state-icon" src='/resources/log-processed.svg' title='Status: {{log.processingState.label}}'>
+            <img *ngSwitchCase="4" class="pure-img state-icon" src='/resources/log-excluded.svg' title='Status: {{log.processingState.label}}'>
+            <img *ngSwitchDefault class="pure-img state-icon" src='/resources/log-undefined.svg' title='Status: {{log.processingState.label}}'>
+          </td>
           <td>{{log.comment}}</td>
           <td>
Index: src/mapservice-webclient/src/css/GnuBoat.Mapservice.Webclient.css
===================================================================
--- src/mapservice-webclient/src/css/GnuBoat.Mapservice.Webclient.css	(revision 75adef32255520194233191a346750f5e12c9736)
+++ src/mapservice-webclient/src/css/GnuBoat.Mapservice.Webclient.css	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
@@ -185,4 +185,10 @@
 }
 
+.state-icon {
+  height: 100%;
+  max-height: 2em;
+  width: auto;
+}
+
 @-webkit-keyframes rotating {
     from{
@@ -201,4 +207,5 @@
   margin-right: 1em;
 }
+
 .footer {
   background-color: var(--gnuboat-primary-light);
Index: src/mapservice-webclient/webpack.config.js
===================================================================
--- src/mapservice-webclient/webpack.config.js	(revision 75adef32255520194233191a346750f5e12c9736)
+++ src/mapservice-webclient/webpack.config.js	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
@@ -47,6 +47,10 @@
           { from: '../common/icon/gnuboat-gauge.svg', to: 'resources' },
           { from: '../common/icon/gnuboat-logfile.svg', to: 'resources' },
-          { from: '../common/icon/gnuboat-water.svg', to: 'resources' }
+          { from: '../common/icon/gnuboat-water.svg', to: 'resources' },
           { from: '../common/icon/processing.svg', to: 'resources' },
+          { from: '../common/icon/log-excluded.svg', to: 'resources' },
+          { from: '../common/icon/log-processed.svg', to: 'resources' },
+          { from: '../common/icon/log-queued.svg', to: 'resources' },
+          { from: '../common/icon/log-undefined.svg', to: 'resources' }
         ])
     ],
Index: src/mapservice/codegen/templates/requirements.mustache
===================================================================
--- src/mapservice/codegen/templates/requirements.mustache	(revision 75adef32255520194233191a346750f5e12c9736)
+++ src/mapservice/codegen/templates/requirements.mustache	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
@@ -11,3 +11,4 @@
 geoalchemy2
 sqlalchemy_utc
+sqlalchemy-utils
 gnuboat_common
Index: src/mapservice/openapi.yaml
===================================================================
--- src/mapservice/openapi.yaml	(revision 75adef32255520194233191a346750f5e12c9736)
+++ src/mapservice/openapi.yaml	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
@@ -1000,4 +1000,6 @@
           type: string
           format: date-time
+        processingState:
+            $ref: '#/components/schemas/itemBase'
         entriesCount:
           title: Number of measurings in the log
Index: src/mapservice/src/server_impl/controllers/LogsController.py
===================================================================
--- src/mapservice/src/server_impl/controllers/LogsController.py	(revision 75adef32255520194233191a346750f5e12c9736)
+++ src/mapservice/src/server_impl/controllers/LogsController.py	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
@@ -19,5 +19,5 @@
 from gnuboat_common.datahandler import loghandler
 
-from ..database.Model import User, Log, LogEntry, Water, Device, Gauge, db
+from ..database.Model import User, Log, LogEntry, Water, Device, Gauge, ProcessingStatus, Queue, db
 from ..HttpErrors import MapserviceBadRequest, MapserviceUnauthorized, MapserviceNotFound
 
@@ -129,4 +129,9 @@
 		raise MapserviceBadRequest(detail='No log data')
 	
+	processing_state = ProcessingStatus.query.filter_by(label='Queued').all()
+	if len(processing_state) != 1:
+		raise MapserviceBadRequest(detail='Processing status Queued not found database')
+	processing_state = processing_state[0]
+	
 	log = Log.query.filter_by(id=log_id).all()
 	if len(log) != 1:
@@ -150,6 +155,4 @@
 		raise MapserviceBadRequest(detail='No start or end date found')
 	
-	log.start = log_callback.start()
-	log.end = log_callback.end()
 	for entry in log_callback.entries():
 		if entry.water_depth() is not None:
@@ -157,4 +160,12 @@
 			log_entry = LogEntry(log=log, datetime=entry.datetime_object(), location='SRID=4326;POINT({} {})'.format(location.longitude, location.latitude), water_depth=entry.water_depth())
 			db.session.add(log_entry)
+	
+	queue = Queue(log=log)
+	db.session.add(queue)
+	
+	log.start = log_callback.start()
+	log.end = log_callback.end()
+	log.processingstatus = processing_state
+		
 	db.session.commit()
 	
Index: src/mapservice/src/server_impl/database/Model.py
===================================================================
--- src/mapservice/src/server_impl/database/Model.py	(revision 75adef32255520194233191a346750f5e12c9736)
+++ src/mapservice/src/server_impl/database/Model.py	(revision 306f18abba2b16f6dac320d5b2582227b373c0e6)
@@ -22,4 +22,5 @@
 from geoalchemy2.shape import to_shape
 from sqlalchemy_utc import UtcDateTime
+from sqlalchemy_utils import create_view
 from shapely import wkb
 import hashlib
@@ -207,5 +208,24 @@
 			result['comment'] = obj.comment
 		return result
-	
+
+class ProcessingStatus(db.Model):
+	__tablename__ = "processingstatus"
+	
+	id = db.Column(db.Integer, primary_key=True, autoincrement=True)
+	label = db.Column(db.String(255), nullable=False)
+	
+	@staticmethod
+	def insert_states():
+		states = [ 'Undefined', 'Queued', 'Processing', 'Processed', 'To Old' ]
+		changed = False
+		for state in states:
+			query = ProcessingStatus.query.filter_by(label=state).all()
+			if len(query) != 1:
+				state = ProcessingStatus(label=state)
+				db.session.add(state)
+				changed = True
+		if changed:
+			db.session.commit()
+
 class Log(db.Model):
 	__tablename__ = "logs"
@@ -219,4 +239,5 @@
 	start = db.Column(UtcDateTime, nullable=True)
 	end = db.Column(UtcDateTime, nullable=True)
+	processing_state = db.Column(db.Integer, db.ForeignKey('processingstatus.id'), default=1)
 	comment = db.Column(db.String(255))
 	
@@ -225,4 +246,5 @@
 	device = db.relationship("Device", backref=db.backref("logs"), lazy=True)
 	gauge = db.relationship("Gauge", backref=db.backref("logs"), lazy=True)
+	processingstatus = db.relationship("ProcessingStatus", backref=db.backref("logs"), lazy=True)
 	
 	def meta_data(obj):
@@ -244,5 +266,9 @@
 			'gaugeLevel': obj.gauge_level,
 			'start': '',
-			'end': ''
+			'end': '',
+			'processingState': {
+				'id': obj.processingstatus.id,
+				'label': obj.processingstatus.label
+			}
 		}
 		if obj.start is not None:
@@ -308,5 +334,33 @@
 			result['waterDepth'] = obj.water_depth
 		return result
-	
+
+class LogView(db.Model):
+	__table__ = create_view(
+		name='logview',
+		metadata=db.Model.metadata,
+		selectable=select(
+			[
+				Log.submitter_id,
+				Log.water_id,
+				Log.device_id,
+				Log.gauge_id,
+				Log.gauge_level,
+				Log.start,
+				Log.end,
+				ProcessingStatus.label,
+				func.Envelope(func.MakeLine(LogEntry.location)).label('envelope')
+			],
+			from_obj=(Log.__table__.join(LogEntry, Log.id == LogEntry.log_id).join(ProcessingStatus, Log.processing_state == ProcessingStatus.id)),
+			group_by=(Log.id)
+		)
+	)
+
+class Queue(db.Model):
+	__tablename__ = "queue"
+	
+	log_id = db.Column(db.Integer, db.ForeignKey('logs.id'), primary_key=True)
+	datetime = db.Column(UtcDateTime, nullable=False, default=datetime.datetime.now(datetime.timezone.utc))
+
+	log = db.relationship("Log", backref=db.backref("queue"), lazy=True)
 
 def db_setup():
@@ -316,4 +370,5 @@
 		print("...Finished")
 	db.create_all()
+	ProcessingStatus.insert_states()
 
 def db_test_setup():
@@ -410,5 +465,5 @@
 			end = datetime.datetime.now(pytz.timezone('Europe/Berlin'))
 			start = end - datetime.timedelta(hours=1)
-			log = Log(submitter=test_user_jane, water=mississippi, device=gnuboat_one, gauge=new_orleans, gauge_level=2.2, start=start, end=end, comment='Test log for {}'.format(mississippi.name))
+			log = Log(submitter=test_user_jane, water=mississippi, device=gnuboat_one, gauge=new_orleans, gauge_level=2.2, start=start, end=end, processing_state=2, comment='Test log for {}'.format(mississippi.name))
 			db.session.add(log)
 			
@@ -418,5 +473,4 @@
 				i += 1
 			
-			
 			db.session.commit()
 		print("...Finished")
