Giter VIP home page Giter VIP logo

gisportal's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gisportal's Issues

Rewrite README

The README needs rewriting so that it is not directly related to OPEC and so that all installation steps are correct and up to date.

Error handling code when user is not logged in

Code creates a silent HTTP 500 error and creates the below stacktrace.

[Thu Apr 03 14:24:16.644533 2014] [:error] [pid 7025] [remote 192.171.164.51:180] Traceback (most recent call last):
[Thu Apr 03 14:24:16.644568 2014] [:error] [pid 7025] [remote 192.171.164.51:180]   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1701, in __call__
[Thu Apr 03 14:24:16.645191 2014] [:error] [pid 7025] [remote 192.171.164.51:180]     return self.wsgi_app(environ, start_response)
[Thu Apr 03 14:24:16.645219 2014] [:error] [pid 7025] [remote 192.171.164.51:180]   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1689, in wsgi_app
[Thu Apr 03 14:24:16.645250 2014] [:error] [pid 7025] [remote 192.171.164.51:180]     response = self.make_response(self.handle_exception(e))
[Thu Apr 03 14:24:16.645268 2014] [:error] [pid 7025] [remote 192.171.164.51:180]   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1687, in wsgi_app
[Thu Apr 03 14:24:16.645292 2014] [:error] [pid 7025] [remote 192.171.164.51:180]     response = self.full_dispatch_request()
[Thu Apr 03 14:24:16.645309 2014] [:error] [pid 7025] [remote 192.171.164.51:180]   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1360, in full_dispatch_request
[Thu Apr 03 14:24:16.645332 2014] [:error] [pid 7025] [remote 192.171.164.51:180]     rv = self.handle_user_exception(e)
[Thu Apr 03 14:24:16.645348 2014] [:error] [pid 7025] [remote 192.171.164.51:180]   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1358, in full_dispatch_request
[Thu Apr 03 14:24:16.645371 2014] [:error] [pid 7025] [remote 192.171.164.51:180]     rv = self.dispatch_request()
[Thu Apr 03 14:24:16.645387 2014] [:error] [pid 7025] [remote 192.171.164.51:180]   File "/usr/lib/python2.7/site-packages/flask/app.py", line 1344, in dispatch_request
[Thu Apr 03 14:24:16.645410 2014] [:error] [pid 7025] [remote 192.171.164.51:180]     return self.view_functions[rule.endpoint](**req.view_args)
[Thu Apr 03 14:24:16.645427 2014] [:error] [pid 7025] [remote 192.171.164.51:180]   File "/home/rsgadmin/oceancolour.org/OpEcVis/middleware/portalflask/views/graph.py", line 93, in setGraph
[Thu Apr 03 14:24:16.645590 2014] [:error] [pid 7025] [remote 192.171.164.51:180]     error_handler.setError('2-01', state, g.user.id, "views/graphs.py:setGraph - The user is no t logged in, returning 401 to user.", request)
[Thu Apr 03 14:24:16.645642 2014] [:error] [pid 7025] [remote 192.171.164.51:180] NameError: global name 'error_handler' is not defined

Share button not working / throws error javascript error

First of all thanks for all the help on the other issues.

This might be more of a question than an issue.

The src/js/openid.js file is not in the coreFiles in the Gruntfile so the gisportal.openid object is not created. But even after adding it the Share button does not produce an URL. I saw some todos about this in the code so is this even supposed to work in the current state?

OpenLayers drag seems broken.

Hi, Thanks for the new release. It is great and I was very happy to see that the plotting functionality is now also based on Python.

But there is one thing that only became an issue recently. It seems that in the latest dockerfile as well as on the master branch the dragging of the map is broken. The map is dragged further than the mouse moves. Also trying to draw a polygon for plotting gets stuck in dragging the map around.

This still worked middle of last week.

Sharing a map does not reproduce the set colorbar min and max value

I've just tried this on the running portal at https://wci.earth2observe.eu/portal so sorry if it was already fixed in a development version.

