Git Product home page Git Product logo

profiletool's People

Contributors

borysiasty avatar etiennesky avatar martst avatar patricev avatar wonder-sk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

profiletool's Issues

Profile Tool gets stuck in QGIS 3.10.2

I am using QGIS 3.10.2 on a Mac with OS 10.14.6 (Mojave) and also on Windows 10.

I have tried to use the Profile Tool using a single path over a section of an Ordnance Survey Terrain50 ASCII grid.

I go through the steps as required, but when I select the path layer and then 'Selected Layer' in the tool drop-down menu, the cursor turns into the coloured spinning wheel (mac) / blue spinning wheel (windows) and becomes stuck in that state.

Is there a known problem with this version of QGIS?

Vertical exaggeration + AutoCAD.Format

Issue moved from hub.qgis.org
Feature request #12997 Added by Holger Eberhardt 2015-06-18

I use the tool to derive profiles which are then drawn in AutoCAD. We often draw the profiles with a vertical exaggeration factor. It would be very time saving for us, if the data could be copied to the clipboard in a format that is understood by the AutoCAD "Polyline" command and if we could choose a factor for the vertical exaggeration, that is used as a multiplier for the y-values.

Correct formatting for the Polyline command would require:

  • Force "point" as decimal separator, even if the locale setting (in my case "german") says "comma"
  • Separate x- and y- values by comma
  • Write every pair of x- and y-values to a new line

So the data should look like this
0,14.53
1.2,14.78
2.5,14.66

Much thanks for your work

theudebert

Warning if canvas projection differs from data

Issue moved from hub.qgis.org
Feature request #9452 Added by Joshua Arnott (@snorfalorpagus I guess it could be you?) 2014-01-29

It appears that the profile tool uses the current map canvas projection for calculations of length, rather than the projection of the data when using an existing polyline. This is a useful feature, but I think it needs to be more clear that this is happening.

I've just had to correct a whole batch of data, because I added an OpenLayers basemap in before running the tool. I expected that because both datasets (raster and vector) were in the same projection it would use that.

Discussion

@etiennesky:

I see it as rather obvious that calculations are done using the map/project projection.
Anyway, how do you suggest this warning/information would be displayed to the user?

[waiting for a feedback]

exported SVG profile file crashes Inkscape

Ristretto Image Viewer does open SVGs correctly. This may therefore be an Inkscape bug. Apologies if this is the case.

