<?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: Population geoprocessing in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/population-geoprocessing/m-p/540892#M18007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Personally I don't like models, but if you are willing to export the model to a Python script (&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Model\Export\To Python script&lt;/SPAN&gt;&lt;SPAN&gt;) and post this using the "&lt;/SPAN&gt;&lt;STRONG&gt;#&lt;/STRONG&gt;&lt;SPAN&gt;" button to wrap "CODE" tags arround the code, I can have a look what may be going wrong. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And when you say that the last year produces a negative number, this may have to do with Null values. For that I would need to see (part of) the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Dec 2013 11:34:56 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2013-12-06T11:34:56Z</dc:date>
    <item>
      <title>Population geoprocessing</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/population-geoprocessing/m-p/540888#M18003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: M.P.N.Mark_RUG&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good day all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have a question about the dissolving of polygons into new polygons, based on a 'more than x inhabitants' selection. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, my data is a 500m grid polygon with attributes which tell me the inhabitants of that specific polygon for the year 2000 to 2012 (in different fields). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first step is to select the polygon which have more than 100 inhabitants. This data will be used to create the new polygons. My first thought was to make a model based on the following idea:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Select by attributes -&amp;gt; Inhabitants &amp;gt; 100. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Export selected data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dissolve the polygons in one polygon if they are connected and add all the attributes from the 2012 inhabitants field into one field if applicable. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So you will get a new polygon based on 100 or more inhabitants with the attributes from the year I choose. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I try the dissolve tool, I still get the same results as the select by attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I overlooked something, but I don't know what. In what way can I create polygons based on attributes and also calculates the attributes into one new attribute? Do I have to write a python script? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 09:47:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/population-geoprocessing/m-p/540888#M18003</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-11-07T09:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Population geoprocessing</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/population-geoprocessing/m-p/540889#M18004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: xander_bakker&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you can do is follow these steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can select by attribute those polygons with a population &amp;gt; 100. There is no need to export this to a new feature class, since geoprocessing tool use selected data. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28952[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sure you have a field on which you would like to dissolve. So add a new field (like "diss") and assign it the value 1 (any value will do). Open the Dissolve tool and specify the following things:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28953[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dissolve field is the field ("diss") that only has a single value. You can add statistics like the sum of the population, and uncheck the Create multipart, so only connected polygons will be merged into a single polygon. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you will notice is that the summed population in the output has summed the population for all the output polygons. This is due to the fact that the "diss" field only has 1 single value and doesn't distinguish between the merged polygons. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to get this right you can join (based on location) the dissolved polygons to the original polygons, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28954[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The result will be that the original grids (or in fact the copy of the original grids) are enriched with the data from the dissolved polygons. Since the dissolved polygons have a OBJECTID that is unique for each merged polygon, you can now dissolve the polygons again, using the OBJECTID from the dissolved polygons and calculation the SUM of the original population:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28957[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The result will have the dissolved polygons with the correctly summed population for each dissolved polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]28958[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 08:38:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/population-geoprocessing/m-p/540889#M18004</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-11-08T08:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Population geoprocessing</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/population-geoprocessing/m-p/540890#M18005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: M.P.N.Mark_RUG&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you! This is exactly what I was looking for! I knew I missed something and that was the join based on location and after that another Dissolve! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again: thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 08:13:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/population-geoprocessing/m-p/540890#M18005</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-11-12T08:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Population geoprocessing</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/population-geoprocessing/m-p/540891#M18006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: M.P.N.Mark_RUG&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear Xander (and others),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works perfectly when I perform this manually. I would like to automate the sequences for multiple years. So I made a model. Everything works perfectly, until the last step. The calculation doesn't work properly. The SUM is not the 2012, but a negative number. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you help me solve this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 10:57:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/population-geoprocessing/m-p/540891#M18006</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-12-06T10:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Population geoprocessing</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/population-geoprocessing/m-p/540892#M18007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mark,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Personally I don't like models, but if you are willing to export the model to a Python script (&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Model\Export\To Python script&lt;/SPAN&gt;&lt;SPAN&gt;) and post this using the "&lt;/SPAN&gt;&lt;STRONG&gt;#&lt;/STRONG&gt;&lt;SPAN&gt;" button to wrap "CODE" tags arround the code, I can have a look what may be going wrong. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And when you say that the last year produces a negative number, this may have to do with Null values. For that I would need to see (part of) the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Xander&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 11:34:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/population-geoprocessing/m-p/540892#M18007</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2013-12-06T11:34:56Z</dc:date>
    </item>
  </channel>
</rss>

