<?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: ArcPy imported points not displaying in correct location in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184021#M14154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, I cannot see anything obviously wrong with your code so it might be something about your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you verify that your longValue and latValue variables contain what you would expect for example using a print statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is your code where the inserting uses the InsertCursor in the data access module (but haven't tested it). If you have ArcGIS 10.1 and above, try it.&lt;/P&gt;&lt;P&gt;Filip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14083788437364598" jivemacro_uid="_14083788437364598" modifiedtitle="true"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;
&lt;P&gt;out_path = r"M:\work\nettoc\MAS201300311\PythonModule\import_data"&lt;/P&gt;
&lt;P&gt;pointFC = r"M:\work\nettoc\MAS201300311\PythonModule\import_data\POI.shp"&lt;/P&gt;
&lt;P&gt;geoType = "POINT"&lt;/P&gt;
&lt;P&gt;StructurePoints = open(r"M:\work\nettoc\MAS201300311\PythonModule\import_data\TEST2.txt", "r")&lt;/P&gt;
&lt;P&gt;coordList = []&lt;/P&gt;
&lt;P&gt;# Parse the exported text file and create a list that Python can read&lt;/P&gt;
&lt;P&gt;# figure out position of the lat and long in the header&lt;/P&gt;
&lt;P&gt;headerLine = StructurePoints.readline()&lt;/P&gt;
&lt;P&gt;valueList = headerLine.split(",")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;latValueIndex = valueList.index('"SURF_LATITUDE"')&lt;/P&gt;
&lt;P&gt;longValueIndex = valueList.index('"SURF_LONGITUDE"')&lt;/P&gt;
&lt;P&gt;planValueIndex = valueList.index('"PLAN"')&lt;/P&gt;
&lt;P&gt;typeValueIndex = valueList.index('"PLAN_SITE_TYPE"')&lt;/P&gt;
&lt;P&gt;ancRadiusValueIndex = valueList.index('"ANCHOR_RADIUS"')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Read line in the file and append to coordinate list&lt;/P&gt;
&lt;P&gt;for line in StructurePoints.readlines():&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # need to say what the seperating value is, in this case its the ","&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; segmentedLine = line.split(",")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # only append the value (index) indicated... we could have used "segmentedline[2]", but if lat changes position in the header list&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # we would have to change the index number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; coordList.append([segmentedLine[planValueIndex], segmentedLine[typeValueIndex], segmentedLine[ancRadiusValueIndex], segmentedLine[longValueIndex], segmentedLine[latValueIndex]])&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Loop and delete any existing features in the shapefile&lt;/P&gt;
&lt;P&gt;rows = arcpy.UpdateCursor(pointFC)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for row in rows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows.deleteRow(row)&lt;/P&gt;
&lt;P&gt;del rows, row&lt;/P&gt;
&lt;P&gt;print "Prepairing shape file..."&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Loop through new created coordlist and insert the the points in the existing shape file&lt;/P&gt;
&lt;P&gt;with arcpy.da.InsertCursor(pointFC, ["SHAPE@", "DESCR", "ANCHOR_RAD"]) as rowInserter:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Loop through each coordinate in the list&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for coordinate in coordList:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Grab a set of coordinates from the list and assign them to a point obejct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; longValue = float(coordinate[3])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; latValue = float(coordinate[4])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointGeometry = arcpy.Point(longValue,latValue)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; descr = coordinate[0] + ", " + coordinate[1]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; andchor_rad = coordinate[2]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newrow = [pointGeometry, descr, anchor_rad]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowInserter.insertRow(newrow)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;del rowInserter&lt;/P&gt;
&lt;P&gt;print "The following points were created"&lt;/P&gt;
&lt;P&gt;print coordList&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2014 16:28:14 GMT</pubDate>
    <dc:creator>FilipKrál</dc:creator>
    <dc:date>2014-08-18T16:28:14Z</dc:date>
    <item>
      <title>ArcPy imported points not displaying in correct location</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184019#M14152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using Python to read the points and add them to an existing shape file. The problem is that the all the points are in the same location and no where the location they are supposed to be. NOTE: If I calculate the X and Y fields, all the correct coordinates are displayed. If export the data and import back in, the points are in the correct location. Does anyone have any suggestions on fixing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14083773696857911 jive_text_macro" jivemacro_uid="_14083773696857911"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;arcpy.overwriteoutput = True&lt;/P&gt;
