<?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 Map behaviour in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/map-behaviour/m-p/45904#M623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16141[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in this case we are determining the Asset_Height by using a control map(the white foggy hard line).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yet we have a hard line where the buildings are flattened to the floor with an Asset_Height of 0.. now these flattened buildings are off the control map i know, however this makes no sense to me as I would have expected the height to default to the else statement and assign an Asset_Height of 100 as the map layer rule details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

attr Asset_Height =
 case map_01(brightness,0,255) &amp;gt; 200:
&amp;nbsp; 150.0
 case map_01(brightness,0,255) &amp;gt; 100:
&amp;nbsp; 50.0
 case map_01(brightness,0,255) &amp;gt; 60:
&amp;nbsp; 70.0
 else:
&amp;nbsp; 100.0

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find this behaviour odd, am i correct in the assessment of what is happening here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2012 21:49:15 GMT</pubDate>
    <dc:creator>RobertHexter</dc:creator>
    <dc:date>2012-07-16T21:49:15Z</dc:date>
    <item>
      <title>Map behaviour</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/map-behaviour/m-p/45904#M623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16141[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So in this case we are determining the Asset_Height by using a control map(the white foggy hard line).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yet we have a hard line where the buildings are flattened to the floor with an Asset_Height of 0.. now these flattened buildings are off the control map i know, however this makes no sense to me as I would have expected the height to default to the else statement and assign an Asset_Height of 100 as the map layer rule details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

attr Asset_Height =
 case map_01(brightness,0,255) &amp;gt; 200:
&amp;nbsp; 150.0
 case map_01(brightness,0,255) &amp;gt; 100:
&amp;nbsp; 50.0
 case map_01(brightness,0,255) &amp;gt; 60:
&amp;nbsp; 70.0
 else:
&amp;nbsp; 100.0

&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find this behaviour odd, am i correct in the assessment of what is happening here?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 21:49:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/map-behaviour/m-p/45904#M623</guid>
      <dc:creator>RobertHexter</dc:creator>
      <dc:date>2012-07-16T21:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Map behaviour</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/map-behaviour/m-p/45905#M624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've confirmed your find. This is indeed not so beautiful. The heuristic used here seems to just map 0 outside the map layer and evaluate the function only within the actual layer's extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here's a way to make it work, by defining an attr to distinguish 'inside' and 'outside'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the same spot, create an other attr :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr insideMap = true&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;initialize it also in the rule file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;example of th the main rule : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr insideMap = true
attr extrVal = 50

Lot --&amp;gt;
 case insideMap :
&amp;nbsp; extrude(extrVal)
 else:
&amp;nbsp; extrude(100) # default value &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;don't forget to point the attr sources to the layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;that way, you can distinguish between the 2 states and still map the full range of values, including zero from black areas of the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let me know if it works too in your case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:47:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/map-behaviour/m-p/45905#M624</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-10T21:47:25Z</dc:date>
    </item>
  </channel>
</rss>

