<?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: Direction compressed geometry return rounded coordinates in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/direction-compressed-geometry-return-rounded/m-p/545920#M2609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, Dmitry!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try your solution. I got this problem only on 9.3.1 server. On AGS-10 directions returned with decimals in coordinates.&amp;nbsp; Maybe this is about different locale(Russian) on server: comma( ",") as decimal separator? But I changed locale settings for SOC user with no result.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2011 04:37:24 GMT</pubDate>
    <dc:creator>DmitryAleshkovsky</dc:creator>
    <dc:date>2011-10-11T04:37:24Z</dc:date>
    <item>
      <title>Direction compressed geometry return rounded coordinates</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/direction-compressed-geometry-return-rounded/m-p/545918#M2607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have Route Task that return route and directions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server 9.3.1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; When I compare coordinates in geometry from directions and coordinates from returned route, I found that coordinates in directions are rounded. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1/ First geometry in directions (first start point)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; +1+8ml3h+6mgbr+0+0 (compressed geometry)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=9131121,y=7029115 (uncompressed coordinates)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2/ Route&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Polyline:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Path0:[9131120,5196,7029114,5867],[9131712,0392,7028750,7598],[9131801,4032,7028661,28]...247 more...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First point have decimals.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;x=9131120,5196, y=7029114,5867&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My goal is find the vertex number of all&amp;nbsp; stops in the route polyline&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;request&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.../NAServer/Route/solve?stops=%7B%22features%22%3A%5B%7B%22attributes%22%3A%7B%22Name%22%3A%221%22%2C%22PointType%22%3A%22StopPoint%22%2C%22ReturnNumber%22%3A-1%2C%22NumVertex%22%3A-1%2C%22Status%22%3A%22Unknown%22%7D%2C%22geometry%22%3A%7B%22x%22%3A9131340.9466%2C%22y%22%3A7029490.0441%7D%7D%2C%7B%22attributes%22%3A%7B%22Name%22%3A%222%22%2C%22PointType%22%3A%22StopPoint%22%2C%22ReturnNumber%22%3A-1%2C%22NumVertex%22%3A-1%2C%22Status%22%3A%22Unknown%22%7D%2C%22geometry%22%3A%7B%22x%22%3A9184641.8256%2C%22y%22%3A7015380.9878%7D%7D%2C%7B%22attributes%22%3A%7B%22Name%22%3A%223%22%2C%22PointType%22%3A%22StopPoint%22%2C%22ReturnNumber%22%3A-1%2C%22NumVertex%22%3A-1%2C%22Status%22%3A%22Unknown%22%7D%2C%22geometry%22%3A%7B%22x%22%3A9209724.5922%2C%22y%22%3A6993433.567%7D%7D%5D%7D&amp;amp;barriers=%7B%22features%22%3A%5B%5D%7D&amp;amp;outSR=102100&amp;amp;ignoreInvalidLocations=true&amp;amp;accumulateAttributeNames=Minutes%2Cmeters&amp;amp;impedanceAttributeName=meters&amp;amp;restrictionAttributeNames=autos%2COneway&amp;amp;attributeParameterValues=&amp;amp;restrictUTurns=esriNFSBAllowBacktrack&amp;amp;useHierarchy=false&amp;amp;returnDirections=true&amp;amp;returnRoutes=true&amp;amp;returnStops=true&amp;amp;returnBarriers=false&amp;amp;directionsLanguage=en-US&amp;amp;outputLines=esriNAOutputLineTrueShape&amp;amp;findBestSequence=false&amp;amp;preserveFirstStop=true&amp;amp;preserveLastStop=false&amp;amp;useTimeWindows=false&amp;amp;startTime=&amp;amp;outputGeometryPrecision=9&amp;amp;outputGeometryPrecisionUnits=esriMeters&amp;amp;directionsTimeAttributeName=Minutes&amp;amp;directionsLengthUnits=esriNAUMeters&amp;amp;f=html&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 12:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/direction-compressed-geometry-return-rounded/m-p/545918#M2607</guid>
      <dc:creator>DmitryAleshkovsky</dc:creator>
      <dc:date>2011-09-20T12:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Direction compressed geometry return rounded coordinates</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/direction-compressed-geometry-return-rounded/m-p/545919#M2608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dmitry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are correct - geometry which comes with Route directions is slightly generalized and this is by design.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can match Stops with Directions geometry by comparing the Stops' ArriveTime attributes against either ETA or Time attribute on the Directions items (set returnStops=true).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dmitry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 00:05:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/direction-compressed-geometry-return-rounded/m-p/545919#M2608</guid>
      <dc:creator>DmitryKudinov</dc:creator>
      <dc:date>2011-10-11T00:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Direction compressed geometry return rounded coordinates</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/direction-compressed-geometry-return-rounded/m-p/545920#M2609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, Dmitry!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try your solution. I got this problem only on 9.3.1 server. On AGS-10 directions returned with decimals in coordinates.&amp;nbsp; Maybe this is about different locale(Russian) on server: comma( ",") as decimal separator? But I changed locale settings for SOC user with no result.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 04:37:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/direction-compressed-geometry-return-rounded/m-p/545920#M2609</guid>
      <dc:creator>DmitryAleshkovsky</dc:creator>
      <dc:date>2011-10-11T04:37:24Z</dc:date>
    </item>
  </channel>
</rss>

