<?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: How do you reproject a featureset without creating a featureclass? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-do-you-reproject-a-featureset-without-creating/m-p/186353#M6315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well I suppose an in_memory featureclass is OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; latlong.py
# get a point from NZTM and convert to lat/long
#

import arcgisscripting

gp = arcgisscripting.create(9.3)

inFeatSet = gp.GetParameter(0)
gp.OverwriteOutput = True
inFeatSet.Save("in_memory/pointer")

row = gp.SearchCursor("in_memory/pointer","","c:/arcgis/nzgd2000.prj").next()
lat = row.shape.centroid.Y
long = row.shape.centroid.X
gp.AddMessage(str(lat)+" "+str(long))
del row&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 09:26:29 GMT</pubDate>
    <dc:creator>KimOllivier</dc:creator>
    <dc:date>2021-12-11T09:26:29Z</dc:date>
    <item>
      <title>How do you reproject a featureset without creating a featureclass?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-you-reproject-a-featureset-without-creating/m-p/186352#M6314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you use the tool form setting to collect an interactive point as a featureset you get the coordinates in the current projection. I want to turn that into a WGS84 lat/long to query a web service that requires that format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I can see to do this is by setting an output projection and using a cursor to write a table, then open it up again to see what happened. But the whole point of featuresets is to avoid exactly that sort of inefficiency.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There (was), IS an AML function to project a point returned by &amp;amp;Getpoint &amp;amp;Map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the Workstation help snippet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;[SHOW CONVERT &amp;lt;in_units&amp;gt; &amp;lt;xy&amp;gt; &amp;lt;out_units&amp;gt;]&lt;BR /&gt;Returns the converted x,y coordinates from units in one specified coordinate space to units in another specified coordinate space. UNITS can be PAGE, MAP, PROJECTEDMAP, or GRAPH. The respective MAPEXTENT, MAPPROJECTION and GRAPHEXTENT must be set first.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jul 2010 09:17:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-you-reproject-a-featureset-without-creating/m-p/186352#M6314</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2010-07-28T09:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reproject a featureset without creating a featureclass?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-you-reproject-a-featureset-without-creating/m-p/186353#M6315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well I suppose an in_memory featureclass is OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; latlong.py
# get a point from NZTM and convert to lat/long
#

import arcgisscripting

gp = arcgisscripting.create(9.3)

inFeatSet = gp.GetParameter(0)
gp.OverwriteOutput = True
inFeatSet.Save("in_memory/pointer")

row = gp.SearchCursor("in_memory/pointer","","c:/arcgis/nzgd2000.prj").next()
lat = row.shape.centroid.Y
long = row.shape.centroid.X
gp.AddMessage(str(lat)+" "+str(long))
del row&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:26:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-you-reproject-a-featureset-without-creating/m-p/186353#M6315</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2021-12-11T09:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reproject a featureset without creating a featureclass?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-do-you-reproject-a-featureset-without-creating/m-p/186354#M6316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which gave me the idea to try a cursor on a featureset, and that worked too!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# latlong.py
# get a point from NZTM and convert to lat/long
#
import arcgisscripting
gp = arcgisscripting.create(9.3)
inFeatSet = gp.GetParameter(0)
row = gp.SearchCursor(inFeatSet,"","c:/arcgis/nzgd2000.prj").next()
lat = row.shape.centroid.Y
long = row.shape.centroid.X
gp.AddMessage(str(lat)+" "+str(long))
del row&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:26:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-do-you-reproject-a-featureset-without-creating/m-p/186354#M6316</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2021-12-11T09:26:32Z</dc:date>
    </item>
  </channel>
</rss>

