Skip to main content
Solved

Creating mapsheets along a line


franco69
Contributor
Forum|alt.badge.img+6

Hi Guys,

 

another challenge...I've tried many things but i didnt get right output...

 

I have aline (screenshot blue line) and i want create mapsheets (red fixed width fixed height) along the line....how can i do that? (screenshot)

Thanx and Greetz

 

Franco

Best answer by takashi

Just an idea. Assuming that the longer side length should be 1000m and shorter side length should be 500m.

  1. Divide the line with the LineDivider (FME Store) by 950m or so.
  2. Extract the coordinates (e.g. x, y) of the end node for each divided line with the CoordinateExtractor.
  3. Transform each divided line into start node point with the Snipper. Snipping Mode: Vertex, Starting Vertex: 0, Ending Vertex: 0
  4. Add the coordinates (x, y) to the point with the VertexCreator (Mode: Add Point). Here, line segments (straight lines) connecting between the start and end nodes for each divided line have been created. Approx length would be 900m or so, maybe...
  5. Extend the the line segments with the Extender. Extension Length: (1000-@Length())*0.5
  6. Finally use the Bufferer to transform the stretched lines (length = 1000) into rectangular polygons. Buffer Amount: 250 (i.e. 500 x 1/2), End Cap Style: None.

Hope this helps.

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

11 replies

takashi
Influencer
  • Best Answer
  • February 10, 2016

Just an idea. Assuming that the longer side length should be 1000m and shorter side length should be 500m.

  1. Divide the line with the LineDivider (FME Store) by 950m or so.
  2. Extract the coordinates (e.g. x, y) of the end node for each divided line with the CoordinateExtractor.
  3. Transform each divided line into start node point with the Snipper. Snipping Mode: Vertex, Starting Vertex: 0, Ending Vertex: 0
  4. Add the coordinates (x, y) to the point with the VertexCreator (Mode: Add Point). Here, line segments (straight lines) connecting between the start and end nodes for each divided line have been created. Approx length would be 900m or so, maybe...
  5. Extend the the line segments with the Extender. Extension Length: (1000-@Length())*0.5
  6. Finally use the Bufferer to transform the stretched lines (length = 1000) into rectangular polygons. Buffer Amount: 250 (i.e. 500 x 1/2), End Cap Style: None.

Hope this helps.


franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • February 10, 2016

Hi Takashi,

 

point 3 and point 4 is not so clear for me....where do the straight lines be generated?

 

can u give me a screenshot of the transformers on point 3 and poin4?

 

That would help me a lot...Thanks for your quick answer

 

 

Greetz

Franco


takashi
Influencer
  • February 10, 2016
franco69 wrote:

Hi Takashi,

 

point 3 and point 4 is not so clear for me....where do the straight lines be generated?

 

can u give me a screenshot of the transformers on point 3 and poin4?

 

That would help me a lot...Thanks for your quick answer

 

 

Greetz

Franco

Hope this screenshot helps you.


franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • February 11, 2016

Hi Takashi,

 

the workflow works very good but not to 100% perfect BECAUSE: (screenshot)

BLUE: the route

 

GREEN: The Output from EXTENDER

 

RED: The Mapsheet Outputs

 

As you see the extended lines(green) loses the direction aof the line....perfect would be if the mapsheet has a rotation that the route (blue would enter nearly half the short side on the mapsheet)

BUT: it's nearly perfect and it helps me a lot........

 

I know that ARCGIS has this tool (Toolbox) under Category Cartography Tools/Data Driven Pages......STRIP MAP INDEX FEATURES....(maybe there is a way to take this functionality)

Thanx

 

Franco

 


takashi
Influencer
  • February 11, 2016
franco69 wrote:

Hi Takashi,

 

the workflow works very good but not to 100% perfect BECAUSE: (screenshot)

BLUE: the route

 

GREEN: The Output from EXTENDER

 

RED: The Mapsheet Outputs

 

As you see the extended lines(green) loses the direction aof the line....perfect would be if the mapsheet has a rotation that the route (blue would enter nearly half the short side on the mapsheet)

BUT: it's nearly perfect and it helps me a lot........

 

I know that ARCGIS has this tool (Toolbox) under Category Cartography Tools/Data Driven Pages......STRIP MAP INDEX FEATURES....(maybe there is a way to take this functionality)

Thanx

 

Franco

 

Hi @franco69, the dividing length you have set to the LineDivider might be too short comparing to the required longer side length.


franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • February 11, 2016

Hi Takashi,

 

yup...i will try this.....Thx very much!!!

 

Cheers

 

Franco

franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • February 11, 2016

Hi Takashi.....

 

i don't know if I do something wrong, but i think the fault is somewhere else...

 

because the mapsheets have different lengths.....

 

but i need them all exactly the same because they have to fit in a data frame in ARCGIS...

 

i think to create a line with two vertices is not the way because then the original length is not given any more and after the extender the lengths are not the same??

 

 

Hmm...any solutions? or is it doing well in your workbench??

 

 

Thx FRanco

takashi
Influencer
  • February 11, 2016

@franco69, I haven't execute the data flow. Try the attached workspace with your data.

create-mapsheets-prototype.fmw


franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • February 11, 2016

@takashi...fine...now it works...maybe i've set the params wrong

 

 

Thx

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • February 12, 2016

for a data frame in ArcMAp?

Why not use mapbook in ArcMap. You can create ribbons in there you know ( even when it was a plug_in one could do that).


franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • February 15, 2016

@gio....no not for ArcMap....the workbench is for different systems...but the output is not only to create mapsheets....line is input (can be KML,dwg,etc.....) the output is all you can create automatically...

but thanks Gio

Greetz

Franco


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings