<?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: Using Python, can't get Batch Project outputs to save in a feature dataset in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458365#M15451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the excellent suggestion James. I'm going to log your suggestion. As Batch Project tool is deprected in 10.0 and onward, we'll try to make the changes to Project tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2011 16:44:19 GMT</pubDate>
    <dc:creator>NobbirAhmed</dc:creator>
    <dc:date>2011-09-16T16:44:19Z</dc:date>
    <item>
      <title>Using Python, can't get Batch Project outputs to save in a feature dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458360#M15446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When attempting to batch project in ArcGIS (using either arcpy or arcgisscripting), I cannot get my geoprocessing results to drop into the feature dataset that I specify. The results instead are dropped in the root of the Geodatabase (*.mdb).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's an abbreviated version of what I have so far:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcgisscripting, os
gp = arcgisscripting.create(9.3)

#set date
dmy = datetime.now()
currentDate = str(dmy.month) + "-" + str(dmy.day) + "-" + str(dmy.year)

outputfolder = gp.getparameterastext(0) #where we're going to drop the gdb
citydata = gp.getparameterastext(1)

gp.workspace = outputfolder
projectedfolder = os.path.join(outputfolder, "projected")
gp.CreateFolder_management(*os.path.split(projectedfolder))
gdb = "Projected_Data_" + currentDate + ".mdb"

#set coordinate system
outputCS = gp.CreateObject("SpatialReference")
outputCS.createFromFile(os.path.join(gp.getinstallinfo()['InstallDir'], "Coordinate Systems\\Geographic Coordinate Systems\\North America\\NAD 1983.prj"))
transformation = ""

gp.AddMessage("Creating City feature dataset")
gp.CreateFeatureDataset(os.path.join(projectedfolder, gdb), "City", outputCS)

