<?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: Snap points to lines by stratum in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304316#M684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above method seems to do what I want - but the snappoints method seems to snap all points of all landuse classes even though I did do a definition query on both files in ArcMap. So I may have to create sepearate files for each landuse class. I will try this and get back to you. Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jul 2016 12:42:48 GMT</pubDate>
    <dc:creator>LeneKjær</dc:creator>
    <dc:date>2016-07-05T12:42:48Z</dc:date>
    <item>
      <title>Snap points to lines by stratum</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304311#M679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a rasterlayer with stratified landcover (4 different classes) and have created random points (study sites) in each strata class (using R). My problem is now that I want to snap these points to the nearest road but make sure that the strata is still the same. So not only snap to nearest line, but nearest line, that falls within a similar stratum as the point. I know of the near tool, but I cannot see that this tools makes sure that the strata stays the same for the snapped point. I have the strata raster layer, a shape file with the different points and a polyline layer with roads. Does anyone have any ideas – is this even possible in ArcMap or do I need to consult R again? I have ArcMap 10.1 with a standard license.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:00:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304311#M679</guid>
      <dc:creator>LeneKjær</dc:creator>
      <dc:date>2016-07-04T12:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Snap points to lines by stratum</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304312#M680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well I would consult R, since you only have a standard license and there is no capabilities to snap to rasters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 13:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304312#M680</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-07-04T13:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Snap points to lines by stratum</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304313#M681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I am looking into it right now, but have not been able to find anything yet. Thanks for your advice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 13:15:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304313#M681</guid>
      <dc:creator>LeneKjær</dc:creator>
      <dc:date>2016-07-04T13:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Snap points to lines by stratum</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304314#M682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if the following workflow suits your requirement. Please read the complete workflow before proceeding.&lt;/P&gt;&lt;P&gt;1. Convert the above classified raster to polygon &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/conversion/raster-to-polygon.htm"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/conversion/raster-to-polygon.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. Add a new field to the polygon layer (Attribute Table), fill the values of appropriate LandUse Class.&lt;/P&gt;&lt;P&gt;3. Intersect the road layer (Polyline) with the above polygon layer. Keep the &lt;EM&gt;Join_Attributes&lt;/EM&gt; parameter as "ALL" and &lt;EM&gt;Output_Type&lt;/EM&gt; parameter as "LINE". &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/analysis-toolbox/intersect.htm"&gt;http://desktop.arcgis.com/en/arcmap/10.3/tools/analysis-toolbox/intersect.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So, the intersected line feature will also have the attributes of the polygon layer.&lt;/P&gt;&lt;P&gt;4. Use Spatial Join on the Point layer, keeping the polygon layer as the &lt;EM&gt;Join_Features&lt;/EM&gt;. &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/analysis/spatial-join.htm"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/analysis/spatial-join.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This should create a new point layer with the attribute values of both the layers.&lt;/P&gt;&lt;P&gt;5. Use Definition query on the Road Layer as well as the Point Layer to filter them based on each LandUse class at a time. Example Expression:&amp;nbsp; "&lt;EM&gt;LU_CLASS&lt;/EM&gt;" = 'Waterbody'&lt;/P&gt;&lt;P&gt;6. With the definition query intact, snap the points to the Road Layer using &lt;EM&gt;snappoints&lt;/EM&gt;. of GME (Free extension available for both ArcGIS and R)&amp;nbsp; &lt;A href="http://www.spatialecology.com/gme/images/SpatialEcologyGME.pdf"&gt;http://www.spatialecology.com/gme/images/SpatialEcologyGME.pdf&lt;/A&gt; (Page 140)&lt;/P&gt;&lt;P&gt;You can download it from &lt;A href="http://www.spatialecology.com/gme/gmedownload.htm"&gt;http://www.spatialecology.com/gme/gmedownload.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;7. Repeat Step 5 and 6 for all the LandUse Classes.&lt;/P&gt;&lt;P&gt;8. Merge the resulting point features to get a new point layer consisting of all the snapped points. &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/merge.htm"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/data-management/merge.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: a) Keep same projection system for all the features.&lt;/P&gt;&lt;P&gt;b) Keep the Snap Distance high enough to allow all the points to get snapped (if required) at Step 6.&lt;/P&gt;&lt;P&gt;Hope it helps!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 14:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304314#M682</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2016-07-04T14:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Snap points to lines by stratum</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304315#M683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much - I will look at it tomorrow as I do not have ArcGis at home. One concern I have though, is that 1 polyline can cross several polygons/raster pixels with different land cover classes, but I think 1 line can only have one class? And some roads are very long, so this will not work for me. But I will look at it.&lt;/P&gt;&lt;P&gt;I was also thinking of converting both the point layer and polyline layer to rasters, creating values for cover class + point or line - then extract only those pixel with both coverclass and point/lineh. Then I can make some distance calculations - but not sure how I end up snapping points?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 16:36:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304315#M683</guid>
      <dc:creator>LeneKjær</dc:creator>
      <dc:date>2016-07-04T16:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Snap points to lines by stratum</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304316#M684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above method seems to do what I want - but the snappoints method seems to snap all points of all landuse classes even though I did do a definition query on both files in ArcMap. So I may have to create sepearate files for each landuse class. I will try this and get back to you. Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 12:42:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304316#M684</guid>
      <dc:creator>LeneKjær</dc:creator>
      <dc:date>2016-07-05T12:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Snap points to lines by stratum</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304317#M685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could NOT get GME to work properly, but once I had the &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;new point layer with the attribute values of both the layers and the intersected road layer and separated all files in land cover classes, Icould just use the snap tool in ArcMap - so it works! Thank you so much for your help, I very much appreciate it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:24:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/snap-points-to-lines-by-stratum/m-p/304317#M685</guid>
      <dc:creator>LeneKjær</dc:creator>
      <dc:date>2016-07-05T14:24:46Z</dc:date>
    </item>
  </channel>
</rss>

