<?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: CreateFeatureclass Display Issue in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003324#M34447</link>
    <description>&lt;P&gt;You need to project your points if there are originally in one coordinate system and you want to see them in another... see this simple example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt; import arcpy
# Spatial reference set to GCS_WGS_1984
spatial_reference = arcpy.SpatialReference(4326)
pnt = arcpy.Point(-75.5, 45.5)
pnt_geometry = arcpy.PointGeometry(pnt, spatial_reference)
# change spatial reference
SR = "NAD 1983 CSRS MTM  9"
pnt_prj = pnt_geometry.projectAs(SR)

pnt_geometry[0]
&amp;lt;Point (-75.5, 45.5, #, #)&amp;gt;

pnt_prj[0]
&amp;lt;Point (382950.18492149055, 5040495.111721899, #, #)&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this link for more information...&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/classes/pointgeometry.htm" target="_self"&gt;pointgeometry&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Nov 2020 02:08:36 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2020-11-20T02:08:36Z</dc:date>
    <item>
      <title>CreateFeatureclass Display Issue</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003242#M34442</link>
      <description>&lt;P&gt;[Edited to correct mistype] I am doing a bit of coding with Python. Here is the relevant bit of unremarkable code to create a polygon object.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sr = 4269&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;polygon = arcpy.Polygon(array,sr)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;bound_box = "newpoly3"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;arcpy.management.CreateFeatureclass(database,bound_box,"POLYGON","","","",sr)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;with arcpy.da.InsertCursor(bound_box,"SHAPE@") as cursor:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;cursor.insertRow([polygon])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This code reliably works when I specify the spatial reference in a projected coordinate system, e.g. 2249. However, when I set the spatial reference in a geographic coordinate system, e.g. 4269, there's an issue: the shape doesn't display. I went to Table of Contents --&amp;gt; newpoly3.shp --&amp;gt; Design --&amp;gt; Fields and checked the "Shape" box, but the shape still doesn't show up on my map. It's clearly been created; the attribute table shows an area and length. It just doesn't display. Anyone know what's up with it?&lt;/P&gt;&lt;P&gt;Here is the entire bit of code. The goal is to play with Python a bit and to form polygon from the x-y extent of a shapefile of points.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmandaHalperin_0-1605826251586.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/619i5AF506833AD3F96A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmandaHalperin_0-1605826251586.png" alt="AmandaHalperin_0-1605826251586.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmandaHalperin_2-1605826314929.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/621i08C76FEDC0F50193/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmandaHalperin_2-1605826314929.png" alt="AmandaHalperin_2-1605826314929.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmandaHalperin_3-1605826356693.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/622i298A4B125E60AD99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmandaHalperin_3-1605826356693.png" alt="AmandaHalperin_3-1605826356693.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 00:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003242#M34442</guid>
      <dc:creator>AmandaHalperin</dc:creator>
      <dc:date>2020-11-20T00:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: CreateFeatureclass Display Issue</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003246#M34444</link>
      <description>&lt;P&gt;from your examples... one is string, the other number.... which one worked?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 23:02:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003246#M34444</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-11-19T23:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: CreateFeatureclass Display Issue</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003293#M34445</link>
      <description>&lt;P&gt;Oh, shoot. I pasted the wrong code there. Numbers worked; I never ran it with a string.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 00:18:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003293#M34445</guid>
      <dc:creator>AmandaHalperin</dc:creator>
      <dc:date>2020-11-20T00:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: CreateFeatureclass Display Issue</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003324#M34447</link>
      <description>&lt;P&gt;You need to project your points if there are originally in one coordinate system and you want to see them in another... see this simple example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt; import arcpy
# Spatial reference set to GCS_WGS_1984
spatial_reference = arcpy.SpatialReference(4326)
pnt = arcpy.Point(-75.5, 45.5)
pnt_geometry = arcpy.PointGeometry(pnt, spatial_reference)
# change spatial reference
SR = "NAD 1983 CSRS MTM  9"
pnt_prj = pnt_geometry.projectAs(SR)

pnt_geometry[0]
&amp;lt;Point (-75.5, 45.5, #, #)&amp;gt;

pnt_prj[0]
&amp;lt;Point (382950.18492149055, 5040495.111721899, #, #)&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this link for more information...&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/classes/pointgeometry.htm" target="_self"&gt;pointgeometry&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 02:08:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003324#M34447</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-11-20T02:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: CreateFeatureclass Display Issue</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003435#M34461</link>
      <description>&lt;P&gt;I think I'm not explaining clearly. Visual illustration:&lt;/P&gt;&lt;P&gt;The original layer file has two described coordinate systems. The projected one is 2249.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmandaHalperin_1-1605882619253.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/668i83791648FBBC9976/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmandaHalperin_1-1605882619253.png" alt="AmandaHalperin_1-1605882619253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The geographic coordinate system is 4269.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmandaHalperin_2-1605882685849.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/670iCA1BB7DEEB67AB93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmandaHalperin_2-1605882685849.png" alt="AmandaHalperin_2-1605882685849.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;"newpoly1.shp" uses the projected coordinate system 2249 and shows up on the map. Here is the Zoom to layer of "newpoly1.shp".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmandaHalperin_0-1605882470879.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/666i8FAED80D0F9AC5DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmandaHalperin_0-1605882470879.png" alt="AmandaHalperin_0-1605882470879.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;"newpoly3.shp" uses the geographic coordinate system 4269. (Same code, only difference is the number). Below is the "Zoom to layer" for "newpoly3.shp". As you can see (or not see), there is no shape.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmandaHalperin_3-1605882820787.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/671iCD259A76AB48E8CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmandaHalperin_3-1605882820787.png" alt="AmandaHalperin_3-1605882820787.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The shape field is checked to be visible.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmandaHalperin_4-1605882848333.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/672i7550B7C3B557E3D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmandaHalperin_4-1605882848333.png" alt="AmandaHalperin_4-1605882848333.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I want to know... is why newpoly3.shp isn't showing up. Is it a matter of reprojection? I don't quite understand why, if so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 14:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003435#M34461</guid>
      <dc:creator>AmandaHalperin</dc:creator>
      <dc:date>2020-11-20T14:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: CreateFeatureclass Display Issue</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003456#M34465</link>
      <description>&lt;P&gt;&lt;EM&gt;The original layer file has two described coordinate systems.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You have a layer... tree_invt ... it can only have one coordinate system.&amp;nbsp;&lt;BR /&gt;It is either projected (which it appears to be) or unprojected (it can't be both).&amp;nbsp;&lt;BR /&gt;Simply "defining" the coordinate system as something else, just makes it wrong.&amp;nbsp;&lt;BR /&gt;You have to "project" it using that tool to actually physically change the coordinates.&amp;nbsp;&lt;BR /&gt;That is what my example shows, how you project from one coordinate system to another.&amp;nbsp;&lt;BR /&gt;In order to do that, it has to be "defined" correctly in the first place&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 15:08:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1003456#M34465</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-11-20T15:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: CreateFeatureclass Display Issue</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1004089#M34493</link>
      <description>&lt;P&gt;Hi Dan, I'm still a bit lost, but I appreciate the explanation and code--it does work when I specify a projection!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 19:48:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/createfeatureclass-display-issue/m-p/1004089#M34493</guid>
      <dc:creator>AmandaHalperin</dc:creator>
      <dc:date>2020-11-23T19:48:03Z</dc:date>
    </item>
  </channel>
</rss>

