<?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 Combining a raster and shapefile datasets in Spatial Statistics Questions</title>
    <link>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656669#M2109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have (1) a shapefile of US counties and (2) a raster dataset (.asc file) with hurricane risk, with values ranging from 1 to 10. I would like to calculate the mean hurricane risk for each county, but I have no idea how to do that - everything I have seen requires files to be of the same type. Any suggestions would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2015 20:05:38 GMT</pubDate>
    <dc:creator>TatyanaDeryugina1</dc:creator>
    <dc:date>2015-06-08T20:05:38Z</dc:date>
    <item>
      <title>Combining a raster and shapefile datasets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656669#M2109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have (1) a shapefile of US counties and (2) a raster dataset (.asc file) with hurricane risk, with values ranging from 1 to 10. I would like to calculate the mean hurricane risk for each county, but I have no idea how to do that - everything I have seen requires files to be of the same type. Any suggestions would be appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 20:05:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656669#M2109</guid>
      <dc:creator>TatyanaDeryugina1</dc:creator>
      <dc:date>2015-06-08T20:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Combining a raster and shapefile datasets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656670#M2110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some tools "appear" to use both types such as &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Zonal_Statistics/009z000000w7000000/"&gt;Zonal Statistics and Zonal Statistics as Table&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp; but ultimately for what you need to do, one format is best, which would be the grid and the above example is a starting point for refining your research &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 20:22:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656670#M2110</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-08T20:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Combining a raster and shapefile datasets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656671#M2111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am curious why it would be best to have both files of raster type, in your opinion. Is there some intrinsic reason why it works better than using the shapefile as the zone data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 21:43:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656671#M2111</guid>
      <dc:creator>SepheFox</dc:creator>
      <dc:date>2015-06-08T21:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Combining a raster and shapefile datasets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656672#M2112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt; explains, there are tools that combine raster and vector formats. Especially the tools you want does this. You can even use the ASCII raster as input. However, does this file have a .prj file too? The .prj contains the projection information which ArcMap uses to locate the coordinates on the globe. Make sure you work with the same coordinate system for both your counties featureclass as the raster (.asc). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't have a .prj file you will first want to use the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000077000000"&gt;Define Projection tool&lt;/A&gt; to assign the appropriate coordinate system for it. In case it is different from the counties you want to &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Project_Raster/00170000007q000000/"&gt;project the raster&lt;/A&gt; to the coordinate system of the counties. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the tools &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt; suggested I think the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//009z000000w8000000"&gt;Zonal Statistics As Table&lt;/A&gt; is the most appropriate tool. It requires the Spatial Analyst extension. It will create a table that you can join back to the counties featureclass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 22:05:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656672#M2112</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-06-08T22:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Combining a raster and shapefile datasets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656673#M2113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;​Yes...if you use a vector layer as the zones and a raster layer as the file being the subject of the summary can you answer the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;is the area of the vector layer area the same in raster as it is vector format?&lt;/LI&gt;&lt;LI&gt;is the exact shape of the vector layer retained throughout the analysis?&lt;/LI&gt;&lt;LI&gt;are the results of &lt;STRONG&gt;Zonal Statistics &lt;/STRONG&gt;and &lt;STRONG&gt;Zonal Statistics as Table&lt;/STRONG&gt;, using &lt;STRONG&gt;&lt;EM&gt;one statistic&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; the&lt;/EM&gt; same ? (for example mean or whatever)&lt;/LI&gt;&lt;LI&gt;what happens if both layers are raster and they differ in cell size or are slightly misaligned?&lt;/LI&gt;&lt;LI&gt;what if a vector zone has some really small areas?&lt;/LI&gt;&lt;LI&gt;...... many more questions here&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If the user can't answer the above questions...plus more... then &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Zonal_Statistics_as_Table/009z000000w8000000/"&gt;they haven't read this link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which explains those details that are separating them from their glee in obtaining an answer ... whether it is the most appropriate or not.&amp;nbsp; Unfortunately you won't find those given as cavaets in any of the specific zonal tools but it is assumed that it has been read ... and rightly so.&amp;nbsp; Perhaps a "quiz" prior to tool use might be a good idea &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 22:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656673#M2113</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-08T22:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Combining a raster and shapefile datasets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656674#M2114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The crux of this problem is the conversion of the feature class to raster. As Dan pointed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Zonal tools will internally convert the features to raster using the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Feature_to_Raster/00120000002v000000/"&gt;FeatureToRaster &lt;/A&gt;tool, which actually calls the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Polygon_to_Raster/001200000030000000/"&gt;PolygonToRaster &lt;/A&gt;tool using the CELL_CENTER option. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you could do the conversion yourself and choose to rather use the MAX_AREA option or you could specify a PRIORITY field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 23:41:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656674#M2114</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2015-06-08T23:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Combining a raster and shapefile datasets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656675#M2115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Dan! I first tried to use "Zonal Statistics as Table" without converting the shapefile (but ensuring that the two files had the same projection). That resulted in an unhelpful message that “Background processing has encountered a serious error and is unable to continue”, with no other error messages and no output file. Once I converted the polygon to a raster, however, I was able to create the statistics table without a problem. Thank you for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:08:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656675#M2115</guid>
      <dc:creator>TatyanaDeryugina1</dc:creator>
      <dc:date>2015-06-09T15:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Combining a raster and shapefile datasets</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656676#M2116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad you resolved it. As a side note, the &lt;EM style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;“Background processing has encountered a serious error and is unable to continue” &lt;/EM&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;error can normally be avoided if background geoprocessing is switch off. Enter the Geoprocessing menu and select "Geoprocessing options..." and unmark the option "Enable". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/108256_pastedImage_3.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 16:56:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/combining-a-raster-and-shapefile-datasets/m-p/656676#M2116</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-06-09T16:56:59Z</dc:date>
    </item>
  </channel>
</rss>

