Giter Site home page Giter Site logo

geostyler / geostyler-geoserver-plugin Goto Github PK

View Code? Open in Web Editor NEW
5.0 13.0 3.0 2.13 MB

GeoStyler UI for the GeoServer

License: GNU General Public License v2.0

Dockerfile 0.55% Scheme 37.20% JavaScript 10.62% Java 32.52% CSS 4.63% FreeMarker 14.49%
geoserver geostyler react sld

geostyler-geoserver-plugin's Introduction

GeoStyler GeoServer extension

This extension integrates the GeoStyler UI into the GeoServer styles tab.

Preview

Installation ๐Ÿฅณ

To install the extension to your GeoServer just proceed as follows:

  1. Download the matching jar from this Nexus repository.
  2. Copy the jar into the WEB-INF/lib directory of your GeoServer installation.
  3. Restart GeoServer
How to find the matching jar? [click to show/hide]

  • The link will lead you to the list of all published artefacts of the plugin, organized in a directory structure
  • below org/geoserver/community/gs-geostyler you will find packages for several versions of GeoStyler, e.g. 1.2.0, 1.2.1 or 1.2.2
  • Choose the highest version, e.g. 1.2.2, and click on the version. A subfolder will be shown
  • You will need to download a version that is compatible to your GeoServer version, e.g. 2.22.2
  • The jars are named according to the following scheme: gs-geostyler-[[GeoStyler-version]]-[[GeoServer-version]].jar
  • So for the example versions above, the matching jar would be gs-geostyler-1.2.2-2.22.2.jar, since the needed [[GeoStyler-version]] is 1.2.2 and the target [[GeoServer-version]] is 2.22.2 Example workflow to find the matching jar

Development ๐Ÿ—๏ธ

Basically the plugin just includes the JavaScript resources of the GeoStyler into a Wicket page which in turn will be rendered by the GeoServer. The lib files aren't part of the repository and need to be packed into the plugin during build. To build the plugin (including the JS sources), just execute:

mvn clean package

This will create a gs-geostyler-<VERSION>-<GEOSERVER_VERSION>.jar file inside the target directory which can be copied to the GeoServer's lib directory. For testing purposes this repository contains a dockerized GeoServer:

  1. Copy the freshly created jar into the lib directory:
cp ./target/gs-geostyler-<VERSION>.jar ./docker/geoserver/additional_libs
  1. Run GeoServer:
docker-compose up --build --force-recreate --remove-orphans

Release ๐Ÿ“ฐ

Uses the @terrestris/maven-semantic-release plugin to create new releases automatically.

Funding & financial sponsorship

Maintenance and further development of this code can be funded through the GeoStyler Open Collective. All contributions and expenses can transparently be reviewed by anyone; you see what we use the donated money for. Thank you for any financial support you give the GeoStyler project ๐Ÿ’ž

geostyler-geoserver-plugin's People

Contributors

annarieger avatar dependabot[bot] avatar dnlkoch avatar hwbllmnn avatar kaivolland avatar marcjansen avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

geostyler-geoserver-plugin's Issues

Installation instructions are not clear

On https://github.com/geostyler/geostyler-geoserver-plugin#installation- , the instuctions say:

Download the matching jar from here.

Following that link shows a single package. I guess it is obvious to click through.

Instead of finding the "matching jar", the next page shows maven instructions. On the right are "Assets" - it is not obvious that the required JAR file is here, amongst the 30 files.

In a narrow column, with words wrapping, it is not easy to find the required file. It is better like this:

gs-geostyler-1.1.1-20230313.135501-2-test-sources.jar.md5
gs-geostyler-1.1.1-20230313.135501-2-test-sources.jar.sha1
gs-geostyler-1.1.1-20230313.135501-2-test-sources.jar
gs-geostyler-1.1.1-20230313.135501-2-sources.jar.md5
gs-geostyler-1.1.1-20230313.135501-2-sources.jar.sha1
gs-geostyler-1.1.1-20230313.135501-2-sources.jar
gs-geostyler-1.1.1-20230313.135501-2-tests.jar.md5
gs-geostyler-1.1.1-20230313.135501-2-tests.jar.sha1
gs-geostyler-1.1.1-20230313.135501-2-tests.jar
gs-geostyler-1.1.1-20230313.135501-2.pom.md5
gs-geostyler-1.1.1-20230313.135501-2.pom.sha1
gs-geostyler-1.1.1-20230313.135501-2.pom
gs-geostyler-1.1.1-20230313.135501-2.jar.md5
gs-geostyler-1.1.1-20230313.135501-2.jar.sha1
gs-geostyler-1.1.1-20230313.135501-2.jar
gs-geostyler-1.1.1-20230313.132443-1-test-sources.jar.md5
gs-geostyler-1.1.1-20230313.132443-1-test-sources.jar.sha1
gs-geostyler-1.1.1-20230313.132443-1-test-sources.jar
gs-geostyler-1.1.1-20230313.132443-1-sources.jar.md5
gs-geostyler-1.1.1-20230313.132443-1-sources.jar.sha1
gs-geostyler-1.1.1-20230313.132443-1-sources.jar
gs-geostyler-1.1.1-20230313.132443-1-tests.jar.md5
gs-geostyler-1.1.1-20230313.132443-1-tests.jar.sha1
gs-geostyler-1.1.1-20230313.132443-1-tests.jar
gs-geostyler-1.1.1-20230313.132443-1.pom.md5
gs-geostyler-1.1.1-20230313.132443-1.pom.sha1
gs-geostyler-1.1.1-20230313.132443-1.pom
gs-geostyler-1.1.1-20230313.132443-1.jar.md5
gs-geostyler-1.1.1-20230313.132443-1.jar.sha1
gs-geostyler-1.1.1-20230313.132443-1.jar

There appear to be 2 releases above -1 and -2?

The last file in the list appears to be the required JAR file.

Error when selecting option in "Change filter" menu

It is currently not possible to switch to another filter type (AND, OR etc.). When selecting the respective dropdown menu option in the filter editor (e. g. "Change filter" -> "AND-Filter"), the input fields are replaced with the message "Unknown filter supplied":

Geostyler Error

After trying to switch filter types multiple times by selecting different options in the "Change filter" menu, sometimes another error appears (with error message "TypeError: undefined is not an object (evaluating 't[u].filter')" in console):

Geostyler Error 2

The Geostyler demo application doesn't show this behaviour, so it seems to me that it is a problem specific to the Geoserver plugin.

GeoStyler assumes the path to start with /geoserver/

Most GeoServer instances might be installed at, for example, http://localhost:8080/geoserver, but some are definitely not, they might be http://localhost:8080/my-path (or mapservice in the bottom screenshot)

GeoStyler installs properly and runs, but on the Style page, hangs with: GeoStyler is loading ...

image

In DevTools, I can see 2x 404 errors, because GeoStyler is trying to connect to GeoServer on the /geoserver/ path and not on the /my-path/ path.

image

Before GeoStyler was extracted out of the GeoServer project it worked with a different path. Is there a way to configure GeoStyler now?

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.