<?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: Variable question in Transportation Questions</title>
    <link>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372490#M1233</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: luke.kaim&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That still does not work though. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Project (5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Project_management(test, APPROACH_ContourLine_Project_shp, "PROJCS['NAD_1983_UTM_Zone_19N',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-69.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]", "NAD_1983_To_WGS_1984_1", "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2011 20:18:30 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2011-12-06T20:18:30Z</dc:date>
    <item>
      <title>Variable question</title>
      <link>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372485#M1228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: luke.kaim&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting errors when I run this bit of code and can not figure out why. Is this because of the variables I am using? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy, sys, os, re, time
from arcpy import env
from arcpy.sa import *
import arcpy
print "Start time = " + time.asctime()
arcpy.env.overwriteOutput = True
arcpy.env.workspace = "C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\test7"

# Check out any necessary licenses
arcpy.CheckOutExtension("spatial")




APPROACH_ContourLine_Clip="C:\\Users\\Luke Kaim\\Documents\\university_of_maine\\research4\\test5\\APPROACH_HARBOR_DEPCNT_line.shp"

# Check out any necessary licenses
arcpy.CheckOutExtension("spatial")

APPROACH_ContourLine_Project_shp = "APPROACH_ContourLine_Project.shp"
Generalize_ContourLine5meter_shp = "Generalize_ContourLine5meter.shp"
allinputpoints_shp = "allinputpoints2.shp"
test = "test.shp"





# Process: Simplify Line
arcpy.SimplifyLine_cartography(APPROACH_ContourLine_Clip, Generalize_ContourLine5meter_shp, "POINT_REMOVE", "5 Meters", "RESOLVE_ERRORS", "NO_KEEP", "CHECK")



# Process: Feature Vertices To Points
arcpy.FeatureVerticesToPoints_management(Generalize_ContourLine5meter_shp, test, "ALL")


# Process: Add Field (4)
arcpy.AddField_management(test, "input", "SHORT", "", "", "", "", "NON_NULLABLE", "NON_REQUIRED", "")

# Process: Calculate Field (4)
arcpy.CalculateField_management(test, "input", "4", "PYTHON_9.3", "")


print "start projection"


# Process: Project (5)
arcpy.Project_management(test, APPROACH_ContourLine_Project_shp, "PROJCS['NAD_1983_UTM_Zone_19N',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-69.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]", "NAD_1983_To_WGS_1984_1", "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]")

print "finsihed projection"
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372485#M1228</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T17:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable question</title>
      <link>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372486#M1229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: mzcoyle&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Importing arcpy twice can't be good for your health.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other than that, try posting the errors you got and that may help narrow it down.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 19:09:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372486#M1229</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-12-06T19:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variable question</title>
      <link>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372487#M1230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: luke.kaim&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the fast reply. I deleted import arcpy. Feature to vertices is not converting all line segments to points though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the error I am getting. I also am attaching the data as well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:/Users/Luke Kaim/Documents/university_of_maine/research4/contourlinesTEST.py", line 48, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Project_management(test, APPROACH_ContourLine_Project_shp, "PROJCS['NAD_1983_UTM_Zone_19N',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-69.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]", "NAD_1983_To_WGS_1984_1", "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 4927, in Project&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000365: Invalid geographic transformation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Project).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Luke Kaim (SIE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="mailto:Lucas.Kaim@maine.edu"&gt;Lucas.Kaim@maine.edu&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;(914)263-7866&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;�??Everything should be made as simple as possible, but no simpler�?� (Albert Einstein).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 19:22:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372487#M1230</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-12-06T19:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Variable question</title>
      <link>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372488#M1231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Transforming between NAD83 to WGS84 requires a datum transformation method, and it looks as if you are not supplying that parameter. If you are in the lower 48, "NAD_1983_To_WGS_1984_5" should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//003r00000010000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//003r00000010000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 19:30:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372488#M1231</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2011-12-06T19:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variable question</title>
      <link>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372489#M1232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: mzcoyle&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see a geographic transformation defined, this is not optional in the projection you are doing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/000365_Invalid_geographic_transformation/00vp00000026000365/"&gt;Error code 000365&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000007m000000"&gt;Project tool syntax&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may need &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/21327"&gt;this resource&lt;/A&gt;&lt;SPAN&gt; to help you choose the correct transformation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 19:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372489#M1232</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-12-06T19:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Variable question</title>
      <link>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372490#M1233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: luke.kaim&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That still does not work though. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Process: Project (5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.Project_management(test, APPROACH_ContourLine_Project_shp, "PROJCS['NAD_1983_UTM_Zone_19N',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-69.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]]", "NAD_1983_To_WGS_1984_1", "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 20:18:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372490#M1233</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-12-06T20:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Variable question</title>
      <link>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372491#M1234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try executing the projection you want in Arc using the Project tool, and copy the python snippet after it is run to see where there are differences.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, avoid using spaces in your file names or paths, that causes nothing but problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 20:35:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372491#M1234</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-12-06T20:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variable question</title>
      <link>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372492#M1235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: luke.kaim&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is what I did.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 20:36:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372492#M1235</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-12-06T20:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variable question</title>
      <link>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372493#M1236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try moving your workspace to something with a shorter path and no spaces.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 20:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/transportation-questions/variable-question/m-p/372493#M1236</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-12-06T20:46:20Z</dc:date>
    </item>
  </channel>
</rss>

