Skip to content

Instantly share code, notes, and snippets.

View gannebamm's full-sized avatar

Florian Hoedt gannebamm

View GitHub Profile
@gannebamm
gannebamm / Dockerfile
Created July 30, 2019 07:38
SPC-GeoNode Geoserver Dockerfile for community-plugin support
FROM openjdk:8-jre-alpine
# since 2.15.x is not stable
# and will cause h2 lockdowns
ARG version=2.14.4
ARG branch=2.14.x
ARG plugins=
ARG commpluginfiles=geoserver-2.14-SNAPSHOT-geopkg-plugin.zip
# Install dependencies
@gannebamm
gannebamm / uploadTestSelenium.py
Created September 11, 2019 14:51
uploading files to a GeoNode instance by using selenium as webdriver
from selenium import webdriver
import time
import os
# must use chromedriver, since others do not interact
# with hidden elements (such as the multi upload input-field)
PATH_TO_DRIVER = "D:\\chromedriver.exe"
# set folder with files to upload
FOLDER = "D:\\temp\\upload\\"
@gannebamm
gannebamm / Dockerfile
Created September 26, 2019 09:27
Variant of SPC-Geonode geoserver Dockerfile to enable community plugin installations
FROM openjdk:8-jre-alpine
# since 2.15.x is not stable
# and will cause h2 lockdowns
ARG version=2.14.4
ARG branch=2.14.x
ARG plugins=
ARG commpluginfiles=geoserver-2.14-SNAPSHOT-geopkg-plugin.zip
# Install dependencies
@gannebamm
gannebamm / md_viewservice.xml
Created November 20, 2019 16:33
INSPIRE View Service Metadata Example
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmx="http://www.isotc211.org/2005/gmx"
xmlns:srv="http://www.isotc211.org/2005/srv"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="http://www.isotc211.org/2005/gmd http://schemas.opengis.net/csw/2.0.2/profiles/apiso/1.0.0/apiso.xsd">
<gmd:fileIdentifier>
<gco:CharacterString>a479a63f-386d-44a6-a53f-83d3e396c3dc</gco:CharacterString>
@gannebamm
gannebamm / md_viewservice.xml
Created November 28, 2019 18:54
metadata for an INSPIRE conformant viewservice
<?xml version="1.0" encoding="UTF-8"?>
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:srv="http://www.isotc211.org/2005/srv" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.isotc211.org/2005/gmd http://schemas.opengis.net/csw/2.0.2/profiles/apiso/1.0.0/apiso.xsd">
<!--TG Recommendation C.1: metadata/2.0/rec/common/fileIdentifier: The metadata record should contain a globally unique and persistent fileIdentifier element.-->
<gmd:fileIdentifier>
<gco:CharacterString>a479a63f-386d-44a6-a53f-83d3e396c3dc</gco:CharacterString>
</gmd:fileIdentifier>
<!--TG Requirement C.5: metadata/2.0/req/common/metadata-language-code: The language of the provided metadata content shall be given. It shall be encoded using gmd:MD_Metadata/gmd:language/gmd:LanguageCode element po
@gannebamm
gannebamm / devMapstore2_GeoNode.md
Last active January 14, 2020 10:52
GettingStarted: Developing for the MapStore2 GeoNode client
@gannebamm
gannebamm / layers.js
Created January 22, 2020 14:55
mutally exclusive layers in group with title 'exclusive'
// LINE 146
case CHANGE_LAYER_PROPERTIES: {
const flatLayers = (state.flat || []);
let isBackground = flatLayers.reduce(
(background, layer) => background || (layer.id === action.layer && layer.group === 'background'),
false);
const newLayers = flatLayers.map((layer) => {
if ( includes(castArray(action.layer), layer.id )) {
return assign(
{},
@gannebamm
gannebamm / ms2_composer_plugins.js
Created February 24, 2020 16:00
Add Group Button for Mapstore2 with GeoNode
// Needs base_plugins and map_viewer_plugins
var MS2_EDIT_PLUGINS = {
"desktop": [
// Map from base BackgroundSelector, Identify from map_plugins
{
"name": "TOC",
"cfg": {
"activateQueryTool": true,
"activateAddLayerButton": true,
Index: web/client/reducers/layers.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- web/client/reducers/layers.js (revision 8c7f43eb38f2e17e9fec7b7816c5fb96dde08622)
+++ web/client/reducers/layers.js (date 1579704777330)
@@ -163,8 +163,23 @@
// TODO remove
return assign({}, layer, {visibility: false});
@gannebamm
gannebamm / updated_german_translation.patch
Created March 2, 2020 12:23
MapStore2 updated german translations patch
Index: web/client/translations/data.de-DE
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- web/client/translations/data.de-DE (revision 6de82acfe6864ca948242ff11e50127aa1caa5fd)
+++ web/client/translations/data.de-DE (date 1581588599704)
@@ -12,12 +12,12 @@
"about_ul0_li0": "MapViewer ist ein einfache Anwendung zur Ansicht von vorkonfigurierten Karten (die optional in einer Datenbank mittels GeoStore gespeichert wurden)",
"about_ul0_li1": "MapPublisher wurde entwickelt, um auf einfache und intuitive Weise Karten und Mashups zu erstellen, zu speichern und zu teilen, die auf Inhalten von bekannten Quellen wie Google Maps und OpenStreetMap oder von Diensten die auf offenen Protokollen wie OGC WMS, WFS, WMTS or TMS und so weiter basieren. Für mehr Informationen siehe die",