<?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: [PYTHON]  .gdb import - spatial envelope settings not working in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551684#M7445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marek,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking more along the lines of creating a fish net or selecting specifically the data you want to import and adding a field that you can use to flag for it. So you would select the relevant study area in GIS, add an attribute associated with it and then use a SQL query like "INSIDE_STUDY_AREA=1" based on your new field. This is not using the spatial envelope but might be a way to achieve the same thing. You could also &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/how-create-fishnet-works.htm"&gt;use a fish net if you need to import areas&lt;/A&gt; in small batches (spatial join the fish net IDs to your &amp;nbsp;data for example and then select based the fish net ID).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;CE can be odd on some projections. Are you providing spatial envelopes appropriate to your projection? I try to use web mercator (auxiliary sphere) when importing into CE once if the data is not getting imported as I thought it should. It might change the result.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I thought the setFile/getFile paths need to be the full feature class path. In ArcPy, a specific feature class for example is set up as : "FolderPath/MyFGDB.gdb/SomeFeatureClass". I was curious if maybe this was a necessary setting for spatial envelop but it was just a guess.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I will try to test this on my end later next week if no one replies Marek.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 May 2017 22:20:04 GMT</pubDate>
    <dc:creator>deleted-user-Q-Ku9J1BlYDK</dc:creator>
    <dc:date>2017-05-26T22:20:04Z</dc:date>
    <item>
      <title>[PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551676#M7437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to import .gdb (file geodatabase) file using python&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while everything works fine, I'm having trouble defining custom envelope for my import to crop an area out from big .gdb file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="353848" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/353848_pastedImage_1.png" style="width: 620px; height: 250px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no matter what I put into [] it always loads all 490 objects:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;setImportQueryAndEnvelope("OBJECTID &amp;lt; 491", [&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;7157.656, 4162.500,274845.500,5143901.000&lt;/STRONG&gt;&lt;/SPAN&gt;] ,"NORTH_WEST")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I'm not sure if the syntax is correct because manual suggests:&amp;nbsp;&lt;/P&gt;&lt;P&gt;@param env: The spatial envelope with syntax (xMin, xMax, yMin, yMax). (default = None). [sequence of float]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while in dialog there are options for width, height and X-Offset and Y-Offset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the documentation's syntax to achieve 1x1 km crop using &amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-weight: normal;"&gt; [&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;7157.656, 7257.656, 4162.500, 4262.500&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-weight: normal;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(the 2nd and 4th&amp;nbsp;values are just incremented by 1000 - to correspond with manual's syntax of &lt;SPAN&gt;xMin, xMax, yMin, yMax&lt;/SPAN&gt;&amp;nbsp;) but the output is always the same..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried to put all zeros in dialog window and it correctly loaded 0 objects&lt;/P&gt;&lt;P&gt;but when I try the same thing in code using &lt;SPAN style="color: #3d3d3d; font-weight: normal;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;0,0,0,0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-weight: normal;"&gt;]&lt;/SPAN&gt; it still loads all&amp;nbsp;&lt;SPAN&gt;490 objects and it should load 0 objects instead&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;any help appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 14:47:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551676#M7437</guid>
      <dc:creator>MarekDekys</dc:creator>
      <dc:date>2017-05-24T14:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551677#M7438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"@param env: The spatial envelope with syntax (xMin, xMax, yMin, yMax). (default = None). [sequence of float]"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried entering the values as a tuple instead of a list in the parameters?&amp;nbsp; Not sure it makes a difference, but the example does show it as a tuple not a list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 16:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551677#M7438</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2017-05-24T16:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551678#M7439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian, thanks for a quick reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried tuple with zeros using code below (hope it's tuple)&amp;nbsp;to force it not to import anything (to check that it works) but looks like it doesn't work because it still exports everything instead of empty layer with 0 objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;settings.setImportQueryAndEnvelope("OBJECTID &amp;gt; 0", &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;(0.0,0.0,0.0,0.0)&lt;/STRONG&gt;&lt;/SPAN&gt; ,"NORTH_WEST")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what they mean by a&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;STRONG&gt;[sequence of float]&lt;/STRONG&gt; - but I found another location in manual where it uses&amp;nbsp;&lt;STRONG&gt;[sequence of float&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; &amp;nbsp;and it is defined like a [val,val,val,val] but maybe i'm mistaken:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;A href="http://127.0.0.1:60435/help/index.jsp?topic=%2Fcom.procedural.cityengine.help%2Fhtml%2Fmanual%2Fpython%2Fjscripting%2Fjscripting.CE.html&amp;amp;anchor=CE-setAttributeLayerExtents"&gt;setAttributeLayerExtents(self, layer, extents)&lt;/A&gt;&lt;BR /&gt;&lt;TABLE border="0" cellpadding="2" cellspacing="0" summary="section" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;@param extents: An list of four floating point values. &lt;STRONG&gt;[sequence of float]&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;ce.setAttributeLayerExtents(l, &lt;STRONG&gt;[0,20,3000,4000]&lt;/STRONG&gt;)&lt;TABLE border="0" cellpadding="2" cellspacing="0" summary="section" width="100%"&gt;&lt;TBODY&gt;&lt;TR style="height: 17px;"&gt;&lt;TD style="height: 17px;" width="100%"&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;any help would be appreciated&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 08:35:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551678#M7439</guid>
      <dc:creator>MarekDekys</dc:creator>
      <dc:date>2017-05-25T08:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551679#M7440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you made sure to not only set the envelope and query, but make sure it is being applied in the settings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on your screenshot there is a Boolean to actually use the query and envelope values you put in, which I would imagine equates to getUseSelectionQueryAndSpatialEnvelope() method mentioned in the help.&amp;nbsp; You are probably writing your envelope parameters correctly, its just not being applied and you need to set that value to True.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be nice if there was better help examples on that documention link for FGDB settings for CE import.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 13:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551679#M7440</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2017-05-25T13:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551680#M7441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I am using&amp;nbsp;settings.setUseSelectionQueryAndSpatialEnvelope(True). see the code below: (same as in screenshot above)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the sql selection query works fine (i can set &lt;SPAN style="background-color: #f6f6f6;"&gt;OBJECTID &amp;lt; 101 to import only first 100 objects.. etc..&lt;/SPAN&gt;) but it ignores the rest :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;from scripting import *&lt;/P&gt;&lt;P&gt;input_location = "_input_buildings_gdb/test_small.gdb"&lt;BR /&gt;ce = CE()# get a CityEngine instance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if __name__ == '__main__':&lt;BR /&gt; settings = FGDBImportSettings()&lt;BR /&gt; settings.setImportAndMapAttributes(True)&lt;BR /&gt;&lt;STRONG&gt;settings.setUseSelectionQueryAndSpatialEnvelope(True)&lt;/STRONG&gt;&lt;BR /&gt; settings.setImportQueryAndEnvelope("OBJECTID &amp;gt; 0", (0.0,0.0,0.0,0.0) ,"NORTH_WEST")&lt;BR /&gt; ce.importFile(ce.toFSPath(input_location), settings)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 14:11:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551680#M7441</guid>
      <dc:creator>MarekDekys</dc:creator>
      <dc:date>2017-05-25T14:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551681#M7442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently its too early and my reading comprehension is not what it needs to be...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/TFuchs-esristaff"&gt;TFuchs-esristaff&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 14:35:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551681#M7442</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2017-05-25T14:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551682#M7443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marek,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the GIS Side, would it be too much to perhaps just depend on the SQL functionality? I mean if you want to define zones for import, you could just have features within a grid boundary (or census block), be specified by a SQL query? Sometimes I just make the edits on the GIS side to get a smooth pipeline into CE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share the exact projection of the data you are importing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also on the python side, I might be missing something, but does the result change if you specify the specific file path/name of the FC you are trying to import using the setFile setting? (I don't use this function a lot, so it might be a silly question).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A name="FGDBImportSettings-setFile" style="color: #007c00; text-decoration: underline;"&gt;&lt;/A&gt;&lt;STRONG&gt;setFile&lt;/STRONG&gt;(self, stringValue)&lt;TT&gt;Sets&amp;nbsp;File&amp;nbsp;field.&amp;nbsp;&lt;BR /&gt;@param&amp;nbsp;stringValue:&amp;nbsp;the&amp;nbsp;new&amp;nbsp;value.&amp;nbsp;[str]&lt;BR /&gt;&lt;BR /&gt;&lt;/TT&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 21:34:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551682#M7443</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2017-05-25T21:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551683#M7444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I can use some SQL query to select only objects that have only certain cooridnates (that fit into boundig box) like:&lt;/P&gt;&lt;P&gt;SELECT * WHERE "OBJECTID &amp;gt; 0 AND&lt;STRONG&gt; X &amp;gt; 0 AND X&amp;lt;100 AND Y&amp;gt;0 AND Y&amp;lt;100&lt;/STRONG&gt;" that would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the problem is I don't know if this is possible and the code above doesn't work for me because fields X,Y are not defined as a table (unlike OBJECTID which is defined as a field/table) and there are no fields/tables defined in gdb that contain information about position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using UTM 32N projection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also rewritten the code to use &lt;STRONG&gt;getFile/&lt;/STRONG&gt;&lt;STRONG&gt;setFile &lt;/STRONG&gt;from what I understood from your reply&amp;nbsp;but it works and acts the same as the code before:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;from scripting import *&lt;/P&gt;&lt;P&gt;input_location = "_input_buildings_gdb/test_small.gdb"&lt;BR /&gt;ce = CE()# get a CityEngine instance&lt;/P&gt;&lt;P&gt;if __name__ == '__main__':&lt;BR /&gt; settings = FGDBImportSettings()&lt;BR /&gt; settings.setImportAndMapAttributes(True)&lt;BR /&gt; settings.setUseSelectionQueryAndSpatialEnvelope(True)&lt;BR /&gt;&lt;STRONG&gt;settings.setFile&lt;/STRONG&gt;(ce.toFSPath(input_location))&lt;BR /&gt; settings.setImportQueryAndEnvelope("OBJECTID &amp;gt; 0" , (0.0,0.0,0.0,0.0) ,"NORTH_WEST")&lt;BR /&gt; ce.importFile(&lt;STRONG&gt;settings.getFile()&lt;/STRONG&gt;,settings)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody can share any code example about setting spatial envelope via setImportQueryAndEnvelope I would be grateful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 08:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551683#M7444</guid>
      <dc:creator>MarekDekys</dc:creator>
      <dc:date>2017-05-26T08:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551684#M7445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marek,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking more along the lines of creating a fish net or selecting specifically the data you want to import and adding a field that you can use to flag for it. So you would select the relevant study area in GIS, add an attribute associated with it and then use a SQL query like "INSIDE_STUDY_AREA=1" based on your new field. This is not using the spatial envelope but might be a way to achieve the same thing. You could also &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/how-create-fishnet-works.htm"&gt;use a fish net if you need to import areas&lt;/A&gt; in small batches (spatial join the fish net IDs to your &amp;nbsp;data for example and then select based the fish net ID).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;CE can be odd on some projections. Are you providing spatial envelopes appropriate to your projection? I try to use web mercator (auxiliary sphere) when importing into CE once if the data is not getting imported as I thought it should. It might change the result.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I thought the setFile/getFile paths need to be the full feature class path. In ArcPy, a specific feature class for example is set up as : "FolderPath/MyFGDB.gdb/SomeFeatureClass". I was curious if maybe this was a necessary setting for spatial envelop but it was just a guess.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I will try to test this on my end later next week if no one replies Marek.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 22:20:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551684#M7445</guid>
      <dc:creator>deleted-user-Q-Ku9J1BlYDK</dc:creator>
      <dc:date>2017-05-26T22:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551685#M7446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for in-depth reply.&amp;nbsp;I agree that a possible&amp;nbsp;workaround would be by adding flags to gdb&amp;nbsp;and then use SQL to cut into regular grid/fishnet but unfortunatelly I don't have access to any good GIS tool from esri.. I only have global mapper which has problems processing .gdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;about setting up correct projection - There is no option in dialog to set the projection nor is in the documentation about&amp;nbsp;&lt;/P&gt;&lt;P&gt;FGDBImportSettings() so I believe it will reproject it to the current projection of the scene (which works perfectly I have .gdb files in LV95 and it reprojects them correctly into WGS84 UTM 32N) - the problem is that I cannot force it to import 0 objects if I set spatial envelope like (0,0,0,0) to confirm that this command is working - It always imports everything just like it is ignoring this command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;not sure what you mean about setFile/getFile. can you provide me with a code sample? (but I think this is not the case ) I don't know is CE uses&amp;nbsp;&lt;SPAN&gt;ArcPy or it is just a regular python..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have other workaround by processing everything entirely in CE (without need of other GIS tools that I don't have) which&amp;nbsp;I will use if everything else fails but it is a slower proces for milions of files..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just hoping that this was only a small issue (in syntax misunderstanding in&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;setImportQueryAndEnvelope command ) that can be solved by somebody providing me a correct code sample but it turns out it won't be so easy as it seems like nobody is using this command.. or it is a bug so I will report it to esri if nobody answers about the correct syntax of this command&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 08:39:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551685#M7446</guid>
      <dc:creator>MarekDekys</dc:creator>
      <dc:date>2017-05-29T08:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551686#M7447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for reporting this issue. I can reproduce it and need to work with a developer on this. &lt;BR /&gt;At this time it is unclear if it can be resolved by changing the command alone. I'll keep you posted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 16:06:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551686#M7447</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2017-05-29T16:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551687#M7448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: &lt;BR /&gt;Sadly, I have to confirm that there is a bug in the spacial envelope. Any entered values are not set. The development team is working on a fix.&lt;BR /&gt;At this point only the SQL queries can be used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 14:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551687#M7448</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2017-05-30T14:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551688#M7449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for confirming that this is a bug. It sounds like a SQL fish net is the only alternative. The only other alternatives is can think of is using OSGEO command line to potentially process the data before hand or transform it into a shapefile for editing in Global Mapper (which also is an imperfect process).&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.esri.com/migrated-users/237307"&gt;Marek&lt;/A&gt;&amp;nbsp;if you can't do a GIS fix, your alternative might be the best approach. Thanks for reporting this.&amp;nbsp;&lt;BR /&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 02:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551688#M7449</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2017-05-31T02:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551689#M7450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's bad news that this is a bug, &amp;nbsp;I will have to recreate spatial envelope in python in&amp;nbsp;CE then. And doing that I found another issue -&amp;gt;&amp;nbsp;&lt;A href="https://community.esri.com/message/690436-no-more-handles-swt-error-while-batch-processing-gdb-in-python"&gt;https://community.esri.com/message/690436-no-more-handles-swt-error-while-batch-processing-gdb-in-python&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you have any estimation when it will be fixed?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 08:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551689#M7450</guid>
      <dc:creator>MarekDekys</dc:creator>
      <dc:date>2017-05-31T08:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551690#M7451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good News! The issue has been resolved in CityEngine 2017.1&lt;/P&gt;&lt;P&gt;This version is scheduled to be released in November.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 12:13:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551690#M7451</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2017-10-26T12:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: [PYTHON]  .gdb import - spatial envelope settings not working</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551691#M7452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great news Thomas!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 14:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-gdb-import-spatial-envelope-settings-not/m-p/551691#M7452</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2017-10-26T14:10:59Z</dc:date>
    </item>
  </channel>
</rss>

