<?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: Editing CGA to add Parallel Parking in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/editing-cga-to-add-parallel-parking/m-p/288746#M3968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My goal is to check whether there is parallel parking on the left or right side of a road.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure I understand .. When you create the geometries with the 'Dynamic CityLayouts' system ( shapes ) and then create the actual models in CGA, why do you need to check ? What do you want to check precisely ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post an image of the goal ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lemme know ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2014 15:10:56 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2014-04-09T15:10:56Z</dc:date>
    <item>
      <title>Editing CGA to add Parallel Parking</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/editing-cga-to-add-parallel-parking/m-p/288745#M3967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm new to CityEngine and the CGA language. I'm trying to edit an existing CGA rule that came from the ArcGIS - 3D City site (&lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=1a58cae727e24927be5a113e52557323"&gt;http://www.arcgis.com/home/item.html?id=1a58cae727e24927be5a113e52557323&lt;/A&gt;&lt;SPAN&gt;). Currently the Street Construction.cga does not have a street parking rule so I've started the process. My goal is to check whether there is parallel parking on the left or right side of a road. I've edited the following sections to include the parallel parking but I'm not sure where in the code it places the texture between the outer lane and edge of pavement. I attached the cga file and any help is very appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@Group("Parking") @Order(4) @Range(0,0.4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Parking_Width = 1.8&amp;nbsp;&amp;nbsp;&amp;nbsp; # parking width)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Parking_Left = false&amp;nbsp; # parking left side)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr Parking_Right = false&amp;nbsp; # parking right side)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Street Textures&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;concrete_tex&amp;nbsp; = "assets/streets/textures/asphalt.jpg"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sidewalk_tex&amp;nbsp; = "assets/streets/textures/asphalt_brighter.jpg"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;crosswalk_tex = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case Crosswalk_style == "American" : "assets/streets/textures/crosswalk_us2.jpg" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : "assets/streets/textures/crosswalk_us.jpg"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;curb_tex&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "assets/streets/textures/curb.jpg"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parking_left_tex = "assets/streets/textures/street_left_parking.jpg"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parking_right_tex = "assets/streets/textures/street_right_parking.jpg"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arrows&amp;nbsp;&amp;nbsp;&amp;nbsp; = case Arrow_marking: "arrows" else: "stop"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;getStreetTexture(type,lanes) =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case lanes &amp;gt;= 4 : "assets/streets/textures/street_4lanes_" + type + ".jpg"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; case lanes &amp;lt; 1&amp;nbsp; : "assets/streets/textures/street_1lanes_" + type + ".jpg"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : "assets/streets/textures/street_" + lanes + "lanes_" + type + ".jpg"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 22:20:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/editing-cga-to-add-parallel-parking/m-p/288745#M3967</guid>
      <dc:creator>SteveRhyne</dc:creator>
      <dc:date>2014-04-08T22:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Editing CGA to add Parallel Parking</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/editing-cga-to-add-parallel-parking/m-p/288746#M3968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My goal is to check whether there is parallel parking on the left or right side of a road.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure I understand .. When you create the geometries with the 'Dynamic CityLayouts' system ( shapes ) and then create the actual models in CGA, why do you need to check ? What do you want to check precisely ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post an image of the goal ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lemme know ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 15:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/editing-cga-to-add-parallel-parking/m-p/288746#M3968</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2014-04-09T15:10:56Z</dc:date>
    </item>
  </channel>
</rss>

