Skip to content

dsubat/EquirectangularViewer

 
 

Repository files navigation

Equirectangular local images viewer for Qgis

This plugin allows the visualization of equirectangular local images, although modifying the code, it can be used for any 360 image, given that the library Marzipano is used.

Example

Prerequisites

The libraries CefPython is required, you can find them in:

These libraries must be placed in Windows D:\OSGeo4W64\apps\Python27\Lib\site-packages or something similar depending on your Qgis installation.

If you don't find this path ,are wrong or you are using other platform, open the python console of QGIS and try with this for print it:

import site; site.getsitepackages()

On the other hand, the plugin must be placed in the .qgis path, it should be something like

  • Windows

    C:\Users\<username>\.qgis2\python\plugins

  • Linux

    /home/<username>/.qgis2/python/plugins

  • Mac OSX

    /Users/<username>/.qgis2/python/plugins

If you don't find this path ,are wrong or you are using other platform, open the python console of QGIS and try with this for print it:

print QgsApplication.qgisSettingsDirPath()

and search the python/plugins folder in this path.

Once installed, you can test the correct functioning of the plugin with the example that is provided,a shapefile with some images. Test Project

Install Note for Windows 10

As for python in the environment variables:

Don't add anything in user environment variables,In system environment variables create a new variable:

Name: PYTHONHOME Folder: C:\Program Files\QGIS 2.18\apps\Python27

Instead, in the already existing Path variable add:

C:\OSGeo4W64\bin

If there is not the folder C:\OSGeo4W64\bin add alternatively in Path variable:

C:\Program Files\QGIS 2.18\bin

Test working python in command windows opening it as administrator ad typing pythonand If says python version all works.

If says python is not recognized as an internal or external command remove C:\OSGeo4W64\bin from Path variable (even if it exists) and use C:\Program Files\QGIS 2.18\bin.

Open the command prompt as an administrator:

Right click on the windows button at the bottom left, Search for CMD, Key combination CTRL + SHIFT + ENTER (administrator mode).

Type python, returns the python version.Type: import pip If not errors it means that pip is present. CTRL + Z to exit the python console.

Install the cefpython3 python package. Always from command prompt:

python -m pip install cefpython3

Copy the plugin folder:

Copy EquirectangularViewer in the QGIS plugins folder. Type in the python console of QGIS:

print QgsApplication.qgisSettingsDirPath ()

to find the QGIS plugins folder:

C:\Users\user\.qgis2\python\plugins

Note :

For show the images you need put the absolute path in the shapefile or modify the code ,method GetImage() in Geo360Dialog.py

common mistakes:

If not work or show this log: NameError: global name 'cefpython' is not defined Please,install cefpython using pip. pip install cefpython3

How it works?

It's simple:

  • You start a local server in Python in http://127.0.0.1:1520/viewer.html
  • A copy of the image associated to the selected registry is created in the folder where our viewer and server are.
  • With cefpython, we open the browser and return the current yaw to our canvas anytime the image is moved.

Donations

Want to buy me a beer (or gadget)? Please use Paypal button on the project page,Donate, or contact me directly.

paypal

If this plugin is useful for you, consider to donate to the author.

Thank you

Thank you to the individual contributors for this project:

[© All4gis 2017]

About

Equirectangular viewer for your local images in Qgis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.0%
  • JavaScript 46.3%
  • CSS 1.4%
  • HTML 1.3%