{"id":514,"date":"2012-03-05T16:16:21","date_gmt":"2012-03-05T16:16:21","guid":{"rendered":"http:\/\/www.geoplanit.co.uk\/?p=514"},"modified":"2012-03-05T16:17:09","modified_gmt":"2012-03-05T16:17:09","slug":"514","status":"publish","type":"post","link":"https:\/\/www.geoplanit.co.uk\/?p=514","title":{"rendered":"Landuses &#8211; Area Test"},"content":{"rendered":"<p><strong><a href=\"http:\/\/forums.arcgis.com\/threads\/51940-Creating-a-City-from-GIS-data-Landuses?p=178068&amp;viewfull=1#post178068\" target=\"_blank\">This is duplicate post of a discussion I started on ESRI\u2019s CityEngine support forum<\/a><\/strong><\/p>\n<p>I&#8217;ve already outlined a way to allocate landuses based on a static shape layer, as we get nearer placing buildings on our plots we need to ensure that the &#8220;lots&#8221; are the correct size and shape.<\/p>\n<p>This following rule can be adapted to test a Lot&#8217;s area (in sqm) and then onto the next rule depending on its area. I&#8217;ve used this to place different building types on a lot depending on it&#8217;s area but you could just as easily tie this into the woodland rule set above&#8230;<\/p>\n<pre>\/\/the descriptive names can be changed and are more of a guide really change or add more areas for your needs\r\nattr areatest =\r\n\tcase geometry.area &lt; 100 : \"100orLess\"\r\n\tcase geometry.area &lt; 200 &amp;&amp; geometry.area &gt; 100 : \"100to200\"\r\n\tcase geometry.area &lt; 300 &amp;&amp; geometry.area &gt; 200 : \"200to300\"\r\n\tcase geometry.area &lt; 400 &amp;&amp; geometry.area &gt; 300 : \"300to400\"\r\n\tcase geometry.area &lt; 500 &amp;&amp; geometry.area &gt; 400 : \"400to500\"\r\n\tcase geometry.area &lt; 600 &amp;&amp; geometry.area &gt; 500 : \"500to600\"\r\n\tcase geometry.area &lt; 700 &amp;&amp; geometry.area &gt; 600 : \"600to700\"\r\n\tcase geometry.area &lt; 800 &amp;&amp; geometry.area &gt; 700 : \"700to800\"\r\n\tcase geometry.area &lt; 900 &amp;&amp; geometry.area &gt; 800 : \"800to900\"\r\n\tcase geometry.area &lt; 1000 &amp;&amp; geometry.area &gt; 900 : \"900to1000\"\r\n\tcase geometry.area &gt; 1000 : \"1000orMore\"\r\n\telse : \"0\"\r\n\r\nLot--&gt;\r\n   res_areatest\r\n\r\n\/\/this directs the rule to the appropriate model depending on the area size\r\nres_areatest--&gt;\r\n\tcase areatest == \"100orless\" : res_100orless\r\n\tcase areatest == \"100to200\" : res_100to200\r\n\tcase areatest == \"200to300\" : res_200to300\r\n\tcase areatest == \"400to500\" : res_400to500\r\n\tcase areatest == \"500to600\" : res_500to600\r\n\tcase areatest == \"600to700\" : res_600to700\r\n\tcase areatest == \"700to800\" : res_700to800\r\n\tcase areatest == \"800to900\" : res_800to900\r\n\tcase areatest == \"900to1000\" : res_900to1000\r\n\tcase areatest == \"1000orMore\" : res_1000orMore\r\n\telse : stop.\t\r\n\r\nres_100orless--&gt;\r\n\textrude(5) report(\"1000\", geometry.area())\r\n\/\/etc....<\/pre>\n<p><strong>As usual does anyone have any thoughts\/suggestions\/corrections?<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is duplicate post of a discussion I started on ESRI\u2019s CityEngine support forum I&#8217;ve already outlined a way to allocate landuses based on a static shape layer, as we get nearer placing buildings on our plots we need to ensure that the &#8220;lots&#8221; are the correct size and shape. This following rule can be [&hellip;]<\/p>\n","protected":false},"author":161,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,116,145,7,54,9],"tags":[],"class_list":["post-514","post","type-post","status-publish","format-standard","category-arcgis","category-city-creation","category-cityengine","category-gis","category-tips","category-workflow"],"_links":{"self":[{"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/users\/161"}],"replies":[{"embeddable":true,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=514"}],"version-history":[{"count":3,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/514\/revisions"}],"predecessor-version":[{"id":517,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/514\/revisions\/517"}],"wp:attachment":[{"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}