&lt;P&gt;out_path = r"M:\work\nettoc\MAS201300311\PythonModule\import_data"&lt;/P&gt;
&lt;P&gt;pointFC = r"M:\work\nettoc\MAS201300311\PythonModule\import_data\POI.shp"&lt;/P&gt;
&lt;P&gt;geoType = "POINT"&lt;/P&gt;
&lt;P&gt;StructurePoints = open(r"M:\work\nettoc\MAS201300311\PythonModule\import_data\TEST2.txt", "r")&lt;/P&gt;
&lt;P&gt;coordList = []&lt;/P&gt;
&lt;P&gt;# Parse the exported text file and create a list that Python can read&lt;/P&gt;
&lt;P&gt;# figure out position of the lat and long in the header&lt;/P&gt;
&lt;P&gt;headerLine = StructurePoints.readline()&lt;/P&gt;
&lt;P&gt;valueList = headerLine.split(",")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;latValueIndex = valueList.index('"SURF_LATITUDE"')&lt;/P&gt;
&lt;P&gt;longValueIndex = valueList.index('"SURF_LONGITUDE"')&lt;/P&gt;
&lt;P&gt;planValueIndex = valueList.index('"PLAN"')&lt;/P&gt;
&lt;P&gt;typeValueIndex = valueList.index('"PLAN_SITE_TYPE"')&lt;/P&gt;
&lt;P&gt;ancRadiusValueIndex = valueList.index('"ANCHOR_RADIUS"')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Read line in the file and append to coordinate list&lt;/P&gt;
&lt;P&gt;for line in StructurePoints.readlines():&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # need to say what the seperating value is, in this case its the ","&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; segmentedLine = line.split(",")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # only append the value (index) indicated... we could have used "segmentedline[2]", but if lat changes position in the header list&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # we would have to change the index number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; coordList.append([segmentedLine[planValueIndex], segmentedLine[typeValueIndex], segmentedLine[ancRadiusValueIndex], segmentedLine[longValueIndex], segmentedLine[latValueIndex]])&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Loop and delete any existing features in the shapefile&lt;/P&gt;
&lt;P&gt;rows = arcpy.UpdateCursor(pointFC)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for row in rows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows.deleteRow(row)&lt;/P&gt;
&lt;P&gt;del rows, row&lt;/P&gt;
&lt;P&gt;print "Prepairing shape file..."&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Loop through new created coordlist and insert the the points in the existing shape file&lt;/P&gt;
&lt;P&gt;rowInserter = arcpy.InsertCursor(pointFC)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;#Loop through each coordinate in the list&lt;/P&gt;
&lt;P&gt;for coordinate in coordList:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Grab a set of coordinates from the list and assign them to a point obejct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; longValue = float(coordinate[3])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; latValue = float(coordinate[4])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointGeometry = arcpy.Point(longValue,latValue)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # use the insert cursor to put in the point object in the feature class&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newPoint = rowInserter.newRow()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newPoint.Shape = pointGeometry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newPoint.DESCR = coordinate[0] + ", " + coordinate[1]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newPoint.ANCHOR_RAD = coordinate[2]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowInserter.insertRow(newPoint)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;del rowInserter&lt;/P&gt;
&lt;P&gt;print "The following points were created"&lt;/P&gt;
&lt;P&gt;print coordList&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 15:59:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184019#M14152</guid>
      <dc:creator>NettoChad</dc:creator>
      <dc:date>2014-08-18T15:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy imported points not displaying in correct location</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184020#M14153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neto...what was the coordinate system of the shapefile that you are adding the points to?&amp;nbsp; are you adding this file to its own dataframe after running the script or is the file in arcmap already?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 16:15:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184020#M14153</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-18T16:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy imported points not displaying in correct location</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184021#M14154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, I cannot see anything obviously wrong with your code so it might be something about your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you verify that your longValue and latValue variables contain what you would expect for example using a print statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is your code where the inserting uses the InsertCursor in the data access module (but haven't tested it). If you have ArcGIS 10.1 and above, try it.&lt;/P&gt;&lt;P&gt;Filip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14083788437364598" jivemacro_uid="_14083788437364598" modifiedtitle="true"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;
