Coder Social home page Coder Social logo

all4gis / equirectangularviewer Goto Github PK

View Code? Open in Web Editor NEW
22.0 7.0 16.0 116.45 MB

Equirectangular viewer for your local images in Qgis.

Python 45.31% HTML 1.73% CSS 1.54% JavaScript 49.53% Shell 1.89%
qgis equirectangular-panorama cefpython marzipano qgis3 qgis3-plugin pyqt5 python3

equirectangularviewer's Introduction

Hi there ๐Ÿ‘‹ , Personal Website!

Hi, I'm Fran, a Open Source GIS Developer ๐Ÿš€ ๐Ÿ‘ฝ from Spain.

Connect with me:

Twitter gis.stackexchange LinkdeIN Youtube

Languages and Tools:

Github stats

equirectangularviewer's People

Contributors

all4gis avatar imgbotapp avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

equirectangularviewer's Issues

Cant set path as URL

I would like to set the path as a url, but when I change the Geo360Dialog filed edit the auction to pass the path(url) unchanged. the url gets passed by I still get the error "there is no associated image", and the image not available placeholder.

I am using the example_project and the only changes I have made are to the Geo360Dialog.py file as shown below:

original:

def GetImage(self):
    ''' Get Selected Image '''
    try:
        path = qgsutils.getAttributeFromFeature(
            self.selected_features, config.column_name)
        if not os.path.isabs(path):  # Relative Path to Project
            path_project = QgsProject.instance().readPath("./")
            path = os.path.normpath(os.path.join(path_project, path))
    except Exception:
        qgsutils.showUserAndLogMessage(
            u"Information: ", u"Column not found.")
        return

    qgsutils.showUserAndLogMessage(u"Information: ", str(
        path), onlyLog=True)
    return path

changed:

def GetImage(self):
    ''' Get Selected Image '''
    try:
        path = qgsutils.getAttributeFromFeature(
            self.selected_features, config.column_name)
        print(path)
        if not os.path.isabs(path):  # Relative Path to Project
            #path_project = QgsProject.instance().readPath("./")
            path = path #os.path.normpath(os.path.join(path_project, path))
            print(path)
    except Exception:
        qgsutils.showUserAndLogMessage(
            u"Information: ", u"Column not found.")
        return

    qgsutils.showUserAndLogMessage(u"Information: ", str(
        path), onlyLog=True)
    return path

I was hoping maybe someone could help me out and show me how to set the path for the equirectangular images as a URL so I can host them on a server. Thanks in advance.

EPSG 3857

It would be handy to have the ability to set at least the 3857 reference system on QGIS while using the EV plugin.

The 4326 reference system that the EV plugin works with provides a somewhat enlarged view of the base such as OSM, while the 3857 favors a less distorted view than the 4326.

Currently, if you try to use the EV plugin with the 3857 system, as soon as you click on a point to open the Viewer, the map moves to the coordinates 0,0 (Equator / Greenwich intersection).

I understand that it is complicated to have the ability to set up many reference systems that work with the EV plugin, but it would be useful to have at least the 3857 system.

3857

module 'sys' has no attribute 'argv'

Traceback (most recent call last):
File "C:/Users/Lenovo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\EquirectangularViewer\Geo360.py", line 123, in run
self.StartCefPython()
File "C:/Users/Lenovo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\EquirectangularViewer\Geo360.py", line 91, in StartCefPython
cefpython.Initialize(settings)
File "cefpython_py37.pyx", line 499, in cefpython_py37.Initialize
AttributeError: module 'sys' has no attribute 'argv'

Do I need a specific format for my shapefile to works on the plugin?

Thank you so much your hard work for plugin, its excellent!
After many hours to install the plugin, because I had a problem with python, I installed but works just in your project sample.
I have a point shapefile with 360 photos collected ith GoPro Fusion.
The table of contents of my shapefile is larger than your case file. Is it a problem?
image

Uncaught NameError: name 'cefpython' is not defined

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

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line 334, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:/Users/Sandesh/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\EquirectangularViewer\__init__.py", line 13, in classFactory
    from .Geo360 import Geo360
  File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/Sandesh/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\EquirectangularViewer\Geo360.py", line 27, in <module>
    from EquirectangularViewer.Geo360Dialog import Geo360Dialog
  File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/Sandesh/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\EquirectangularViewer\Geo360Dialog.py", line 60, in <module>
    WindowUtils = cefpython .WindowUtils()
