Hi,
a search for "fme StraightLineDiagrammer" doesn't turn up much, so I suspect that this custom transformer isn't publicly available, for some reason.
I recommend writing Safe support (
https://safecommunity.force.com/knowledgeSubmitCase) and asking them about it.
David
thanks David.. It is interesting if we can create this transformer!!!
@miladahmad and @david_r,
If you have not seen the presentation by David Campanas of Safe at GIS-T 2014, you may check it out; there are a couple of slides on SLD. http://www.gis-t.org/uploads/WZ6P5.pdf.
Nowadays however, a web-based interactive SLD tool is replacing the static SLD tools.
Bo
@miladahmad @david_r
Grab the transformer directly off the FME Hub ;)
https://hub.safe.com/transformers/straightlinediagrammer
@miladahmad @david_r
Grab the transformer directly off the FME Hub ;)
https://hub.safe.com/transformers/straightlinediagrammer
Hi! I am able to download the transformer, but it seems a little tricky to use it. Is there any good docs out there that walks through the procedure? Thanks
Hi! I am able to download the transformer, but it seems a little tricky to use it. Is there any good docs out there that walks through the procedure? Thanks
Hi! I am able to download the transformer, but it seems a little tricky to use it. Is there any good docs out there that walks through the procedure? Thanks
Hi @jonathanchiang0,
There are three inputs for the StraightLineDiagrammer:
- Axis_Line - this input is for the line you want to be the axis of the diagram, so you would send the target road or pipeline to this input.
- Cross_Lines - this input is for the lines that cross the axis line. Cross streets for a road, for example. These lines will be draw perpendicular to the axis line.
- Points - any point features near the axis line that you want shown on the diagram. These points will be moved so that they are on the axis line, nearest to their original location. The maximum distance to the axis line can be set in the transformer Properties.
Hi! I am able to download the transformer, but it seems a little tricky to use it. Is there any good docs out there that walks through the procedure? Thanks
Hi @jonathanchiang0,
There are four outputs from the transformer:
- Axis_Line - the input axis line is transformed into a straight horizontal line, with the distance along the X axis representing the length along the original line.
- Cross_Lines - the cross lines are represented by vertical lines that touch the axis line at the length along the axis line that they intersected the original line. Lines above the axis intersected the axis from the left, while lines below intersected from the right.
- Points - the point features are placed on the axis line at the length of the nearest location on the axis line to the original point.
- Graph_Bars - any attributes on the axis line you have chosen to graph in the transformer properties will be turned into bar graphs, with the different values for each attribute divided horizontally. Attributes will sequenced vertically. Each bar will have the attributes SLD_Bar_Name and SLD_Bar_Value attribute on them, containing the original attribute name and unique value, so they can be labelled.
Hi! I am able to download the transformer, but it seems a little tricky to use it. Is there any good docs out there that walks through the procedure? Thanks
Hi @jonathanchiang0,
Straight line diagrams are usually created for display or print. To simplify this, the size of the graph has been normalized so that the axis and bar graphs will always span from 0 to 1 horizontally. The attribute SLD_length_multiplier has been added to all output features, containing the scale value to restore them to full size.
The Graph_Bars are considered a separate diagram from the Axis lines, Cross lines and Points, so also have their vertical origin at 0. This makes it simpler to use them in layout transformers, like the PDFPageFormatter.