Raif S. Naffah
2017-07-24 02:35:07 UTC
hi all,
i'm looking at adding few new Shape Symbols [1] to the current default
set to allow some shapes (the first 7) to appear _denser_ than the
current ones at the same Mark's Size.
i understand that i can obtain the same effect by using smaller Size
values (e.g. 8 instead of 16) however and b/c my SLDs are generated w/
FreeMarker and already use Transformation Functions [2] for selecting
the Shape to use as the WellKnownName value i believe i need to use the
same Size value for all resulting shapes.
here is a fragment of such SLD to illustrate what i'm talking about:
...
<sld:GraphicFill>
<sld:Graphic>
<sld:Mark>
<WellKnownName>
<ogc:Function name="Recode">
<ogc:PropertyName>V</ogc:PropertyName>
<#list vfValues as paint>
<ogc:Literal>${thresholds[paint_index]}</ogc:Literal>
<ogc:Literal>${paint}</ogc:Literal>
</#list>
</ogc:Function>
</WellKnownName>
<sld:Stroke>
<CssParameter name="stroke">#d3d3d3</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
</sld:Stroke>
</sld:Mark>
<sld:Size>16</sld:Size>
</sld:Graphic>
</sld:GraphicFill>
...
would appreciate any pointers to where i can add those new graphics or
the module/class where they are (programmatically) created and
registered.
TIA + cheers;
[1]
http://docs.geoserver.org/stable/en/user/styling/sld/extensions/pointsymbols.html
[2]
http://docs.geoserver.org/stable/en/user/styling/sld/tipstricks/transformation-func.html#categorize
--
rsn
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html
Geoserver-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
i'm looking at adding few new Shape Symbols [1] to the current default
set to allow some shapes (the first 7) to appear _denser_ than the
current ones at the same Mark's Size.
i understand that i can obtain the same effect by using smaller Size
values (e.g. 8 instead of 16) however and b/c my SLDs are generated w/
FreeMarker and already use Transformation Functions [2] for selecting
the Shape to use as the WellKnownName value i believe i need to use the
same Size value for all resulting shapes.
here is a fragment of such SLD to illustrate what i'm talking about:
...
<sld:GraphicFill>
<sld:Graphic>
<sld:Mark>
<WellKnownName>
<ogc:Function name="Recode">
<ogc:PropertyName>V</ogc:PropertyName>
<#list vfValues as paint>
<ogc:Literal>${thresholds[paint_index]}</ogc:Literal>
<ogc:Literal>${paint}</ogc:Literal>
</#list>
</ogc:Function>
</WellKnownName>
<sld:Stroke>
<CssParameter name="stroke">#d3d3d3</CssParameter>
<CssParameter name="stroke-width">1</CssParameter>
</sld:Stroke>
</sld:Mark>
<sld:Size>16</sld:Size>
</sld:Graphic>
</sld:GraphicFill>
...
would appreciate any pointers to where i can add those new graphics or
the module/class where they are (programmatically) created and
registered.
TIA + cheers;
[1]
http://docs.geoserver.org/stable/en/user/styling/sld/extensions/pointsymbols.html
[2]
http://docs.geoserver.org/stable/en/user/styling/sld/tipstricks/transformation-func.html#categorize
--
rsn
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html
Geoserver-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users