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

Generation of SLD in MapX and publication of view to GeoServer #871

Closed
3 tasks done
thomaspiller opened this issue Dec 13, 2022 · 2 comments
Closed
3 tasks done

Generation of SLD in MapX and publication of view to GeoServer #871

thomaspiller opened this issue Dec 13, 2022 · 2 comments

Comments

@thomaspiller
Copy link
Collaborator

thomaspiller commented Dec 13, 2022

  • Depending on views, the SLD viewable in the MapX UI differs from the one published in GeoServer. In MapX, the <sld:Name> tag in each style rule contains the name/label of the rule while in GeoServer it does not.
    Example (view):
    - MapX: <Name>6.4 - 16.15</Name>
    - GeoServer: <sld:Name>MX-3MRV2-03XOM-HK8LW@Fhl0z</sld:Name>

  • Views with a custom style are not published on the MapX GeoServer. If an SLD cannot be generated for a view, the default style available in GeoServer should be used.

  • The style rule for missing/null values is not present in the SLD. Is this due to a technical limitation or could we add it in a future version of MapX?

@fxi
Copy link
Member

fxi commented Jan 11, 2023

In the view you provided, the rule name is also wrong. Can I assume that it's the case everywhere or there are cases when name of the rule is correct ?

<StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <NamedLayer>
    <Name>Carbon dioxide emissions per energy use 2016 (MSSD Indicator 21)</Name>
    <UserStyle>
      <Name>Carbon dioxide emissions per energy use 2016 (MSSD Indicator 21)</Name>
      <Title>Carbon dioxide emissions per energy use 2016 (MSSD Indicator 21)</Title>
      <FeatureTypeStyle>
        <Rule>
          <Name>MX-ZNRPT-FF8OG-CK5UA@0__custom</Name>

@thomaspiller
Copy link
Collaborator Author

I have published in MapX GeoServer all public views of the WESR: Mediterranean project. In all, there are about sixty styles that have been created in GeoServer. About half have a problem with the name of the rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In prod 🚀
Development

No branches or pull requests

2 participants