Commit 6ae49c21 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

version labels include build id

parent 194d6d29
......@@ -42,8 +42,12 @@ ADD_TESTDATA = True
PLAIN_COPY_SUBDIRS = ['site-packages']
########## End of config section
timestamp = ''.join(np.datetime64(datetime.datetime.now()).astype(str).split(':')[0:-1]).replace('-','')
buildID = '{}.{}'.format(timeseriesviewer.VERSION, timestamp)
timestamp = ''.join(np.datetime64(datetime.datetime.now()).astype(str).split(':')[0:-1])
timestamp = re.sub('[-T]','', timestamp)
v = timeseriesviewer.VERSION.split('.')
buildID = '{}.{}.{}'.format(v[0], v[1], timestamp)
timeseriesviewer.VERSION = buildID
dirBuildPlugin = jp(DIR_BUILD, 'timeseriesviewerplugin')
def rm(p):
......@@ -90,6 +94,22 @@ if __name__ == "__main__":
import make
make.updateMetadataTxt()
#update version
p = timeseriesviewer.__file__
with open(p,'r') as file:
lines = file.readlines()
found = False
for i, line in enumerate(lines):
if re.search(r'VERSION = \'{}\.{}.*'.format(v[0],v[1]), line):
lines[i] = 'VERSION = \'{}\'\n'.format(buildID)
found = True
break
assert found
with open(p, 'w') as file:
file.writelines(lines)
#patch_pb_tool(DIR_DEPLOY)
pathCfg = jp(DIR_REPO, 'pb_tool.cfg')
cfg = pb_tool.get_config(pathCfg)
......
[general]
name=EO Time Series Viewer
description=A QGIS Plugin to visualize multi-sensor remote-sensing time-series data.
version=0.5
version=0.5.201805141051
qgisMinimumVersion=3.0
author=Benjamin Jakimow, Geomatics Lab, Humboldt-Universität zu Berlin
about=The EO Time Series Viewer is developed at Humboldt-Universität zu Berlin. Born in the SenseCarbon project, it was funded by the German Aerospace Centre (DLR) and granted by the Federal Ministry of Education and Research (BMBF, grant no. 50EE1254). Since 2017 it is developed under contract by the German Research Centre for Geosciences (GFZ) as part of the EnMAP Core Science Team activities (www.enmap.org), funded by DLR and granted by the Federal Ministry of Economic Affairs and Energy (BMWi, grant no. 50EE1529).
......
......@@ -23,7 +23,7 @@
import os, sys, fnmatch, site, re, site
VERSION = '0.5'
VERSION = '0.5.201805141051'
LICENSE = 'GNU GPL-3'
TITLE = 'EO Time Series Viewer'
DESCRIPTION = 'A QGIS Plugin to visualize multi-sensor remote-sensing time-series data.'
......
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS><TS version="2.0" language="af" sourcelanguage="en">
<context>
<name>@default</name>
<message>
<location filename="test_translations.py" line="48"/>
<source>Good morning</source>
<translation>Goeie more</translation>
</message>
</context>
</TS>
<h2>Known issues</h2>
<ul>
<li>changing the coordinate reference system to one that is obviously not suited for the data might cause system crashes</li>
</ul>
<h2>Change History</h2>
<h3>June 2017</h3>
<ul>
<li>improved QGIS-TimeSeriesViewer integration</li>
<li>synchronizes map extent or map center, either from QGIS to TSV or the other direction</li>
<li>TSV can overlay a vector layer that is opened in QGIS on top of TSV maps. Renderstyle is the same as in QGIS.</li>
<li>fixed several bugs</li>
</ul>
<h3>May 2017</h3>
<ul>
<li>crosshairs</li>
<li>temporal pixel profiles with sensor-specific scaling and visualization</li>
</ul>
<h3>December 2016</h3>
<ul>
<li>handling of VRT without memory leakage (VRT_SHARED_SOURCE = 0)</li>
<li>test data (Landsat + RapidEye)</li>
<li>refactoring of GUI and class names</li>
</ul>
<h3>June 2015</h3>
<ul>
<li>extraction of image chips for AOI selected in QGIS</li>
<li>gdal based IO</li>
</ul>
\ No newline at end of file
<p><a href="https://travis-ci.org/pyqtgraph/pyqtgraph"><img alt="Build Status" src="https://travis-ci.org/pyqtgraph/pyqtgraph.svg?branch=develop"></a>
<a href="http://codecov.io/github/pyqtgraph/pyqtgraph?branch=develop"><img alt="codecov.io" src="http://codecov.io/github/pyqtgraph/pyqtgraph/coverage.svg?branch=develop"></a></p>
<h1>PyQtGraph</h1>
<p>A pure-Python graphics library for PyQt/PySide</p>
<p>Copyright 2012 Luke Campagnola, University of North Carolina at Chapel Hill</p>
<p><a href="http://www.pyqtgraph.org">http://www.pyqtgraph.org</a></p>
<h2>Maintainer</h2>
<ul>
<li>Luke Campagnola <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#108;&#117;&#107;&#101;&#46;&#99;&#97;&#109;&#112;&#97;&#103;&#110;&#111;&#108;&#97;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;">&#108;&#117;&#107;&#101;&#46;&#99;&#97;&#109;&#112;&#97;&#103;&#110;&#111;&#108;&#97;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;</a></li>
</ul>
<h2>Contributors</h2>
<ul>
<li>Megan Kratz</li>
<li>Paul Manis</li>
<li>Ingo Breßler</li>
<li>Christian Gavin</li>
<li>Michael Cristopher Hogg</li>
<li>Ulrich Leutner</li>
<li>Felix Schill</li>
<li>Guillaume Poulin</li>
<li>Antony Lee</li>
<li>Mattias Põldaru</li>
<li>Thomas S.</li>
<li>Fabio Zadrozny</li>
<li>Mikhail Terekhov</li>
<li>Pietro Zambelli</li>
<li>Stefan Holzmann</li>
<li>Nicholas TJ</li>
<li>John David Reaver</li>
<li>David Kaplan</li>
<li>Martin Fitzpatrick</li>
<li>Daniel Lidstrom</li>
<li>Eric Dill</li>
<li>Vincent LeSaux</li>
</ul>
<h2>Requirements</h2>
<ul>
<li>PyQt 4.7+, PySide, or PyQt5</li>
<li>python 2.6, 2.7, or 3.x</li>
<li>NumPy</li>
<li>For 3D graphics: pyopengl and qt-opengl</li>
<li>Known to run on Windows, Linux, and Mac.</li>
</ul>
<h2>Support</h2>
<p>Post at the <a href="https://groups.google.com/forum/?fromgroups#!forum/pyqtgraph">mailing list / forum</a></p>
<h2>Installation Methods</h2>
<ul>
<li>To use with a specific project, simply copy the pyqtgraph subdirectory
anywhere that is importable from your project. PyQtGraph may also be
used as a git subtree by cloning the git-core repository from github.</li>
<li>To install system-wide from source distribution:
<code>$ python setup.py install</code></li>
<li>For installation packages, see the website (pyqtgraph.org)</li>
<li>On debian-like systems, pyqtgraph requires the following packages:
python-numpy, python-qt4 | python-pyside
For 3D support: python-opengl, python-qt4-gl | python-pyside.qtopengl</li>
</ul>
<h2>Documentation</h2>
<p>There are many examples; run <code>python -m pyqtgraph.examples</code> for a menu.</p>
<p>Some (incomplete) documentation exists at this time.
* Easiest place to get documentation is at <a href="http://www.pyqtgraph.org/documentation">http://www.pyqtgraph.org/documentation</a>
* If you acquired this code as a .tar.gz file from the website, then you can also look in
doc/html.
* If you acquired this code via GitHub, then you can build the documentation using sphinx.
From the documentation directory, run:
<code>$ make html</code></p>
<p>Please feel free to pester Luke or post to the forum if you need a specific
section of documentation to be expanded.</p>
\ No newline at end of file
<h1>About QGIS</h1>
<p><a href="https://travis-ci.org/qgis/QGIS"><img alt="Build Status" src="https://travis-ci.org/qgis/QGIS.svg?branch=master"></a></p>
<p>QGIS is an Open Source Geographic Information System. The project was born in
May of 2002 and was established as a project on SourceForge in June of the same
year. We've worked hard to make GIS software (which is traditionally expensive
commercial software) a viable prospect for anyone with basic access to a
Personal Computer. QGIS currently runs on most Unix platforms (macOS/OS X included)
and Windows. QGIS is developed using the Qt toolkit (http://qt.io) and C++. This
means that QGIS feels snappy to use and has a pleasing, easy to use graphical
user interface.</p>
<p>QGIS aims to be an easy to use GIS, providing common functions and
features. The initial goal was to provide a GIS data viewer. QGIS has
reached that point in its evolution and is being used by many for their
daily GIS data viewing and editing needs. QGIS supports a number of raster
and vector data formats, with new support easily added using the plugin
architecture.</p>
<p>QGIS is released under the GNU Public License (GPL) Version 2 or above.
Developing QGIS under this license means that you can (if you want to) inspect
and modify the source code and guarantees that you, our happy user will always
have access to a GIS program that is free of cost and can be freely
modified.</p>
<h2>Supported raster formats include:</h2>
<ul>
<li>Grass</li>
<li>USGS DEM</li>
<li>ArcInfo binary grid</li>
<li>ArcInfo ASCII grid</li>
<li>ERDAS Imagine</li>
<li>SDTS</li>
<li>GeoTiff</li>
<li>Tiff with world file</li>
<li>WMS, WCS</li>
</ul>
<h2>Supported vector formats include:</h2>
<ul>
<li>ESRI Shapefiles</li>
<li>PostgreSQL/PostGIS</li>
<li>GRASS</li>
<li>GeoPackage</li>
<li>Spatialite</li>
<li><a href="http://www.gdal.org/ogr_formats.html">Other OGR supported formats</a></li>
<li>MSSQL</li>
<li>Oracle</li>
<li>WFS</li>
</ul>
<h2>Note</h2>
<p>Please follow the installation instructions carefully.
After extracting the distribution, you can find the HTML version of the
installation document in qgis/doc/index.html. The installation document is
also available as PDF in the same directory.</p>
<h2>Help us</h2>
<p>Please submit bug reports using the <a href="https://issues.qgis.org/">QGIS bug tracker</a>.
When reporting a bug, either login or, if you don't have a qgis trac, provide
an email address where we can request additional information.</p>
<h2>Support</h2>
<p>You can get support in the following ways:</p>
<ul>
<li>Using the QGIS community site at http://qgis.org </li>
<li>Joining the <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">qgis-users mailing list</a></li>
<li>Using IRC by joining the <a href="http://webchat.freenode.net/?channels=#qgis">#qgis</a> channel on irc.freenode.net. Please wait around for a response to your question as many folks on the channel are doing other things and it may take a while for them to notice your question.</li>
<li>Join the <a href="https://gitter.im/qgis/QGIS?utm_source=badge&amp;utm_medium=badge&amp;utm_campaign=pr-badge&amp;utm_content=badge">Gitter</a> chat.</li>
</ul>
<h2>Contribute</h2>
<p>QGIS is on GitHub at https://github.com/qgis/QGIS. If you wish to contribute
patches you can <a href="https://help.github.com/forking/">fork the project</a>, make your changes, commit to your
repository, and then <a href="http://help.github.com/pull-requests/">issue a pull request</a>. The development team can then
review your contribution and commit it upstream as appropriate.
If you commit a new feature, add [FEATURE] to your commit message AND give a clear description of the new feature. A webhook will automatically create an issue on the QGIS-Documentation repo to tell people to write documentation about it.</p>
<p>If you are not a developer, there are many other possibilities which do not require programming skills to help QGIS to evolve. Check our <a href="http://qgis.org/en/site/getinvolved/index.html">project homepage for more information</a>.</p>
\ No newline at end of file
# Notes for test users of EO Time Series Viewer (TSV)
1. Ensure that git is installed on your system. If necessary, download it
from [https://git-scm.com/download](https://git-scm.com/download)
Git is installed, if the command `C:\Windows\system32>git` produces a meaningful output.
2. Create your personal "QGIS_Plugin" folder.
3. Clone this repository into your QGIS_Plugin folder and checkout the qgis_api branch with:
git clone https://bitbucket.org/jakimowb/hub-timeseriesviewer.git
cd hub-timeseriesviewer
git fetch && git checkout develop
The qgis_api branch source code should now appear within `QGIS_Plugin/hub-timeseriesviewer`.
4. Tell QGIS where to find this folder by adding QGIS_Plugin to the QGIS_PLUGINPATH variable.
Create it variable in case it does not exist.
Settings > Options ... > System >
![Screenshot](img/qgis_pluginpath.png "Screenshot QGIS_PLUGINPATH")
5. Re-start QGIS. Activate the Plugin to add the TSV start button
to the QGIS toolbar.
![Screenshot Plugin Activation](img/qgis_plugin_activation.png "Screenshot Plugin Activation")
6. Get updates: switch to your `QGIS_Pluigin/hub-timeseriesviewer` folder and call
git pull
to get updates from the remote branch. Dont's forget to restart QGIS afterwards.
......@@ -26,7 +26,8 @@ from qgis.core import *
from qgis.core import QgsContrastEnhancement, QgsRasterShader, QgsColorRampShader, QgsProject, QgsCoordinateReferenceSystem, \
QgsRasterLayer, QgsVectorLayer, QgsMapLayer, QgsMapLayerProxyModel, QgsColorRamp, QgsSingleBandPseudoColorRenderer
from qgis.gui import QgsDockWidget, QgsMapCanvas, QgsMapTool
from qgis.gui import *
from qgis.gui import QgsDockWidget, QgsMapCanvas, QgsMapTool, QgsCollapsibleGroupBox
from PyQt5.QtXml import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
......@@ -365,7 +366,7 @@ class SingleBandPseudoColorRendererWidget(QgsSingleBandPseudoColorRendererWidget
def initActionButtons(self):
from enmapbox.gui.utils import parseWavelength
wl, wlu = parseWavelength(self.rasterLayer())
self.wavelengths = wl
self.wavelengthUnit = wlu
......@@ -480,7 +481,6 @@ class MultiBandColorRendererWidget(QgsMultiBandColorRendererWidget, RendererWidg
def initActionButtons(self):
from enmapbox.gui.utils import parseWavelength
wl, wlu = parseWavelength(self.rasterLayer())
self.wavelengths = wl
self.wavelengthUnit = wlu
......
......@@ -356,7 +356,7 @@
<number>0</number>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;Website, Source Code and more&lt;br/&gt;&lt;a href=&quot;https://bitbucket.org/jakimowb/hub-timeseriesviewer&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://bitbucket.org/jakimowb/eo-time-series-viewer&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;Licenced under the GNU General Public Licence Version 2&lt;br/&gt;&lt;a href=&quot;http://www.gnu.org/licenses/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;http://www.gnu.org/licenses/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;The EO Time Series Viewer is developed at Humboldt-Universit&amp;auml;t zu Berlin (HUB). Born in the SenseCarbon project, it was funded by the German Aerospace Centre (DLR) and granted by the Federal Ministry of Education and Research (BMBF, grant no. 50EE1254). Since 2017 it is developed under contract by the German Research Centre for Geosciences (GFZ) as part of the EnMAP Core Science Team activities (&lt;a href=&quot;http://www.enmap.org&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;http://www.enmap.org&lt;/span&gt;&lt;/a&gt;), funded by DLR and granted by the Federal Ministry of Economic Affairs and Energy (BMWi, grant no. 50EE1529). &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;Website, Source Code and more&lt;br/&gt;&lt;a href=&quot;https://bitbucket.org/jakimowb/hub-timeseriesviewer&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://bitbucket.org/jakimowb/eo-time-series-viewer&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;Licenced under the GNU General Public Licence Version 3&lt;br/&gt;&lt;a href=&quot;http://www.gnu.org/licenses/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;http://www.gnu.org/licenses/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;The EO Time Series Viewer is developed at Humboldt-Universit&amp;auml;t zu Berlin (HUB). Born in the SenseCarbon project, it was funded by the German Aerospace Centre (DLR) and granted by the Federal Ministry of Education and Research (BMBF, grant no. 50EE1254). Since 2017 it is developed under contract by the German Research Centre for Geosciences (GFZ) as part of the EnMAP Core Science Team activities (&lt;a href=&quot;http://www.enmap.org&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;http://www.enmap.org&lt;/span&gt;&lt;/a&gt;), funded by DLR and granted by the Federal Ministry of Economic Affairs and Energy (BMWi, grant no. 50EE1529). &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
......
This diff is collapsed.
......@@ -23,11 +23,11 @@
import os, collections
from qgis.core import *
from qgis.gui import *
from PyQt5 import uic
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtXml import *
import PyQt5.QtWebKit
from qgis.PyQt.QtWidgets import *
from qgis.PyQt import uic
from qgis.PyQt.QtCore import *
from qgis.PyQt.QtGui import *
from qgis.PyQt.QtXml import *
import sys, re, os, six
......@@ -141,7 +141,7 @@ if __name__ == '__main__':
from timeseriesviewer import DIR_SITE_PACKAGES
site.addsitedir(DIR_SITE_PACKAGES)
from timeseriesviewer.utils import initQgisApplication
#prepare QGIS environment
if sys.platform == 'darwin':
PATH_QGS = r'/Applications/QGIS.app/Contents/MacOS'
......@@ -151,7 +151,7 @@ if __name__ == '__main__':
PATH_QGS = os.environ['QGIS_PREFIX_PATH']
assert os.path.exists(PATH_QGS)
qgsApp = QgsApplication([], True)
qgsApp = initQgisApplication()
QApplication.addLibraryPath(r'/Applications/QGIS.app/Contents/PlugIns')
QApplication.addLibraryPath(r'/Applications/QGIS.app/Contents/PlugIns/qgis')
qgsApp.setPrefixPath(PATH_QGS, True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment