Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geostyler geoserver plugin 1.3.0 / 1.3.2 does not start #140

Closed
wumpz opened this issue May 30, 2024 · 9 comments
Closed

geostyler geoserver plugin 1.3.0 / 1.3.2 does not start #140

wumpz opened this issue May 30, 2024 · 9 comments
Assignees

Comments

@wumpz
Copy link

wumpz commented May 30, 2024

  • fresh war of GeoServer 2.51.1
  • followed installation instructions (jar into web-inf/lib)

within the style window I see some GeoStyler is starting
using browser debugger I see some undefined useages within a forEach loop

@jansule
Copy link

jansule commented Jun 3, 2024

Thanks for the info. @KaiVolland can you have a look at that?

@KaiVolland
Copy link
Contributor

Please check out v1.3.1.

@wumpz
Copy link
Author

wumpz commented Jun 7, 2024

Checked out version v1.3.2 but got another error:

wfsDataParser-ver-F01AD2C6AA7062E180003154A5AE61EE.js:2 @babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning.
(anonym) @ wfsDataParser-ver-F01AD2C6AA7062E180003154A5AE61EE.js:2
org.geoserver.wms.we…ata.StyleEditPage:1 Uncaught (in promise) Could not parse XML document: TypeError: Cannot read properties of undefined (reading 'element')

Maybe it has to do with other plugins like ysld, CSS plugins, ... installed?

Tested on Chrome and Edge (same engine --> same problem).

GeoStyler stops loading here:
image

@wumpz wumpz changed the title geostyler geoserver plugin 1.3.0 (most recent version) does not start geostyler geoserver plugin 1.3.0 / 1.3.2 does not start Jun 8, 2024
@wumpz
Copy link
Author

wumpz commented Jun 8, 2024

To be complete, I have tested this with a GeoServer including these plugins:

  • CSS - Plugin
  • SqlServer - Plugin
  • WPS - Plugin
  • Charts - Plugin
  • App-Schema - Plugin
  • YSLD - Plugin
  • Inspire - Plugin

all matching with GeoServer Version 2.25.1.

@KaiVolland
Copy link
Contributor

Hmm okay. I'll give this another try in the next days. Latest at the Codesprint next week.

@KaiVolland
Copy link
Contributor

KaiVolland commented Jun 12, 2024

I debugged a bit into it and i guess the error org.geoserver.wms.we…ata.StyleEditPage:1 Uncaught (in promise) Could not parse XML document: TypeError: Cannot read properties of undefined (reading 'element') is related to this part of the wfs-parser.

I created a PR to make this more failsafe: geostyler/geostyler-wfs-parser#588

I'll create a new release of the plugin once the wfs parser is updated.

@KaiVolland
Copy link
Contributor

KaiVolland commented Jun 13, 2024

@wumpz
Copy link
Author

wumpz commented Jun 14, 2024

@KaiVolland Now GeoStyler starts. However, I have some remarks:

  • GeoStyler starts for CSS, YSLD styles as well. If you press Add Rule you overwrite the whole style with some SLD stuff
  • image
    til now I had no meaningful filter extraction from my slds. The corresponding filter from sld is
<ogc:Filter>
             <And>
            <ogc:PropertyIsEqualTo>
              <ogc:Function name="dimension">
                <ogc:Function name="geometry"/>
              </ogc:Function>
              <ogc:Literal>0</ogc:Literal>
            </ogc:PropertyIsEqualTo>
             <ogc:PropertyIsEqualTo>
              <ogc:PropertyName>xxxx</ogc:PropertyName>
              <ogc:Literal>3</ogc:Literal>
            </ogc:PropertyIsEqualTo>  
            </And>
          </ogc:Filter>
´´´

@KaiVolland
Copy link
Contributor

This is indeed a problem. I created a new issue as this is a diffrent topic: #156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants