malawigeospatialtools / masdap Goto Github PK
View Code? Open in Web Editor NEWMASDAP tools
MASDAP tools
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.
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>
When clicking on "About" there should be a page describing what Masdap is or onboarding instructions for how to use the GeoNode.
http://www.masdap.mw/groups/?limit=20&offset=0 doesn't show groups information:
Group Categories
from the same dropdown menu could also be removed?
Add the ability to reset or recover a user password.
Most maps don't seem to display correctly (e.g. http://www.masdap.mw/maps/573#/).
Now it's pointing to http://www.masdap.mw/developer/ but I'm expecting it should go to the layers list and not the developers page?
The announcement div is positioned below the menu bar. This is not happening on other pages because of the jumbotron style.
And create a get-started page.
HTML5 is not supported by IE9. This mainly affects the ability to select multiple files in the layer uploader.
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.
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.
Even on a very good connection, the map browser (when clicking on "create map" takes more than 10 sec to load.
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?
Add social channels to site_base.html
Improve search button layout
Can we make http://masdap.mw/ point toward http://www.masdap.mw ? Or the other way around but right now the URL http://masdap.mw is dead.
In the About section the Group text overlaps the user icon.
Icons in png format are preferable to fonts because of size.
In site_base.html Government agencies involved in MASDAP shall be added.
Add a form or a an email address to easily contact the admins.
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.
http://www.masdap.mw/layers/geonode%3Atrain_stations_osm does not match the actual rendering in the legend. The same seems to happen for other point layers (hotels, banks, etc)
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!
Set registration to open. Registration must be validated by admins.
When typing in the search box, results that come up cover the text entered, and the user can't see what's being typed anymore.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.