Steps to replicate:

  • Download, say, this ETOPO1 data.
  • Install the "Profile tool".
  • Make a cross-section using "Profile tool".
  • Tick the "Show cursor" box in the "Profile tool" pane.
  • Save cross-section profile as an SVG file using the "Save as" button.
  • Outside QGIS, attempt to open the SVG file with Inkscape.
  • Inkscape will crash without opening the file. Pop-up message: "Inkscape encountered an internal error and will close now", with a "Close" button.
  • Back in QGIS, untick the "Show cursor" box and save an SVG file again.
  • The new file will open (the canvas size is way off, but that's minor).

Desired behaviour:
If this is not a problem with Inkscape, either the export function should not care whether the cursor is on, or it should display a warning that the file will not export properly if the cursor is shown.

Thank you for the really useful tool.

Plugin fails with non-ascii layer names

Steps to reproduce: rename layer to "ĀŠŅĻ" and try to create profile.
Tested with:
QGIS versija 2.18.2
QGIS koda revīzija 7fe7a19
profiletool 3.7.1

File "/home/maris/.qgis2/python/plugins/profiletool/profileplugin.py", line 203, in doubleClicked
self.doprofile.calculateProfil(self.pointstoDraw,self.mdl, self.plotlibrary)
File "/home/maris/.qgis2/python/plugins/profiletool/tools/doprofile.py", line 101, in calculateProfil
PlottingTool().attachCurves(self.dockwidget, self.profiles, model1, library)
File "/home/maris/.qgis2/python/plugins/profiletool/tools/plottingtool.py", line 177, in attachCurves
self.changeColor(wdg, "Matplotlib", model1.item(i,1).data(Qt.BackgroundRole), tmp_name)
File "/home/maris/.qgis2/python/plugins/profiletool/tools/plottingtool.py", line 270, in changeColor
if name == str(temp1[i].get_gid()):
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)`

Mac vs Phyton/Profile tool

Issue moved from hub.qgis.org
Bug report #11262 Added by Fernando Nieto Conde 2014-09-24

hi there

I have got this message when running plugging Profile tool. Perhaps incomnpatible with Mac?

thx in advance for any help

fer

sin_titulo

Incorrect values in QGIS 2.3 (regression from QGIS 2.2)

Issue moved from hub.qgis.org
Bug report #10620 Added by Romain Blanc 06/18/2014

When I get a profile with the same polyline and raster in QGIS 2.2 and 2.3 dev, the values given by Profile Tool are not the same at all. Correct values appears in QGIS 2.2 only.

In the example below you can see approximatively the same temporary line in 2.2 and 2.3. In 2.2, values are between 20 and 55 (in %). In 2.3, they are between 1.5 and 3.7.

The same band of the raster is selected, and I use the same version of the plugin in 2.2 and 2.3 (3.6.4).

Thanks ;)

qgis_2 2

qgis_2 3

Profile tool plugin - python problem

Issue moved from hub.qgis.org
Bug report #11165 Added by @ghtmtt 2014-09-09

When pushing the button "edit curves lines and axes parameters" it appears this error:

Errore durante l'esecuzione di codice Python:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_qt4.py", line 594, in edit_parameters
    figureoptions.figure_edit(axes, self)
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/qt4_editor/figureoptions.py", line 134, in figure_edit
    icon=get_icon('qt4_editor_options.svg'), apply=apply_callback)
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/qt4_editor/formlayout.py", line 544, in fedit
    dialog = FormDialog(data, title, comment, icon, parent, apply)
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/qt4_editor/formlayout.py", line 461, in __init__
    self.formwidget.setup()
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/qt4_editor/formlayout.py", line 433, in setup
    widget.setup()
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/qt4_editor/formlayout.py", line 408, in setup
    widget.setup()
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/qt4_editor/formlayout.py", line 315, in setup
    field.addItems(value)
TypeError: QComboBox.addItems(QStringList): argument 1 has unexpected type 'list'

Versione Python:
2.7.8 (default, Aug 24 2014, 09:51:25) 
[GCC 4.9.1]

Versione di QGIS:
2.5.0-Master Master, exported

Percorso Python: ['/home/ma7730/.qgis2/python/plugins/processing', '/home/ma7730/.qgis2/python/plugins/GeoCoding', '/usr/share/qgis/python', u'/home/ma7730/.qgis2/python', u'/home/ma7730/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-i386-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', '/usr/share/qgis/python/plugins/fTools/tools']

On debian testin and QGIS Master 2.5.

Cheers

Flat terrain curve

I use Profile tool v4.0.2 (latest) with QGIS 2.18.14 (latest).

Whenever I select a temporary polyline Profile Tool always presents a flat terrain curve (y values 0.0 for all x values) - see attached screen dump.

This happens despite the fact that there are y values (not equal to zero) in the tables tab - however I note that there is a row no. 2 which has zero-values. My guess is Profile Tool presents the zeros in row no.1 instead of the values in row no. 1.

Can anyone fix this (or teach me settings to fix it)?

Thanks a lot!
image
image

Uncaught TypeError: float() argument must be a string or a number

Steps to reproduce

  1. Add DEM raster
  2. draw the line Temporare
  3. save 3D dxf, window appears, type name and send;
    error!!!
Traceback (most recent call last):
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\ui\ptdockwidget.py", line 573, in saveAs
    self.outDXF()
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\ui\ptdockwidget.py", line 590, in outDXF
    PlottingTool().outDXF(self.iface, self, self.mdl, self.cboLibrary.currentText (), self.profiletoolcore.profiles)
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\tools\plottingtool.py", line 560, in outDXF
    drawing.add(dxf.polyline(points, color=7, layer=name))
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\dxfwrite\engine.py", line 395, in polyline
    return Polyline(points, **kwargs)
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\dxfwrite\entities.py", line 612, in __init__
    self.add_vertices(points)
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\dxfwrite\entities.py", line 636, in add_vertices
    self.add_vertex(point)
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\dxfwrite\entities.py", line 628, in add_vertex
    self.vertices.append(Vertex(location=point, **kwargs))
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\dxfwrite\entities.py", line 812, in __init__
    super(Vertex, self).__init__(**default)
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\dxfwrite\entities.py", line 196, in __init__
    self[key] = value
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\dxfwrite\entities.py", line 204, in __setitem__
    self.attribs[key] = self._get_dxf_atom(key, value)  # factory is called
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\dxfwrite\entities.py", line 221, in _get_dxf_atom
    return attrib.factory(value, attrib.group_code)
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\dxfwrite\base.py", line 329, in __init__
    super(DXFPoint3D, self).__init__(coords, index_shift)
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\dxfwrite\base.py", line 264, in __init__
    self.point = [DXFFloat(value, (pos+1)*10+index_shift) for pos, value in enumerate(coords)]
  File "C:/Users/Salvatore/.qgis2/python/plugins\profiletool\dxfwrite\base.py", line 237, in __init__
    super(DXFFloat, self).__init__(float(value), group_code)
TypeError: float() argument must be a string or a number

profiletool 4.0.2, QGIS 2.18.14 on Windows 10

Remember last used path while saving the plot

Issue moved from hub.qgis.org
Feature request #10643 Added by Mikhail Titov 2014-06-19

Right now, static function QFileDialog.getSaveFileName is used to browse for a file name for each format. Without default directory provided, one has to navigate to one's folder every time. This is somewhat annoying. I think it would be better if last used folder was reused for all formats. Perhaps this could be achieved by using QFileDialog and its open function, and by making decision on format by looking at returned file extension.

Crash with QGIS 2.5

Issue moved from hub.qgis.org
Bug report #11162 Added by @pcav 2014-09-08

Starting the plugin causes QGIS dev to crash on Debian sid:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f93ebbdd109 in __libc_waitpid (pid=26291, stat_loc=0x7fff5935bc7c, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
40 ../sysdeps/unix/sysv/linux/waitpid.c: File o directory non esistente.
[Current thread is 1 (Thread 0x7f93f453a8c0 (LWP 26266))]
#0 0x00007f93ebbdd109 in __libc_waitpid (pid=26291, stat_loc=0x7fff5935bc7c, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
resultvar = 0
oldtype = 0
#1 0x00000000004fe577 in qgisCrash(int) ()
No symbol table info available.
#2 <signal handler called>
No locals.
#3 0x00007f93ee5c5420 in QWidget::palette() const () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#4 0x00007f9356efe0fd in QwtPlot::setCanvasBackground(QColor const&) () from /usr/lib/libqwt-qt4.so.5
No symbol table info available.
#5 0x00007f9357216ca2 in ?? () from /usr/lib/python2.7/dist-packages/PyQt4/Qwt5/Qwt.so
No symbol table info available.
#6 0x00007f936d28af4c in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#7 0x00007f936d28b35d in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#8 0x00007f936d28b35d in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#9 0x00007f936d2f2da0 in PyEval_EvalCodeEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#10 0x00007f936d243ebc in ?? () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#11 0x00007f936d24c8f3 in PyObject_Call () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#12 0x00007f936d298195 in ?? () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#13 0x00007f936d24c8f3 in PyObject_Call () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#14 0x00007f936d2f22f7 in PyEval_CallObjectWithKeywords () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#15 0x00007f936cdd9ae0 in sip_api_invoke_slot_ex () from /usr/lib/python2.7/dist-packages/sip.so
No symbol table info available.
#16 0x00007f936cade082 in ?? () from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
No symbol table info available.
#17 0x00007f936cade3cd in ?? () from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
No symbol table info available.
#18 0x00007f936cadef7d in ?? () from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
No symbol table info available.
#19 0x00007f93ef242ffb in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#20 0x00007f93ee96d051 in QComboBox::currentIndexChanged(int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#21 0x00007f93ee96d0f1 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#22 0x00007f93ee96d45b in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#23 0x00007f93ee96d6bf in QComboBox::setCurrentIndex(int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#24 0x00007f93ef242c5c in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#25 0x00007f93ef28f054 in QAbstractItemModel::rowsInserted(QModelIndex const&, int, int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#26 0x00007f93ef227092 in QAbstractItemModel::endInsertRows() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#27 0x00007f93eeb3f8af in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#28 0x00007f93ee96e6d9 in QComboBox::insertItem(int, QIcon const&, QString const&, QVariant const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#29 0x00007f936c3eec80 in ?? () from /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so
No symbol table info available.
#30 0x00007f936d28af4c in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#31 0x00007f936d28b35d in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#32 0x00007f936d2f2da0 in PyEval_EvalCodeEx () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#33 0x00007f936d243ebc in ?? () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#34 0x00007f936d24c8f3 in PyObject_Call () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#35 0x00007f936d298195 in ?? () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#36 0x00007f936d24c8f3 in PyObject_Call () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#37 0x00007f936d2f22f7 in PyEval_CallObjectWithKeywords () from /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
No symbol table info available.
#38 0x00007f936cdd9ae0 in sip_api_invoke_slot_ex () from /usr/lib/python2.7/dist-packages/sip.so
No symbol table info available.
#39 0x00007f936cade082 in ?? () from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
No symbol table info available.
#40 0x00007f936cade3cd in ?? () from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
No symbol table info available.
#41 0x00007f936cadef7d in ?? () from /usr/lib/python2.7/dist-packages/PyQt4/QtCore.so
No symbol table info available.
#42 0x00007f93ef242ffb in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#43 0x00007f93ee57cb22 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#44 0x00007f93ee57e6c7 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#45 0x00007f93ee9d209d in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#46 0x00007f93ee9d6a69 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#47 0x00007f93ee5d63b8 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#48 0x00007f93ee9daa4b in QMenu::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#49 0x00007f93ee58331c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#50 0x00007f93ee589f7f in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#51 0x00007f93f05f9acb in QgsApplication::notify(QObject*, QEvent*) () from /usr/lib/libqgis_core.so.2.5.0
No symbol table info available.
#52 0x00007f93ef22dcad in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#53 0x00007f93ee5895af in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#54 0x00007f93ee60068d in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#55 0x00007f93ee5fecb2 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#56 0x00007f93ee627f92 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#57 0x00007f93e99b5ecd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#58 0x00007f93e99b61b8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#59 0x00007f93e99b626c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#60 0x00007f93ef25d14d in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#61 0x00007f93ee628056 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#62 0x00007f93ef22c801 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#63 0x00007f93ef22cb65 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#64 0x00007f93ef2325c7 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#65 0x00000000004f8ffb in main ()
No symbol table info available.
gdb returned 0

Fixed upper and lower Y axis

It would be great to have an option to set the upper and lower scale on Y axis so that it does not get updated.

Error when saving plot

Hello dears,

I'm receiving an error when trying to save a plot from profile tool. Sorry if this is not the right way to report an error or get help. Please feel free to point out another way to do it.
Anyway, could you give some clue on this?
I'm using QGIS 2.14.3 in Ubuntu 16.04. Follows de error message from log:

Traceback (most recent call last):
File "/home/jeco/.qgis2/python/plugins/profiletool/profileplugin.py", line 299, in changePlotLibrary
self.wdg.addPlotWidget(self.plotlibrary)
File "/home/jeco/.qgis2/python/plugins/profiletool/ui/ptdockwidget.py", line 147, in addPlotWidget
mpltoolbar = matplotlib.backends.backend_qt4agg.NavigationToolbar2QTAgg(self.plotWdg, self.frame_for_plot)
AttributeError: 'module' object has no attribute 'NavigationToolbar2QTAgg'

Let the profile select a line feature as a profile line

Issue moved from hub.qgis.org
Feature request #9206 Added by Bogdan Hlevca 2013-12-11

This idea came as I discovered a bug that I cannot reproduce anymore.

I edited a vector layer and I wanted to create a profile line. QGIS was asking me to select a VECTOR layer instead of a raster layer as it should.
After I selected the line I have drawn previously the Profile tool has drawn the profile using the feature from the vector layer. Cool.
Obviously, this is a bug but it could be converted in a useful feature.

Discussion

Bogdan Hlevca:

Apparently switching from "Temporary polyline" to "Selected polyline" does what I was requesting in this enhancement.
However, it is buggy and requires the profile tool to be opened first, then switched to Selected polyline, closed and open again. A little cumbersome.

@etiennesky:

What do you mean by "closed and opened again?"
I just open the tool, switch to "selected polyline", then click on the vector layer and click on the polyline. A few clicks, but I don't see how to make this better.
Do you mean that it should be able to use a previously selected polyline?

Bogdan Hlevca:

Yes, to be able to use a previously selected polyline would be a nice feature to have

Problem with encoding with 2.16.0-Nødebo under Win 10

In Qgis 2.16 Nødebo the plugin has a problem converting to string the QGIS_VERSION variable.

I suppose It heppens by the presence of "ø" in the name.

An error has occurred while executing Python code:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 8: ordinal not in range(128)
Traceback (most recent call last):
File "C:/Users/Luca/.qgis2/python/plugins\profiletool\profileplugin.py", line 90, in run
if self.checkIfOpening() == False:
File "C:/Users/Luca/.qgis2/python/plugins\profiletool\profileplugin.py", line 216, in checkIfOpening
ver = str(QGis.QGIS_VERSION)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position 8: ordinal not in range(128)

Versione Python: 2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
Versione di QGIS: 2.16.0-Nødebo Nødebo, d0b3e39

Saving profile as PNG causes QGIS to crash

I'm using QGIS 2.14.12 and QGIS 2.18.3 64-bit on Windows 7. Adding a GeoTIFF DEM and drawing a line with the plugin correctly renders a profile. Saving the profile as a PNG file causes a crash dump of QGIS after setting the output location and pressing the Save button.

Saving as PDF and SVG works as expected.

The Python warning console has the following in it:

2017-03-03T11:42:46	1	warning:C:\PROGRA~1\QGIS2~1.14\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\collections.py:548: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison`
		if self._edgecolors == 'face':
		
		traceback:  File "C:/Users/mcdonaldr/.qgis2/python/plugins\profiletool\tools\ptmaptool.py", line 51, in canvasDoubleClickEvent
		    self.emit( SIGNAL("doubleClicked"), {'x': event.pos().x(), 'y': event.pos().y()} )
		  File "C:/Users/mcdonaldr/.qgis2/python/plugins\profiletool\profileplugin.py", line 203, in doubleClicked
		    self.doprofile.calculateProfil(self.pointstoDraw,self.mdl, self.plotlibrary)
		  File "C:/Users/mcdonaldr/.qgis2/python/plugins\profiletool\tools\doprofile.py", line 101, in calculateProfil
		    PlottingTool().attachCurves(self.dockwidget, self.profiles, model1, library)
		  File "C:/Users/mcdonaldr/.qgis2/python/plugins\profiletool\tools\plottingtool.py", line 177, in attachCurves
		    self.changeColor(wdg, "Matplotlib", model1.item(i,1).data(Qt.BackgroundRole), tmp_name)
		  File "C:/Users/mcdonaldr/.qgis2/python/plugins\profiletool\tools\plottingtool.py", line 271, in changeColor
		    wdg.plotWdg.draw()
		  File "C:\PROGRA~1\QGIS2~1.14\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\backends\backend_qt4agg.py", line 154, in draw
		    FigureCanvasAgg.draw(self)
		  File "C:\PROGRA~1\QGIS2~1.14\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\backends\backend_agg.py", line 451, in draw
		    self.figure.draw(self.renderer)
		  File "C:\PROGRA~1\QGIS2~1.14\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\artist.py", line 55, in draw_wrapper
		    draw(artist, renderer, *args, **kwargs)
		  File "C:\PROGRA~1\QGIS2~1.14\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\figure.py", line 1034, in draw
		    func(*args)
		  File "C:\PROGRA~1\QGIS2~1.14\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\artist.py", line 55, in draw_wrapper
		    draw(artist, renderer, *args, **kwargs)
		  File "C:\PROGRA~1\QGIS2~1.14\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\axes.py", line 2086, in draw
		    a.draw(renderer)
		  File "C:\PROGRA~1\QGIS2~1.14\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\artist.py", line 55, in draw_wrapper
		    draw(artist, renderer, *args, **kwargs)
		  File "C:\PROGRA~1\QGIS2~1.14\apps\Python27\lib\site-packages\matplotlib-1.3.1-py2.7-win-amd64.egg\matplotlib\collections.py", line 276, in draw
		    offsets, transOffset, self.get_facecolor(), self.get_edgecolor(),```

Crash QGIS 3.0.2

I am forwarding a bug report that is generated when the profile tool crashes QGIS 3.0.2.
QGIS crashes when using the Profile Tool on a DTM.
It only occurs when drawing a second/new profile (everything works fine when only one profile is done).
If the "show cursor" option is disabled the crash does not occur.

I hope this can help you to improve your tool.

Thanks

Issue #18987 has been updated by Giovanni Manghi.

Status changed from Open to Closed
Resolution set to invalid

3rd party plugins issues must be reported to the plugins authors.


Bug report #18987: Crash: Profile tool - QGIS 3.0.2
http://issues.qgis.org/issues/18987#change-89786

  • Author: David Vaz
  • Status: Closed
  • Priority: Normal
  • Assignee:
  • Category: Python plugins
  • Affected QGIS version: 3.0.2
  • Operating System: windows x86_64
  • Pull Request or Patch supplied: No
  • Crashes QGIS or corrupts data: Yes
  • Regression?: Yes
  • Easy fix?: No
  • Resolution: invalid

h2. User Feedback
QGIS crashes when using the Profile Tool on a DTM.
It occurs when drawing a second/new profile (everything works when only one profile is done).
If the "show cursor" option is disabled the crash does not occur.

h2. Report Details

Crash ID: 999b61237b27877a4b9cd81a0af8e584b41589d9

Stack Trace

geos::index::strtree::STRtree::STRIntersectsOp::~STRIntersectsOp :
QgsGeos::createGeosLinestring :
QgsGeos::asGeos :
QgsGeos::cacheGeos :
QgsGeos::QgsGeos :
QgsGeometry::interpolate :
std::_String_alloc > >::_Swap_all :
PyCFunction_FastCallDict :
PyObject_GenericGetAttr :
PyEval_EvalFrameDefault :
PyObject_GenericGetAttr :
PyEval_EvalFrameDefault :
PyErr_Occurred :
PyObject_GenericGetAttr :
PyEval_EvalFrameDefault :
PyErr_Occurred :
PyObject_GenericGetAttr :
PyEval_EvalFrameDefault :
PyFunction_FastCallDict :
PyObject_CallFunctionObjArgs :
PyObject_Call :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
PyInit_QtCore :
QMetaObject::activate :
PyInit_QtCore :
PyInit_QtCore :
PyCFunction_FastCallDict :
PyObject_GenericGetAttr :
PyEval_EvalFrameDefault :
PyFunction_FastCallDict :
PyObject_CallFunctionObjArgs :
PyObject_Call :
PyInit_sip :
PyInit__gui :
QgsMapCanvas::mouseReleaseEvent :
QWidget::event :
QFrame::event :
QGraphicsView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QApplicationPrivate::sendMouseEvent :
QSizePolicy::QSizePolicy :
QSizePolicy::QSizePolicy :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QGuiApplicationPrivate::processMouseEvent :
QWindowSystemInterface::sendWindowSystemEvents :
QEventDispatcherWin32::processEvents :
TranslateMessageEx :
TranslateMessage :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.0.2-Girona
QGIS code revision: commit:307d082e3d
Compiled against Qt: 5.9.2
Running against Qt: 5.9.2
Compiled against GDAL: 2.2.4
Running against GDAL: 2.2.4

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 6.1.7601

Unusable in QGIS 2.18

The current state of the plugin in QGIS 2.18 is completely broken.
It keeps coming up with various python error and the only way to get rid of the errors is to kill QGIS.

I suggest to restore to a functional one from the previous releases and pull out the latest version.

Error on upgrade to 4.0.1

I just upgraded profile tool to 4.0.1 and the upgrade caused an error. If I restart QGIS, i get the same error. I'm running on a Mac running OS 10.12.3, with the newest available version of QGIS, 2.18.2.

Here's the error:

Couldn't load plugin profiletool due to an error when calling its classFactory() method
ImportError: No module named Qt

Traceback (most recent call last):
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "/Users/name/.qgis2/python/plugins/profiletool/init.py", line 27, in classFactory
from .profileplugin import ProfilePlugin
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/name/.qgis2/python/plugins/profiletool/profileplugin.py", line 42, in
from .tools.profiletool_core import ProfileToolCore
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/name/.qgis2/python/plugins/profiletool/tools/profiletool_core.py", line 29, in
from qgis.PyQt.Qt import *
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named Qt

Python version: 2.7.10 (default, Jul 30 2016, 19:40:32) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
QGIS version: 2.18.2 Las Palmas, exported
Python Path:

/Users/name/.qgis2/python/plugins/processing
/Applications/QGIS.app/Contents/MacOS/../Resources/python
/Users/name/.qgis2/python
/Users/name/.qgis2/python/plugins
/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins
/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7
/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/site-packages
/Library/Python/2.7/site-packages/numpy-override
/Library/Python/2.7/site-packages/matplotlib-override
/Library/Frameworks/GDAL.framework/Versions/2.1/Python/2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Users/name/Library/Python/2.7/lib/python/site-packages
/Library/Python/2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
/Users/name/.qgis2//python
/Users/name/.qgis2/python/plugins/NNJoin

Thanks,

--Adam

NameError: name 'os' is not defined

When I try to export as a png, sag or dxf I get the following error:

NameError: name 'os' is not defined

How do I resolve this so I can export the profile?

Thanks,

Profile tool is not functioning, need to install Orfeo Toolbox?

I received the following traceback. Do I need to install the Orfeo Toolbox?

2017-07-02T12:20:16 1 Traceback (most recent call last):
File "C:/Users/mfdej/.qgis2/python/plugins\profiletool\tools\ptmaptool.py", line 225, in activate
QgsMapTool.activate(self)
AttributeError: 'NoneType' object has no attribute 'activate'

Save coordinate instead of length or both

Issue moved from hub.qgis.org
Feature request #9204 Added by Bogdan Hlevca 2013-12-11

It would be nice if the profile tool would record in the table the real coordinate lat-lon or Northing-easting instead of the current relative length.
A better option would be to save both length and coordinates. Please see below.
This would allow reproducing the position of the section at a later stage.

Current ===========
0.0 194.214828491
1.11237716971 194.21836853
2.22475433942 194.227706909
3.33713150914 194.232772827

Proposed ===========
45.6 93.5 194.214828491
45.62 93.51 194.21836853
45.64 93.52 194.227706909
45.66 93.53 194.227706909

[regression] Inability to profile invisible layer in 3.6.4

Issue moved from hub.qgis.org
Bug report #10642 Added by Mikhail Titov 2014-06-19

In 3.6.4, I'm no longer able to draw profiles for invisible layers (unchecked in QGIS Layers pane). It used to be possible in 3.6.3. I rely on OpenLayers plugin & my feature layers to navigate, and I keep DEM hidden not to distract me.

If selected layer was invisible at the moment plugin was launched, its name does appear in Layer list. However upon double clicking and finishing a path, layer's name just disappears from the Layer list in the plugin. It was non-trivial to figure out it was about layer visibility in QGIS.

error rubberband QGIS3

Hi!
I'm using QGIS 3 (32bit) under Windows 10 (64 bit). Profile Tool 4.0.2 does not work (the line cannot be drawn) and gives the following error:

2018-03-14T20:35:28 WARNING Traceback (most recent call last):
File "C:/Users/Catalina/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\profiletool\tools\ptmaptool.py", line 78, in moved
self.profiletool.rubberband.addPoint(QgsPoint(self.pointstoDraw[i][0],self.pointstoDraw[i][1]))
TypeError: QgsRubberBand.addPoint(): argument 1 has unexpected type 'QgsPoint'

The plugin works with QGIS 2.18.16 and 2.18.17.

Thanks!

Profiles w/ nodata are not plotted

Trying to use Profile tool 4.1.8 with with QGIS 3.14.15 on nixos (QT 5.14.2), and am unable to plot profiles that cross nodata regions. For example, the screenshot shows what happens when I try to select a profile that crosses off of the northern boundary of this particular DEM, but I get the same behavior whenever there are any nodata holes along-profile. Works fine otherwise though.

Apologies if this is actually the intended behavior, although I'm hoping this isn't the case (hoping to use the plugin to inspect the seams between merged/blended grids).

image

Output coordinates of profile points

Issue moved from hub.qgis.org
Feature request #13042 Added by Martin Stubbs 2015-06-28

I would like to process the output profile data but I need to know the coordinates of each point. Could this be output as a separate CSV file?

Thanks

Croftermart

Edit Curves and Axes Parameters

I'm on Ubuntu 14.04. If I create a profile then press the edit Lines and Axes Button I get an error:

An error has occured while executing Python code:

Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_qt4.py", line 594, in edit_parameters
figureoptions.figure_edit(axes, self)
File "/usr/lib/pymodules/python2.7/matplotlib/backends/qt4_editor/figureoptions.py", line 134, in figure_edit
icon=get_icon('qt4_editor_options.svg'), apply=apply_callback)
File "/usr/lib/pymodules/python2.7/matplotlib/backends/qt4_editor/formlayout.py", line 544, in fedit
dialog = FormDialog(data, title, comment, icon, parent, apply)
File "/usr/lib/pymodules/python2.7/matplotlib/backends/qt4_editor/formlayout.py", line 461, in init
self.formwidget.setup()
File "/usr/lib/pymodules/python2.7/matplotlib/backends/qt4_editor/formlayout.py", line 433, in setup
widget.setup()
File "/usr/lib/pymodules/python2.7/matplotlib/backends/qt4_editor/formlayout.py", line 408, in setup
widget.setup()
File "/usr/lib/pymodules/python2.7/matplotlib/backends/qt4_editor/formlayout.py", line 315, in setup
field.addItems(value)
TypeError: QComboBox.addItems(QStringList): argument 1 has unexpected type 'list'

Python version:
2.7.6 (default, Mar 22 2014, 23:03:41)
[GCC 4.8.2]

QGIS version:
2.8.1-Wien Wien, exported

Python path: ['/home/rjhale/.qgis2/python/plugins/processing', '/usr/share/qgis/python', u'/home/rjhale/.qgis2/python', u'/home/rjhale/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode', u'/home/rjhale/.qgis2//python', '/home/rjhale/.qgis2/python/plugins/DigitizingTools/tools', '/usr/share/qgis/python/plugins/fTools/tools', '/home/rjhale/.qgis2/python/plugins/mmqgis/forms']

Error in sampling points

I have been using the profile tool plugin very successfully for some time but I now have an application where I need to know the coordinates of the sample points. I have added a few lines to the software to allow me to output the coordinates as well as the height points. This shows a problem with the calculation of the sample points.

I have a DXF file which I import in QGIS to use as the sample line. When I compare the points that were sampled to the original sample line I find a consistent error of approx 6m in the SE direction. I have tried converting the DXF line to a shapefile and the error is the same. I assume that the error is some type of projection error but all layers, the project and the DXF file are in the same EPSG:27700 (OSGB) projection so no transforms should be happening.

I have created a much simpler DXF file and this doesn't show the error.

I would be useful for me to have the coordinate output code added permanently. Is that something you would consider?

Do you have any suggestions on the problem with the sample points?

Feature request

It would be great if you could set a scale so profiles of different lengths and elevations plot the smae. At the moment I adjust the size of the window and use a ruler to match the scales before exporting.

Thanks

The color of the vertical lines on the plot (i.e. profile break markers) could be configurable

Hello

I got this link from [email protected], So no idea if this is the correct way to do this, sorry if it isn't.

I would like to ask for a feature request regarding your profile plugin
I have included a screenshot to make things clear.

In red is the project area
In purple and orange are the line that will show the profile.
I can change the colour of the graph line itself so that it is clear that the purple line corresponds with the purple graph line.
As you can see there are two vertical lines on the graph. They indicate where I have clicked (I suppose original to indicate where the terrain profile makes a turn on the map). I use it to indicate the borders of the project area.
This way a reader can see what section of the graph line is actually within the project area.
It would be nice if I could change the colour of those lines from black to red (in my case).

Thanks in advance.

Kind regards

Wouter Yperman
Archaeologist

schermafbeelding 2016-09-21 om 09 51 59

This plugin is broken - unknown encoding: desktop

Hi!
I'm using QGIS 2.18 .17 under Linux mint Sarah. When I try to install the Profile plugin from Qgis plugin repository, I get this error message and the profile plugin is not installed:

"The plugin seems to be invalid or have unfulfilled dependencies. It has been installed, but can't be loaded. If you really need this plugin, you can contact its author or QGIS user group and try to solve the problem. If not, you can just unistall it. Here is the error message below: The plugin is broken. Python said: unknown encoding: desktop"

Anyone have a solution?

Thanks

NULL values appear az zero

Issue moved from hub.qgis.org
Bug report #9615 Added by @saberraz 2014-02-21

When there is no value from raster, the profile tool plots NULL values as zero. It messes up the scale.

Couldn't load plugin processing

I have been using the profile tool for a while and suddenly now when I install it on 2.18.10 I get Couldn't load plugin processing. Also QField Sync and qgis2web stop working as well; all returns to normal when I uninstall the profile tool.
Below is a copy and past of what python says;

Couldn't load plugin qfieldsync due to an error when calling its classFactory() method

ImportError: cannot import name uic
Traceback (most recent call last):
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 333, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/tveinot/.qgis2/python/plugins\qfieldsync_init_.py", line 70, in classFactory
from qfieldsync.qfield_sync import QFieldSync
File "C:/OSGEO4
1/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/tveinot/.qgis2/python/plugins\qfieldsync\qfield_sync.py", line 26, in
from qfieldsync.core import Preferences
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/tveinot/.qgis2/python/plugins\qfieldsync\core_init
.py", line 4, in
from .offline_converter import OfflineConverter # NOQA
File "C:/OSGEO4
1/apps/qgis/./python\qgis\utils.py", line 607, in import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/tveinot/.qgis2/python/plugins\qfieldsync\core\offline_converter.py", line 25, in
import processing
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing_init
.py", line 29, in
from processing.tools.general import * # NOQA
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\tools\general.py", line 31, in
from processing.core.Processing import Processing
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\core\Processing.py", line 42, in
from processing.script.ScriptUtils import ScriptUtils
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\script\ScriptUtils.py", line 30, in
from processing.script.ScriptAlgorithm import ScriptAlgorithm
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\script\ScriptAlgorithm.py", line 34, in
from processing.gui.Help2Html import getHtmlFromHelpFile
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\gui_init
.py", line 1, in
from qgis.PyQt import uic
ImportError: cannot import name uic

Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
QGIS version: 2.18.10 Las Palmas, 59e0f78

Python Path:
C:/OSGEO41/apps/qgis/./python
C:/Users/tveinot/.qgis2/python
C:/Users/tveinot/.qgis2/python/plugins
C:/OSGEO4
1/apps/qgis/./python/plugins
C:\OSGEO41\bin\python27.zip
C:\OSGEO4
1\apps\Python27\DLLs
C:\OSGEO41\apps\Python27\lib
C:\OSGEO4
1\apps\Python27\lib\plat-win
C:\OSGEO41\apps\Python27\lib\lib-tk
C:\OSGEO4
1\bin
C:\OSGEO41\apps\Python27
C:\OSGEO4
1\apps\Python27\lib\site-packages
C:\OSGEO41\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg
C:\OSGEO4
1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg
C:\OSGEO41\apps\Python27\lib\site-packages\win32
C:\OSGEO4
1\apps\Python27\lib\site-packages\win32\lib
C:\OSGEO41\apps\Python27\lib\site-packages\Pythonwin
C:\OSGEO4
1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg
C:\OSGEO41\apps\Python27\lib\site-packages\wx-2.8-msw-unicode
C:\OSGEO4
1\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg
C:\OSGEO4~1\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg
C:/Users/tveinot/.qgis2//python
C:\Users\tveinot.qgis2\python\plugins\DigitizingTools\tools
C:\Users\tveinot.qgis2\python\plugins\mmqgis/forms

2017-07-19T15:45:58 0 QGIS starting...
2017-07-19T15:45:58 0 Python support ENABLED :-)
2017-07-19T15:46:02 0 Application state:
QGIS_PREFIX_PATH env var: C:/OSGEO41/apps/qgis
Prefix: C:/OSGEO4
1/apps/qgis
Plugin Path: C:/OSGEO41/apps/qgis/plugins
Package Data Path: C:/OSGEO4
1/apps/qgis/.
Active Theme Name: default
Active Theme Path: C:/Users/tveinot/.qgis2///themes\default\icons/
Default Theme Path: :/images/themes/default/
SVG Search Paths: C:/OSGEO41/apps/qgis/./svg/
C:/Users/tveinot/.qgis2//svg/
C:/PROGRA
1/QGIS21.16/apps/qgis/./svg/
User DB Path: C:/OSGEO4
1/apps/qgis/./resources/qgis.db
Auth DB Path: C:/Users/tveinot/.qgis2//qgis-auth.db

2017-07-19T15:46:02 0 QGIS Ready!

2017-07-19T15:45:58 0 Loaded Coordinate Capture (Path: C:/OSGEO41/apps/qgis/plugins/coordinatecaptureplugin.dll)
2017-07-19T15:45:58 0 Loaded Dxf2Shp Converter (Path: C:/OSGEO4
1/apps/qgis/plugins/dxf2shpconverterplugin.dll)
2017-07-19T15:45:58 0 Loaded eVis (Path: C:/OSGEO41/apps/qgis/plugins/evis.dll)
2017-07-19T15:45:58 0 Loaded Geometry Checker (Path: C:/OSGEO4
1/apps/qgis/plugins/geometrycheckerplugin.dll)
2017-07-19T15:45:58 0 Loaded Geometry Snapper (Path: C:/OSGEO41/apps/qgis/plugins/geometrysnapperplugin.dll)
2017-07-19T15:45:58 0 Loaded Georeferencer GDAL (Path: C:/OSGEO4
1/apps/qgis/plugins/georefplugin.dll)
2017-07-19T15:45:58 1 Failed to load C:/OSGEO41/apps/qgis/plugins/globeplugin.dll (Reason: Cannot load library C:/OSGEO41/apps/qgis/plugins/globeplugin.dll: The specified module could not be found.)
2017-07-19T15:45:58 0 Loaded GPS Tools (Path: C:/OSGEO41/apps/qgis/plugins/gpsimporterplugin.dll)
2017-07-19T15:45:59 0 Loaded GRASS 7 (Path: C:/OSGEO4
1/apps/qgis/plugins/grassplugin7.dll)
2017-07-19T15:45:59 0 Loaded Heatmap (Path: C:/OSGEO41/apps/qgis/plugins/heatmapplugin.dll)
2017-07-19T15:45:59 0 Loaded Interpolation plugin (Path: C:/OSGEO4
1/apps/qgis/plugins/interpolationplugin.dll)
2017-07-19T15:45:59 0 Loaded OfflineEditing (Path: C:/OSGEO41/apps/qgis/plugins/offlineeditingplugin.dll)
2017-07-19T15:45:59 0 Loaded Oracle Spatial GeoRaster (Path: C:/OSGEO4
1/apps/qgis/plugins/oracleplugin.dll)
2017-07-19T15:45:59 0 Loaded Raster Terrain Analysis plugin (Path: C:/OSGEO41/apps/qgis/plugins/rasterterrainplugin.dll)
2017-07-19T15:45:59 0 Loaded Road graph plugin (Path: C:/OSGEO4
1/apps/qgis/plugins/roadgraphplugin.dll)
2017-07-19T15:45:59 0 Loaded Spatial Query Plugin (Path: C:/OSGEO41/apps/qgis/plugins/spatialqueryplugin.dll)
2017-07-19T15:45:59 0 Loaded Topology Checker (Path: C:/OSGEO4
1/apps/qgis/plugins/topolplugin.dll)
2017-07-19T15:45:59 0 Loaded Zonal statistics plugin (Path: C:/OSGEO4~1/apps/qgis/plugins/zonalstatisticsplugin.dll)
2017-07-19T15:45:59 0 Loaded AutoFields (package: AutoFields)
2017-07-19T15:45:59 0 Loaded changeDataSource (package: changeDataSource)
2017-07-19T15:45:59 0 Loaded Digitizing Tools (package: DigitizingTools)
2017-07-19T15:45:59 0 Loaded go2streetview (package: go2streetview)
2017-07-19T15:45:59 0 Loaded Instant Print (package: instantprint)
2017-07-19T15:46:00 0 Loaded Intersect It (package: intersectit)
2017-07-19T15:46:00 0 Loaded mmqgis (package: mmqgis)
2017-07-19T15:46:00 0 Loaded MultiEdit (package: MultiEdit)
2017-07-19T15:46:00 0 Loaded PgVersion (package: pgversion)
2017-07-19T15:46:00 0 Loaded Profile tool (package: profiletool)
2017-07-19T15:46:00 0 Loaded QAD (package: qad)
2017-07-19T15:46:01 0 Loaded QField Sync (package: qfieldsync)
2017-07-19T15:46:01 0 Loaded QGIS2compat (package: qgis2compat)
2017-07-19T15:46:01 0 Loaded Qgis2threejs (package: Qgis2threejs)
2017-07-19T15:46:01 0 Loaded qgis2web (package: qgis2web)
2017-07-19T15:46:01 0 Loaded Quick Draw (package: quickdraw)
2017-07-19T15:46:01 0 Loaded Quick Finder (package: quickfinder)
2017-07-19T15:46:01 0 Loaded QuickMultiAttributeEdit (package: QuickMultiAttributeEdit)
2017-07-19T15:46:01 0 Loaded Smart editing tools (package: smart-editing-tools)
2017-07-19T15:46:01 0 Loaded DB Manager (package: db_manager)
2017-07-19T15:46:01 0 Loaded GdalTools (package: GdalTools)
2017-07-19T15:46:01 0 Loaded MetaSearch Catalogue Client (package: MetaSearch)
2017-07-19T15:46:01 0 Loaded Processing (package: processing)

2017-07-19T15:46:01 1 Traceback (most recent call last):
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 333, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/tveinot/.qgis2/python/plugins\qfieldsync_init_.py", line 70, in classFactory
from qfieldsync.qfield_sync import QFieldSync
File "C:/OSGEO4
1/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/tveinot/.qgis2/python/plugins\qfieldsync\qfield_sync.py", line 26, in
from qfieldsync.core import Preferences
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/tveinot/.qgis2/python/plugins\qfieldsync\core_init
.py", line 4, in
from .offline_converter import OfflineConverter # NOQA
File "C:/OSGEO4
1/apps/qgis/./python\qgis\utils.py", line 607, in import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/tveinot/.qgis2/python/plugins\qfieldsync\core\offline_converter.py", line 25, in
import processing
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing_init
.py", line 29, in
from processing.tools.general import * # NOQA
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\tools\general.py", line 31, in
from processing.core.Processing import Processing
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\core\Processing.py", line 42, in
from processing.script.ScriptUtils import ScriptUtils
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\script\ScriptUtils.py", line 30, in
from processing.script.ScriptAlgorithm import ScriptAlgorithm
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\script\ScriptAlgorithm.py", line 34, in
from processing.gui.Help2Html import getHtmlFromHelpFile
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\gui_init
.py", line 1, in
from qgis.PyQt import uic
ImportError: cannot import name uic

2017-07-19T15:46:01 1 Traceback (most recent call last):
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 333, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "C:/Users/tveinot/.qgis2/python/plugins\qgis2web_init_.py", line 28, in classFactory
from .qgis2web import Qgis2Web
File "C:/OSGEO4
1/apps/qgis/./python\qgis\utils.py", line 607, in import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/tveinot/.qgis2/python/plugins\qgis2web\qgis2web.py", line 25, in
from processing.core.Processing import Processing
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing_init
.py", line 29, in
from processing.tools.general import * # NOQA
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\tools\general.py", line 31, in
from processing.core.Processing import Processing
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\core\Processing.py", line 42, in
from processing.script.ScriptUtils import ScriptUtils
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\script\ScriptUtils.py", line 30, in
from processing.script.ScriptAlgorithm import ScriptAlgorithm
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\script\ScriptAlgorithm.py", line 34, in
from processing.gui.Help2Html import getHtmlFromHelpFile
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\gui_init
.py", line 1, in
from qgis.PyQt import uic
ImportError: cannot import name uic

2017-07-19T15:46:01 1 Traceback (most recent call last):
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 308, in loadPlugin
import(packageName)
File "C:/OSGEO4
1/apps/qgis/./python\qgis\utils.py", line 607, in import
mod = builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing_init
.py", line 29, in
from processing.tools.general import * # NOQA
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\tools\general.py", line 31, in
from processing.core.Processing import Processing
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\core\Processing.py", line 42, in
from processing.script.ScriptUtils import ScriptUtils
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\script\ScriptUtils.py", line 30, in
from processing.script.ScriptAlgorithm import ScriptAlgorithm
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\script\ScriptAlgorithm.py", line 34, in
from processing.gui.Help2Html import getHtmlFromHelpFile
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\gui_init
.py", line 1, in
from qgis.PyQt import uic
ImportError: cannot import name uic

error loading v. 4.0.1

Hi, QGIS does not load profiletool 4.0.1 here (QGIS 2.14 on xubuntu trusty).
Traceback follows. Thanks!

Impossibile caricare il plugin profiletool a causa di un errore chiamando il metodo classFactory()

NameError: name 'QtCore' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 306, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "/home/pippo/.qgis2/python/plugins/profiletool/init.py", line 27, in classFactory
from .profileplugin import ProfilePlugin
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/pippo/.qgis2/python/plugins/profiletool/profileplugin.py", line 42, in
from .tools.profiletool_core import ProfileToolCore
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/pippo/.qgis2/python/plugins/profiletool/tools/profiletool_core.py", line 42, in
from .ptmaptool import ProfiletoolMapTool, ProfiletoolMapToolRenderer
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 572, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/pippo/.qgis2/python/plugins/profiletool/tools/ptmaptool.py", line 197, in
class ProfiletoolMapTool(QgsMapTool):
File "/home/pippo/.qgis2/python/plugins/profiletool/tools/ptmaptool.py", line 199, in ProfiletoolMapTool
moved = QtCore.pyqtSignal(dict)
NameError: name 'QtCore' is not defined

Versione Python: 2.7.6 (default, Oct 26 2016, 20:36:21) [GCC 4.8.4]
Versione di QGIS: 2.14.12-Essen Essen, exported

Path di Python:
/usr/share/qgis/python/plugins/processing
/usr/share/qgis/python
/home/pippo/.qgis2/python
/home/pippo/.qgis2/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/python2.7
/usr/lib/python2.7/plat-i386-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/PILcompat
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/pymodules/python2.7
/usr/lib/python2.7/dist-packages/ubuntu-sso-client
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode
/home/pippo/.qgis2//python
/usr/share/qgis/python/plugins/fTools/tools

Qgis 3.10 issue

Hello,
First thanks for this perfect tool!

there is compatibility issues with Qgis 3 : drawing from temporary polyline steal working but from vector --> Qgis don't answer...
I juste an user of Qgis and i'm realy newbie in coding... do you think there is an easy solution to solve the probleme? or all the tools muste be rebuilt?

AttributeError (QGIS 2.18.15)

Whenever I run a script (e.g. SAGA fill sinks) Pythen errors are generated:

Traceback (most recent call last):
File "C:/Users/david/.qgis2/python/plugins\profiletool\apicompat\qgsmaplayer.py", line 10, in isSpatial
return self.hasGeometryType()
AttributeError: 'QgsRasterLayer' object has no attribute 'hasGeometryType'

This happens even without running Profiletool

export to dxf

Hi,

I was wondering if it could be possible to export the graphs in dxf format as we often need this for construction planning. As for now we can only export the graph in pdf or image format, or use the tables...

Anyway, thanks for the tool!

Uncaught AttributeError: 'module' object has no attribute 'NavigationToolbar2QTAgg'

Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "C:/Users/USER/.qgis2/python/plugins\profiletool\ui\ptdockwidget.py", line 162, in changePlotLibrary
    self.addPlotWidget(self.plotlibrary)
  File "C:/Users/USER/.qgis2/python/plugins\profiletool\ui\ptdockwidget.py", line 229, in addPlotWidget
    mpltoolbar = matplotlib.backends.backend_qt4agg.NavigationToolbar2QTAgg(self.plotWdg, self.frame_for_plot)
AttributeError: 'module' object has no attribute 'NavigationToolbar2QTAgg'

profiletool 4.0.2, QGIS 2.14.14-Essen on Windows 10

Identify location details via terrain profile tool in QGIS

I have one query regarding the same. During the profile generation of a line feature over any DEM raster, I need to identify the locations of the profile peaks of that line feature.
Do we have such kind of option in the profile tool so that we can trace the location also along with profile?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.