<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: create a graphic line of length defined by user  on the dynamic line layer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-a-graphic-line-of-length-defined-by-user/m-p/361332#M9327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So you need to travel down an existing polyline a certain distance, and find that point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This would require a little coding and trigonometry on your part, not to mention avoiding projection distortion. My suggestion is to use data in geographic coordinates (ie project to 4326), then use the built in methods for calculating line length: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.Geodesic~Length(Polyline).html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.Geodesic~Length(Polyline).html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would have to "travel" down the line, segment by segment and adding the distance up. Ie. first create a line based on the first two vertices in the line you want to measure on:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; myInputLine.Paths[0][0] and myInputLine.Paths[0][1].&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the geodesic length method and see how far that is. Then keep adding on with the following segments (1..2, 2..3) etc until you exceed the desired length, and go one back, then calculate the fraction of the last line segment that is missing (ie if you have 1km to go from the last vertex, and the next vertex is 2km down, find the spot right in-between the two vertices, and that's your location).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry I don't have the code for you, but you need to do a little bit of the work too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2012 16:20:17 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2012-05-14T16:20:17Z</dc:date>
    <item>
      <title>create a graphic line of length defined by user  on the dynamic line layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-a-graphic-line-of-length-defined-by-user/m-p/361331#M9326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a polyline&amp;nbsp; network represent the fiber optics network spread in the city &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i want to create automatic graphic line of lenght defined by the user like 17 or 18&amp;nbsp; (in km) on a selected line (selected line lenght is 100 km) or any line i select &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it will create graphic line&amp;nbsp; on the network of length defined by user &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Each polyline in my network&amp;nbsp; is start from station present as a point layer &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i need&amp;nbsp; C# code&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2012 17:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-a-graphic-line-of-length-defined-by-user/m-p/361331#M9326</guid>
      <dc:creator>MuhammadWaqar_ul_islam</dc:creator>
      <dc:date>2012-05-13T17:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: create a graphic line of length defined by user  on the dynamic line layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-a-graphic-line-of-length-defined-by-user/m-p/361332#M9327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So you need to travel down an existing polyline a certain distance, and find that point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This would require a little coding and trigonometry on your part, not to mention avoiding projection distortion. My suggestion is to use data in geographic coordinates (ie project to 4326), then use the built in methods for calculating line length: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.Geodesic~Length(Polyline).html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.Geodesic~Length(Polyline).html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would have to "travel" down the line, segment by segment and adding the distance up. Ie. first create a line based on the first two vertices in the line you want to measure on:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; myInputLine.Paths[0][0] and myInputLine.Paths[0][1].&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the geodesic length method and see how far that is. Then keep adding on with the following segments (1..2, 2..3) etc until you exceed the desired length, and go one back, then calculate the fraction of the last line segment that is missing (ie if you have 1km to go from the last vertex, and the next vertex is 2km down, find the spot right in-between the two vertices, and that's your location).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry I don't have the code for you, but you need to do a little bit of the work too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:20:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-a-graphic-line-of-length-defined-by-user/m-p/361332#M9327</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2012-05-14T16:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: create a graphic line of length defined by user  on the dynamic line layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-a-graphic-line-of-length-defined-by-user/m-p/361333#M9328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Required more help in coding&amp;nbsp; to start&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 06:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/create-a-graphic-line-of-length-defined-by-user/m-p/361333#M9328</guid>
      <dc:creator>MuhammadWaqar_ul_islam</dc:creator>
      <dc:date>2012-05-15T06:24:26Z</dc:date>
    </item>
  </channel>
</rss>