&lt;P&gt;out_path = r"M:\work\nettoc\MAS201300311\PythonModule\import_data"&lt;/P&gt;
&lt;P&gt;pointFC = r"M:\work\nettoc\MAS201300311\PythonModule\import_data\POI.shp"&lt;/P&gt;
&lt;P&gt;geoType = "POINT"&lt;/P&gt;
&lt;P&gt;StructurePoints = open(r"M:\work\nettoc\MAS201300311\PythonModule\import_data\TEST2.txt", "r")&lt;/P&gt;
&lt;P&gt;coordList = []&lt;/P&gt;
&lt;P&gt;# Parse the exported text file and create a list that Python can read&lt;/P&gt;
&lt;P&gt;# figure out position of the lat and long in the header&lt;/P&gt;
&lt;P&gt;headerLine = StructurePoints.readline()&lt;/P&gt;
&lt;P&gt;valueList = headerLine.split(",")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;latValueIndex = valueList.index('"SURF_LATITUDE"')&lt;/P&gt;
&lt;P&gt;longValueIndex = valueList.index('"SURF_LONGITUDE"')&lt;/P&gt;
&lt;P&gt;planValueIndex = valueList.index('"PLAN"')&lt;/P&gt;
&lt;P&gt;typeValueIndex = valueList.index('"PLAN_SITE_TYPE"')&lt;/P&gt;
&lt;P&gt;ancRadiusValueIndex = valueList.index('"ANCHOR_RADIUS"')&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Read line in the file and append to coordinate list&lt;/P&gt;
&lt;P&gt;for line in StructurePoints.readlines():&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # need to say what the seperating value is, in this case its the ","&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; segmentedLine = line.split(",")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # only append the value (index) indicated... we could have used "segmentedline[2]", but if lat changes position in the header list&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # we would have to change the index number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; coordList.append([segmentedLine[planValueIndex], segmentedLine[typeValueIndex], segmentedLine[ancRadiusValueIndex], segmentedLine[longValueIndex], segmentedLine[latValueIndex]])&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Loop and delete any existing features in the shapefile&lt;/P&gt;
&lt;P&gt;rows = arcpy.UpdateCursor(pointFC)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for row in rows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows.deleteRow(row)&lt;/P&gt;
&lt;P&gt;del rows, row&lt;/P&gt;
&lt;P&gt;print "Prepairing shape file..."&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# Loop through new created coordlist and insert the the points in the existing shape file&lt;/P&gt;
&lt;P&gt;with arcpy.da.InsertCursor(pointFC, ["SHAPE@", "DESCR", "ANCHOR_RAD"]) as rowInserter:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Loop through each coordinate in the list&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for coordinate in coordList:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Grab a set of coordinates from the list and assign them to a point obejct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; longValue = float(coordinate[3])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; latValue = float(coordinate[4])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointGeometry = arcpy.Point(longValue,latValue)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; descr = coordinate[0] + ", " + coordinate[1]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; andchor_rad = coordinate[2]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newrow = [pointGeometry, descr, anchor_rad]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowInserter.insertRow(newrow)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;del rowInserter&lt;/P&gt;
&lt;P&gt;print "The following points were created"&lt;/P&gt;
&lt;P&gt;print coordList&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 16:28:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184021#M14154</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2014-08-18T16:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy imported points not displaying in correct location</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184022#M14155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this will answer the question but...&lt;/P&gt;&lt;P&gt;When creating the geometry object, it is vital (esp with GCS coords) to provide a spatial reference as well.&lt;/P&gt;&lt;P&gt;So line 53 above could be changed to :&lt;/P&gt;&lt;P&gt;pointGeometry = arcpy.PointGeometry(arcpy.Point(longValue,latValue), SR)&lt;/P&gt;&lt;P&gt;Or something like that anyway. Get the SR from the Describe object of the created feature class.&lt;/P&gt;&lt;P&gt;This has been a source of some confusion for me in the past in that arcpy has 2 sorts of "point" geometries.&lt;/P&gt;&lt;P&gt;Those created by arcpy.Point(X,Y) which can be inserted into polyline or polygon geometries (at which point the SR is applied), and those created by arcpy.PointGeometry(arcpy.Point([X,Y]), SR). The help files are not particularly good at explaining the difference.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 10:49:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184022#M14155</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2014-08-19T10:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy imported points not displaying in correct location</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184023#M14156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The shapefile is in the ........... coordinate system&lt;/P&gt;&lt;P&gt;The file is already in a MXD file, the script deletes all existing points and adds the new ones.&lt;/P&gt;&lt;P&gt;Thank your responding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 15:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184023#M14156</guid>
      <dc:creator>NettoChad</dc:creator>
      <dc:date>2014-08-19T15:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy imported points not displaying in correct location</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184024#M14157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/29681"&gt;Filip Král&lt;/A&gt;‌ I am running ArcGIS 10.0, so Im not able to use the "new" insert cursor (da). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 15:28:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184024#M14157</guid>
      <dc:creator>NettoChad</dc:creator>
      <dc:date>2014-08-19T15:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy imported points not displaying in correct location</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184025#M14158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry its in the "NAD_1927_StatePlane_Louisiana_Offshore_FIPS_1703" coordinate system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 15:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184025#M14158</guid>
      <dc:creator>NettoChad</dc:creator>
      <dc:date>2014-08-19T15:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy imported points not displaying in correct location</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184026#M14159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys for the help, It ended up being the projection of the shapefile I was modifying. It was different from the mxd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Neil Ayres...thank your for your suggestion, I ended up using "&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 12px; background-color: #f3f3f3;"&gt;arcpy.PointGeometry&lt;/SPAN&gt;" and adding a Describe variable in the beginning of the code. I like the fact that it adds the SR to the points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 15:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-imported-points-not-displaying-in-correct/m-p/184026#M14159</guid>
      <dc:creator>NettoChad</dc:creator>
      <dc:date>2014-08-19T15:53:28Z</dc:date>
    </item>
  </channel>
</rss>

