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

Optimization of vendor-specific rendering of a graphic on a line #1423

Merged
Original file line number Diff line number Diff line change
@@ -737,7 +737,7 @@
</Stroke>
</LineSymbolizer>
</Rule>
<!-- Mar without Fill -->
<!-- Mark without Fill -->
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
@@ -796,6 +796,175 @@
</Stroke>
</LineSymbolizer>
</Rule>
<!-- SVG as Mark offset +25 position-percentage 0,50,100 rotation default (-90,0,+90) -->
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>app:id</ogc:PropertyName>
<ogc:Literal>2</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<LineSymbolizer>
<Stroke>
<SvgParameter name="stroke">#eb34b4</SvgParameter>
<SvgParameter name="stroke-width">1</SvgParameter>
</Stroke>
<PerpendicularOffset>25</PerpendicularOffset>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<Mark>
<OnlineResource xlink:href="./sample_wo_border.svg"/>
<Format>svg</Format>
<Fill>
<SvgParameter name="fill-opacity">0.0</SvgParameter>
</Fill>
<Stroke>
<SvgParameter name="stroke">#eb34b4</SvgParameter>
<SvgParameter name="stroke-width">2</SvgParameter>
<SvgParameter name="stroke-linecap">butt</SvgParameter>
</Stroke>
</Mark>
<Size>20</Size>
<Rotation>-90</Rotation>
</Graphic>
</GraphicStroke>
<SvgParameter name="deegree-graphicstroke-position-percentage">0</SvgParameter>
</Stroke>
<PerpendicularOffset>25</PerpendicularOffset>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<Mark>
<OnlineResource xlink:href="./sample_wo_border.svg"/>
<Format>svg</Format>
<Fill>
<SvgParameter name="fill-opacity">0.0</SvgParameter>
</Fill>
<Stroke>
<SvgParameter name="stroke">#eb34b4</SvgParameter>
<SvgParameter name="stroke-width">2</SvgParameter>
<SvgParameter name="stroke-linecap">butt</SvgParameter>
</Stroke>
</Mark>
<Size>20</Size>
</Graphic>
</GraphicStroke>
<SvgParameter name="deegree-graphicstroke-position-percentage">50</SvgParameter>
</Stroke>
<PerpendicularOffset>25</PerpendicularOffset>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<Mark>
<OnlineResource xlink:href="./sample_wo_border.svg"/>
<Format>svg</Format>
<Fill>
<SvgParameter name="fill-opacity">0.0</SvgParameter>
</Fill>
<Stroke>
<SvgParameter name="stroke">#eb34b4</SvgParameter>
<SvgParameter name="stroke-width">2</SvgParameter>
<SvgParameter name="stroke-linecap">butt</SvgParameter>
</Stroke>
</Mark>
<Size>20</Size>
<Rotation>90</Rotation>
</Graphic>
</GraphicStroke>
<SvgParameter name="deegree-graphicstroke-position-percentage">100</SvgParameter>
</Stroke>
<PerpendicularOffset>25</PerpendicularOffset>
</LineSymbolizer>
</Rule>
<!-- SVG as Mark offset -25 position-percentage 0,50,100 rotation 0 -->
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>app:id</ogc:PropertyName>
<ogc:Literal>2</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<LineSymbolizer>
<Stroke>
<SvgParameter name="stroke">#eb34b4</SvgParameter>
<SvgParameter name="stroke-width">1</SvgParameter>
</Stroke>
<PerpendicularOffset>-25</PerpendicularOffset>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<Mark>
<OnlineResource xlink:href="./sample_wo_border.svg"/>
<Format>svg</Format>
<Fill>
<SvgParameter name="fill">#eb34b4</SvgParameter>
</Fill>
<Stroke>
<SvgParameter name="stroke-opacity">0.0</SvgParameter>
</Stroke>
</Mark>
<Size>20</Size>
</Graphic>
</GraphicStroke>
<SvgParameter name="deegree-graphicstroke-position-percentage">0</SvgParameter>
<SvgParameter name="deegree-graphicstroke-rotation">0</SvgParameter>
</Stroke>
<PerpendicularOffset>-25</PerpendicularOffset>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<Mark>
<OnlineResource xlink:href="./sample_wo_border.svg"/>
<Format>svg</Format>
<Fill>
<SvgParameter name="fill">#eb34b4</SvgParameter>
</Fill>
<Stroke>
<SvgParameter name="stroke-opacity">0.0</SvgParameter>
</Stroke>
</Mark>
<Size>20</Size>
</Graphic>
</GraphicStroke>
<SvgParameter name="deegree-graphicstroke-position-percentage">50</SvgParameter>
<SvgParameter name="deegree-graphicstroke-rotation">0</SvgParameter>
</Stroke>
<PerpendicularOffset>-25</PerpendicularOffset>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<Mark>
<OnlineResource xlink:href="./sample_wo_border.svg"/>
<Format>svg</Format>
<Fill>
<SvgParameter name="fill">#eb34b4</SvgParameter>
</Fill>
<Stroke>
<SvgParameter name="stroke-opacity">0.0</SvgParameter>
</Stroke>
</Mark>
<Size>20</Size>
</Graphic>
</GraphicStroke>
<SvgParameter name="deegree-graphicstroke-position-percentage">100</SvgParameter>
<SvgParameter name="deegree-graphicstroke-rotation">0</SvgParameter>
</Stroke>
<PerpendicularOffset>-25</PerpendicularOffset>
</LineSymbolizer>
</Rule>
<!-- Mark without Stroke -->
<Rule>
<ogc:Filter>
@@ -853,4 +1022,131 @@
</Stroke>
</LineSymbolizer>
</Rule>
<!-- Image offset +30 position-percentage 0,50,100 rotation default, facing forward/regular/backwards -->
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>app:id</ogc:PropertyName>
<ogc:Literal>3</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<LineSymbolizer>
<Stroke>
<SvgParameter name="stroke">#eb34b4</SvgParameter>
<SvgParameter name="stroke-width">1</SvgParameter>
</Stroke>
<PerpendicularOffset>30</PerpendicularOffset>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:href="./randombg.png"/>
<Format>png</Format>
</ExternalGraphic>
<Size>20</Size>
<Rotation>-90</Rotation>
</Graphic>
</GraphicStroke>
<SvgParameter name="deegree-graphicstroke-position-percentage">0</SvgParameter>
</Stroke>
<PerpendicularOffset>30</PerpendicularOffset>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:href="./randombg.png"/>
<Format>png</Format>
</ExternalGraphic>
<Size>20</Size>
</Graphic>
</GraphicStroke>
<SvgParameter name="deegree-graphicstroke-position-percentage">50</SvgParameter>
</Stroke>
<PerpendicularOffset>30</PerpendicularOffset>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:href="./randombg.png"/>
<Format>png</Format>
</ExternalGraphic>
<Size>20</Size>
<Rotation>90</Rotation>
</Graphic>
</GraphicStroke>
<SvgParameter name="deegree-graphicstroke-position-percentage">100</SvgParameter>
</Stroke>
<PerpendicularOffset>30</PerpendicularOffset>
</LineSymbolizer>
</Rule>
<!-- Image offset -30 position-percentage 0,50,100 rotation 0 -->
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>app:id</ogc:PropertyName>
<ogc:Literal>3</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<LineSymbolizer>
<Stroke>
<SvgParameter name="stroke">#eb34b4</SvgParameter>
<SvgParameter name="stroke-width">1</SvgParameter>
</Stroke>
<PerpendicularOffset>-30</PerpendicularOffset>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:href="./randombg.png"/>
<Format>png</Format>
</ExternalGraphic>
<Size>20</Size>
</Graphic>
</GraphicStroke>
<SvgParameter name="deegree-graphicstroke-position-percentage">0</SvgParameter>
<SvgParameter name="deegree-graphicstroke-rotation">0</SvgParameter>
</Stroke>
<PerpendicularOffset>-30</PerpendicularOffset>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:href="./randombg.png"/>
<Format>png</Format>
</ExternalGraphic>
<Size>20</Size>
</Graphic>
</GraphicStroke>
<SvgParameter name="deegree-graphicstroke-position-percentage">50</SvgParameter>
<SvgParameter name="deegree-graphicstroke-rotation">0</SvgParameter>
</Stroke>
<PerpendicularOffset>-30</PerpendicularOffset>
</LineSymbolizer>
<LineSymbolizer>
<Stroke>
<GraphicStroke>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:href="./randombg.png"/>
<Format>png</Format>
</ExternalGraphic>
<Size>20</Size>
</Graphic>
</GraphicStroke>
<SvgParameter name="deegree-graphicstroke-position-percentage">100</SvgParameter>
<SvgParameter name="deegree-graphicstroke-rotation">0</SvgParameter>
</Stroke>
<PerpendicularOffset>-30</PerpendicularOffset>
</LineSymbolizer>
</Rule>
</FeatureTypeStyle>
Original file line number Diff line number Diff line change
@@ -6,11 +6,13 @@
<gml:boundedBy>
<gml:Envelope srsName="EPSG:25832">
<gml:lowerCorner>0.0 0.0</gml:lowerCorner>
<gml:upperCorner>500.0 105.0</gml:upperCorner>
<gml:upperCorner>500.0 155.0</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<gml:featureMember><Object gml:id="FEATURE_1"><id>1</id><geom><gml:CompositeCurve><gml:curveMember><gml:LineString><gml:posList>15 15 485 15</gml:posList></gml:LineString></gml:curveMember></gml:CompositeCurve></geom></Object></gml:featureMember>
<gml:featureMember><Object gml:id="FEATURE_2"><id>2</id><geom><gml:CompositeCurve><gml:curveMember><gml:LineString><gml:posList>15 40 485 40</gml:posList></gml:LineString></gml:curveMember></gml:CompositeCurve></geom></Object></gml:featureMember>
<gml:featureMember><Object gml:id="FEATURE_3"><id>3</id><geom><gml:CompositeCurve><gml:curveMember><gml:LineString><gml:posList>15 65 485 65</gml:posList></gml:LineString></gml:curveMember></gml:CompositeCurve></geom></Object></gml:featureMember>
<gml:featureMember><Object gml:id="FEATURE_4"><id>4</id><geom><gml:CompositeCurve><gml:curveMember><gml:LineString><gml:posList>15 90 485 90</gml:posList></gml:LineString></gml:curveMember></gml:CompositeCurve></geom></Object></gml:featureMember>
<gml:featureMember><Object gml:id="FEATURE_5"><id>5</id><geom><gml:CompositeCurve><gml:curveMember><gml:LineString><gml:posList>15 115 485 115</gml:posList></gml:LineString></gml:curveMember></gml:CompositeCurve></geom></Object></gml:featureMember>
<gml:featureMember><Object gml:id="FEATURE_6"><id>6</id><geom><gml:CompositeCurve><gml:curveMember><gml:LineString><gml:posList>15 140 485 140</gml:posList></gml:LineString></gml:curveMember></gml:CompositeCurve></geom></Object></gml:featureMember>
</gml:FeatureCollection>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading