ubarsc / tuiview Goto Github PK
View Code? Open in Web Editor NEWTuiView is a lightweight raster GIS with powerful raster attribute table manipulation abilities
Home Page: http://tuiview.org/
License: GNU General Public License v2.0
TuiView is a lightweight raster GIS with powerful raster attribute table manipulation abilities
Home Page: http://tuiview.org/
License: GNU General Public License v2.0
Suggest updating to NumPy version <1.24.0 as np.bool is deprecated.
I have a TIFF image with a palette but when I load it into tuiview it displays as greyscale, and says "no color table present"
Driver: GTiff/GeoTIFF
Files: no.tif
Size is 20000, 20000
Image Structure Metadata:
COMPRESSION=LZW
INTERLEAVE=BAND
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0,20000.0)
Upper Right (20000.0, 0.0)
Lower Right (20000.0,20000.0)
Center (10000.0,10000.0)
Band 1 Block=20000x48 Type=Byte, ColorInterp=Palette
Color Table (RGB with 256 entries)
0: 0,0,0,255
1: 11,13,14,255
etc
Original report by Pierre Roudier (Bitbucket: roudierp-landcare, ).
I just pushed the viridis family of colour palettes (see eg: https://cran.r-project.org/web/packages/viridis/vignettes/intro-to-viridis.html),
That made me think that it would be good to have a mechanism to pick the default colour palette used by default for single-layer rasters.
The version on conda-forge seems to be lagging behind the version on github. How difficult is it to get that updated?
In the situation where github is newer, do you have some instructions for people who have installed via conda-forge to get the latest version from github?
Thanks!
Rolling a comma list to top when the bottom of the list is reached. This is useful when reviewing work when a large number of layers.
Requested by James Shepherd
ImportError: DLL load failed while importing vectorrasterizer
Original report by Terry Cain (Bitbucket: terry-dc, ).
Applying a stretch to specific layers would be rather useful, as would deleting specific layers.
So for example, you could select 5 layers and apply the stretch to them or if multiple layers are selected the delete layer button would delete them all.
You should see a pull request soonish.
Original report by Nathan Thomas (Bitbucket: nathanmthomas, GitHub: nathanmthomas).
Hi,
I've noticed that there is no way to apply a linear stretch to images that have negative values (e.g., radar imagery in dB with the range -30 to -5 ). The minimum input box won't accept a negative sign and the 'down' arrow only goes to zero.
Could this be added in? I am able to stretch radar imagery using a standard deviation stretch but sometimes I would like a bit more control.
Thanks
Currently the "tile windows" dialog only works with the primary monitor. It would be useful to be able to tile windows on multiple monitors.
One suggestion that would mean minimum changes is to make "tile windows" only work on the same screen as it was invoked from. So it would only tile windows that are on the same screen as it is shown. So first, you'd have to move all the windows you want to tile to the right screen using whatever mechanism is provided by your OS. Then invoke "tile windows" on one of the windows on that screen. You'd repeat this for each screen you want to tile windows for. Is this sufficient?
Getting tuiview to move windows between screens is more complex and I'd prefer to avoid, but open to suggestions.
cc: @deanpa
Sort multiple layers by dates in their filenames when non-iso dates are used - especially when short (3 char) and long month names are used.
Requested by James Shepherd
Hi, in viewerlayers.py, there is an error in "from . import vectorrasterizer", I guess the vectorrasterizer.py file is missing. But I only found that there is a vectorrasterizer.c file, are the two related? I am running tuiview under Windows Pycharm.
Currently uses imp
which is now deprecated.
See https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly
Also will need to use https://docs.python.org/3/library/importlib.html#importlib.machinery.SOURCE_SUFFIXES rather than imp.get_suffixes()
.
When opening a vector layer provide an option to add it to multiple or all open viewers at once.
Requested by James Shepherd
Currently, only integer columns have the "Set column as Color Table Lookup" menu option. As @petescarth discovered this is a bit of a pain if you get pyshepseg
to calculate a mean value for a segment as it saves this in a float column (although note that median values get saved in an int column). You have to create a new column with the integer version of the mean value.
I don't think there is any harm in allowing a Colour Table lookup on float columns by doing a round()
first? Any thoughts @shepjd?
Original report by Shuning Bian (Bitbucket: Steve, GitHub: Steve).
After loading a raster image use of the mouse wheel to zoom causes tuiview to crash immediately due to delta()
being deprecated. Patch to fix this is attached, though I am not sure if the direction is correct, or if angleDelta()
should be used over pixelDelta()
. The hasattr
check is probably also extraneous since PyQt5 is import explicitly.
Original report by Anonymous.
The install method listed here (conda) doesn't work since the upgrade to Python 3.5.
Using the python 2 version of conda is not much better:
#!bash
$ conda install -c osgeo tuiview
$ tuiview
/bin/bash: /Users/mperry/miniconda2/bin/python.app: No such file or directory
Running with the conda python interpreter directly, there are conflicts with other QT libs on the system, with dozens of errors like
objc[92324]: Class QNSImageView is implemented in both /usr/local/lib/QtGui.framework/Versions/4/QtGui and /Users/mperry/miniconda2/lib/libQtGui.4.8.7.dylib. One of the two will be used. Which one is undefined.
QWidget: Must construct a QApplication before a QPaintDevice
Abort trap: 6
before a hard crash.
Versions. Anaconda as of the posting date, OS X 10.10
Currently the query tool displays the marker location coordinate in the projection units, but would it be possible to also display it in degrees latitude,longitude ?
When the value is very small, all that is shown can be 321....
but in fact if you make the window larger you can see that the actual figure is 3.2134234234e-26
. Would be nice if the truncating of the value always preserved the exponent so you could see the magnitude of the number easier, even if you have to expand to get the full value.
Original report by Sam Gillingham (Bitbucket: gillins, GitHub: gillins).
see http://conda.pydata.org/docs/building/meta-yaml.html#python-entry-points.
tuiviewwritetable in particular has code than will need to be put into a module
In the file open dialogue allow the user to specify multiple files form the structured filenames though normal globbing (or possibly regular expressions, or both?).
Requested by James Shepherd
Original report by Anonymous.
This is what happens on my archlinux 32 machine:
$ tuiview
Traceback (most recent call last):
File "/usr/bin/tuiview", line 21, in
viewerapplication.run()
File "/usr/lib/python2.7/site-packages/tuiview/viewerapplication.py", line 222, in run
app = ViewerApplication()
File "/usr/lib/python2.7/site-packages/tuiview/viewerapplication.py", line 161, in init
self.viewers.newViewer()
File "/usr/lib/python2.7/site-packages/tuiview/geolinkedviewers.py", line 122, in newViewer
newviewer = viewerwindow.ViewerWindow()
File "/usr/lib/python2.7/site-packages/tuiview/viewerwindow.py", line 169, in init
self.restoreFromSettings()
File "/usr/lib/python2.7/site-packages/tuiview/viewerwindow.py", line 282, in restoreFromSettings
self.resize(settings.value("size", defaultsize).toSize())
AttributeError: 'QSize' object has no attribute 'toSize'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.