Select to view content in your preferred language

Can someone please write a code for me created a Projected UTM Grid over a sphere of the earth?

5103
13
04-26-2016 08:07 AM
TylerKloesel
Deactivated User


Hello! I am in desperate need of a code to be written for me. I honestly have no idea what to do or even where to begin. IF anyone is willing and able to write it for me, I would greatly appreciate it. Assignment 14.1 task 2.

Thank you!

Tags (1)
0 Kudos
13 Replies
DarrenWiens2
MVP Alum

Here's one line of code that will essentially do your assignment for you, but at some point you will need to figure out what it means:

arcpy.CopyFeatures_management([arcpy.Polygon(arcpy.Array([arcpy.Point(i,80),arcpy.Point(i+6,80),arcpy.Point(i+6,-80),arcpy.Point(i,-80),arcpy.Point(i,80)])) for i in range(-180,180,6)],r'in_memory\utm_zones')

0 Kudos
DarrenWiens2
MVP Alum

Universal Transverse Mercator coordinate system - Wikipedia, the free encyclopedia

See if you can find the pattern(s) for your loop(s).

0 Kudos
DanPatterson_Retired
MVP Emeritus

Academic Integrity - Student Affairs

Perhaps not all institutions have these ... nor all people studied at one that did.

Do your own work, show what you did, then ask for help... you have been guided enough, now get on with it.

TimothyHales
Esri Notable Contributor

Hi Tyler Kloesel​! Thank you for joining the community. Hopefully we have provided ample information for you to get a good start on your assignment. Please keep in mind that this community is open to guests and also indexed by Google and other search engines which makes it searchable by professors and future employers. I'm going to move forward with locking this discussion. If anyone has any concerns, please feel free to contact me directly. Thanks!