-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
placeholder, filter, attribute, first implementation of statistics
- Loading branch information
1 parent
f7342aa
commit 530643b
Showing
14 changed files
with
159 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Business object for Grunstück Statistik""" | ||
|
||
from qgis.core import QgsMessageLog | ||
from ..vrpcore.constvals import * | ||
|
||
class VRPStatistik: | ||
"""Statistics for one parcel""" | ||
def __init__(self, gstk_nr, gstk_flaeche, gemeindename): | ||
self.gnr = gstk_nr | ||
self.flaeche = gstk_flaeche | ||
self.gem_name = gemeindename | ||
self.subthemen = [] | ||
|
||
def add_subthema(self, subthema): | ||
"""add subthema""" | ||
self.subthemen.append(subthema) | ||
|
||
def __str__(self): | ||
asstr = '{1}{0}{2}{0}{3:.2f}'.format('\t', self.gem_name, self.gnr, self.flaeche) | ||
for subthema in self.subthemen: | ||
asstr += '\n' + subthema.__str__() | ||
return asstr | ||
|
||
def __unicode__(self): | ||
asunicode = u'{1}{0}{2}{0}{3:.2f}'.format(u'\t', self.gem_name, self.gnr, self.flaeche) | ||
for subthema in self.subthemen: | ||
asunicode += u'\n' + subthema.__unicode__() | ||
return asunicode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Business object for Grundstück Statistik""" | ||
|
||
from qgis.core import QgsMessageLog | ||
from ..vrpcore.constvals import * | ||
|
||
class VRPStatistikSubThema: | ||
"""Statistics for one parcel""" | ||
def __init__(self, subthema_name, text_flaeche): | ||
self.name = subthema_name | ||
self.txt_area = text_flaeche | ||
|
||
def __str__(self): | ||
#{3:.2f} | ||
txt = '' | ||
for key, val in self.txt_area.iteritems(): | ||
txt += '{0}:{1:.2f}; '.format(key, val) | ||
return '{1}{0}{2}'.format('\t', self.name, txt) | ||
|
||
def __unicode__(self): | ||
txt = u'' | ||
for key, val in self.txt_area.iteritems(): | ||
txt += u'{0}:{1:.2f}; '.format(key, val) | ||
return u'{1}{0}{2}'.format(u'\t', self.name, txt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
DLG_CAPTION = 'VoGIS Raumplanung Plot' | ||
VRP_DEBUG = True | ||
VRP_DEBUG = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.