Anyway. When looking at the map accessible under the link https://wci.earth2observe.eu/portal/?state=a0ce77 you can see that the soil moisture has black areas because it is automatically scaled between 0.05... and 0.433... In the original map that I created before pressing the share button I manually scaled the data between 0 and 0.6 so that it looks nice. It would be great if the colorbar settings could be also stored in the shared map state.

Support for servers other than THREDDS

Great job on the GIS portal, i was wondering if it is still under development or not.

It looks that it is mainly built to work with the THREDDS server.

Are there any plans to make it work with other ones such as GeoServer? The WCS implementation specifically seems to be different

Deactivate data download

Hi, I am currently setting up the GISportal for our soil moisture data records (https://dataviewer.geo.tuwien.ac.at/)

I was wondering if it is possible to deactivate the netcdf data download for a data set (or all datasets) after installation, while still providing the WCS features to create time series / hovmoeller diagram etc.

Panel Manager

Currently the panels are managed by just showing and hiding each one, since I didn't want to to over complicate the development. But I think now we are at a position that we can start looking towards a 'class' that just manages panels, so we know in code (as opposed to DOM) which panel is open etc. Makes it far easier for states too.

Impossible to use `_` in path name?

It seems that / in domains are replaced by _ without taking care of existing _ characters. If this is by design then it should be at least documented somewhere.

SRS value for GetMetaData

With thredds 4.3 the getMetaData request also requires an SRS value.

Portal.js, line 2652, add the following to the request:

&srs=EPSG%3A4326

Any way to update the layer cache?

I have a thredds WMS Service that gets extended every day with new data. In the past there was a way to update the layer cache. Is seems these scripts were removed in 76a882b

Is there any way to do that now?

I've tried some of the calls in GISportal/app/lib/site_settings.js but was not successful.

User dashboard error 403 Forbidden

Hi

I've set up GISportal on an internal RHEL vm under supervsiord. It's accessible through a browser, however, no user dashboard is available. I feel I'm missing something really basic in the config steps.

I've added admin user emails for myself and another, however, when I track the http responses I see some errors.

There is a 404 Not Found on:

GET /app/cache/10.83.64.51:6789/vectorLayers.json HTTP/1.1

And a 403 Forbidden on:

GET /app/user/dashboard/?domain=10.83.64.51:6789 HTTP/1.1

Here's the full http response (minus the cookie details) on the latter:

GET /app/user/dashboard/?domain=10.83.64.51:6789 HTTP/1.1
Host: 10.83.64.51:6789
Accept: application/json, text/javascript, /; q=0.01
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cookie:
Referer: http://10.83.64.51:6789/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36
X-Requested-With: XMLHttpRequest

HTTP/1.1 403 Forbidden
Connection: keep-alive
Content-Length: 9
Content-Type: text/plain; charset=utf-8
Date: Wed, 21 Mar 2018 00:11:03 GMT
ETag: W/"9-cilpV3qWyjlT6E49lJ3ugQ"
X-Powered-By: Express

Is there a login screen? How is authentication handled?

Thanks for your help
Ian

Indicators Automatically Change Panel

Once the #8 Panel Manager is implemented, we need to automatically change to indicator panel when an indicator is added. This improves the learning and reduces the load on the server.

Feature Request: Values exceeding colour palette min/max default to black instead of the first/last colour in the palette.

When using the default stretching we use for chlor_a (log 10 scaled, 0.01 to ~67) to keep features highlighted nicely but also comparable between images.

However, when a value is below the minimum or above the maximum, in typical viewers/plotting tools they are just shown as either the first or last colour from the palette. In the GIS portal, these default to being shown as black and the option to go White/Transparent/Pick a colour is given in the layer options but is difficult to manage for colour palettes that don't use a colour for which you could easily guess the hex value.

Features requested:

  • Use the lowest value colour from the palette for values that are lower than the palette minimum.
  • Use the highest value colour from the palette for values that are higher than the palette maximum.
  • Potentially make this the default behaviour to keep functionality in line with what is a fairly well established norm across plotting tools/viewers. (at least the ones I'm familiar with)

Polygon drawing broken

Trying to draw a polygon for plotting gets stuck in dragging the map around. This was already an issue in the past see #37 but it has returned for me int he latest master.

Tried on

  • Firefox 44.0.2
  • Chrome 50.0.2661.94 (64-bit)

both on Ubuntu 14.04 with GISportal running out of a docker container.

.install.sh not creating server config in ./GISportal/config/site-settings/<server name>

Hi,

I'm setting up GISportal on a virtual machine (RHEL 6.8). This vm is only available within the university domain and so I've gone for 'no' to ssl and authentication options as a test.

I've gotten everything installed and running up to the point of launching node app.js

When I've run the ./install.sh it goes through the install process smoothly with no errors but 4 warnings:

WARN: Dropping unused variable csv_found [GISportal.js:6134,10]
WARN: Dropping side-effect-free statement [GISportal.js:11555,9]
WARN: Dropping side-effect-free statement [GISportal.js:19587,6]
WARN: Dropping side-effect-free statement [GISportal.js:21336,3]

And says it completes with no errors. However, when I launch node.js these are the messages I see:
"
No server config was found.

If this is a new installation you should run ./install.sh to create a configuration for your domain.

List of domains with Google authentication settings:

(node:38304) [DEP0016] DeprecationWarning: 'GLOBAL' is deprecated, use 'global'

GISportal server listening on port 6789
Connected to redis.
Redis client ready.
"
I check on a browser by going to the vm hostname\domain name from ./install.sh and port 6789 but get 'site can't be reached'. I notice there's a) no server config found, b) list of google auth is empty and c) deprecation warning. When I check the "./GISportal/config/site-settings/" dir it's empty.