gp.AddMessage("Loading in City feature classes")
arcpy.BatchProject_management(citydata, os.path.join(projectedfolder, gdb, "City"), outputCS, "", transformation)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously, the part I'm having trouble with is the Output Path in the last line. I've also hard-coded the path to the "City" feature dataset, but still drops it in the root. Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 12:35:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458360#M15446</guid>
      <dc:creator>JamesGraham</dc:creator>
      <dc:date>2011-09-14T12:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python, can't get Batch Project outputs to save in a feature dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458361#M15447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are the spatial refereces of your input data and that of the feature dataset different? Could you add this line after the call to BatchProject and see what messages are returned?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.AddMessage(gp.GetMessages())&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 17:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458361#M15447</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2011-09-14T17:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python, can't get Batch Project outputs to save in a feature dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458362#M15448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are the spatial refereces of your input data and that of the feature dataset different? Could you add this line after the call to BatchProject and see what messages are returned?&lt;BR /&gt; &lt;BR /&gt;gp.AddMessage(gp.GetMessages())&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply, NobbirAhmed.&amp;nbsp; I believe the fds and the input have the same spatial references.&amp;nbsp; Note that the outputCS variable is used for creating the new fds and also serves as the SR parameter in the BatchProject.&amp;nbsp; Inserting the gp.AddMessage(gp.GetMessages()) produced no errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FYI, I cross-posted this at gis.stackexchange and discovered that this is a known issue (with the script version only, for some reason):&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/14585/using-python-batch-project-output-wont-drop-in-a-feature-dataset-arcgis-9-3-or"&gt;http://gis.stackexchange.com/questions/14585/using-python-batch-project-output-wont-drop-in-a-feature-dataset-arcgis-9-3-or&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to the poster on gis.stackexchange, this behavior is "As Designed".&amp;nbsp; I'm a bit baffled by that, but would love hear why this is intentional.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 20:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458362#M15448</guid>
      <dc:creator>JamesGraham</dc:creator>
      <dc:date>2011-09-14T20:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python, can't get Batch Project outputs to save in a feature dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458363#M15449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes (and unfortunately) this is not implemented for Project tool (same for Batch Project as it just calls Project in a loop). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, if you want to send your output to a Feature Dataset it won't go there - instead, a standalone feature class will be created in the geodatabase containing the feature dataset. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to enforce the output to go to the Feature Dataset workspace we'd have to disable setting an output coordinate system other than that of the destination Feature Dataset's. In such a scenario, the user wouldn't have the ability to change the spatial reference (to any other projection). This would've essentially hindered the main objective of the project tool. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess, caught between two following scenarios, we decided to go for the current design (option# 2):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Let the user send the output to Feature Dataset (when the input is a feature class) without the freedom to select any spatial reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Let the user select any spatial reference by accepting the fact the output will be put in the geodatabase.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 06:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458363#M15449</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2011-09-15T06:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python, can't get Batch Project outputs to save in a feature dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458364#M15450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the excellent reply, NobbirAhmed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I now see the reasoning behind the current design of the script version of Batch Project.&amp;nbsp; This is just one man's opinion, but I think some slight modification could be made without too much heartache (easy for me to say):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; Batch project to a feature dataset with a user-specified Spatial Reference (SR) that is &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;the same as the feature dataset&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; Tool works, output placed in proper feature dataset.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; Batch project to a feature dataset with a user-specified Spatial Reference (SR) that is &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;different than that of a feature dataset&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; Tool works, but output placed in root of geodatabase&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; Warning message indicates that output was not placed in desired location&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 14:04:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458364#M15450</guid>
      <dc:creator>JamesGraham</dc:creator>
      <dc:date>2011-09-16T14:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python, can't get Batch Project outputs to save in a feature dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458365#M15451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the excellent suggestion James. I'm going to log your suggestion. As Batch Project tool is deprected in 10.0 and onward, we'll try to make the changes to Project tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 16:44:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458365#M15451</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2011-09-16T16:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python, can't get Batch Project outputs to save in a feature dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458366#M15452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;CORRECTION&lt;/STRONG&gt;&lt;SPAN&gt;: Batch Project is not deprecated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, we'll consider the suggestion for both Project abd Batch Project tools.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 16:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458366#M15452</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2011-09-22T16:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python, can't get Batch Project outputs to save in a feature dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458367#M15453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;fast forward to 2012...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't project a feature class from one dataset to another. It always places the output in the root of the output gdb.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what is the workflow designed by esri for this simple, frequent (I imagine) use case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Duarte&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 15:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458367#M15453</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2012-04-13T15:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python, can't get Batch Project outputs to save in a feature dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458368#M15454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I can't project a feature class from one dataset to another. It always places the output in the root of the output gdb.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please read posting# 4 - it states why this behavior is by design.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 15:50:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458368#M15454</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-04-13T15:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python, can't get Batch Project outputs to save in a feature dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458369#M15455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Please read posting# 4 - it states why this behavior is by design.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a college instructor, option 2 makes no sense to me (or my students) and it is inconsistent with the behavior of other tools.&amp;nbsp; For example, when I export from ArcMap to a feature dataset, I can ONLY export in the coordinate system of the feature dataset.&amp;nbsp; Most other tools seem to abide by the idea that if I want put output into a feature dataset, I understand that it will be in the coordinate system of the feature dataset because feature datasets by definition, have defined coordinate systems. We tell them that if a geographic/datum transformation is required, they need to use the Project or Batch Project tools and it is frustrating that those tools deal with feature datasets differently.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, I have an exercise where students download base data for the Olympic National Park.&amp;nbsp; The data is all in NAD_1927_UTM_Zone10N but the coordinate systems is not defined on any of the shapefiles.&amp;nbsp; There are about 25 shapefiles, so they import them into a feature dataset to define the coordinate system.&amp;nbsp; Then they can use the Project or Batch project tool to import the features to a new feature dataset, but it doesn�??t appear that they can project them into an existing feature dataset.&amp;nbsp; Instead, they Project them into scratch geodatabase and then export them into the existing feature dataset. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems like you should be able to Project or Batch Project into existing feature datasets with the understanding that the coordinate system is set by the choice of destination, the feature dataset.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 02:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458369#M15455</guid>
      <dc:creator>GregoryStewart</dc:creator>
      <dc:date>2012-10-29T02:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python, can't get Batch Project outputs to save in a feature dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458370#M15456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Gregory (and all others interested), good news is that finally we have implemented the desired behavior in 10.1 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works for Project and Batch Project tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let us know if you find any anomaly in expected behavior.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 15:06:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458370#M15456</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-10-29T15:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using Python, can't get Batch Project outputs to save in a feature dataset</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458371#M15457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;It may be a general problem, by the way.&lt;/P&gt;&lt;P&gt;Does the problem of outputting geo-processing in "Feature Dataset" still remains?&lt;/P&gt;&lt;P&gt;I am failing to output result of&amp;nbsp; "arcpy.JSONToFeatures_conversion" tool in "Feature Dataset" in ArcMap 10.3 (Advanced). When i run script, output goes directly into the parent "Geodatabase" though the projection of that "Feature Dataset" is the exact of the output of that tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shariful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 17:25:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-python-can-t-get-batch-project-outputs-to/m-p/458371#M15457</guid>
      <dc:creator>SharifulIslam</dc:creator>
      <dc:date>2015-08-15T17:25:30Z</dc:date>
    </item>
  </channel>
</rss>

