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

XML writer and reader #4

Open
1 task
ebocher opened this issue Apr 8, 2020 · 2 comments
Open
1 task

XML writer and reader #4

ebocher opened this issue Apr 8, 2020 · 2 comments

Comments

@ebocher
Copy link
Member

ebocher commented Apr 8, 2020

  • Improve UOM IO according to the rules in Feature2DTypeStyle extension model
@ebocher
Copy link
Member Author

ebocher commented May 18, 2020

Bellow an example of json encoding with a SQL like expression

{
  "Feature2DStyle": {
    "Name": "Unnamed Style",
    "Rule": {
      "Name": "Area color expression",
      "AreaSymbolizer": {
        "Name": "Color area expression",
        "Level": 0,
        "PenStroke": {
          "SolidFill": {
            "Color": "#000000",
            "Opacity": 1
          },
          "Width": 0.25,
        },
        "SolidFill": {
          "Color": "expression(CASE WHEN ST_AREA(the_geom)> 50000 then 'red' else 'blue' end)"
        }
      }
    }
  }
}

@ebocher
Copy link
Member Author

ebocher commented May 18, 2020

And in xml

<Feature2DStyle>
  <Name>Unnamed Style</Name>
  <Rule>
    <Name>Area color expression</Name>
    <AreaSymbolizer>
      <Name>Color according a type</Name>
      <Uom>PX</Uom>
      <Level>0</Level>
      <PenStroke>
        <SolidFill>
          <Color>#000000</Color>
          <Opacity>1.0</Opacity>
        </SolidFill>
        <Width>0.25</Width>
      </PenStroke>
      <SolidFill>
        <Color>expression(CASE WHEN ST_AREA(the_geom)&gt; 50000 then 'red' else 'blue' end)</Color>
      </SolidFill>
    </AreaSymbolizer>
  </Rule>
</Feature2DStyle>

ebocher added a commit to ebocher/orbismap that referenced this issue Jun 12, 2020
ebocher pushed a commit to ebocher/orbismap that referenced this issue Jun 12, 2020
Fix trainingDatabdtopov2.geojson file.
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

1 participant