I'm not a linux/redis/node guru obviously, can you please advise what might be causing these issues?

Cheers
Ian

Any plans for support of other OGC Protocols, especially WMTS?

Last week the Copernicus Viewing Service was announced and I discovered that they are using WMTS instead of WMS. Since we would like to integrate at least one of their products in our viewer it would be interesting to use their servers instead of hosting it ourselves. Are there any plans already to also support this protocol? If not then I might be able to work on that in a few weeks.

Branding

There are still some OPEC branding issues, such as the logo. These need to be made configurable.

Date field is broken.

Trying to change the date using the date field in the lower right corner does not work.

Colorbar error with THREDDS server

Hey.

I have made two docker containers. One contains the GISportal from the dockerhub the pmlrsg/gisportal and the second one the unidata/thredds-docker server. I have also hosted a netcdf file with THREDDS which I am testing and trying to show and so far I've made it to work with the display of data but the colorbar doesn't seem to appear.

I am getting the error: There was an error loading the scalebar from this URL:

http://thredds:8080/thredds/wms/test/ncf.nc?REQUEST=GetLegendGraphic&LAYER=testlayer&PALETTE=ferret&COLORSCALERANGE=0.04393946,0.4649605&NUMCOLORBANDS=255&ABOVEMAXCOLOR=0x000000&BELOWMINCOLOR=0x000000

The URL GET request works but it shows the full graphic not just the color bar. It seems to me that some params are missing in the get request (i.e colorbaronly) as in the link below the color bar works. Some other params are HEIGHT and WIDTH

https://wci.earth2observe.eu/thredds/wms/anu/wrr2-monthly-agg.nc?REQUEST=GetLegendGraphic&LAYER=GroundMoist&PALETTE=rainbow&HEIGHT=500&WIDTH=30&colorbaronly=true&COLORSCALERANGE=-1645.4514,119.667984&NUMCOLORBANDS=255&HEIGHT=500&WIDTH=30&colorbaronly=true&COLORSCALERANGE=-1645.4514,119.667984&NUMCOLORBANDS=255%22

Any hints in solving this? Thanks in advance.

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.