<?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: Spatial join with HUGE datasets in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563954#M18652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To answer your last question first, the 64-bit Background Geoprocessing applies only to geoprocessing tools being executed in the background.&amp;nbsp; It can be used whether the tools are executed directly or in ModelBuilder or python.&amp;nbsp; ArcGIS for Desktop is a 32-bit application but when you install the patch and execute the tools in the background, they run in 64-bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you run the model, is the progress dialog opening?&amp;nbsp; If so, then the model is still running in the foreground.&amp;nbsp; How are you executing the model?&amp;nbsp; If you are executing it from the ModelBuilder dialog, I think it always runs in the foreground so you need to execute it as you would any geoprocessing tool.&amp;nbsp; If the model is running in the foreground, then do the following:&lt;/P&gt;&lt;P&gt;1. Right-click on the model and open the "Properties" dialog.&lt;/P&gt;&lt;P&gt;2. Under the "General" tab, uncheck the setting to "Always run in the foreground" and apply the change.&lt;/P&gt;&lt;P&gt;3. Now execute the model by double-clicking on it (not by opening the ModelBuilder window).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the model is already running in the background and you are still getting "out of memory" errors, then you have two main choices:&lt;/P&gt;&lt;P&gt;1. Process the data in smaller subsets (this should be straightforward since you already have the model); or&lt;/P&gt;&lt;P&gt;2. Try to get Vince's suggested approach to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2015 12:10:55 GMT</pubDate>
    <dc:creator>GabrielUpchurch1</dc:creator>
    <dc:date>2015-07-23T12:10:55Z</dc:date>
    <item>
      <title>Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563936#M18634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to make a spatial join with ArcGIS with these HUGE datasets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Target&lt;/STRONG&gt;: almost 3 million squares 500x500m size (the attribute table is basically empty)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Join feature&lt;/STRONG&gt;: 12000 polylines&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operation&lt;/STRONG&gt;: one to many&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Match&lt;/STRONG&gt;: intersect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All my attempts have failed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From the Spatial Join tool in the Toolbox&lt;/STRONG&gt;: after 15 min the output is a file where no join has been made (Join_Count field is 0 in all rows)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From the dialog box&lt;/STRONG&gt;: It seems to work but my estimate is that it takes 4 days to complete - without any guarantee the output will be correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works when I do a Spatial Join of a small area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to do this in a proper way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using file geodatabase, ArcGIS 10.2, background processing, 23 GB RAM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(The idea is to overlap those polylines to the grid (the 500x500m squares). I will then make a dissolve to find out how many lines are in each square. Finally, I will make a density map.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 11:34:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563936#M18634</guid>
      <dc:creator>ManuelFrias</dc:creator>
      <dc:date>2015-07-16T11:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563937#M18635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/spatial-analyst-toolbox/line-density.htm" title="http://desktop.arcgis.com/en/desktop/latest/tools/spatial-analyst-toolbox/line-density.htm"&gt;Line Density—Help | ArcGIS for Desktop&lt;/A&gt; be a feasible alternative if you use a cell size of 500m?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 12:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563937#M18635</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-07-16T12:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563938#M18636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would be an option, thanks!&lt;/P&gt;&lt;P&gt;The problem is that I HAVE to use the 500x500m grid file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 12:12:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563938#M18636</guid>
      <dc:creator>ManuelFrias</dc:creator>
      <dc:date>2015-07-16T12:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563939#M18637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To verify, do you have the 64-bit background geoprocessing patch installed?&amp;nbsp; If you don't, you are still running in 32-bit and will have limited access to RAM (4 GB max I think).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theoretically, you should be able to use all 23 GB RAM when processing in 64-bit (at least what isn't being used by other processes).&amp;nbsp; Of course, theory and reality are two different things and even with access to huge amounts of RAM, it doesn't necessarily mean that a process will succeed or be any faster.&amp;nbsp; Other factors related to the processor, software, etc. will contribute to performance and the ability of a process to be completed successfully.&amp;nbsp; I am being intentionally vague here because even after assisting many users with geoprocessing performance issues and questions, I still don't fully understand everything that occurs behind the scenes when a process is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can run the process on a sample of the data but not on the entire dataset, I usually suggest subsetting the dataset, running the process on each subset, and then merging the results back together.&amp;nbsp; In your case, you could subset the grid into manageable pieces and probably leave the lines alone.&amp;nbsp; Many users will use ModelBuilder or Python to semi-automate the procedure.&amp;nbsp; It isn't ideal but as long is it won't somehow influence the final results, you know it will get the job done and is a lot safer than waiting 4 days.&amp;nbsp; I once experienced a power outage on the third day of a geoprocessing operation and didn't have any type of battery backup to keep my machine alive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 15:06:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563939#M18637</guid>
      <dc:creator>GabrielUpchurch1</dc:creator>
      <dc:date>2015-07-16T15:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563940#M18638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This question was also asked on &lt;A href="http://gis.stackexchange.com/questions/154635/spatial-join-with-huge-datasets"&gt;GIS Stackexchange&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please specify the license level of ArcGIS Desktop available (Advanced/Standard/Basic), since it significantly changes the difficulty of generating a result.&amp;nbsp; Please also mention whether you have Spatial Analyst available, since Kernel Density takes just seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 15:17:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563940#M18638</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-07-16T15:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563941#M18639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;, &lt;A href="https://community.esri.com/migrated-users/50404"&gt;Gabriel Upchurch&lt;/A&gt; and &lt;A href="https://community.esri.com/migrated-users/3051"&gt;Vince Angelo&lt;/A&gt; for your advice! I am experimenting with your ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have ArcGIS Desktop Advanced with Spatial Analyst (and all other extensions) available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;64-bit background geoprocessing patch is installed. I run a tool called &lt;A href="http://coast.noaa.gov/digitalcoast/tools/track-builder"&gt;TrackBuilder&lt;/A&gt; that uses a 64bit Python script. But when a check the python version in my ArcGIS it says 32bit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To clarify, I must use the 500x500m polygon grid so I I don't understand how I can use the Kernel tool so that the result fits in that grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 07:40:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563941#M18639</guid>
      <dc:creator>ManuelFrias</dc:creator>
      <dc:date>2015-07-17T07:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563942#M18640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way I run yesterday the Intersect tool with the whole dataset (remember, 3 million polygons). It worked with a small dataset but now it's running for 19 hours!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to know it's actually doing something? The CPU shows 0% and very little RAM is being used. According to the Geoprocessing result window ArcGIS is "Assembling features"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;: it ended after 19 hours. It was doing something after all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 07:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563942#M18640</guid>
      <dc:creator>ManuelFrias</dc:creator>
      <dc:date>2015-07-17T07:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563943#M18641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To summarize your inputs &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;you have 3,000,00 cells of 500mx500m size&lt;/LI&gt;&lt;LI&gt;it the number of lines in each cell that you are interest in&lt;/LI&gt;&lt;LI&gt;you will product a density map from the results of the counts per cell for the study area&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Which gives rise to these questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;is the study area in projected coordinates?&lt;/LI&gt;&lt;LI&gt;why is it the count per cell and not the length of the linear features per cell that is of interest?&lt;/LI&gt;&lt;LI&gt;if the data are not in projected coordinates, how do you interpret density in real world units? whether it be counts or length?&lt;/LI&gt;&lt;LI&gt;what is it that you need density for? sometimes the object under investigation will give rise to important questions of the utility of the measure or alternate approaches to guage/investigate its pattern&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming your inputs and my questions, consider the scenario that one is interested in drainage density as it relates to surficial hydrology.&amp;nbsp; Now from a purely practical perspective, we can consider the total length of the rivers/streams within a specific area (ie your cell) giving us a length/are dimension.&amp;nbsp; Ideally, we should have the surface area of the streams per area, giving us a dimensionless unit which makes sense...&amp;nbsp; Counts per area in this context makes no sense since we could have 1 stream intersecting a 500x500 m^2 cell, but the coverage in terms of length or area could be anything (ie any length/area or the cell could be completely covered by the stream)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in short, Xander's solution scales this down on a cell by cell basis, but other suggestions depend on what is being examined and whether count/area is the key or other measures as length/area or area/area are of interest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 08:22:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563943#M18641</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-07-17T08:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563944#M18642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very relevant questions you pose, &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are doing shipping density maps. The final result will be a map showing the number of lines per cell,i.e., the number of ships that have crossed each cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We started out with AIS (Automated Identification System) point data that was converted to lines with a tool called &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://coast.noaa.gov/digitalcoast/tools/track-builder" rel="nofollow" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;" target="_blank"&gt;TrackBuilder&lt;/A&gt;​. We could have used ArcGIS but this tool gives the route for each ship with start and end time (sort of, it has its problems though).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using a grid which is the EEA standard (European Environment Agency). The idea is to overlap this grid with other analysis we'll make in the future. Traditionally, we have used raster functions like kernel or point density. The problem with this approach is that it doesn't give the number of LINES per cell and the EEA grid can not be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main challenge we are facing, as I see it,&amp;nbsp; is SIZE. This wouldn't be a problem if the size of the cells were bigger or the study area was smaller. It's, by the way, the Baltic Sea. For non-Europeans this is a comparison with USA:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="BalticSeaComparedtoUSA.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/117744_BalticSeaComparedtoUSA.PNG" style="width: 620px; height: 299px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 09:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563944#M18642</guid>
      <dc:creator>ManuelFrias</dc:creator>
      <dc:date>2015-07-17T09:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563945#M18643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manual...interesting...which raises the question about another question... You mentioned that it worked fine on a small data set.&amp;nbsp; When you did this&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;did you select both the lines AND the cells to form a selection prior to doing the intersection, or&lt;/LI&gt;&lt;LI&gt;did you just select the lines OR the cells to form the selection&lt;/LI&gt;&lt;LI&gt;what proportion of one or the other was made during that run... 1/10 a 1/4 ?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Those conditions mean that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; you could tile by repeating spatial selections prior to doing the intersect, with option (1) being the best choice. &lt;/LI&gt;&lt;LI&gt;By limiting the possible candidates in the intersect process, you have a real time estimate of how long it will take to finish the remainder. &lt;/LI&gt;&lt;LI&gt;The results of each selection and intersection can then be merged prior to doing your final density calculations.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My feeling is that by trying to do everything all at once scales the problem up particularly if method (2) was used.&amp;nbsp; If you have some thoughts on this that would be interesting.&amp;nbsp; This is beginning to sound like parallel processing (not parallel processors, but multiple instances of ArcMap) would be nice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 11:40:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563945#M18643</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-07-17T11:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563946#M18644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To check to see if the 64-bit patch is installed, go to the Help dropdown menu in ArcMap (or ArcCatalog) and select "About ArcMap."&amp;nbsp; If it is installed, you should see something listed similar to "Background Geoprocessing (64-bit)...".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 12:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563946#M18644</guid>
      <dc:creator>GabrielUpchurch1</dc:creator>
      <dc:date>2015-07-17T12:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563947#M18645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have Spatial Analyst available, then you're wasting your time doing this as a vector modelling exercise.&amp;nbsp; In fact, raster is a much better way to model the quality of AIS (though 500m increments are far too small for reality -- 5km would be better).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would take much less than 19 hours to learn how to generate a raster with the same origin as your polygon set (I had never done so before from the UI, and it took seconds), and minutes to run dozens of model variants until you found a Kernel Density parameter set that produced a useful raster.&amp;nbsp; From there, all you need to do is reclassify the zeros to NODATA, scale the results to integer, and convert to polygon with Raster to Polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Vince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 12:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563947#M18645</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-07-17T12:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563948#M18646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'm going to follow &lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;​'s idea. &lt;A href="https://community.esri.com/migrated-users/3051"&gt;Vince Angelo&lt;/A&gt;​' strategy sounds good but I still need to work with 500x500m cell size. I don't know anyway how I'd fit the raster to the polygon grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created another grid with 9 big cells which cover the whole area. The idea is to do the spatial join in each big cell and then merge everything.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" height="334" src="https://community.esri.com/legacyfs/online/118285_Capture.PNG" style="width: 371px; height: 333.9px;" width="371" /&gt;&lt;/P&gt;&lt;P&gt;This model works like a charm for one big cell:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/118316_Capture.PNG" style="width: 620px; height: 281px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt; It works fine for one rectangle (only 24 min!) but how to iterate to do the same in the rest of the cells? I exported it from Model builder (attached) and tested a for loop but to no avail.&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 13:57:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563948#M18646</guid>
      <dc:creator>ManuelFrias</dc:creator>
      <dc:date>2015-07-21T13:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563949#M18647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are already using ModelBuilder, I would just insert a "Feature Selection" iterator prior to the Make Feature Layer step and use the 9 cell grid feature class as the input.&amp;nbsp; The output from the iterator is then used as input to the Make Feature Layer tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some documentation on iterators:&amp;nbsp; &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/a-quick-tour-of-using-iterators-for-iteration-looping-.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/a-quick-tour-of-using-iterators-for-iteration-looping-.htm"&gt;A quick tour of using iterators—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will also need to use "inline variable substitution" to properly name the outputs from each iteration.&amp;nbsp; Here is some documentation:&amp;nbsp; &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/a-quick-tour-of-using-inline-variable-substitution.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/a-quick-tour-of-using-inline-variable-substitution.htm"&gt;A quick tour of using inline variable substitution—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 14:07:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563949#M18647</guid>
      <dc:creator>GabrielUpchurch1</dc:creator>
      <dc:date>2015-07-21T14:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563950#M18648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Environments... settings of the Kernel Density tool (and Line Density, and all other tools) provide a way to specify the origin of the Processing Extent:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Environments.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/118252_Environments.jpg" style="width: 620px; height: 420px;" /&gt;&lt;/P&gt;&lt;P&gt;You may need to enter the top/right values before the left/bottom, since the UI enforces a valid envelope (right &amp;gt; left, top &amp;gt; bottom) at all times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't recommend using vector to take days to perform an analysis that raster provides in seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563950#M18648</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-07-21T15:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563951#M18649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vince, thanks for your interest,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the main problem is not fitting the raster to a 500x500m grid but to answer the original problem: How many lines are in each cell?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kernel and line density tools don't solve this. At least the tests I made don't directly answer the above question.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="kernel.PNG" class="image-1 jive-image" height="199" src="https://community.esri.com/legacyfs/online/118436_kernel.PNG" style="width: 461px; height: 199.270967741935px;" width="461" /&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="kernelResult.PNG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/118437_kernelResult.PNG" style="width: 620px; height: 484px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Intersecting tool that has been mentioned earlier was a good idea but it took 19 hours to finish the process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 07:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563951#M18649</guid>
      <dc:creator>ManuelFrias</dc:creator>
      <dc:date>2015-07-22T07:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563952#M18650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To limit values to actual line crossings, your search radius should be between sqrt(2) and 1.5 times the pixel radius (354-375) -- a value equivalent to the pixel size increases the density in neighboring cells.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to divide the density pixel by the average value generated by one pixel to generate a scaled feature density, and "Plus" 0.5 and "Int" to get approximate counts.&amp;nbsp; Since it only takes two seconds to generate a ~4M pixel grid, there's plenty of time to try various search radius values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can use the EXPECTED_COUNTS option at 10.3, which will pre-scale the results [just need int(val+0.5)]&lt;IMG alt="kdensity.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/118502_kdensity.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 14:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563952#M18650</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-07-22T14:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563953#M18651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3051"&gt;Vince Angelo&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried in AG 10.3 but it crashes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Back in AG 10.2 I tried different search radius but I fail to get the exact amount of lines crossing each cell. Usually the resulting cell after the kernel process gives more lines than there actually are. It's close but not exact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got confused with your second paragraph. I guess you're talking about the raster calculator but I don't really get how you can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in the desperate phase when nothing seems to work. Vince's suggestion seems the more rational if i get it to work. Meanwhile, my attempts to do it with a polygon grid have failed so far. The suggestion by &lt;A href="https://community.esri.com/migrated-users/50404"&gt;Gabriel Upchurch&lt;/A&gt;​ was great. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ModelBuilder.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/118572_ModelBuilder.PNG" style="width: 620px; height: 346px;" /&gt;&lt;/P&gt;&lt;P&gt;The problem is that Spatial Join is unable to join the polygons and the lines of the first part, That is about 600 000 polygons and only 4 500 lines. Out of memory!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="polyAndLines.PNG" class="image-2 jive-image" height="292" src="https://community.esri.com/legacyfs/online/118573_polyAndLines.PNG" style="height: 292px; width: 219.66163141994px;" width="220" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This happens if I use &lt;STRONG&gt;Intersect&lt;/STRONG&gt; for Select Layer by Location (2): the lines and the GridDivision.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use &lt;STRONG&gt;within&lt;/STRONG&gt; the process goes until grid cell 7. The problem is that with &lt;STRONG&gt;withing&lt;/STRONG&gt; not all lines get selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="polyAndLinesNote.PNG" class="image-3 jive-image" height="264" src="https://community.esri.com/legacyfs/online/118613_polyAndLinesNote.PNG" style="width: 227px; height: 264.061224489796px;" width="227" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/EN/knowledgebase/techarticles/detail/40729"&gt;I read&lt;/A&gt; that even if I am on an 64-bit OS I can only operate with 32-bit. Is the model builder using 64 or 32? ( I do have &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Background Geoprocessing (64-bit))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 11:22:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563953#M18651</guid>
      <dc:creator>ManuelFrias</dc:creator>
      <dc:date>2015-07-23T11:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial join with HUGE datasets</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563954#M18652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To answer your last question first, the 64-bit Background Geoprocessing applies only to geoprocessing tools being executed in the background.&amp;nbsp; It can be used whether the tools are executed directly or in ModelBuilder or python.&amp;nbsp; ArcGIS for Desktop is a 32-bit application but when you install the patch and execute the tools in the background, they run in 64-bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you run the model, is the progress dialog opening?&amp;nbsp; If so, then the model is still running in the foreground.&amp;nbsp; How are you executing the model?&amp;nbsp; If you are executing it from the ModelBuilder dialog, I think it always runs in the foreground so you need to execute it as you would any geoprocessing tool.&amp;nbsp; If the model is running in the foreground, then do the following:&lt;/P&gt;&lt;P&gt;1. Right-click on the model and open the "Properties" dialog.&lt;/P&gt;&lt;P&gt;2. Under the "General" tab, uncheck the setting to "Always run in the foreground" and apply the change.&lt;/P&gt;&lt;P&gt;3. Now execute the model by double-clicking on it (not by opening the ModelBuilder window).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the model is already running in the background and you are still getting "out of memory" errors, then you have two main choices:&lt;/P&gt;&lt;P&gt;1. Process the data in smaller subsets (this should be straightforward since you already have the model); or&lt;/P&gt;&lt;P&gt;2. Try to get Vince's suggested approach to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 12:10:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/spatial-join-with-huge-datasets/m-p/563954#M18652</guid>
      <dc:creator>GabrielUpchurch1</dc:creator>
      <dc:date>2015-07-23T12:10:55Z</dc:date>
    </item>
  </channel>
</rss>