NameError: name 'cefpython' is not defined

EquirectangularViewer 1.2, QGIS 3.16.1-Hannover on Windows 7

Rotation

Is it possible to change an image rotation? In image taken on steep streets

Using GeoJSON and source

I want to use the plugin EquirectangularViewer with my own GeoJSON layer.

When I inspect the example project's layer, it gives a source under 'Layer Properties -> Information'. When I add my own layer with GeoJSON the source doesn't show up.

Could you give me a hint how I add this source?

Qgis browser panel continuous loading

First, thank you for the plugin, it works great.
I am trying to use qgis on windows terminal server on windows server 2016, so I can have instant speed access to my database and other people can log in to it.
For some reason the equirectangular viewer is not working here, but only in the qgis browser panel. If I open a chrome browser on localhost 1520 I can see the pictures.

The terminal server runs IIS as service and I think there must be something between that and the plugin? Like blocking server side javascript or something like that. Do you have any experience in this kind of issues?

Zoom error overlay effect

I'm on Windows 10, QGIS 3.12.
When I click on a point Equirectangular Viewer opens correctly.
But if I try to zoom in, zoom out or full screen in Equirectangular Viewer I get an overlay effect like that:

  1. No Zoom, no overlay effect
    image

  2. Zoom Out (Minus), overlay effect
    image

  3. Zoom In (Plus), overlay effect
    image

  4. Full Screen, overlay effect
    image

Install error

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

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line 334, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "C:/Users/Sandesh/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\EquirectangularViewer\__init__.py", line 13, in classFactory
    from .Geo360 import Geo360
  File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/Sandesh/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\EquirectangularViewer\Geo360.py", line 27, in <module>
    from EquirectangularViewer.Geo360Dialog import Geo360Dialog
  File "C:/PROGRA~1/QGIS3~1.16/apps/qgis/./python\qgis\utils.py", line 792, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/Sandesh/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\EquirectangularViewer\Geo360Dialog.py", line 60, in <module>
    WindowUtils = cefpython .WindowUtils()
NameError: name 'cefpython' is not defined

EquirectangularViewer 1.2, QGIS 3.16.1-Hannover on Windows 7

White viewer

Hi Francisco, thank you for this great QGIS plugin.
Everything go fine but when I click on points the viewer get me white all.
Any troubleshoot about that?
This issue appens with example_project.qgz. The name of points shapefile and the coloums' name right match the confing.py in "C:\Users***\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\EquirectangularViewer\config.py".
Thank you! :)

Dockable panel

It would be useful to have the possibility to dock the Viewer within the main QGIS interface, as it is possible to do for other panels in QGIS, for example: layers panel, python console panel, browser panel, etc.

AttributeError: module 'sys' has no attributre 'argv'

I successfully installed your plugin 'EquirectangularViewer' in QGIS, but I am unfortunately unable to use it.
Each time when I click on the corresponding icon,
grafik
it gives me the following error:
grafik
I precisely followed your installation guidelines (https://www.youtube.com/watch?v=iJhh0IWijL0&feature=youtu.be) and downloaded your test project (https://github.com/All4Gis/EquirectangularViewer/tree/master/code/Project_example) to test the plugin . Everything seems to work fine, until I actually want to use it and click on that icon.

I tried with both QGIS versions 3.10.9 and 3.14.15.

Any ideas? Any help much appreciated (as this plugin really seems very promising :))!

General steps for use it

Can't use the Plugins in QGIS. It seems that metadata files are missing for both libraries?

I also don't get the part with the server that is to be started with Python, how and where is this supposed to happen? Within QGIS?

Can't find site-packages folder

Hi there,

I am struggeling to find the path: "D:\OSGeo4W64\apps\Python27\Lib\site-packages" that you gave to paste the ext-libs. Also is it enough to paste those folders into the Plugin Folder of QGIS or is more work necessary?

On top of that I am struggeling to understand how this whole project is set up. Could you possibly provide me the idea in general on which you build this?

Thanks in advance!

Best,

Oliver

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.