Giter Club home page Giter Club logo

masdap's People

Contributors

ppasq avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

masdap's Issues

New flood layers not found under the Flood icons on the homepage

There is a number of new flood layers for Mangochi and Karonga developed by Cima. However, they are not listed when clicking on the Flood icon on the homepage.

The flood keyword need to be added to all those layers.

Sorry, I don't have the rights on the repo so I cannot add Gabriel in cc or assign anyone.

CORS

It seems that vector layers(like GeoJSON) from MASDAP cannot be used by web applications. See the example below. You should be able to run it in your browser.

The GeoJSON from MASDAP cannot be displayed in an OpenLayers map, because the browse complains: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.masdap.mw/geoserver/ows?srsName=EPSG%3A20936&outp…=GetFeature&typename=geonode%3AOpen_Defication&version=1.0.0. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). The exact same operation works with other OWS-Servers, which can be seen in the code below as well (commented out)

One solution might be to add the CORS header to the web server or GeoServer.

<!DOCTYPE html>
<html>
  <head>
    <title>Example</title>
    <link
      rel="stylesheet"
      href="https://openlayers.org/en/v4.6.5/css/ol.css"
      type="text/css"
    />
    <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
    <script src="https://openlayers.org/en/v4.6.5/build/ol.js"></script>
  </head>

  <body>
    <div id="map" class="map"></div>
    <script>

      var vectorLayer = new ol.layer.Vector({
        source: new ol.source.Vector({
          // MASDAP
          // url: "http://www.masdap.mw/geoserver/geonode/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=geonode%3AAfrica_Cities&LAYERS=geonode%3AAfrica_Cities&exceptions=application%2Fvnd.ogc.se_inimage&INFO_FORMAT=application/json&FEATURE_COUNT=50&X=50&Y=50&SRS=EPSG%3A4267&STYLES=&WIDTH=101&HEIGHT=101&BBOX=-14.677734375%2C-2.724609374999986%2C3.076171875%2C15.029296875000014",

          // MASDAP
          url: "http://www.masdap.mw/geoserver/ows?srsName=EPSG%3A20936&outputFormat=json&service=WFS&srs=EPSG%3A20936&request=GetFeature&typename=geonode%3AOpen_Defication&version=1.0.0",

          // MALAWI ATLAS
          // url: "https://gis-malawi.com/geoserver/malawi_atlas/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=malawi_atlas%3Ahealth_facilities_moh_secondary_health_facilities&maxFeatures=50&outputFormat=application%2Fjson",

          // AHOCEVAR
          // url: "https://ahocevar.com/geoserver/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=opengeo:countries&TYPENAME=opengeo:countries&STARTINDEX=0&outputFormat=application%2Fjson",

          format: new ol.format.GeoJSON()
        })
      });

      var map = new ol.Map({
        controls: ol.control.defaults(),
        layers: [
          new ol.layer.Tile({
            title: "OpenStreetMap Basemap",
            source: new ol.source.OSM()
          }),
          vectorLayer
        ],
        target: "map",
        view: new ol.View({
          center: [3801122, -1552117],
          zoom: 4
        })
      });
    </script>
  </body>
</html>

Add about page

When clicking on "About" there should be a page describing what Masdap is or onboarding instructions for how to use the GeoNode.

Registration requests from random users

Since v2.10 upgrade, there has been a series of registration requests from users with random names and domains (yandex.ru, mail.ru, yandex.com, ttmail.pro, funnetwork.xyz, streamweb.ru)

We should consider other spam prevention methods (in addition to captcha) or rethink how to allow new legit users to register.

Review of suspicious registered users

There are almost 1500 active users registered in Masdap at the moment. Many of those may not be legit, with suspicious names and email addresses.

I would suggest a full review and purge of all unknown users.

Related to #52 we should consider a different registration method that prevents users from being automatically added and marked as active.

Which icon set should be used in MASDAP layers?

We are going to redesign some styles in particular for OSM extracts. The styles adopted in MASDAP can then be re-used in other GFDRR projects. So the choice of the icon set should be shared. One of the most commonly used is Mapbox Maki. Any other proposal?

Map composer zoom breaks

When using the map composer, adding a new layer from the GeoServer WMS disables most zoom functionality. Mouse-based zoom is disabled while the map composer zoom in/out buttons mostly don't work. Zoom to previous extent does appear to work but the layer disappear after a certain number of uses.

Ansible role `ortelius.geonode` missing

Hi! I really like the project and use of geonode and looking to do something similar for a different open data project. Went to try it out locally and noticed the ansible role no longer exists? Is there any chance you could rehost it or advise how I could workaround.
Thanks!

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.