{"id":504,"date":"2012-03-02T10:30:19","date_gmt":"2012-03-02T10:30:19","guid":{"rendered":"http:\/\/www.geoplanit.co.uk\/?p=504"},"modified":"2012-03-02T10:30:53","modified_gmt":"2012-03-02T10:30:53","slug":"creating-a-city-from-gis-data-landuses-part-1","status":"publish","type":"post","link":"https:\/\/www.geoplanit.co.uk\/?p=504","title":{"rendered":"Creating a City from GIS data &#8211; Landuses &#8211; Part 1"},"content":{"rendered":"<figure id=\"attachment_505\" aria-describedby=\"caption-attachment-505\" style=\"width: 128px\" class=\"wp-caption alignright\"><a href=\"https:\/\/i0.wp.com\/www.geoplanit.co.uk\/wp-content\/uploads\/2012\/03\/ce_landuses1.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-505\" title=\"Landuses? LBCS style!\" src=\"https:\/\/i0.wp.com\/www.geoplanit.co.uk\/wp-content\/uploads\/2012\/03\/ce_landuses1.jpg?resize=128%2C119\" alt=\"\" width=\"128\" height=\"119\" \/><\/a><figcaption id=\"caption-attachment-505\" class=\"wp-caption-text\">mmm LBCS Codes<\/figcaption><\/figure>\n<p><strong><a href=\"http:\/\/forums.arcgis.com\/threads\/51940-Creating-a-City-from-GIS-data-Landuses\">This is duplicate post of a discussion I started on ESRI\u2019s CityEngine support forum<\/a><\/strong><\/p>\n<p><a href=\"http:\/\/forums.arcgis.com\/threads\/51652-Creating-a-City-from-GIS-data-Transport-Infrastructure\" data-cke-saved-href=\"http:\/\/forums.arcgis.com\/threads\/51652-Creating-a-City-from-GIS-data-Transport-Infrastructure\">Since my first post has produced such an amazing response\u00a0<\/a>\u00a0I shall continue and start a thread on using GIS data on landuses.<\/p>\n<p>What I have been doing is using my road network in ArcGIS and importing it into CityEngine where I make a suitable road network, this I use to create blocks that are\u00a0<strong>not<\/strong>\u00a0sub-divided. \u00a0 I then export these block shapes as a shapefile back into ArcGIS where I add new fields (<a href=\"http:\/\/www.planning.org\/lbcs\/standards\/\" data-cke-saved-href=\"http:\/\/www.planning.org\/lbcs\/standards\/\">like an LBCS or landuse Code<\/a>). \u00a0 I can then make an outline landuse plan from these in ArcGIS and symbolise them.<\/p>\n<p>So we start back again in CityEngine with some static shapes with an object attribute for the landuse (in my case I&#8217;ve called it LBCSCode).<\/p>\n<p>The layer attributes code would look like this :<\/p>\n<pre>attr landuse = getObjectAttr(\"LBCS_Code\")<\/pre>\n<p>Then to colour the static shapes I could use the following code (don&#8217;t forget to apply the rule file!):<\/p>\n<pre>attr landuse = \"0\" \/\/ this just\u00a0initialises\u00a0the attribute that we have in our layer attributes\r\n<div>Lot--&gt; \u00a0\/\/I didn't use LotInner as this example doesn't create a subdivision<\/div>\r\n<div>\r\n<div>case landuse == \"1000\" : color(\"#FFFF00\") report(\"1000\", geometry.area())<\/div>\r\n<div>case landuse == \"2000\" : color(\"#FF0000\") report(\"2000\", geometry.area())<\/div>\r\n<div>case landuse == \"3000\" : color(\"#A020F0\") report(\"3000\", geometry.area())<\/div>\r\n<div>case landuse == \"4000\" : color(\"#0000FF\") report(\"4000\", geometry.area())<\/div>\r\n<div>case landuse == \"5000\" : color(\"#BEBEBE\") report(\"5000\", geometry.area())<\/div>\r\n<div>case landuse == \"6000\" : color(\"#2F4F4F\") report(\"6000\", geometry.area())<\/div>\r\n<div>case landuse == \"7000\" : color(\"#90EE90\") report(\"7000\", geometry.area())<\/div>\r\n<div>case landuse == \"8000\" : color(\"#228B22\") report(\"8000\", geometry.area())<\/div>\r\n<div>case landuse == \"9000\" : color(\"#FFFFFF\") report(\"9000\", geometry.area())<\/div>\r\n<div>else : color(\"#000000\")<\/div>\r\n<div><\/div>\r\n<\/div><\/pre>\n<p>You can also see that I&#8217;ve used the report operation to produce a summary of the land areas (helpful when doing landuse plans!)<\/p>\n<figure id=\"attachment_506\" aria-describedby=\"caption-attachment-506\" style=\"width: 494px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.geoplanit.co.uk\/wp-content\/uploads\/2012\/03\/ce_landuses2.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-506\" title=\"ce_landuses2\" src=\"https:\/\/i0.wp.com\/www.geoplanit.co.uk\/wp-content\/uploads\/2012\/03\/ce_landuses2.jpg?resize=494%2C143\" alt=\"\" width=\"494\" height=\"143\" srcset=\"https:\/\/i0.wp.com\/www.geoplanit.co.uk\/wp-content\/uploads\/2012\/03\/ce_landuses2.jpg?w=494&amp;ssl=1 494w, https:\/\/i0.wp.com\/www.geoplanit.co.uk\/wp-content\/uploads\/2012\/03\/ce_landuses2.jpg?resize=300%2C86&amp;ssl=1 300w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/a><figcaption id=\"caption-attachment-506\" class=\"wp-caption-text\">Lovely reporting!<\/figcaption><\/figure>\n<p>So would anyone do this differently? \u00a0Thoughts\/suggestions\/corrections?<\/p>\n<p>The next post will cover using this static shape layer to inform a dynamic model so change landuses in the object attributes here will change what happens in the dynamic model.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is duplicate post of a discussion I started on ESRI\u2019s CityEngine support forum Since my first post has produced such an amazing response\u00a0\u00a0I shall continue and start a thread on using GIS data on landuses. What I have been doing is using my road network in ArcGIS and importing it into CityEngine where I [&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-504","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\/504","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=504"}],"version-history":[{"count":2,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/504\/revisions"}],"predecessor-version":[{"id":508,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/504\/revisions\/508"}],"wp:attachment":[{"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.geoplanit.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}